[chef] Re: Chef 11.6 Windows, error with templates?


Chronological Thread 
  • From: Daniel DeLeo < >
  • To:
  • Subject: [chef] Re: Chef 11.6 Windows, error with templates?
  • Date: Fri, 26 Jul 2013 10:49:44 -0700


On Friday, July 26, 2013 at 10:37 AM, Brian Anderson wrote:

I tried booting up a new Windows Server instance today. Since the knife-windows plugin always installs the latest version of Chef, I got 11.6.

My chef run blew up pretty quickly at the first cookbook_file I hit:


ec2-184-72-136-111.compute-1.amazonaws.com ================================================================================
ec2-184-72-136-111.compute-1.amazonaws.com Error executing action `create` on resource 'cookbook_file[/Progra~1/NSClient++/nsclient.ini]'
ec2-184-72-136-111.compute-1.amazonaws.com ================================================================================
ec2-184-72-136-111.compute-1.amazonaws.com Chef::Exceptions::Win32APIError
ec2-184-72-136-111.compute-1.amazonaws.com -------------------------------
ec2-184-72-136-111.compute-1.amazonaws.com The system cannot find the path specified.
ec2-184-72-136-111.compute-1.amazonaws.com ---- Begin Win32 API output ----
ec2-184-72-136-111.compute-1.amazonaws.com System Error Message: The system cannot find the path specified.
ec2-184-72-136-111.compute-1.amazonaws.com ---- End Win32 API output ----
ec2-184-72-136-111.compute-1.amazonaws.com # In c:/chef/cache/cookbooks/nagios/recipes/client-win.rb
ec2-184-72-136-111.compute-1.amazonaws.com  16: cookbook_file "/Progra~1/NSClient++/nsclient.ini" do
ec2-184-72-136-111.compute-1.amazonaws.com  17:         source "nsclient.ini"
ec2-184-72-136-111.compute-1.amazonaws.com # Declared in c:/chef/cache/cookbooks/nagios/recipes/client-win.rb:16:in `from_file'
ec2-184-72-136-111.compute-1.amazonaws.com cookbook_file("/Progra~1/NSClient++/nsclient.ini") do
ec2-184-72-136-111.compute-1.amazonaws.com   provider Chef::Provider::CookbookFile
ec2-184-72-136-111.compute-1.amazonaws.com   path "/Progra~1/NSClient++/nsclient.ini"
ec2-184-72-136-111.compute-1.amazonaws.com   recipe_name "client-win"


I disabled that recipe and got a similar error the first time it hit a template.

I read the release notes about the file changes, but I didn't think I was doing anything that should cause trouble. Is there anything in that compiled resource that looks wrong?

I rolled back to 11.4.4 on the instance and everything ran as expected.


Brian
This is weird. I ran a bunch of cookbooks on windows when testing 11.6 and never saw anything like this. Can you post the contents of your chef-stacktrace.out file?

-- 
Daniel DeLeo




Archive powered by MHonArc 2.6.16.

§