[chef] Re: Re: Re: rubygems 1.6.2 and chef 0.9.14 on ubuntu 10.04


Chronological Thread 
  • From: Daniel DeLeo < >
  • To:
  • Subject: [chef] Re: Re: Re: rubygems 1.6.2 and chef 0.9.14 on ubuntu 10.04
  • Date: Tue, 15 Mar 2011 22:12:03 -0700

On Tuesday, March 15, 2011 at 10:00 PM, Brian Merritt wrote:

Adding 'require 'rubygems/user_interaction' to usr/lib/ruby/1.8/rubygems/remote_fetcher.rb solved the first problem, but now I have a new one: 

[Wed, 16 Mar 2011 04:58:09 +0000] ERROR: Exception handlers complete
/usr/lib/ruby/1.8/rubygems/dependency_installer.rb:92:in `find_gems_with_sources': undefined method `version_requirements' for #<Gem::Dependency:0x7fedb19474f0> (NoMethodError)
        from /usr/lib/ruby/1.8/rubygems/dependency_installer.rb:215:in `install'
        from /usr/lib/ruby/1.8/chef/provider/package/rubygems.rb:153:in `install'
        from /usr/lib/ruby/1.8/chef/provider/package/rubygems.rb:176:in `with_correct_verbosity'
        from /usr/lib/ruby/1.8/chef/provider/package/rubygems.rb:152:in `install'
        from /usr/lib/ruby/1.8/chef/provider/package/rubygems.rb:87:in `with_gem_sources'
        from /usr/lib/ruby/1.8/chef/provider/package/rubygems.rb:151:in `install'
        from /usr/lib/ruby/1.8/chef/provider/package/rubygems.rb:398:in `install_package'
        from /usr/lib/ruby/1.8/chef/provider/package.rb:60:in `action_install'
        from /usr/lib/ruby/1.8/chef/resource.rb:395:in `send'
        from /usr/lib/ruby/1.8/chef/resource.rb:395:in `run_action'
        from /usr/lib/ruby/1.8/chef/runner.rb:53:in `run_action'
        from /usr/lib/ruby/1.8/chef/runner.rb:89:in `converge'
        from /usr/lib/ruby/1.8/chef/runner.rb:89:in `each'
        from /usr/lib/ruby/1.8/chef/runner.rb:89:in `converge'
        from /usr/lib/ruby/1.8/chef/resource_collection.rb:94
        from /usr/lib/ruby/1.8/chef/resource_collection/stepable_iterator.rb:116:in `call'
        from /usr/lib/ruby/1.8/chef/resource_collection/stepable_iterator.rb:116:in `call_iterator_block'
        from /usr/lib/ruby/1.8/chef/resource_collection/stepable_iterator.rb:85:in `step'
        from /usr/lib/ruby/1.8/chef/resource_collection/stepable_iterator.rb:104:in `iterate'
        from /usr/lib/ruby/1.8/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'
        from /usr/lib/ruby/1.8/chef/resource_collection.rb:92:in `execute_each_resource'
        from /usr/lib/ruby/1.8/chef/runner.rb:84:in `converge'
        from /usr/lib/ruby/1.8/chef/client.rb:268:in `converge'
        from /usr/lib/ruby/1.8/chef/client.rb:171:in `run'
        from /usr/lib/ruby/1.8/chef/application/client.rb:222:in `run_application'
        from /usr/lib/ruby/1.8/chef/application/client.rb:212:in `loop'
        from /usr/lib/ruby/1.8/chef/application/client.rb:212:in `run_application'
        from /usr/lib/ruby/1.8/chef/application.rb:62:in `run'
        from /usr/bin/chef-client:26
:/usr/lib/ruby/1.8/rubygems# 

I couldn't find any open bugs that seem to relate to this error (or the last one). Wondering if I have something strange going on in my ruby* install. 

Yeah, your error messages don't line up with the source of rubygems-update I'm looking at. For example, line 92 of dependency_installer.rb looks like this for me:

        gems_and_sources << [spec, gem_file] if spec.name == dep.name

And I don't have the string `version_requirements` anywhere in that file. I also see in the history file this message:

    * Gem::Dependency#version_requirements is deprecated and will be removed on or
      after August 2010.

Listed for version 1.3.6 release notes.


Try printing/logging the value of `Gem::VERSION` in your recipe to see if a different/older rubygems install is getting loaded for some reason. You might also poke around in the rubygems code in usr/lib/ruby/1.8/ to see if it matches what you expect.

HTH
 



Archive powered by MHonArc 2.6.16.

§