Skip to content

Instantly share code, notes, and snippets.

@seyyah
Forked from delano/gist:845643
Created April 12, 2012 12:19
Show Gist options
  • Save seyyah/2366874 to your computer and use it in GitHub Desktop.
Save seyyah/2366874 to your computer and use it in GitHub Desktop.
Fix for "Errno::ETIMEDOUT: Operation timed out - connect(2)" when installing gems
# A DNS change to Rubygems.org is causing lingering issues. Namely,
# rubygems.org and production.s3.rubygems.org are still pointing to
# the old address. See:
# http://twitter.com/#!/gemcutter/status/30666857698557952
# The symptoms:
# $ gem install benelux --version 0.5.17
# ERROR: Could not find a valid gem 'benelux' (= 0.5.17) in any repository
# ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
# Errno::ETIMEDOUT: Operation timed out - connect(2) (http://rubygems.org/latest_specs.4.8.gz)
# The fix:
# gem source -r http://rubygems.org/
# gem source -r http://production.s3.rubygems.org/
# gem source -a http://production.s3.rubygems.org.s3.amazonaws.com/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment