Skip to content

Instantly share code, notes, and snippets.

@xarimanx
Forked from delano/gist:845643
Created February 11, 2012 11:04
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xarimanx/1798774 to your computer and use it in GitHub Desktop.
Save xarimanx/1798774 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/
@alexvbush
Copy link

thanks! exactly what I needed to fix my issue with fetching less-rails gem from rubygems!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment