Gems not installing due to timeout

Matt Campo's Avatar

Matt Campo

14 May, 2014 03:26 PM

I'm trying to install the bundler gem (and a few others just in case this issue is restricted just to bundler...it isn't) and I receive the following error message:

○ → gem install bundler
ERROR: Could not find a valid gem 'bundler' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - Errno::ETIMEDOUT: Operation timed out - connect(2) (https://api.rubygems.org/latest_specs.4.8.gz) ERROR: Possible alternatives: bundler

Same goes with nokogiri:

○ → gem install nokogiri
ERROR: Could not find a valid gem 'nokogiri' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - Errno::ETIMEDOUT: Operation timed out - connect(2) (https://api.rubygems.org/latest_specs.4.8.gz) ERROR: Possible alternatives: nokogiri

Same goes with a2z:

○ → gem install a2z
ERROR: Could not find a valid gem 'a2z' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - Errno::ETIMEDOUT: Operation timed out - connect(2) (https://api.rubygems.org/quick/Marshal.4.8/a2z-0.1.3.gemspec.rz)

I couldn't find any similar problems through a google search. My gem version is 2.2.2 and I'm running MacOS Mavericks.

  1. 2 Posted by Leonel on 11 Jun, 2014 04:38 PM

    Leonel's Avatar

    +1

  2. Support Staff 3 Posted by Nick Quaranto on 16 Jun, 2014 02:54 AM

    Nick Quaranto's Avatar

    Is this still happening?

  3. 4 Posted by Mikhail Nikalyukin on 07 Jul, 2014 11:11 AM

    Mikhail Nikalyukin's Avatar

    Still a case for me :(

    ✘ backbone-example ⮀ gem install rails ⮂ 2.0.0@backbone-example ⮂ 15:08:28 ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
    Errno::ETIMEDOUT: Operation timed out - connect(2) (https://api.rubygems.org/api/v1/dependencies?gems=rake) ⮂ 2.0.0@backbone-example ⮂ 15:10:44
    *** CURRENT SOURCES ***

    https://rubygems.org/

  4. 5 Posted by Mikhail Nikalyukin on 07 Jul, 2014 11:14 AM

    Mikhail Nikalyukin's Avatar

    Updating rubygems version from 2.2.2 to 2.3.0 with gem update --system command seems to fix the issue.

Reply to this discussion

Internal reply

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

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