Runner: OSX Runner service fails to start

Created on 1 Mar 2020  路  4Comments  路  Source: actions/runner

Describe the bug

When I ssh into my OSX box, and try to start the service, I receive the following error:
Could not find domain for port (Aqua)

The command I'm running is cd actions-runner && ./svc.sh install

The ./run.sh command works without issue

To Reproduce
./svc.sh start

Expected behavior

  • The service starts
  • Rebooting the machine starts the service automatically

Runner Version and Platform

Version of your runner?
osx-x64-2.165.2

OS of the machine running the runner? OSX/Windows/Linux/...
OSX Catalina

What's not working?

Could not find domain for port (Aqua)

Job Log Output

$ ./svc.sh install
Creating launch runner in /Users/xxx/Library/LaunchAgents/actions.runner.xxx-xxx.xxx-build-osx.plist
Creating /Users/xxx/Library/Logs/actions.runner.xxx-xxx.xxx-build-osx
Creating /Users/xxx/Library/LaunchAgents/actions.runner.xxx-xxx.xxx-build-osx.plist
Creating runsvc.sh
Creating .service
svc install complete

Runner and Worker's Diagnostic Logs

N/A

bug

Most helpful comment

Looks like this did the trick for me!

sudo cp {/Users/xxx/Library/LaunchAgents,/Library/LaunchDaemons}/your.plist

I was able to reboot my machine without logging in and see the runner active

All 4 comments

@jl-gogovapps i did a quick google search on the error, looks like related permission around the SSH user and the service installed user.
what user did you use to run ./svc.sh install and what user did you use to SSH?

Hey @TingluoHuang, thanks for checking in on it. I'm ssh-ing, and then running ./svc.sh install so it's the same user. It's also the only primary user on the machine. I could give this a try

For anyone who ends up here, launchd can't load user's services until it logs in via gui. Auto login feature can help in that case

But it still seems a little off to me

Looks like this did the trick for me!

sudo cp {/Users/xxx/Library/LaunchAgents,/Library/LaunchDaemons}/your.plist

I was able to reboot my machine without logging in and see the runner active

This is happening on a fresh macOS install.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Maxim-Mazurok picture Maxim-Mazurok  路  5Comments

jpb picture jpb  路  4Comments

nicolas-marcq picture nicolas-marcq  路  3Comments

asomers picture asomers  路  5Comments

evanrelf picture evanrelf  路  4Comments