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.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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