Dear all,
I encounter the same issue with my self-hosted Gitlab:
Cloning repository...
Cloning into '/builds/zebulon/spdlog'...
fatal: unable to access 'https://gitlab-ci-token:xxxxxxxxxxxxxxxxxxxx@factory.palabritudes.net/zebulon/spdlog.git/': Failed to connect to factory.palabritudes.net port 443: Connection refused
ERROR: Job failed: exit code 1
If I try to clone the repository in a shell console, using the runner token (Project => Settings => CI / CD => General pipelines => Runner token), the command fails:
git clone https://gitlab-ci-token:1Wri..Thiv@factory.palabritudes.net/zebulon/spdlog.git/
Cloning into 'spdlog'...
remote: HTTP Basic: Access denied
fatal: Authentication failed for 'https://gitlab-ci-token:1Wri..Thiv@factory.palabritudes.net/zebulon/spdlog.git/'
However, if I try to clone the repository using my private token (User => Settings => Access Tokens => Personal Access Tokens => Add a personal access token), it works:
git clone https://gitlab-ci-token:1iDq..78pd@factory.palabritudes.net/zebulon/spdlog.git/
Cloning into 'spdlog'...
remote: Counting objects: 11040, done.
remote: Compressing objects: 100% (2761/2761), done.
remote: Total 11040 (delta 7261), reused 11029 (delta 7255)
Receiving objects: 100% (11040/11040), 3.73 MiB | 297.00 KiB/s, done.
Resolving deltas: 100% (7261/7261), done.
So, the Gitlab configuration seems right (and, actually, I already did a lot of commits on several repositories hosted on this forge).
The project permissions are:
- Project Visibility: Internal
- Repository: Everyone With Access
- Pipelines: Everyone With Access
I use a shared runner and the software versions are:
- Gitlab: 11.1.0
- Gitlab runner: 11.1.0
Gitlab was deployed on a Debian Buster, using the Omnibus package and an Apache reverse proxy configured from Gitlab recipe for Apache 2.4. The TLS certificate is valid (provided by Let’s Encrypt and managed by Certbot).
I spent a long time searching a solution on the net, in vain…
Could you help me? What I have forgotten or failed?
Thanks in advance,
Sébastien