This help site has been deprecated. Please send your requests to support@rubygems.org
Gem::RemoteFetcher::UnknownHostError
For the last two days, when trying to update/install gems (building a docker image so it is repeatable), I am unable to complete the build process because the following error occurs (on a different gem each time):
Building native extensions. This could take a while...
ERROR: While executing gem ... (Gem::RemoteFetcher::UnknownHostError)
no such name (https://api.rubygems.org/quick/Marshal.4.8/bundler-1.14.6.gemspec.rz)
I i run the build over-and-over, sometimes it will succeed. I see no status updates related to this, but it has been happening to me for two days, from two entirely different networks, so if it is a DNS error it is upstream of the client network.
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
1 Posted by Talgat Founder on 08 May, 2017 10:54 AM
Yeah, I have a same issue!
Support Staff 2 Posted by David Radcliffe on 08 May, 2017 12:53 PM
We often see problems reported inside docker because DNS was not configured quite right. Can you double check your dns configuration and can you confirm you can resolve rubygems.org inside the container?
3 Posted by Rick Frankel on 08 May, 2017 02:44 PM
A i said in the original post above, it works sometimes and not others, and does not always fail on the same gem. I have been using the same basic dockerfile config for about 2 years and it just started failing last week.
Additional info. Here's the incantation i'm using:
it is failing during the
gem update -f
. It seems that when it gets past that it never fails on thebundle install
.Support Staff 4 Posted by David Radcliffe on 08 May, 2017 03:07 PM
OK I think I have a clue. I've changed something on my end. Can you see if you can get it to fail again?
5 Posted by rick on 08 May, 2017 03:40 PM
Still fails:
RubyGems system software updated
Updating installed gems
Updating bigdecimal
Building native extensions. This could take a while...
ERROR: While executing gem ... (Gem::RemoteFetcher::UnknownHostError)
no such name (https://api.rubygems.org/quick/Marshal.4.8/did_you_mean-1.1.2.gemspec.rz)
Support Staff 6 Posted by David Radcliffe on 08 May, 2017 03:45 PM
Ok well that wasn't it then. Can you post a full Dockerfile somewhere so I can try to duplicate?
7 Posted by Rick Frankel on 08 May, 2017 04:02 PM
Here's a small dockerfile which will trigger the error. Note that it doesn't happen every time, and whatever you did may have made it fail less. If feels to me like one or a few of a set of round-robin servers/processes are corrupt, but not all.
rick
----- 8< cut here --- FROM alpine:3.5
RUN apk update && apk upgrade && apk add libpq sudo \
ruby ruby-irb ruby-rake ruby-io-console ruby-bigdecimal ruby-json ruby-bundler \ libstdc++ tzdata bash ca-certificates zlib \ && echo 'gem: --no-document' > /etc/gemrc
add compilation env, build required gems and cleanup
RUN apk --update add --virtual build_deps \
build-base ruby-dev libffi-dev postgresql-dev \ libc-dev linux-headers zlib-dev RUN gem update --system
RUN gem update -f && gem clean
RUN apk del build_deps && rm -f /var/cache/apk/*
CMD ["irb"]
8 Posted by Simon on 04 Nov, 2017 05:59 PM
I think I have the same errors here, compain about
ERROR: While executing gem ... (Gem::RemoteFetcher::UnknownHostError)
no such name (https://api.rubygems.org/quick/Marshal.4.8/rubygems-update-2.6.12.gemspec.rz)
kerrizor closed this discussion on 07 Mar, 2018 12:02 AM.