Skip to content

Can't run gitlab CI runner - fatal: Authentication failed for https://gitlab-ci-token ...

Hi there,

I am using this documentation: https://docs.gitlab.com/ce/ci/examples/test-and-deploy-ruby-application-to-heroku.html

The runner stops at the test job with following error:

Running with gitlab-ci-multi-runner 9.0.1 (a3da309)
  on docker-auto-scale (e11ae361)
Using Docker executor with image ruby:2.1 ...
Using docker image sha256:1fa09642847ac970e1a3db4ce39f6fed6cd63977eb880b0442b23af4d2e3087e ID=sha256:1fa09642847ac970e1a3db4ce39f6fed6cd63977eb880b0442b23af4d2e3087e for predefined container...
Pulling docker image ruby:2.1 ...
Using docker image ruby:2.1 ID=sha256:1efe8b79554b16bff7afd21b0bf4b54c643b351f83b15549dc93b0c1dd30c6d8 for build container...
Running on runner-e11ae361-project-3045878-concurrent-0 via runner-e11ae361-machine-1491732539-e813b1fd-digital-ocean-2gb...
Cloning repository...
Cloning into '/builds/USER/repo'...
remote: HTTP Basic: Access denied
fatal: Authentication failed for 'https://gitlab-ci-token:xxxxxxxxxxxxxxxxxxxx@gitlab.com/USER/repo.git/'

How to fix this?