Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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
like image 637
Bawantha Avatar asked Jul 08 '21 10:07

Bawantha


People also ask

Where is GitLab runner installed Mac?

GitLab Runner is installed and is run after a system reboot. If you followed these instructions, the GitLab Runner configuration file ( config. toml ) is in /Users/<username>/. gitlab-runner/ .

What are GitLab runners?

GitLab Runner is an application that works with GitLab CI/CD to run jobs in a pipeline. You can choose to install the GitLab Runner application on infrastructure that you own or manage.

How do I install GitLab Runner?

Install GitLab Runner as a service and start it: GitLab Runner is installed and will be run after a system reboot. A Homebrew formula is available to install GitLab. GitLab does not maintain the Homebrew formula. To install GitLab Runner using Homebrew: Install GitLab Runner. Install GitLab Runner as a service and start it.

Is it possible to run GitLab Runner in debug/verbose mode?

If the GitLab Runner is run as service on Windows it logs to System’s Event Log. Is it possible to run GitLab Runner in debug/verbose mode. From a terminal, run: Please see the self-signed certificates . If you want to use Docker executor, and you are connecting to Docker Engine installed on server. You can see the Permission Denied error.

Why is GitLab Runner stuck on the above message when using macOS?

If GitLab Runner is stuck on the above message when using macOS, there are two causes to why this happens: The first command enables access to developer tools for your user. The second command allows the user who is member of the developer group to do UI interactions, e.g., run the iOS simulator.

How can I verify that GitLab Runner created the service configuration file?

You can verify that GitLab Runner created the service configuration file after executing the install command, by checking the ~/Library/LaunchAgents/gitlab-runner.plist file. If Homebrew was used to install git, it may have added a /usr/local/etc/gitconfig file containing:


2 Answers

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

like image 85
Kelteseth Avatar answered Sep 21 '22 14:09

Kelteseth


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

enter image description here

like image 33
Adiii Avatar answered Sep 19 '22 14:09

Adiii