Cannot connect to Rubygems

daniel's Avatar

daniel

27 Feb, 2011 09:11 AM

Hello. I'm able to download gems manually using wget but I can't use bundle install.
I get this error message:
Fetching source index for http://rubygems.org/
Could not reach rubygems repository http://rubygems.org/
Could not find gem 'omniauth (>= 0, runtime)' in any of the gem sources listed in your Gemfile.

Is it possible that you guys are blocking my IP? I live in Russia. It worked yesterday.

  1. Support Staff 1 Posted by Nick Quaranto on 27 Feb, 2011 06:31 PM

    Nick Quaranto's Avatar

    No IP blocking is going on our end. Is this working for you? Can you traceroute to rubygems.org?

  2. 2 Posted by Daniel Higginbo... on 27 Feb, 2011 11:07 PM

    Daniel Higginbotham's Avatar

    I'm having the same problem, and I'm the US. Here's my traceroute:

    1 wireless_broadband_router.home (192.168.1.1) 1.159 ms 1.885 ms 2.176 ms 2 l100.bstnma-vfttp-145.verizon-gni.net (71.126.250.1) 9.237 ms 8.521 ms 9.779 ms 3 g14-0-9-1645.bstnma-lcr-06.verizon-gni.net (130.81.49.86) 8.730 ms 6.754 ms 7.843 ms 4 so-7-2-0-0.bos-bb-rtr2.verizon-gni.net (130.81.29.174) 7.640 ms 9.297 ms 7.713 ms 5 ge-1-2-0-0.ny325-bb-rtr2.verizon-gni.net (130.81.17.24) 17.107 ms 18.545 ms 15.425 ms 6 0.ae4.br3.nyc4.alter.net (152.63.16.185) 17.531 ms 19.546 ms 17.041 ms 7 te-7-1-0.edge2.newyork2.level3.net (4.68.127.21) 24.757 ms 23.946 ms 25.883 ms 8 vlan51.ebr1.newyork2.level3.net (4.69.138.222) 21.496 ms 23.502 ms 22.818 ms 9 ae-3-3.ebr2.washington1.level3.net (4.69.132.89) 22.161 ms 22.244 ms 23.590 ms 10 ae-92-92.csw4.washington1.level3.net (4.69.134.158) 26.732 ms

    ae-72-72.csw2.washington1.level3.net (4.69.134.150)  26.401 ms
    ae-92-92.csw4.washington1.level3.net (4.69.134.158)  25.067 ms
    

    11 ae-3-80.edge1.washington4.level3.net (4.69.149.143) 26.202 ms 25.149 ms

    ae-1-60.edge1.washington4.level3.net (4.69.149.15)  22.983 ms
    

    12 rackspace-m.edge1.washington4.level3.net (4.53.112.46) 25.878 ms 26.643 ms 25.186 ms
    13 vlan905.core5.iad2.rackspace.net (72.4.122.10) 22.916 ms 25.011 ms 24.616 ms
    14 aggr301a-1-core5.iad2.rackspace.net (72.4.122.121) 22.549 ms 21.733 ms 22.851 ms
    15 rubygems.org (72.4.120.124) 25.371 ms !Z 24.478 ms !Z 24.779 ms !Z

  3. 3 Posted by Daniel Higginbo... on 27 Feb, 2011 11:45 PM

    Daniel Higginbotham's Avatar

    Apparently I had this in my /etc/hosts file:

    72.4.120.124 rubygems.org
    207.171.181.231 production.s3.rubygems.org
    216.137.45.24 production.cf.rubygems.org

    Not sure why that was there but removing it did the trick.

  4. 4 Posted by Daniel on 28 Feb, 2011 03:07 PM

    Daniel's Avatar

    1 * * * 2 localhost (10.1.141.13) 124.779 ms 124.940 ms 125.237 ms 3 * * * 4 * * * 5 * * * 6 mow-m9-i2-link.telia.net (213.248.75.1) 154.287 ms 149.755 ms 149.436 ms 7 mow-b4-link.telia.net (80.91.253.230) 149.582 ms 120.612 ms 165.243 ms 8 s-bb2-link.telia.net (80.91.253.218) 169.888 ms 169.376 ms s-bb2-link.telia.net (80.239.147.157) 168.926 ms 9 kbn-bb2-link.telia.net (213.248.65.166) 160.237 ms kbn-bb2-link.telia.net (80.91.246.109) 150.115 ms kbn-bb2-link.telia.net (213.248.65.166) 155.297 ms 10 nyk-bb2-link.telia.net (80.91.254.91) 239.748 ms 244.999 ms *
    11 ash-bb1-link.telia.net (80.91.250.16) 253.951 ms 295.619 ms 184.673 ms
    12 rackspace-ic-138625-ash-bb1.c.telia.net (213.248.98.218) 180.240 ms 229.004 ms 204.695 ms
    13 vlan905.core5.iad2.rackspace.net (72.4.122.10) 234.735 ms 274.896 ms 265.141 ms
    14 aggr301a-1-core5.iad2.rackspace.net (72.4.122.121) 225.149 ms 239.933 ms 230.060 ms
    15 rubygems.org (72.4.120.124) 234.211 ms !X 254.924 ms !X 259.379 ms !X

    Still no dice. Very strange. I guess I better contact my ISP? I really doubt they will help me though.

  5. 5 Posted by daniel on 28 Feb, 2011 03:35 PM

    daniel's Avatar

    Figured it out!
    Ubuntu had automatically put some strange ip adress into my hosts file that was added by NetworkManager.

    Thanks Daniel.
    You're problem was exactly mine? Are you on a mac or linux?

  6. 6 Posted by Daniel Higginbo... on 28 Feb, 2011 03:49 PM

    Daniel Higginbotham's Avatar

    I'm on a mac. Looks like there's more info here: http://help.rubygems.org/discussions/problems/492-gem-list-remote-f...

  7. Nick Quaranto closed this discussion on 17 Mar, 2011 03:34 PM.

Comments are currently closed for this discussion. You can start a new one.

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