Github action runner svc start not working on MacOS Monterey
See original GitHub issueDescribe the bug
Trying to set up a self-hosted github actions runner as a service so it launches on startup. Currently am getting
starting actions.runner.X
Load failed: 5: Input/output error
Try running `launchctl bootstrap` as root for richer errors.
status actions.runner.X:
/Users/ec2-user/Library/LaunchAgents/actions.runner.X.plist
Stopped
To Reproduce Steps to reproduce the behavior:
- Configure action runner with ./config.sh
- Install the service with ./svc.sh install (Successful)
- Start the service with ./svc.sh start
Expected behavior
Service starts and can be seen running:
launchctl list | grep X
Runner Version and Platform
Version of your runner? Latest 2.293
OS of the machine running the runner? OSX/Windows/Linux/… MacOS Monterey
What’s not working?
Service Starting
Workaround:
I can get the runner started by running: sudo chown root:wheel /Users/ec2-user/Library/LaunchAgents/actions.runner.X sudo launchctl bootstrap system ~/Library/LaunchAgents/actions.runner.c3-e-c3vsce.GAR-5.plist Though this is installing the runner in the system domain instead of the user, and the service does not start on restart.
Issue Analytics
- State:
- Created a year ago
- Reactions:9
- Comments:8
Top Results From Across the Web
Issues
Running ./svc.sh start over vnc in a terminal session worked for me. I would like to see the setup script modified to use...
Read more >Not able to run self-hosted runner application as a service ...
Service should be started on starting up mac and Github -> actions-> runner should show "Idle" state. Runner Version and Platform. Version of ......
Read more >Provide an installer for running in a service account on self ...
Currently the Github action runner service can only be installed by an interactive user. This goes against what one expects from a CI...
Read more >Self hosted runner not starting up as a service. · Issue #2652
We are trying to startup a self hosted runner as a service and are following the instructions on https://docs.github.com/en/actions/hosting- ...
Read more >Self-hosted runner Status switch to offline after logout #1476
Hello, We're running a self-hosted runner on macOS M1 with the Monterey OS version. We installed the service using svc.sh install and start...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Found the source of this issue and a solution - launchd can’t load user’s services until it logs in via GUI, that’s why need to login under the certain user via GUI. In addition, auto login feature can help in that case.
You need to remote login via vnc and then enable
Automatic Login
to the account you are using in system preferences, underUser & Groups
->Login Options
. Now next time the machine turns on GUI should be enabled on that account.