Registering Runner Help

I am unable to register my gitlab runner. I have a project that I am working on, and for this project we wanted to have a CI/CD pipeline. I followed the instructions on the page and installed a runner successfully, but as soon as I am trying to register my runner, here is the error message i receive
sudo gitlab-runner register
Running in system-mode.

https://gitlab.com/ci
Please enter the gitlab-ci token for this runner:
{Token}
Please enter the gitlab-ci description for this runner:
[genesis]: SPN CI
Please enter the gitlab-ci tags for this runner (comma separated):
docker
Whether to run untagged builds [true/false]:
[false]: false
Whether to lock the Runner to current project [true/false]:
[true]: true
ERROR: Registering runner... forbidden (check registration token)  runner={token}
PANIC: Failed to register this runner. Perhaps you are having network problems 

I do not have network problems and I have already added a .gitlab-ci.yml file as well to the repository and checked on the linter and it informed me that it was a valid .yml file.

I am using the latest version of the gitlab runner.

Any help would be much appreciated.

1 Like

Once I had a similar problem and solved it by creating a new token.

Didn’t work, just swapping to github instead.

@pranavsubramani You must create a project before runner registering.

Ofcourse a project was created, why would I even try to setup a CI/CD pipeline without a project?
:roll_eyes:

1 Like

Also, re-read the message before you respond the next time, sudo was used which implies that there is no way that this is on windows unless it’s under the bash subsystem, which it isn’t and is an assumption that should be clarified.

1 Like