[Rubygems-developers] [ rubygems-Bugs-27996 ] "gem install rails" command fails with time-out error

noreply at rubyforge.org noreply at rubyforge.org
Tue Apr 20 23:41:09 EDT 2010


Bugs item #27996, was opened at 2010-03-21 23:23
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=27996&group_id=126

Category: `gem install` command
Group: None
Status: Open
Resolution: None
>Priority: 1
Submitted By: Z R (zhinker)
>Assigned to: Eric Hodel (drbrain)
>Summary: "gem install rails" command fails with time-out error

Initial Comment:
Hi,

I just tried installing ruby on rails on a clean Ubuntu 9.10 VM.  I followed the steps on this site: http://castilho.biz/blog/2009/11/05/ruby-on-rails-ubuntu-9-10-karmic-koala/.

However, when I try to install rails it fails with a timeout error.  I reran the command with the --debug parameter and pasted that output below.

zain at ubuntu-x86:~$ sudo gem --debug install rails
Exception `NameError' at /usr/lib/ruby/1.8/rubygems/command_manager.rb:161 - uninitialized constant Gem::Commands::InstallCommand
Exception `Gem::LoadError' at /usr/lib/ruby/1.8/rubygems.rb:827 - Could not find RubyGem test-unit (>= 0)

Exception `Gem::LoadError' at /usr/lib/ruby/1.8/rubygems.rb:827 - Could not find RubyGem sources (> 0.0.1)

Exception `#<Class:0xb63d3324>' at /usr/lib/ruby/1.8/timeout.rb:60 - execution expired
Exception `Timeout::Error' at /usr/lib/ruby/1.8/timeout.rb:74 - execution expired
Exception `Gem::RemoteFetcher::FetchError' at /usr/lib/ruby/1.8/rubygems/remote_fetcher.rb:170 - timed out (http://gems.rubyforge.org/quick/Marshal.4.8/activesupport-2.3.5.gemspec.rz)
Exception `Gem::RemoteFetcher::FetchError' at /usr/lib/ruby/1.8/rubygems/spec_fetcher.rb:76 - timed out (http://gems.rubyforge.org/quick/Marshal.4.8/activesupport-2.3.5.gemspec.rz)
Exception `#<Class:0xb63cc100>' at /usr/lib/ruby/1.8/timeout.rb:60 - execution expired
Exception `Timeout::Error' at /usr/lib/ruby/1.8/timeout.rb:74 - execution expired
Exception `Gem::RemoteFetcher::FetchError' at /usr/lib/ruby/1.8/rubygems/remote_fetcher.rb:170 - timed out (http://gems.rubyforge.org/gems/rake-0.8.7.gem)
Exception `Gem::RemoteFetcher::FetchError' at /usr/lib/ruby/1.8/rubygems/remote_fetcher.rb:110 - timed out (http://gems.rubyforge.org/gems/rake-0.8.7.gem)
Exception `Gem::RemoteFetcher::FetchError' at /usr/lib/ruby/1.8/rubygems/dependency_installer.rb:236 - timed out (http://gems.rubyforge.org/gems/rake-0.8.7.gem)
ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
    timed out (http://gems.rubyforge.org/gems/rake-0.8.7.gem)
	/usr/lib/ruby/1.8/rubygems/remote_fetcher.rb:170:in `fetch_path'
	/usr/lib/ruby/1.8/rubygems/remote_fetcher.rb:108:in `download'
	/usr/lib/ruby/1.8/rubygems/dependency_installer.rb:232:in `install'
	/usr/lib/ruby/1.8/rubygems/dependency_installer.rb:222:in `each'
	/usr/lib/ruby/1.8/rubygems/dependency_installer.rb:222:in `install'
	/usr/lib/ruby/1.8/rubygems/commands/install_command.rb:118:in `execute'
	/usr/lib/ruby/1.8/rubygems/commands/install_command.rb:115:in `each'
	/usr/lib/ruby/1.8/rubygems/commands/install_command.rb:115:in `execute'
	/usr/lib/ruby/1.8/rubygems/command.rb:257:in `invoke'
	/usr/lib/ruby/1.8/rubygems/command_manager.rb:132:in `process_args'
	/usr/lib/ruby/1.8/rubygems/command_manager.rb:102:in `run'
	/usr/lib/ruby/1.8/rubygems/gem_runner.rb:58:in `run'
	/usr/bin/gem:21


----------------------------------------------------------------------

Comment By: James Tucker (raggi)
Date: 2010-03-22 01:57

Message:
Please provide the output of `gem env` and also repeat the command with --verbose, which will tell us which files are timing out.

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=27996&group_id=126


More information about the Rubygems-developers mailing list