Solved: FATAL: Failed to start gitlab-runner: exit status 134

We use a macmini running gitlab-runner to build ios application, but recently I find it failed to start, when I running the gitlab-runner…

Solved: FATAL: Failed to start gitlab-runner: exit status 134

We use a macmini running gitlab-runner to build ios application, but recently I find it failed to start, when I running the gitlab-runner start , it report the following error:

FATAL: Failed to start gitlab-runner: exit status 134

Solution

The problem for my issue is that I connect to the remote macmini with terminal ssh, after I use the remote desktop to login to the machine, and find that the gitlab-runner is in running status.

So the problem is caused by the machine didn’t login to the desktop.

I find that gitlab-runner start is called launchctl load <config file> , the error code is 134, to check with the launchctl load command:

launchctl load ~/Library/LaunchAgents/gitlab-runner.plist 
echo $?