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.

Geminstaller fails when first source doesn't have gem

#28

we were trying to install fastthread through geminstaller, but our first mirror didn't have it. geminstaller fails, w/ stack trace below several times.

however, after running this command :

gem list fastthread -r

geminstaller installs gem just fine...weird.

our sources :

[root@domU-12-31-39-03-7D-84 current]# gem sources CURRENT SOURCES

http://ec2-us-east-mirror.rights... http://ec2-us-east-mirror1.right... http://ec2-us-east-mirror2.right... http://ec2-us-east-mirror3.right... http://gems.rubyforge.org/

stack trace :

[root@domU-12-31-39-03-7D-84 current]# geminstaller [RubyGems:stderr] ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)

bad response Not Found 404 (http://ec2-us-east-mirror.rights...

Error: Could not find remote gem to install. Gem name = 'fastthread', Gem version = '>= 1.0.6', install options = '--no-ri --no-rdoc'. Your remote gem server may be having problems. You should try to list the remote gem yourself: 'gem list -r -v '>= 1.0.6' fastthread'. If it exists on the server, try running geminstaller again and report your experience here: http://thewoolleyweb.lighthousea.... Output of remote gem list command: ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)

bad response Not Found 404 (http://ec2-us-east-mirror.rights...

Exiting RubyGems with exit_code 1

Reported by Jeremy Lightsmith · March 31st, 2009 @ 02:44 PM

State: open
Milestone: none
Assigned to: Chad Woolley Chad Woolley

Activity

  1. Chad Woolley
    Chad Woolley

    You don't have all those sources specified in your geminstaller.yml: install options = '--no-ri --no-rdoc'. You should put them all listed as sources in your default install_options. RubyGems requires you to specify ALL sources - they are not additive.

    If you don't explicitly specify all required sources, you will fall back to whatever is in your ~/.gemrc, which is unreliable across machines/environments.

    Please attach your ~.gemrc after each step. e.g. before you run anything, after you run geminstaller and fail, and after you run the gem list manually. Are all those sources in there after each step?

    March 31st, 2009 @ 03:32 PM

  2. Chad Woolley
    Chad Woolley

    also please attach the geminstaller.yml and a new failure message after you add the default sources (if it still fails).

    March 31st, 2009 @ 03:33 PM

  3. Chad Woolley
    Chad Woolley

    I can't reproduce this. Here's what I tried:

    • Start a local gem server with dummy gems: http://github.com/thewoolleyman/...

    • Create the following dummy config:


      defaults: install_options: --source=http://gems.rubyforge.org --source=http://gems.github.com --source=http://localhost:9909 gems:
      • name: stubgem
    • chadmac:tmp woolley$ geminstaller -gall -rall Found GemInstaller config file at: /Users/woolley/tmp/geminstaller.yml GemInstaller is verifying gem installation: stubgem > 0.0.0 'gem list stubgem --remote --details --all --source=http://gems.rubyforge.org --source=http://gems.github.com --source=http://localhost:9909' [RubyGems:stdout] stubgem (1.0.0) Author: Chad Woolley Rubyforge: http://rubyforge.org/projects/st... Homepage: http://geminstaller.rubyforge.org

      Stub gem for testing geminstaller Invoking gem install for stubgem, version 1.0.0. 'gem install stubgem --version 1.0.0 --source=http://gems.rubyforge.org --source=http://gems.github.com --source=http://localhost:9909'

    March 31st, 2009 @ 11:35 PM

  4. Chad Woolley
    Chad Woolley
    • State changed from new to open

    Dumb markdown/lighthouse - here is the config again (last try):

    defaults:
      install_options: --source=http://gems.rubyforge.org --source=http://gems.github.com --source=http://localhost:9909
    gems:
    - name: stubgem
    
    

    March 31st, 2009 @ 11:37 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.