Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is bundler unable to reach http://rubygems.org? [closed]

Bundle install was working perfectly yesterday but now it's returning this output in the CL:

   ~/dev/rails/sample_app$ bundle install
   Fetching gem metadata from https://rubygems.org/.
   Error Bundler::HTTPError during request to dependency API
   Fetching full source index from https://rubygems.org/
   Could not reach https://rubygems.org/

the only change I made to the gem file was to add the gem for factory girl (1.4.0) in the test group.

I'm not working behind any proxies and I'm fully connected to the internet as well. Can't seem to find anything like this on google either. Any help would be much appreciated!

like image 742
TangoKilo Avatar asked Jun 04 '12 11:06

TangoKilo


People also ask

Is Ruby gems down?

No incidents or maintenance related to this downtime.

What is bundler in gem?

What is Bundler? Bundler provides a consistent environment for Ruby projects by tracking and installing the exact gems and versions that are needed. Bundler is an exit from dependency hell, and ensures that the gems you need are present in development, staging, and production.

How does bundler work in Rails?

Think of bundler as a package management tool. So bundle install command will install all gems to the system that are listed in Gemfile as well as their dependencies. If the gem was not previously installed it will grab it from the gemcutter repo.


2 Answers

This is not a gem or ruby issue, this is a resolver issue, as you could tell from your uknown host rubygems.org response.

If your browser is resolving, try sites like:

  • http://isitup.org/rubygems.org
  • http://www.downforeveryoneorjustme.com/rubygems.org

to validate that your problem is localized.

like image 101
Todd A. Jacobs Avatar answered Oct 23 '22 15:10

Todd A. Jacobs


Is it working when you remove the new line ?

Maybe, you should switch the Gemfile to use http instead of https

like image 8
remjih Avatar answered Oct 23 '22 15:10

remjih