This help site has been deprecated. Please send your requests to support@rubygems.org

Frequent Gem::RemoteFetcher::UnknownHostError timed out over the last week

Stan Hu's Avatar

Stan Hu

06 May, 2019 11:42 AM

I thought I had reported this in another discussion, but now I can't find it. Over the past week, we've been seeing frequently failures talking to RubyGems in our CI, such as:

Retrying download gem from https://rubygems.org/ due to error (2/4): Gem::RemoteFetcher::UnknownHostError timed out (https://rubygems.org/gems/http-cookie-1.0.3.gem)

https://gitlab.com/gitlab-org/gitlab-ce/-/jobs/207698661

  1. 1 Posted by Tinco on 07 May, 2019 12:54 AM

    Tinco's Avatar

    Same here, perhaps more IPv6 problems?

    https://stackoverflow.com/questions/49800432/gem-cannot-access-rubygems-org

    It's proving difficult to deal with, I don't have a good solution yet and it's making it really hard to deploy.

  2. 2 Posted by Brian on 08 May, 2019 09:44 AM

    Brian's Avatar

    +1 here. Intermittent issue in my Gitlab CI while building my docker image.

  3. Support Staff 3 Posted by sonalkr132 on 15 May, 2019 12:22 PM

    sonalkr132's Avatar

    Hi,

    We have been monitoring our fastly 5xx for the past few days. We don't see any timeout for /gems path. Can you please confirm if your builds are still failing?

  4. 4 Posted by Stan Hu on 15 May, 2019 04:05 PM

    Stan Hu's Avatar

    It sounds like the errors wouldn't show up on Fastly because the DNS lookups just fail on the client before any attempts are made. It sounds like the wrokaround is to force IPv4 lookups: https://stackoverflow.com/a/50349235

  5. Support Staff 5 Posted by sonalkr132 on 15 May, 2019 04:13 PM

    sonalkr132's Avatar

    AFAIK, Gitlab doesn't use IPv6 hosts[1]. Intermittent timeout on gem path seems unrelated to IPv6 issue to me.

  6. 6 Posted by Stan Hu on 15 May, 2019 05:49 PM

    Stan Hu's Avatar

    GitLab Runners are configured to use IPv6. That issue is about users accessing GitLab.com with IPv6, which is a different issue.

  7. Support Staff 7 Posted by sonalkr132 on 13 Jul, 2020 07:45 AM

    sonalkr132's Avatar

    Hi Stan,

    Sorry about the delay in the resolution here. I personally didn't have access to take any steps here until recently. I have opened a support ticket with Fastly and hopefully, we will make some progress here. Can you please confirm if you are still having this issue?
    If yes, I would like to forward some debugging info about your host/IP to the Fastly team.

Discussions are closed to public comments.
If you need help with RubyGems.org please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac