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


Chronological Thread 
  • From: Brian Anderson < >
  • To:
  • Subject: [chef] Re: Re: Chef 11.6 Windows, error with templates?
  • Date: Mon, 29 Jul 2013 09:26:00 -0400

I'll have to boot up another one and try it again... these are AWS instances and I terminated them on error.

I'll run through it today and post up the results.



Brian


On Fri, Jul 26, 2013 at 1:49 PM, Daniel DeLeo < " target="_blank"> > wrote:

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




--
Brian Anderson | Operations Engineer
Phone 781.696.1304
 


www.affectiva.com

     



Archive powered by MHonArc 2.6.16.

§