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


Chronological Thread 
  • From: Brian Merritt < >
  • To:
  • Subject: [chef] Re: Re: rubygems 1.6.2 and chef 0.9.14 on ubuntu 10.04
  • Date: Tue, 15 Mar 2011 22:00:10 -0700

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. 

I do have gem_packages in the recipes applied to the effected host. 

Brian

On Mar 15, 2011, at 9:43 PM, Daniel DeLeo wrote:

On Tuesday, March 15, 2011 at 9:28 PM, Brian Merritt wrote:

After installing the latest stable rubygems 1.6.2, chef-client breaks as such:

:~# chef-client
/usr/lib/ruby/1.8/rubygems/remote_fetcher.rb:14: uninitialized constant Gem::UserInteraction (NameError)

Try adding require 'rubygems/user_interaction' to your client.rb or recipe and see if that works around.

This is pretty strange though, when I do `gem open rubygems-update`, I see that I have `VERSION = '1.6.2'` in rubygems.rb, and spec_fetcher.rb does `require 'rubygems/user_interaction'` on line 2.

The changelog for rubygems says this issue was fixed as of version 1.5.1.

I haven't tried running Chef with a gem_package resource in your configuration, though.


Anyone seen this?

Brian
-- 
Dan DeLeo
 





Archive powered by MHonArc 2.6.16.

§