我试图在新安装的gitlab上注册一个gitlab runner(基于centos7的omnibus rpm) 但是注册失败了:
[root@ec2-x.y.z.w ~]#
[root@ec2-x.y.z.w ~]# sudo gitlab-ci-multi-runner register
Running in system-mode.
Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com/):
http://ec2-x-y-z-w.compute-1.amazonaws.com/
Please enter the gitlab-ci token for this runner:
38BUk9-kgZkmmPHz-hsb
Please enter the gitlab-ci description for this runner:
[ec2-x-y-z-w.compute-1.amazonaws.com]: dcos runner 1
Please enter the gitlab-ci tags for this runner (comma separated):
dcos
Whether to run untagged builds [true/false]:
[false]:
ERROR: Registering runner... failed runner=38BUk9-k status=404 Not Found
PANIC: Failed to register this runner. Perhaps you are having network problems
[root@ec2-x-y-z-w ~]#
答案 0 :(得分:6)
您似乎正在运行Gitlab Runner v9.x.将V9运行程序与G9下的V9匹配时会发生此错误。它们是不相容的。
Gitlab Runner v9开始使用V4 API,但这只适用于Gitlab V9。降级到1.11.1,应该再次工作。
特别是,如果您使用官方泊坞窗图像启动Runner,请不要使用:latest tag,切换到