Arpit Vaishnav
Arpit Vaishnav

Reputation: 4780

Gem not installing, showing connection error

When I try to install gem like bundler or rake after creating new gemset , its not installing ,but if i intall old version its working fine for me . Here are the error logs while installing gems

gem install rake

Fetching: rake-0.9.2.2.gem ( 7%)ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) too many connection resets (http://cachefly.mirrors.rubygems.org/gems/rake-0.9.2.2.gem)

Upvotes: 4

Views: 6194

Answers (5)

rtrigo
rtrigo

Reputation: 529

Always check if your computer isn't downloading because of administrator privileges (in cmd, shell, or rubymine).

Upvotes: 0

equivalent8
equivalent8

Reputation: 14237

got similar problem

gem install rails 
# after 5 minutes
WARNING:  Error fetching data: too many connection resets (http://production.s3.rubygems.org/latest_specs.4.8.gz)

gem install rails --source 'https://rubygems.org'
# after 5 minutes
WARNING:  Error fetching data: too many connection resets (http://production.s3.rubygems.org/latest_specs.4.8.gz)

but when I create Gemfile

  source 'https://rubygems.org'
  gem 'rails', '3.2.13'

and run bundle install it works

my location is London, UK

(also created topic on http://help.rubygems.org/discussions/problems/4494-too-many-connection-resets-when-gem-install-rails )

Upvotes: 0

Michael Frederick
Michael Frederick

Reputation: 16714

This problem was caused by the cachefly server.

It seems that the folks over at rubygems.org disabled this mirror and then people's downloads were able to continue successfully.

There is a thread over at rubygems.org discussing this issue.

Upvotes: 4

Cam
Cam

Reputation: 1665

I had a similar issue when Capistrano was running a bundle install on a remote server. It seems to have been caused by a .rvmrc file in the project that I had not authorised.

So all I had to do to fix is was ssh into the server, cd into the project and accept the .rvmrc config file.

Upvotes: 0

Vik
Vik

Reputation: 5961

Use DevKit to install gem separately .

Edit :

Please check if you curl or wget that URL:

wget http://production.cf.rubygems.org/gems/rails-2.3.8.gem

curl -O http://production.cf.rubygems.org/gems/rails-2.3.8.gem

If not, then the problem is with your internet connection, http proxy or provider.

If your browser works, might be due an HTTP proxy.

Upvotes: 1

Related Questions