- From: Andrew Hollingsworth <
>
- To:
- Subject: [chef] Windows NoMethodError - winows cookbook
- Date: Tue, 15 Jul 2014 10:58:21 -0700 (PDT)
Hi all,
I have a client running on Windows (in EC2) that requires a wrapper recipe to
do a few things. However, even though I have the windows cookbook as a
dependency in my metadata.rb I get a NoMethodError when I run chef-client on
the server.
The error is :
NoMethodError
-------------
No resource or method named `windows_batch' for `Chef::Recipe "deploy"'
zip} to #{release_dir}" do
62: code <<-EOF
63: 'C:\\Program Files\\7-zip\\7z.exe' x -o#{release_dir}
#{download_dir}/#{release_zip}
64: EOF
65: #not_if {::File.exists?('c:/bin/P
More detailed info here )including the whole chef run, my metadata.rb etc):
https://gist.github.com/sdadh01/33543b6ccf24ed848669
I even tried replacing windows_batch with powershell (and adding to the
metadata.rb etc etc) but I get a similar NoMethodError :
Running handlers complete
[2014-07-15T16:44:52+00:00] ERROR: Exception handlers complete
[2014-07-15T16:44:52+00:00] FATAL: Stacktrace dumped to
C:/chef/cache/chef-stacktrace.out
Chef Client failed. 0 resources updated in 18.233801 seconds
[2014-07-15T16:44:52+00:00] FATAL: NoMethodError: undefined method `new' for
Powershell:Module
Has anyone seen this before? Am I missing something obvious? Is this a known
issue? I'm happy to fule a bug report but I thought I'd sanity check before I
do...
[This is on Chef 11.12.8-2 on Windows 2012r2 x86_64]
Thanks in advance for any help.
Cheers,
Andrew
- [chef] Windows NoMethodError - winows cookbook, Andrew Hollingsworth, 07/15/2014
Archive powered by MHonArc 2.6.16.