[英]Failed adding runner deploy key to GitLab project
After adding a project in the gitlab CI, I got: 在gitlab CI中添加项目后,我得到了:
You should assign at least one runner to project for processing project builds.
您应该为项目分配至少一个用于处理项目构建的运行器。 Visit this page to assign runner
访问此页面以指定跑步者
The linked page ( /ci/projects/16/runner_projects ) had a button to add a runner to the project, but When I hit the Add
, I got the error: 链接页面( / ci / projects / 16 / runner_projects )有一个向项目添加跑步者的按钮,但是当我点击
Add
,我收到了错误:
Failed adding runner deploy key to GitLab project
无法将跑步者部署密钥添加到GitLab项目
Gitlab Version: Gitlab版本:
从GitLab上的配置文件中删除所有SSH密钥,然后它将允许您将运行器添加到项目中。
A similar issue does mention a workaround: 类似的问题确实提到了一种解决方法:
it may be good to note exactly what will and won't work for adding a gitlab-ci-runner.
确切地说明添加gitlab-ci-runner将会起什么作用并且不会起作用可能会很好。
I was able to get this to work by creating a new user and creating a
gitlab-ci-runner
with-in that.我能够通过创建一个新用户并创建一个
gitlab-ci-runner
来实现这一点。Previously I had tried adding a runner that was running under an existing user, once using that user's main ssh key (which was also added to my account in my instance of gitlabhq).
以前我曾尝试添加一个在现有用户下运行的运行器,一次使用该用户的主ssh密钥(在我的gitlabhq实例中也添加到我的帐户中)。
I then tried it using a newly generated key used just for the gitlab-ci-runner.然后我尝试使用刚刚用于gitlab-ci-runner的新生成的密钥。
This is a bit similar to issue 204 , where the problem exists for both "Add" and "Assign to all", with a potential cause: 这有点类似于问题204 ,其中存在“添加”和“分配给所有人”的问题,可能的原因是:
I think my issue is that I was trying to add my key when it already existed on a project... I can successfully add new keys just fine.
我认为我的问题是我在项目已经存在的时候尝试添加我的密钥......我可以成功地添加新密钥。
As issue 207 mentions: 问题207提到:
Runner should be registered on GItLab CI url.
跑步者应在GItLab CI网址上注册。 not GitLab (ie: use http://ci.gitlab.org )
不是GitLab(即:使用http://ci.gitlab.org )
Make sure that your version of gitlab-ci at least include commit 9aca33e (from your question, it should be the case). 确保你的gitlab-ci版本至少包含commit 9aca33e (从你的问题来看,应该是这种情况)。
您必须填写CI项目编辑页面上“高级设置”部分中的所有信息
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.