Gitlab:出现了runner系统故障

Gitlab: There has been a runner system failure

我使用 Gitlab 进行持续集成和开发,突然收到此错误消息 "There has been a runner system failure, please try again"

没有真正的错误消息或错误代码。

我已经尝试使用 gitlab-runner restart 重新启动 gitlab runner,我已经重新启动了 运行 的服务器,但是每当我按下一个代码更改。

几个小时后,我意识到问题是 Gitlab Runner 运行 所在的服务器没有 space 剩余。

我登录了有问题的服务器。使用以下命令查看 Gitlab 日志文件: journalctl -u gitlab-runner

它向我展示了以下日志:

May 21 08:20:41 gitlab-runner[18936]: Checking for jobs... received                       job=178911 repo_url=https://.......git runner=f540b942
May 21 08:20:41 gitlab-runner-01 gitlab-runner[18936]: WARNING: Failed to process runner                   builds=0 error=open /tmp/trace543210445: no space left on device executor=docker runner=f540b942

为了解决这个问题,我 运行 docker conatiner prune 清除了停止的容器。

或者您可以使用 docker system prune 来删除所有未使用的对象。

有关这些 docker 命令的详细信息,请参阅 https://linuxize.com/post/how-to-remove-docker-images-containers-volumes-and-networks/

后来在Gitlab push changes的时候不再报错了