question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Github action runner svc start not working on MacOS Monterey

See original GitHub issue

Describe 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:

  1. Configure action runner with ./config.sh
  2. Install the service with ./svc.sh install (Successful)
  3. 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:open
  • Created a year ago
  • Reactions:9
  • Comments:8

github_iconTop GitHub Comments

2reactions
asenyaevcommented, Jul 26, 2022

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.

1reaction
c3-kaspesicommented, Aug 29, 2022

You need to remote login via vnc and then enable Automatic Login to the account you are using in system preferences, under User & Groups -> Login Options. Now next time the machine turns on GUI should be enabled on that account.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found