Rubygems(.org) timing out all the time

  • Thread starter Petri Kivikangas
  • Start date
P

Petri Kivikangas

Why is that nowdays, when using rubygems 1.3.6, I get following error
most of the time when trying to install or update gems:

ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
timed out (http://rubygems.org/gems/gemname-version.gem)

Are there some problems with rubygems.org's servers?
 
L

Luis Lavena

Why is that nowdays, when using rubygems 1.3.6, I get following error
most of the time when trying to install or update gems:

ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
    timed out (http://rubygems.org/gems/gemname-version.gem)

Are there some problems with rubygems.org's servers?

Please provide the complete output of the gem install command with "--
debug -V" options

Also, since the gem is public, do not hide the gem name and version.

Help us help you.
 
P

Petri Kivikangas

Luis said:
Please provide the complete output of the gem install command with "--
debug -V" options

Also, since the gem is public, do not hide the gem name and version.

Help us help you.

$ gem install rails -V
GET http://rubygems.org/latest_specs.4.8.gz
302 Found
GET http://production.s3.rubygems.org/latest_specs.4.8.gz
304 Not Modified
GET http://rubygems.org/specs.4.8.gz
302 Found
GET http://production.s3.rubygems.org/specs.4.8.gz
200 OK
Installing gem activesupport-2.3.5
Downloading gem activesupport-2.3.5.gem
GET http://rubygems.org/gems/activesupport-2.3.5.gem
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
timed out (http://rubygems.org/gems/activesupport-2.3.5.gem)
$
 
P

Petri Kivikangas

ah, forgot --debug.

$ gem install --debug -V rails
Exception `NameError' at
/home/myhome/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:163
- uninitialized constant Gem::Commands::InstallCommand
Exception `Gem::LoadError' at
/home/myhome/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/site_ruby/1.9.1/rubygems.rb:777
- Could not find RubyGem test-unit (>= 0)

Exception `NoMethodError' at
/home/myhome/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/site_ruby/1.9.1/rubygems/package/tar_input.rb:49
- undefined method `readpartial' for
#<Gem::package::TarReader::Entry:0x0000000167c920>
Exception `NoMethodError' at
/home/myhome/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:518
- undefined method `readpartial' for
#<Gem::package::TarReader::Entry:0x0000000167c920>
Exception `IOError' at
/home/myhome/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/site_ruby/1.9.1/rubygems/format.rb:50
- closed stream
Exception `Gem::LoadError' at
/home/myhome/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/site_ruby/1.9.1/rubygems.rb:777
- Could not find RubyGem sources (> 0.0.1)

GET http://rubygems.org/latest_specs.4.8.gz
302 Found
GET http://production.s3.rubygems.org/latest_specs.4.8.gz
200 OK
Exception `Errno::EEXIST' at
/home/myhome/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/fileutils.rb:243
- File exists - /home/myhome/.gem/specs/rubygems.org%80
GET http://rubygems.org/specs.4.8.gz
302 Found
GET http://production.s3.rubygems.org/specs.4.8.gz
200 OK
Exception `Errno::EEXIST' at
/home/myhome/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/fileutils.rb:243
- File exists - /home/myhome/.gem/specs/rubygems.org%80
Installing gem activesupport-2.3.5
Downloading gem activesupport-2.3.5.gem
GET http://rubygems.org/gems/activesupport-2.3.5.gem
Exception `#<Class:0x00000002f71888>' at
/home/myhome/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/net/protocol.rb:135
- execution expired
Exception `Timeout::Error' at
/home/myhome/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/timeout.rb:63 -
execution expired
Exception `Gem::RemoteFetcher::FetchError' at
/home/myhome/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/site_ruby/1.9.1/rubygems/remote_fetcher.rb:176
- timed out (http://rubygems.org/gems/activesupport-2.3.5.gem)
Exception `Gem::RemoteFetcher::FetchError' at
/home/myhome/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/site_ruby/1.9.1/rubygems/remote_fetcher.rb:110
- timed out (http://rubygems.org/gems/activesupport-2.3.5.gem)
Exception `Gem::RemoteFetcher::FetchError' at
/home/myhome/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/site_ruby/1.9.1/rubygems/dependency_installer.rb:254
- timed out (http://rubygems.org/gems/activesupport-2.3.5.gem)
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
timed out (http://rubygems.org/gems/activesupport-2.3.5.gem)
/home/myhome/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/site_ruby/1.9.1/rubygems/remote_fetcher.rb:176:in
`rescue in fetch_path'
/home/myhome/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/site_ruby/1.9.1/rubygems/remote_fetcher.rb:170:in
`fetch_path'
/home/myhome/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/site_ruby/1.9.1/rubygems/remote_fetcher.rb:108:in
`download'
/home/myhome/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/site_ruby/1.9.1/rubygems/dependency_installer.rb:250:in
`block in install'
/home/myhome/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/site_ruby/1.9.1/rubygems/dependency_installer.rb:240:in
`each'
/home/myhome/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/site_ruby/1.9.1/rubygems/dependency_installer.rb:240:in
`install'
/home/myhome/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/site_ruby/1.9.1/rubygems/commands/install_command.rb:119:in
`block in execute'
/home/myhome/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/site_ruby/1.9.1/rubygems/commands/install_command.rb:116:in
`each'
/home/myhome/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/site_ruby/1.9.1/rubygems/commands/install_command.rb:116:in
`execute'
/home/myhome/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/site_ruby/1.9.1/rubygems/command.rb:258:in
`invoke'
/home/myhome/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:134:in
`process_args'
/home/myhome/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:104:in
`run'
/home/myhome/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/site_ruby/1.9.1/rubygems/gem_runner.rb:58:in
`run'
/home/myhome/.rvm/rubies/ruby-1.9.1-p378/bin/gem:21:in `<main>'
$
 
L

Luis Lavena

ah, forgot --debug.

$ gem install --debug -V rails
Exception `NameError' at
/home/myhome/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/site_ruby/1.9.1/rubygems/ command_manager.rb:163
- uninitialized constant Gem::Commands::InstallCommand
Exception `Gem::LoadError' at
/home/myhome/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/site_ruby/1.9.1/rubygems. rb:777
- Could not find RubyGem test-unit (>= 0)

Exception `NoMethodError' at
/home/myhome/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/site_ruby/1.9.1/rubygems/ package/tar_input.rb:49
- undefined method `readpartial' for
#<Gem::package::TarReader::Entry:0x0000000167c920>
Exception `NoMethodError' at
/home/myhome/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/site_ruby/1.9.1/rubygems/ specification.rb:518
- undefined method `readpartial' for
#<Gem::package::TarReader::Entry:0x0000000167c920>
Exception `IOError' at
/home/myhome/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/site_ruby/1.9.1/rubygems/ format.rb:50
- closed stream
Exception `Gem::LoadError' at
/home/myhome/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/site_ruby/1.9.1/rubygems. rb:777
- Could not find RubyGem sources (> 0.0.1)

GEThttp://rubygems.org/latest_specs.4.8.gz
302 Found
GEThttp://production.s3.rubygems.org/latest_specs.4.8.gz
200 OK
Exception `Errno::EEXIST' at
/home/myhome/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/fileutils.rb:243
- File exists - /home/myhome/.gem/specs/rubygems.org%80
GEThttp://rubygems.org/specs.4.8.gz
302 Found
GEThttp://production.s3.rubygems.org/specs.4.8.gz
200 OK
Exception `Errno::EEXIST' at
/home/myhome/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/fileutils.rb:243
- File exists - /home/myhome/.gem/specs/rubygems.org%80
Installing gem activesupport-2.3.5
Downloading gem activesupport-2.3.5.gem
GEThttp://rubygems.org/gems/activesupport-2.3.5.gem
Exception `#<Class:0x00000002f71888>' at
/home/myhome/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/net/protocol.rb:135
- execution expired
Exception `Timeout::Error' at
/home/myhome/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/timeout.rb:63 -
execution expired
Exception `Gem::RemoteFetcher::FetchError' at
/home/myhome/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/site_ruby/1.9.1/rubygems/ remote_fetcher.rb:176
- timed out (http://rubygems.org/gems/activesupport-2.3.5.gem)
Exception `Gem::RemoteFetcher::FetchError' at
/home/myhome/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/site_ruby/1.9.1/rubygems/ remote_fetcher.rb:110
- timed out (http://rubygems.org/gems/activesupport-2.3.5.gem)
Exception `Gem::RemoteFetcher::FetchError' at
/home/myhome/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/site_ruby/1.9.1/rubygems/ dependency_installer.rb:254
- timed out (http://rubygems.org/gems/activesupport-2.3.5.gem)
ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
    timed out (http://rubygems.org/gems/activesupport-2.3.5.gem)

Can you do wget on the gem?

wget http://rubygems.org/gems/activesupport-2.3.5.gem

From here I get this:

--2010-03-03 19:38:49-- http://rubygems.org/gems/activesupport-2.3.5.gem
Resolving rubygems.org... 72.4.120.124
Connecting to rubygems.org|72.4.120.124|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://production.cf.rubygems.org/gems/activesupport-2.3.5.gem
[following]
--2010-03-03 19:38:49-- http://production.cf.rubygems.org/gems/activesupport-2.3.5.gem
Resolving production.cf.rubygems.org... 216.137.61.103, 216.137.61.59,
216.137.61.230, ...
Connecting to production.cf.rubygems.org|216.137.61.103|:80...
connected.
HTTP request sent, awaiting response... 200 OK
Length: 410624 (401K) []
Saving to: `activesupport-2.3.5.gem'

100%
[=============================================================================================>]
410,624 867K/s in 0.5s

2010-03-03 19:38:50 (867 KB/s) - `activesupport-2.3.5.gem' saved
[410624/410624]

If you get timeouts there please report here:

http://help.rubygems.org/

It may be a issue from your ISP/Firewall and Amazon CloudFront
 
P

Petri Kivikangas

Can you do wget on the gem?
wget http://rubygems.org/gems/activesupport-2.3.5.gem

From here I get this:

--2010-03-03 19:38:49--
http://rubygems.org/gems/activesupport-2.3.5.gem
Resolving rubygems.org... 72.4.120.124
Connecting to rubygems.org|72.4.120.124|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://production.cf.rubygems.org/gems/activesupport-2.3.5.gem
[following]
--2010-03-03 19:38:49--
http://production.cf.rubygems.org/gems/activesupport-2.3.5.gem
Resolving production.cf.rubygems.org... 216.137.61.103, 216.137.61.59,
216.137.61.230, ...
Connecting to production.cf.rubygems.org|216.137.61.103|:80...
connected.
HTTP request sent, awaiting response... 200 OK
Length: 410624 (401K) []
Saving to: `activesupport-2.3.5.gem'

100%
[=============================================================================================>]
410,624 867K/s in 0.5s

2010-03-03 19:38:50 (867 KB/s) - `activesupport-2.3.5.gem' saved
[410624/410624]

If you get timeouts there please report here:

http://help.rubygems.org/

It may be a issue from your ISP/Firewall and Amazon CloudFront

Wget works ok.

It seems that I have same problem as Evan Dorn
(http://www.ruby-forum.com/topic/204146).

I switched my VirtualBox (I run Kubuntu under Win 7) network adapter
from NAT to Bridged, and everything works now. Though I don't know what
the problem was, this seems to solve it :S
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,778
Messages
2,569,605
Members
45,238
Latest member
Top CryptoPodcasts

Latest Threads

Top