Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

github-runner service fails to start after a reboot #32

Open
sandydoo opened this issue Jun 18, 2024 · 0 comments
Open

github-runner service fails to start after a reboot #32

sandydoo opened this issue Jun 18, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@sandydoo
Copy link
Member

sandydoo commented Jun 18, 2024

After a reboot, the systemd service fails to change to the working directory:

Jun 18 14:19:42 linux (igure.sh)[1451]: github-runner-cachix-x86_64-linux.service: Changing to the requested working directory failed: Permission denied
Jun 18 14:19:42 linux systemd[1]: github-runner-cachix-x86_64-linux.service: Control process exited, code=exited, status=200/CHDIR
Jun 18 14:19:42 linux systemd[1]: github-runner-cachix-x86_64-linux.service: Failed with result 'exit-code'.
Jun 18 14:19:42 linux systemd[1]: Failed to start GitHub Actions runner.

This can be fixed by:

rm -rf /run/github-runner
systemctl restart github-runner-cachix-x86_64-linux.service

After rebooting, /run/github-runner is empty and owned by root.
After deleting and restarting the services:

> ls -l /run/github-runner/
total 0
drwxr-xr-x 2 github-runner github-runner 120 Jun 18 14:27 cachix-x86_64-linux
@sandydoo sandydoo added the bug Something isn't working label Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant