Gitlab uses unkown domain for gitlab runners

Hello,

My GitLab was a bit outdated and i have updated to the latest version 16.1.2, after some usage I’ve found some problems with my runners. The build failed because of some strange URL. I don’t know where this URL is coming from…

Preparing environment
Running on runner-gsobv3-z-project-37-concurrent-0 via 51e7b9d83a15...
Getting source from Git repository
Fetching changes with git depth set to 50...
Reinitialized existing Git repository in /builds/david/repo/.git/
fatal: unable to access 'http://c4bbe1f47248/david/repo.git/': Could not resolve host: c4bbe1f47248
Cleaning up project directory and file based variables
ERROR: Job failed: exit code 1

I was trying to add a new runner via https://gitlab.my.com/admin/runners/new , I was redirected to some strange URL, what was also not found. The same URL is visible again when I click on the runner in the list.

Where is this URL configured?

Let me guess, your GitLab is behind a HTTPS reverse proxy and the “strange url” is id/hostname of the container where GitLab is running :slight_smile:

2 Likes

Yes sir, you are right! I am using a reverse proxy and also the url is the hostname of the container!

How can I fix it?

/edit: I just figured out my gitlab.rb file is completely empty… I guess this happened during the upgrade at some point. I will try to fix that and see how it goes…

You are not the only one that reported this issue with the new Runner registration method and all you have in common is own reverse proxy :slight_smile:
I suppose this is a bug, you can raise this in the GitLab issue tracker or use the old registrationToken method which is hidden behind the “3 dots” menu next to “New runner” button.

1 Like