I made a system service on remote VM that should start on boot as suggested here:
[Unit]
Description={removed}
Wants=network-online.target
After=network-online.target
[Service]
User={my username}
ExecStart=/usr/bin/bash -c "{access remote repo, pull code to a folder in my home directory, run with personal tokens}"
Restart=on-failure
[Install]
WantedBy=multi-user.target
This fails to run on startup, throwing the following errors:
service.service: Failed to determine user credentials: Resource temporarily unavailable
service.service: Failed at step USER spawning /usr/bin/bash: Resource temporarily unavailable
service.service: Main process exited, code=exited, status=217/USER
service.service: Failed with result 'exit-code'.
The service, however, can be successfully run manually.
What i the cause of this behavior and how to fix it?
command --password #####
. Perhaps the commands didn't matter this time but if you are going to ask for help, then that's rather difficult if not impossible to do when information isn't available.