gem Source issues

601 views
Skip to first unread message

PaulKetelle

unread,
Apr 28, 2011, 5:54:43 AM4/28/11
to gemcutter
I seem to be having issues with my ruby gems..
When I try to install and gem or even try to update the gem --system
files I get this error

Error fetching http://rubygems.org/:
SocketError: getaddrinfo: No such host is known. (http://
rubygems.org/specs.4.8.gz)


Can anyone help ?

Nick Quaranto

unread,
Apr 28, 2011, 10:40:08 AM4/28/11
to gemc...@googlegroups.com
I'm not seeing any DNS flakiness and Pingdom is reporting 100% uptime.
I'm checking in with DNSimple about this but I'm not sure wht the
problem here is.

Mike Danko

unread,
Apr 28, 2011, 10:43:44 AM4/28/11
to gemc...@googlegroups.com
I've got the same issue on one computer here but not on a identically configured one right next to it. Noticed a thread on reddit that claims the same problem.

Nick Quaranto

unread,
Apr 28, 2011, 10:50:35 AM4/28/11
to gemc...@googlegroups.com
Yeah, seeing this thread now:

http://www.reddit.com/r/ruby/comments/gz8jc/gem_is_not_working_at_all/

I'm not sure what I can do about it...I've contacted Anthony from
DNSimple and I'm waiting for him to respond.

Luis Lavena

unread,
Apr 28, 2011, 11:00:34 AM4/28/11
to gemcutter
On Apr 28, 11:50 am, Nick Quaranto <n...@quaran.to> wrote:
> Yeah, seeing this thread now:
>
> http://www.reddit.com/r/ruby/comments/gz8jc/gem_is_not_working_at_all/
>
> I'm not sure what I can do about it...I've contacted Anthony from
> DNSimple and I'm waiting for him to respond.
>

I don't think is a problem with DNS.

The user in reddit mentioned a ping works, but ping will always work
since is not PROXY'ed

Perhaps the user is behind a proxy and is not aware?

ping/nslookup will work, betcause DNS resolution is not proxied.

The problem is that the HTTP traffic might be proxied and get these
strange errors.

--
Luis Lavena

Sacha Bernstein

unread,
Apr 28, 2011, 12:02:06 PM4/28/11
to gemcutter
Looks like I can get to production.s3.rubygems.org just fine, but not
everything is there that belongs... In particular, there's no
latest_specs.4.8.gz file there...

Luis Lavena

unread,
Apr 28, 2011, 1:48:34 PM4/28/11
to gemcutter
On Apr 28, 1:02 pm, Sacha Bernstein <sa...@sjbcom.com> wrote:
> Looks like I can get to production.s3.rubygems.org just fine, but not
> everything is there that belongs...    In particular, there's no
> latest_specs.4.8.gz file there...
>

How you "get to" ?

ping? wget?

--
Luis Lavena

Mike Danko

unread,
Apr 28, 2011, 2:08:32 PM4/28/11
to gemc...@googlegroups.com
I was pulled away for a bit, but in my case the servers I was using
were on private IP space inside company territory. I do not have
access to those beyond simple queries.

I switched to servers in the building that I run and I'm fine. I
cannot replicate the issue where one worked and one didn't again, they
both just fail now if I switch back to the non-working servers.

help.rubygems.org <-- resolved
rubygems.org <-- resolved
update.gemcutter.org <-- did not resolve.
production.s3.rubygems.org <-- did not resolve.

If that helps any

n.maisonneuve

unread,
Apr 29, 2011, 7:01:48 AM4/29/11
to gemcutter
This DNS, or wathever is it , is really annoying. I am stuck in my dev
since yesterday.

$ gem install rails
ERROR: Could not find a valid gem 'rails' (>= 0) in any repository
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
SocketError: getaddrinfo: Name or service not known (http://
rubygems.org/latest_specs.4.8.gz)

$ wget http://production.s3.rubygems.org/latest_specs.4.8.gz
--2011-04-28 08:33:45-- http://production.s3.rubygems.org/latest_specs.4.8.gz
Resolving production.s3.rubygems.org... failed: Name or service not
known.
wget: unable to resolve host address `production.s3.rubygems.org'

How can I bypass and install gem without reaching this server?
(Where can I download the latest_specs.4.8.gz file temporarly to be
able to install gem?)

-NM

n.maisonneuve

unread,
Apr 29, 2011, 4:09:02 AM4/29/11
to gemcutter
same pb since (at least) yesterday

gem update
ERROR: http://rubygems.org/ does not appear to be a repository
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchErro

gem install rails
ERROR: http://rubygems.org/ does not appear to be a repository
ERROR: Could not find a valid gem 'rails' (>= 0) in any repository

http://production.s3.rubygems.org/latest_specs.4.8.gz ==> NOT FOUND
302
http://help.rubygems.org ==> NOT FOUND 302


Configuration
rubygems 1.7.2
ruby 1.9.2
windows 7


NM


On 28 avr, 20:08, Mike Danko <m...@l4m3.com> wrote:

Luis Lavena

unread,
Apr 29, 2011, 10:01:44 PM4/29/11
to gemcutter
On Apr 29, 5:09 am, "n.maisonneuve" <n.maisonne...@gmail.com> wrote:
> same pb since (at least) yesterday
>
> gem update
> ERROR:  http://rubygems.org/does not appear to be a repository
> ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchErro
>
> gem install rails
> ERROR:  http://rubygems.org/does not appear to be a repository
> ERROR:  Could not find a valid gem 'rails' (>= 0) in any repository
>
> http://production.s3.rubygems.org/latest_specs.4.8.gz==> NOT FOUND
> 302http://help.rubygems.org ==> NOT FOUND 302
>
> Configuration
> rubygems 1.7.2
> ruby 1.9.2
> windows 7
>

Are you behind a proxy?

This is a proxy error, all HTTP traffic needs to go using the proxy
settings of gem install command:

gem install --help

see --http-proxy options.

gem install rails --http-proxy=http://user:pass@server:port

Get that information from your browser, under internet / connection
settings.

--
Luis Lavena

Luis Lavena

unread,
Apr 29, 2011, 10:03:08 PM4/29/11
to gemcutter
On Apr 29, 8:01 am, "n.maisonneuve" <n.maisonne...@gmail.com> wrote:
> This DNS, or wathever is it , is really annoying. I am stuck in my dev
> since yesterday.
>
> $ gem install rails
> ERROR:  Could not find a valid gem 'rails' (>= 0) in any repository
> ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
>     SocketError: getaddrinfo: Name or service not known (http://
> rubygems.org/latest_specs.4.8.gz)
>
> $ wgethttp://production.s3.rubygems.org/latest_specs.4.8.gz
> --2011-04-28 08:33:45--  http://production.s3.rubygems.org/latest_specs.4.8.gz
> Resolving production.s3.rubygems.org... failed: Name or service not
> known.
> wget: unable to resolve host address `production.s3.rubygems.org'
>
> How can I bypass and install gem without reaching this server?
> (Where can I download the latest_specs.4.8.gz file temporarly to be
> able to install gem?)
>

Browse rubygems.org website, click download, save it from your browser
into a folder, use then the command line to install

gem install --local path/to/somegem-0.1.1.gem

Or whatever you downloaded.

--
Luis Lavena
Reply all
Reply to author
Forward
0 new messages