Windows Upgrade to Chef Client 11 Not Working

Hi,

I’ve just upgraded my Win2008R2 server to Chef client v11 but when running my cookbooks with chef-solo I receive the following error:

Starting Chef Client, version 11.0.0←[0m
Compiling Cookbooks…←[0m
[2013-04-04T09:01:17+01:00] ERROR: Running exception handlers
[2013-04-04T09:01:17+01:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated←[0m
[2013-04-04T09:01:17+01:00] FATAL: Stacktrace dumped to C:/chef/cache/chef-stacktrace.out
[2013-04-04T09:01:17+01:00] FATAL: Chef::Exceptions::CookbookNotFound: Cookbook chef_handler not found. If you’re log chef_handler from another cookbook, make sure you configure the dependency in your metadata

The stack trace reads:
Chef::Exceptions::CookbookNotFound: Cookbook chef_handler not found. If you’re loading chef_handler from another cookbook, make sure you configure the dependency in your metadata
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.0.0/lib/chef/cookbook/cookbook_collection.rb:38:in block in initialize' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-6.16.0/lib/ohai/mash.rb:77:inyield’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-6.16.0/lib/ohai/mash.rb:77:in default' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-6.16.0/lib/ohai/mash.rb:77:indefault’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.0.0/lib/chef/run_context/cookbook_compiler.rb:265:in []' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.0.0/lib/chef/run_context/cookbook_compiler.rb:265:ineach_cookbook_dep’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.0.0/lib/chef/run_context/cookbook_compiler.rb:243:in add_cookbook_with_deps' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.0.0/lib/chef/run_context/cookbook_compiler.rb:244:inblock in add_cookbook_with_deps’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.0.0/lib/chef/run_context/cookbook_compiler.rb:266:in each' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.0.0/lib/chef/run_context/cookbook_compiler.rb:266:ineach_cookbook_dep’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.0.0/lib/chef/run_context/cookbook_compiler.rb:243:in add_cookbook_with_deps' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.0.0/lib/chef/run_context/cookbook_compiler.rb:244:inblock in add_cookbook_with_deps’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.0.0/lib/chef/run_context/cookbook_compiler.rb:266:in each' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.0.0/lib/chef/run_context/cookbook_compiler.rb:266:ineach_cookbook_dep’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.0.0/lib/chef/run_context/cookbook_compiler.rb:243:in add_cookbook_with_deps' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.0.0/lib/chef/run_context/cookbook_compiler.rb:244:inblock in add_cookbook_with_deps’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.0.0/lib/chef/run_context/cookbook_compiler.rb:266:in each' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.0.0/lib/chef/run_context/cookbook_compiler.rb:266:ineach_cookbook_dep’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.0.0/lib/chef/run_context/cookbook_compiler.rb:243:in add_cookbook_with_deps' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.0.0/lib/chef/run_context/cookbook_compiler.rb:87:inblock in cookbook_order’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.0.0/lib/chef/run_context/cookbook_compiler.rb:85:in each' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.0.0/lib/chef/run_context/cookbook_compiler.rb:85:incookbook_order’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.0.0/lib/chef/run_context/cookbook_compiler.rb:97:in compile_libraries' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.0.0/lib/chef/run_context/cookbook_compiler.rb:70:incompile’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.0.0/lib/chef/run_context.rb:86:in load' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.0.0/lib/chef/client.rb:224:insetup_run_context’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.0.0/lib/chef/client.rb:467:in do_run' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.0.0/lib/chef/client.rb:200:inrun’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.0.0/lib/chef/application.rb:190:in run_chef_client' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.0.0/lib/chef/application/solo.rb:239:inblock in run_application’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.0.0/lib/chef/application/solo.rb:231:in loop' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.0.0/lib/chef/application/solo.rb:231:inrun_application’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.0.0/lib/chef/application.rb:73:in run' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.0.0/bin/chef-solo:25:in<top (required)>'
C:/opscode/chef/bin/chef-solo:23:in load' C:/opscode/chef/bin/chef-solo:23:in

I’ve uninstalled v11 and put v10 back on and now everything works as normal. I don’t have the chef_handler receipe but wondering if this is now a dependency in v11.

Any suggestions?

Thanks

Dan

===================== DISCLAIMER ======================
This message is intended only for the use of the person(s)
(“Intended Recipient”) to whom it is addressed. It may contain
information which is privileged and confidential. Accordingly
any dissemination, distribution, copying or other use of this
message or any of its content by any person other than the Intended
Recipient may constitute a breach of civil or criminal law and is
strictly prohibited. If you are not the Intended Recipient, please
contact the sender as soon as possible.

Reed Business Information Limited.
Registered Office: Quadrant House, The Quadrant, Sutton, Surrey, SM2 5AS, UK.
Registered in England under Company No. 151537

=======================================================

On Thursday, April 4, 2013 at 2:30 AM, Gibbons, Daniel (RBI-UK) wrote:

Hi,

I’ve just upgraded my Win2008R2 server to Chef client v11 but when running my cookbooks with chef-solo I receive the following error:

Starting Chef Client, version 11.0.0←[0m
Compiling Cookbooks...←[0m
[2013-04-04T09:01:17+01:00] ERROR: Running exception handlers
[2013-04-04T09:01:17+01:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated←[0m
[2013-04-04T09:01:17+01:00] FATAL: Stacktrace dumped to C:/chef/cache/chef-stacktrace.out
[2013-04-04T09:01:17+01:00] FATAL: Chef::Exceptions::CookbookNotFound: Cookbook chef_handler not found. If you're log chef_handler from another cookbook, make sure you configure the dependency in your metadata

You're probably hitting this issue:

http://docs.opscode.com/breaking_changes_chef_11.html#non-recipe-file-evaluation-includes-dependencies

Probably a cookbook in your repo has a dependency on chef_handler. Getting metadata dependencies correct is important for chef-solo on Chef 11, it uses this information to evaluate attribute (and other) files in a sane order.

--
Daniel DeLeo

Excellent thanks I’ll give that a go!

Dan

From: Daniel DeLeo [mailto:ddeleo@kallistec.com] On Behalf Of Daniel DeLeo
Sent: 04 April 2013 16:18
To: chef@lists.opscode.com
Subject: [chef] Re: Windows Upgrade to Chef Client 11 Not Working

On Thursday, April 4, 2013 at 2:30 AM, Gibbons, Daniel (RBI-UK) wrote:

Hi,

I’ve just upgraded my Win2008R2 server to Chef client v11 but when running my cookbooks with chef-solo I receive the following error:

Starting Chef Client, version 11.0.0←[0m

Compiling Cookbooks…←[0m

[2013-04-04T09:01:17+01:00] ERROR: Running exception handlers

[2013-04-04T09:01:17+01:00] ERROR: Exception handlers complete

Chef Client failed. 0 resources updated←[0m

[2013-04-04T09:01:17+01:00] FATAL: Stacktrace dumped to C:/chef/cache/chef-stacktrace.out

[2013-04-04T09:01:17+01:00] FATAL: Chef::Exceptions::CookbookNotFound: Cookbook chef_handler not found. If you’re log chef_handler from another cookbook, make sure you configure the dependency in your metadata

You’re probably hitting this issue:

http://docs.opscode.com/breaking_changes_chef_11.html#non-recipe-file-evaluation-includes-dependencies

Probably a cookbook in your repo has a dependency on chef_handler. Getting metadata dependencies correct is important for chef-solo on Chef 11, it uses this information to evaluate attribute (and other) files in a sane order.


Daniel DeLeo

===================== DISCLAIMER ======================
This message is intended only for the use of the person(s)
(“Intended Recipient”) to whom it is addressed. It may contain
information which is privileged and confidential. Accordingly
any dissemination, distribution, copying or other use of this
message or any of its content by any person other than the Intended
Recipient may constitute a breach of civil or criminal law and is
strictly prohibited. If you are not the Intended Recipient, please
contact the sender as soon as possible.

Reed Business Information Limited.
Registered Office: Quadrant House, The Quadrant, Sutton, Surrey, SM2 5AS, UK.
Registered in England under Company No. 151537

=======================================================