Hey there,
I’m using a self hosted gitlab-server for quite a while now, and wanted to enable the CI/CD pipelines and workers now.
Whend trying I had the problem, that my worker can’t authenticate with gitlab, giving the following message:
Fetching changes with git depth set to 50...
Reinitialized existing Git repository in /builds/projects/myproject/.git/
remote: HTTP Basic: Access denied. The provided password or token is incorrect or your account has 2FA enabled and you must use a personal access token instead of a password. See http://git.mydomain.tld/help/topics/git/troubleshooting_git#error-on-git-fetch-http-basic-access-denied
fatal: Authentication failed for 'http://git.mydomain.tld/projects/myproject.git/'
Uploading artifacts for failed job
Uploading artifacts...
WARNING: gl-secret-detection-report.json: no matching files. Ensure that the artifact path is relative to the working directory (/builds/projects/myproject)
ERROR: No files to upload
ERROR: Job failed: exit code 1
Since my instance is running in docker besides some other services behind a Apache reverse proxy, which handles the SSL, it’s running on plain http.
Is there any way to get this thing going with http?
Giving direct access to the docker running gitlab isn’t an option, so would be nice if someone could help me…
I already set the clone_url in the workers config, but that doesn’t changed anything.
The gitlab instance and the worker are running as docker-compose stack sharing an internal network.