Tohid Savari
Tohid Savari

Reputation: 156

Client.Timeout exceeded while awaiting headers)

I made a specific runner on my own server, when I try to docker login to gitlab registry, I face with the error message that says "Error response from daemon: Get https://registry.gitlab.com/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)" Is there any solution to this problem?

Upvotes: 5

Views: 16743

Answers (3)

D063520
D063520

Reputation: 153

My mistake was that I changed the IP of my gitlab instance. While I changed the DNS entry for the gitlab application, I forgot to change the DNS entry for the gitlab registry.

Upvotes: 1

developer123
developer123

Reputation: 11

reboot the server, it should be back up after.

Upvotes: 0

Tohid Savari
Tohid Savari

Reputation: 156

After a lot of searches, I find out that I must specify the DNS configuration in /etc/resolv.conf path, in my case, nameserver 8.8.8.8 was not working because of my location and I had to change it, then login was successful.

Upvotes: 2

Related Questions