runner icon indicating copy to clipboard operation
runner copied to clipboard

Runner is not starting on Ubuntu boot as a service, but is starting manually as a service

Open romikoops opened this issue 1 year ago • 0 comments

A self-hosted runner as a service has been installed in Ubuntu 22.04.4 LTS. Everything is working before the OS is not rebooting. After this, I can see the following in the logs:

If I start the service manually, everything is good.

To Reproduce Steps to reproduce the behavior:

  1. To configure the runner (on Ubuntu 22.04) to run as a service should be used the next commands:
$ ./config.sh --url https://github.com/<org name> --pat <github-token> --name "Runner name" --work _work --labels ubuntu-latest --runasservice
$ sudo ./svc.sh install
$ sudo ./svc.sh start
  1. Runner is online
  2. Reboot the OS, for example sudo shutdown -r now
  3. Runner is offline and logs have the following:
Aug 26 01:15:55 StrongSD runsvc.sh[650]: √ Connected to GitHub
Aug 26 01:15:55 StrongSD runsvc.sh[650]: Failed to create a session. The runner registration has been deleted from the server, please re-configure. Runner registrations are automatically d>
Aug 26 01:15:55 StrongSD runsvc.sh[650]: Runner listener exited with error code 1
Aug 26 01:15:55 StrongSD runsvc.sh[650]: Runner listener exit with terminated error, stop the service, no retry needed.

Expected behavior Service should be executed on boot the same way as manually with reading all env and credentials

Runner Version and Platform

actions-runner-linux-x64-2.314.1 Ubuntu 22.04.4 LTS

romikoops avatar Aug 25 '24 22:08 romikoops