Sometimes: "Access denied. The provided password or token is incorrect or ..." while pull image from Gitlab registry

Pipeline error while pull the image from the Buildin Docker registry

since the last update to Gitlab v16.2.0, we have often, but not on every Pipeline run, the following error:

Running with gitlab-runner 16.2.0 (782e15da)
  on docker-umask ....
Preparing the "docker" executor
00:02
Using Docker executor with image git.example.com:5555/example_internal/container/levant:latest ...
Authenticating with credentials from /root/.docker/config.json
Pulling docker image git.example.com:5555/example_internal/container/levant:latest ...
WARNING: Failed to pull image with policy "always": Error response from daemon: Head "https://git.example.com:5555/v2/example_internal/container/levant/manifests/latest": unauthorized: 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 https://git.example.com/help/user/profile/account/two_factor_authentication#troubleshooting (manager.go:237:0s)

It works often, while click “retry” on that stage / job. I have no idea, what the issue is …

any suggestions ?

1 Like