'FATAL: Failed to start gitlab-runner: "launchctl" failed with stderr: Load failed: 5: Input/output error
After installing and registering gitlab-runner, when I'm running gitlab-runner start
I get this error message. What will be the reason for this ?
Runtime platform arch=amd64 os=darwin pid=65915 revision=c1edb478 version=14.0.1
FATAL: Failed to start gitlab-runner: "launchctl" failed with stderr: Load failed: 5: Input/output error
Solution 1:[1]
gitlab-runner uninstall
gitlab-runner install
gitlab-runner start
fixed it for me, as stated here: https://docs.gitlab.com/runner/install/osx.html#upgrade-the-service-file
Solution 2:[2]
I installed with brew and getting same error when I tried
gitlab-runner start
I have to start the runner service with brew
and it worked
brew services restart gitlab-runner
Solution 3:[3]
cd ~
sudo chmod +x /usr/local/bin/gitlab-runner
gitlub-runner start
worked for me
Solution 4:[4]
I had this on an M1 Mac. I had to install the M1 specific version of the GitLab Runner: https://gitlab.com/gitlab-org/gitlab-runner/-/issues/26561
Solution 5:[5]
Seeming your runner running in a non-sudo, bring the gitlab-runner daemon can't write log to the path that requires sudo permission. For example, the path in my Mac OS "/usr/local/var/log/gitlab-runner.out.log".
Steps to redirect log output:
gitlab-runner uninstall
followed bygitlab-runner install
to get a clean "plist" as a basis.- Edit
/Users/<username>/Library/LaunchAgents/gitlab-runner.plist
, and find the two XML-keys containing output paths for log files. A good path is/Users/<username>/.gitlab-runner/<log-file-name>
gitlab-runner start
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Kelteseth |
Solution 2 | Adiii |
Solution 3 | Bawantha |
Solution 4 | Mathias Lykkegaard Lorenzen |
Solution 5 | Pianosaurus |