[chef] Chef 11.6 Windows, error with templates?


Chronological Thread 
  • From: Brian Anderson < >
  • To:
  • Subject: [chef] Chef 11.6 Windows, error with templates?
  • Date: Fri, 26 Jul 2013 13:37:59 -0400

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
--
Brian Anderson | Operations Engineer
Phone 781.696.1304
 


www.affectiva.com

     



Archive powered by MHonArc 2.6.16.

§