【问题标题】:FATAL: Failed to start gitlab-runner: "launchctl" failed with stderr: Load failed: 5: Input/output error致命:无法启动 gitlab-runner:“launchctl”因标准错误而失败:加载失败:5:输入/输出错误
【发布时间】:2021-09-18 19:22:34
【问题描述】:

安装和注册 gitlab-runner 后,当我运行 gitlab-runner start 时,我收到此错误消息。这是什么原因?

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

【问题讨论】:

    标签: macos gitlab continuous-integration


    【解决方案1】:

    cd ~

    sudo chmod +x /usr/local/bin/gitlab-runner

    gitlub-runner start

    为我工作

    【讨论】:

    • @VictoriaAgafonova install brew 安装跑步者,或者确保你在组下配置跑步者,有时项目跑步者将无法工作
    • 谢谢。但是如何找出 gitlab-runner 的 brew 安装使用哪些设置呢?我已经用 brew 安装了一个,它开始正常,但是在我的项目的跑步者页面中,我可以看到注释,我的注册跑步者从未使用过。我假设,这个安装的跑步者不使用我的 -/.gitlab-runner/config .toml ...
    【解决方案2】:
    gitlab-runner uninstall
    gitlab-runner install
    gitlab-runner start
    

    为我修复了它,如下所述:https://docs.gitlab.com/runner/install/osx.html#upgrade-the-service-file

    【讨论】:

      【解决方案3】:

      我使用 brew 安装并尝试时遇到同样的错误

      gitlab-runner start
      

      我必须使用brew 启动运行器服务,它可以工作

      brew services restart gitlab-runner
      

      【讨论】:

        【解决方案4】:

        看到你的runner在非sudo中运行,带上gitlab-runner daemon can't write log到需要sudo权限的路径。 例如,我的 Mac OS 中的路径“/usr/local/var/log/gitlab-runner.out.log”。

        【讨论】:

        • 正如目前所写,您的答案尚不清楚。请edit 添加其他详细信息,以帮助其他人了解这如何解决所提出的问题。你可以找到更多关于如何写好答案的信息in the help center
        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2019-07-18
        • 2020-06-18
        • 2020-10-25
        • 2021-10-28
        • 1970-01-01
        • 2017-07-28
        • 2014-08-09
        相关资源
        最近更新 更多