简体   繁体   English

Gitlab CI运行器离线

[英]Gitlab CI runner is offline

Recently our internal Gitlab upgraded to 10.8.7 , all runner are down as expected. 最近,我们的内部Gitlab升级到10.8.7 ,所有运行器均按预期下降。 So I tried to upgrade the runner to the latest following the upgrade . 所以,我想升级的亚军到最新以下升级 Luckily three out of five hosts are working in shell mode. 幸运的是四分之三五台主机的正在shell模式。

But TWO of them are not working as expected, I tried: 但是, 两人对视预期不工作,我想:

$ sudo gitlab-runner restart
$ sudo gitlab-runner list
$ sudo gitlab-runner verify
$ sudo reboot # the last try when all the above failed

It's working as it says: 它的工作原理如下:

Runtime platform                                    arch=amd64 os=linux pid=5136 revision=7f00c780 version=11.5.1
Running in system-mode.                            

Verifying runner... is alive                        runner=db05dfa6

But Runner is offline stands out in the runner management page. 但是Runner脱机Runner管理页面中脱颖而出。

Upgrade 2018-12-13 升级2018-12-13

I manually paused all the other active runners online (in our group runner management page <our_internal_host>/groups/<our_group>/-/settings/ci_cd#runners-settings ), it's up then. 我手动在线暂停了所有其他活动跑步者(在我们的团体跑步者管理页面<our_internal_host>/groups/<our_group>/-/settings/ci_cd#runners-settings ),然后就可以了。 Weird design, perhaps it's just sleeping or relaxing when jobs are not that heavy. 奇怪的设计,当工作不那么繁重时,也许只是在睡觉或放松。 :) :)

Generally, an upgrade implies (as discussed here ) to reinstall the workers. 通常,升级意味着(如此处讨论的 )重新安装工作程序。

I think I was just running a worker version that was too old and some changes were made that made the older version incompatible. 我认为我正在运行的工作器版本过旧,并且进行了一些更改,使旧版本不兼容。

And the pause function does not seem to be available through the GitLab web UI yet ( issue 44377 ) 而且暂停功能似乎尚未通过GitLab Web UI提供( 问题44377

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM