0

I'm new to Gitlab Pipelines and want to set up one for one of my Python projects. I'm using the docker GitLab-runner container with this Configuration file:

version: '3'
services:
  runner:
    container_name: runner
    image: gitlab/gitlab-runner:latest
    restart: unless-stopped
    environment:
      - TZ=Europe/Berlin
    volumes:
      - ./data:/etc/gitlab-runner/
      - /var/run/docker.sock:/var/run/docker.sock

Whenever a pipeline is executed I get this error message:

Running with GitLab-runner 14.10.1 (f761588f)
  on docker xxxxxxx
Preparing the "docker" executor
Using Docker executor with image python:latest ...
Pulling docker image python:latest ...
Using docker image sha256:8dec8e39f2eca1ee1f1b668619023da929039a39983de4433d42d25a7b79267c for python:latest with digest python@sha256:567018293e51a89db96ce4c9679fdefc89b3d17a9fe9e94c0091b04ac5bb4e89 ...
Preparing environment
Running on runner-xxxxxxxxx-project-38-concurrent-0 via xxxxxxxx...
Getting source from Git repository
Fetching changes with git depth set to 20...
Reinitialized existing Git repository in /builds/group/project/.git/
remote: HTTP Basic: Access denied
fatal: Authentication failed for 'http://mygitlab.de/group/projekt.git/'
Cleaning up a project directory and file-based variables
ERROR: Job failed: exit code 1

The Gitlab Runner is assigned to a project. I already tried to reset everything and use it with my IP address, my DNS address, my local IP, my local device name but nothing worked yet

I read about others having the same problems, but mostly in 2016 or older. Is there anything I'm missing? Is there a setting I have to set correctly?

Vadim Kotov
  • 7,766
  • 8
  • 46
  • 61
Dustin
  • 46
  • 6
  • After some more research I think it's caused by my DNS. Some sites say this error would also appear on connection problems between the job container and the Gitlab Server – Dustin May 25 '22 at 17:46
  • Try solutions from https://stackoverflow.com/questions/47860772/gitlab-remote-http-basic-access-denied-and-fatal-authentication – Amol Chintamani May 26 '22 at 10:24
  • I tested all of them but had no success – Dustin May 27 '22 at 17:43

1 Answers1

0

One thing that might help you is to try and pass the actual IP in the extra hosts for the runner.

It should go into the config.toml for the runner something like extra_hosts = [ 192.1xx.x.x:mygitlab.de]

quizguy
  • 51
  • 6