Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Sometimes installing fails

#5

Especially when installing a lot of gems. Probably due to timeout. Should retry a couple times before failing.

Reported by Chad Woolley · May 20th, 2008 @ 12:33 AM

State: resolved
Milestone: 0.5.3 Release
Assigned to: Chad Woolley Chad Woolley

Activity

  1. Chad Woolley
    Chad Woolley
    • Tag set to from_rubyforge, high_priority
    • State changed from new to hold

    Not sure if multiple retries would cause more problems, since this error can also occur if the gem or server actually doesn't exist.

    As a compromise, a much more verbose error message is now printed, with instructions on how to run the 'gem list' command manually to see if the gem actually does exist on the remote server. Look at gem_list_checker.rb for details.

    Please provide more info on how to reproduce this problem if you can.

    February 23rd, 2009 @ 01:15 AM

  2. Chad Woolley
    Chad Woolley
    • State changed from hold to open

    AHA! This seems to only happen when the previous gem specified a different source. For example:

    - name: mislav-will_paginate
      version: >= 2.3.6
      install_options: --source=http://gems.github.com
    - name: flvtool2
      version: 1.0.6
    
    

    This will work on the next GemInstaller run, since mislav-will_paginage is already installed, and no Gem.install command is specified for the different source.

    To fix it, you can hardcode the source on the second gem:

    - name: mislav-will_paginate
      version: >= 2.3.6
      install_options: --source=http://gems.github.com
    - name: flvtool2
      version: 1.0.6
      install_options: --source=http://gems.rubyforge.org
    
    

    This is probably a bug in RubyGems related to caching last-used source or something, need to investigate...

    February 25th, 2009 @ 07:50 PM

  3. Chad Woolley
    Chad Woolley

    Eric Hodel says this is because of the say Gem::GemRunner works - it stores the source. As a workaround, every install call to GemRunner can be prefixed with this:

    Gem.sources.replace Gem.default_sources
    
    

    March 18th, 2009 @ 05:09 PM

  4. Chad Woolley
    Chad Woolley
    • Milestone changed from 1.0 Release to 0.5.3 Release

    August 25th, 2009 @ 11:32 AM

  5. Chad Woolley
  6. Chad Woolley
    Chad Woolley
    • State changed from open to resolved

    August 25th, 2009 @ 12:56 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.