Problem when starting chef-expander

Stuart's Avatar

Stuart

21 Oct, 2011 09:38 AM

Hi

I'm getting the following error when starting chef-expander. Can you help?

 /usr/local/lib/site_ruby/1.8/rubygems.rb:203:in `try_activate': undefined method `find_by_path' for Gem::Specification:Class (NoMethodError)
        from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:58:in `require'
        from /usr/lib/ruby/vendor_ruby/addressable/idna/native.rb:19
        from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
        from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
        from /usr/lib/ruby/vendor_ruby/addressable/idna.rb:20
        from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
        from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
        from /usr/lib/ruby/vendor_ruby/addressable/uri.rb:20
        from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
        from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
        from /usr/lib/ruby/vendor_ruby/em-http.rb:3
        from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
        from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
        from /usr/lib/ruby/vendor_ruby/em-http-request.rb:1
        from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
        from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
        from /usr/lib/ruby/vendor_ruby/chef/expander/solrizer.rb:24
        from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
        from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
        from /usr/lib/ruby/vendor_ruby/chef/expander/vnode.rb:26
        from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
        from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
        from /usr/lib/ruby/vendor_ruby/chef/expander/vnode_supervisor.rb:28
        from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
        from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
        from /usr/lib/ruby/vendor_ruby/chef/expander/cluster_supervisor.rb:25
        from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
        from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
        from /usr/bin/chef-expander:27
  1. Support Staff 2 Posted by Nick Quaranto on 21 Oct, 2011 05:13 PM

    Nick Quaranto's Avatar

    Hmm, what's the output of gem env? Can you try upgrading RubyGems?

    http://rubygems.org/pages/download

  2. 3 Posted by Stuart on 24 Oct, 2011 08:56 AM

    Stuart's Avatar

    Hi, thanks for your reply...gem env shows

    RubyGems Environment:
    - RUBYGEMS VERSION: 1.8.11 - RUBY VERSION: 1.8.7 (2010-08-16 patchlevel 302) [i686-linux] - INSTALLATION DIRECTORY: /usr/lib/ruby/gems/1.8 - RUBY EXECUTABLE: /usr/bin/ruby1.8 - EXECUTABLE DIRECTORY: /usr/bin - RUBYGEMS PLATFORMS:

    - ruby
    - x86-linux
    
    • GEM PATHS:
      • /usr/lib/ruby/gems/1.8
      • /home/ubuntu/.gem/ruby/1.8
    • GEM CONFIGURATION:
      • :update_sources => true
      • :verbose => true
      • :benchmark => false
      • :backtrace => false
      • :bulk_threshold => 1000
    • REMOTE SOURCES:
  3. 4 Posted by Morgan Christiansson on 14 Nov, 2011 10:21 PM

    Morgan Christiansson's Avatar

    I encountered the exact same problem installing chef-0.10 on ubuntu 10.04

  4. Support Staff 5 Posted by Nick Quaranto on 08 Dec, 2011 02:32 AM

    Nick Quaranto's Avatar

    Ugh...is this still happening with RubyGems 1.8.12?

    Also, if you try installing Ruby separately via RVM, does it happen?

    http://beginrescueend.com/rvm/install/

  5. 6 Posted by tbrinkmann on 16 Jan, 2012 02:52 PM

    tbrinkmann's Avatar
    • debian 6.0.3
    • chef 0.10.8 2012-01-16_14:30:47.65604 from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in gem_original_require' 2012-01-16_14:30:47.65608 from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:inrequire'

    any other ideas ?

  6. Support Staff 7 Posted by Evan Phoenix on 21 Feb, 2012 03:13 AM

    Evan Phoenix's Avatar

    The only way this could happen is if rubygems was half upgraded. Have you installed your own version of rubygems?

    Do other ruby programs that require gems work?

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac