21

Currently Rubygems.org is down - the website reports an error, and a few gem install tasks are returning 500 errors.

Is there a mirror / backup source of gem files, or is rubygems.org essentially a single point of failure within the ruby gem installation process ?

2
  • Wouldn't mind knowing this myself. It looks like the whole of rubygems.org in down - what a pain.
    – Dom
    Commented Jan 1, 2012 at 13:37
  • FYI: rubygems.org is back up now thanks to qrush! Commented Jan 1, 2012 at 14:15

5 Answers 5

26

As per several folks on Twitter, add this to your Gemfile:

source 'https://production.cf.rubygems.org'

Also, if you're not using Bundler you can just run:

$ gem source -a 'https://production.cf.rubygems.org'

For the record, the folks on Twitter include:

laizer, iltempo, and jimneath. Major thanks to them for saving my morning :)

3
  • Would be nice if I'd gotten an e-mail. Unfortunately this is the only alternative I know of personally off-hand :( Commented Feb 14, 2012 at 19:46
  • How does using a subdomain address access if they are down?
    – TJChambers
    Commented Dec 1, 2014 at 23:08
  • @TJChambers: The subdomain is a DNS record that points directly to the Amazon S3 bucket that hosts the gems IIRC. Using this source seems to bypass whatever has brought rubygems.org down on a few occasions. This will always be online unless Amazon itself is down. Commented Dec 3, 2014 at 22:59
1

same issue affecting all git push to Heroku

solved the same was by changing the source on GemFile to the http://production.cf.rubygems.org

1

Mirror for Asia/Pacific Region: https://ruby.taobao.org/ (recommended, high availability, syncing every 15 min)

Other mirrors:

https://gems.cloudafrica.net/
https://tokyo-m.rubygems.org/
1
0

Having experienced my share of flaky network connections I find I've most often got the .gem files I need on my system, it's just a matter of finding them and installing them locally.

Use the find command to find local .gem files and install them directly with gem install [file].

find ~/.rbenv/versions -type f -name 'minitest*.gem'

That works for individual gems but if you need to install dependencies, etc. it can be a pain.

0

If you've got the gem on some other computer, or on other rubies on the same computer, use gem server to create your own gem server.

Otherwise, download the source code for the gem in question from github, and do the rake task to build the gem.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.