Report this

What is the reason for this report?

i cannot ping gitlab.com from my droplet (tried on other droplet)

Posted on March 28, 2020

i try to do git pull and it return this

ssh: Could not resolve hostname gitlab.com: No address associated with hostname
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

and when i try to ping gitlab.com it return this

ping: gitlab.com: No address associated with hostname

i tried to ping from another droplet i own and the result is the same. is there a problem in your dns?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

i can ping to github fine. only gitlab had a problem. okay i’ll add the gitlab ip to hosts for now.

Hello!

Today I have same problem but with github. From 2 droplets I can’t ping github (“No address associated with hostname”) but on my newest one it works. Of course I can add ip to hosts file but I have question - is this your dns related problem or samething else?

Regards, Krzysiek

Hello, @silentrazgriz

Could you please let me know if you’re having issues to connect/ping only to gitlab or you’re unable to ping other domains/hosts as well?

If the issue is occurring only with gitlab.com what you can do is to alter you droplet’s hosts file and enter the following line:

open the hosts file with your favorite text editor - vi, vim or nano

vim /etc/hosts

add the following line at the bottom of the file:

172.65.251.78 gitlab.com www.gitlab.com

You can then try to ping or access gitlab using ssh as well.

Hope this helps!

Regards, Alex

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.