Failed to add runner deployment key to GitLab project

After adding the project to CI gitlab, I got:

You must designate at least one runner for the project to handle the project. Visit this page to designate a runner.

A button appeared on the linked page ( / ci / projects / 16 / runner_projects ) to add a runner to the project, but when I clicked Add , I got an error:

Failed to add runner deployment key to GitLab project

Gitlab Version:

  • GitLab CI 3.2.0 e0c0609
  • Gitlab 6.2
+4
source share
3 answers

Remove all SSH keys from your profile in GitLab and then it will add a runner to the project.

+1
source

A similar problem mentions a workaround:

it may be useful to note that it will and will not work to add gitlab-ci-runner.

I managed to get this to work by creating a new user and creating gitlab-ci-runner with this.

I used to try to add a runner that was running under an existing user after using this main user ssh key (which was also added to my account in my gitlabhq instance).
Then I tried it using the key just generated, used only for gitlab-ci-runner.

This is a bit like issue 204 , where the problem exists for both Add and Assign to All, with the potential to call:

I think my problem is that I tried to add my key when it already existed in the project ... I can successfully add new keys just fine.

As question 207 mentions:

The runner must be registered at the GItLab CI URL. not GitLab (i.e. use http://ci.gitlab.org )

Make sure your version of gitlab-ci at least includes commit 9aca33e (from your question this should be so).

0
source

You must fill in all the information in the "Advanced Settings" section of the CI project edit page

-one
source

Source: https://habr.com/ru/post/1500260/


All Articles