Git clone fatal: unable to access 403
Steps to reproduce
When the gitlab-runner starts the pipeline and starts git clone or fetch command, then an error is returned:
Relevant logs and/or screenshots
- Running with gitlab-ci-multi-runner 9.4.2 (6d06f2ec) on host-vm (a126d8fa)
- Using SSH executor...
- Running on host-vm via host-vm...
- Cloning repository...
- Cloning into 'builds/a126d8fa/0/project/appName'...
- fatal: unable to access 'https://gitlab-ci-token:xxxxxxxxxxxxxxxxxxxx@gitlab.my-company.com/project/appName.git/': The requested URL returned error: 403
- ERROR: Job failed: Process exited with: 1. Reason was: ()
Previous actions
A week ago the server was updated from 9.3.8 to 10.6 via omnibus.Also SSL certificates for gitlab nginx were republished and replaced. That most of all confuses so this is what the old projects in the groups that already existed before the performed activities normally run pipeline, without error. But new projects in the same group failed on git clone command. I re-registered runner and install other version of gitlab-runner. But it did not work. If you manually run git clone command on the same machine with same user, it runs successfully. Does not work in pipeline
Сan someone faced the same problem? It seems to me that this has something to do with updating the server or SSL certs.