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' forChef::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):
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]
-----Original Message-----
From: Andrew Hollingsworth [mailto:adh@techopsguru.com]
Sent: Tuesday, July 15, 2014 1:58 PM
To: chef@lists.opscode.com
Subject: [chef] Windows NoMethodError - winows cookbook
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' forChef::Recipe “deploy”’
-----Original Message-----
From: Andrew Hollingsworth [mailto:adh@techopsguru.com]
Sent: Tuesday, July 15, 2014 1:58 PM
To: chef@lists.opscode.com
Subject: [chef] Windows NoMethodError - winows cookbook
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"'
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' forChef::Recipe “deploy”’
Yes indeed it is... And it's picked up by the chef-client converge. In fact
windows_package works fine but windows_batch, windows_zipfile, and
windows_path do not (these are the only ones I've tried). Additionally a
similar thing happens with the powershell cookbook so I don't think it's
cookbook specific, more platform specific maybe...
-----Original Message-----
From: Andrew Hollingsworth [mailto:adh@techopsguru.com]
Sent: Tuesday, July 15, 2014 1:58 PM
To: chef@lists.opscode.com
Subject: [chef] Windows NoMethodError - winows cookbook
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"'
The root cause of all this is that Stove 3.1.0 had a defect wherein it
failed to upload LWRP resources.
We will re-release the powershell & windows cookbooks today using Stove 3.2.0.
Julian
On Tue, Jul 15, 2014 at 2:15 PM, Andrew Hollingsworth adh@techopsguru.com wrote:
HI Kapil,
Yes indeed it is... And it's picked up by the chef-client converge. In fact
windows_package works fine but windows_batch, windows_zipfile, and
windows_path do not (these are the only ones I've tried). Additionally a
similar thing happens with the powershell cookbook so I don't think it's
cookbook specific, more platform specific maybe...
-----Original Message-----
From: Andrew Hollingsworth [mailto:adh@techopsguru.com]
Sent: Tuesday, July 15, 2014 1:58 PM
To: chef@lists.opscode.com
Subject: [chef] Windows NoMethodError - winows cookbook
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"'
--
[ Julian C. Dunn jdunn@aquezada.com * Sorry, I'm ]
[ WWW: http://www.aquezada.com/staff/julian * only Web 1.0 ]
[ gopher://sdf.org/1/users/keymaker/ * compliant! ]
[ PGP: 91B3 7A9D 683C 7C16 715F 442C 6065 D533 FDC2 05B9 ]
We will re-release the powershell & windows cookbooks today using Stove
3.2.0.
Julian
On Tue, Jul 15, 2014 at 2:15 PM, Andrew Hollingsworth adh@techopsguru.com wrote:
HI Kapil,
Yes indeed it is... And it's picked up by the chef-client converge. In
fact
windows_package works fine but windows_batch, windows_zipfile, and
windows_path do not (these are the only ones I've tried). Additionally a
similar thing happens with the powershell cookbook so I don't think it's
cookbook specific, more platform specific maybe...
-----Original Message-----
From: Andrew Hollingsworth [mailto:adh@techopsguru.com]
Sent: Tuesday, July 15, 2014 1:58 PM
To: chef@lists.opscode.com
Subject: [chef] Windows NoMethodError - winows cookbook
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"'
--
[ Julian C. Dunn jdunn@aquezada.com * Sorry, I'm ]
[ WWW: http://www.aquezada.com/staff/julian * only Web 1.0 ]
[ gopher://sdf.org/1/users/keymaker/ * compliant! ]
[ PGP: 91B3 7A9D 683C 7C16 715F 442C 6065 D533 FDC2 05B9 ]
New powershell & windows cookbooks with a .1 on their version # have
been released to correct this issue. They are functionally equivalent
to the .0 releases except that they actually contain the 'resources'
folder :-/
Julian
On Tue, Jul 15, 2014 at 2:28 PM, Andrew Hollingsworth adh@techopsguru.com wrote:
We will re-release the powershell & windows cookbooks today using Stove
3.2.0.
Julian
On Tue, Jul 15, 2014 at 2:15 PM, Andrew Hollingsworth adh@techopsguru.com wrote:
HI Kapil,
Yes indeed it is... And it's picked up by the chef-client converge. In
fact
windows_package works fine but windows_batch, windows_zipfile, and
windows_path do not (these are the only ones I've tried). Additionally
a
similar thing happens with the powershell cookbook so I don't think it's
cookbook specific, more platform specific maybe...
-----Original Message-----
From: Andrew Hollingsworth [mailto:adh@techopsguru.com]
Sent: Tuesday, July 15, 2014 1:58 PM
To: chef@lists.opscode.com
Subject: [chef] Windows NoMethodError - winows cookbook
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"'
--
[ Julian C. Dunn jdunn@aquezada.com * Sorry, I'm ]
[ WWW: http://www.aquezada.com/staff/julian * only Web 1.0 ]
[ gopher://sdf.org/1/users/keymaker/ * compliant! ]
[ PGP: 91B3 7A9D 683C 7C16 715F 442C 6065 D533 FDC2 05B9 ]
--
[ Julian C. Dunn jdunn@aquezada.com * Sorry, I'm ]
[ WWW: http://www.aquezada.com/staff/julian * only Web 1.0 ]
[ gopher://sdf.org/1/users/keymaker/ * compliant! ]
[ PGP: 91B3 7A9D 683C 7C16 715F 442C 6065 D533 FDC2 05B9 ]
On Tue, Jul 15, 2014 at 11:39 AM, Julian C. Dunn jdunn@aquezada.com wrote:
New powershell & windows cookbooks with a .1 on their version # have
been released to correct this issue. They are functionally equivalent
to the .0 releases except that they actually contain the 'resources'
folder :-/
Julian
On Tue, Jul 15, 2014 at 2:28 PM, Andrew Hollingsworth adh@techopsguru.com wrote:
We will re-release the powershell & windows cookbooks today using Stove
3.2.0.
Julian
On Tue, Jul 15, 2014 at 2:15 PM, Andrew Hollingsworth adh@techopsguru.com wrote:
HI Kapil,
Yes indeed it is... And it's picked up by the chef-client converge. In
fact
windows_package works fine but windows_batch, windows_zipfile, and
windows_path do not (these are the only ones I've tried).
Additionally
a
similar thing happens with the powershell cookbook so I don't think
it's
cookbook specific, more platform specific maybe...
-----Original Message-----
From: Andrew Hollingsworth [mailto:adh@techopsguru.com]
Sent: Tuesday, July 15, 2014 1:58 PM
To: chef@lists.opscode.com
Subject: [chef] Windows NoMethodError - winows cookbook
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"'
--
[ Julian C. Dunn jdunn@aquezada.com * Sorry, I'm ]
[ WWW: http://www.aquezada.com/staff/julian * only Web 1.0 ]
[ gopher://sdf.org/1/users/keymaker/ * compliant! ]
[ PGP: 91B3 7A9D 683C 7C16 715F 442C 6065 D533 FDC2 05B9 ]
--
[ Julian C. Dunn jdunn@aquezada.com * Sorry, I'm ]
[ WWW: http://www.aquezada.com/staff/julian * only Web 1.0 ]
[ gopher://sdf.org/1/users/keymaker/ * compliant! ]
[ PGP: 91B3 7A9D 683C 7C16 715F 442C 6065 D533 FDC2 05B9 ]
I apologize, we're still having some serious problems with Stove. I've
re-released 'windows' the old way, using "knife cookbook site share",
and validated the tarball is correct.
Julian
On Tue, Jul 15, 2014 at 3:46 PM, Andrew Hollingsworth adh@techopsguru.com wrote:
Hi Julian,
Weirdly for the windows 1.32.1 cookbook the resources directory is not
coming down :
On Tue, Jul 15, 2014 at 11:39 AM, Julian C. Dunn jdunn@aquezada.com wrote:
New powershell & windows cookbooks with a .1 on their version # have
been released to correct this issue. They are functionally equivalent
to the .0 releases except that they actually contain the 'resources'
folder :-/
Julian
On Tue, Jul 15, 2014 at 2:28 PM, Andrew Hollingsworth adh@techopsguru.com wrote:
We will re-release the powershell & windows cookbooks today using Stove
3.2.0.
Julian
On Tue, Jul 15, 2014 at 2:15 PM, Andrew Hollingsworth adh@techopsguru.com wrote:
HI Kapil,
Yes indeed it is... And it's picked up by the chef-client converge.
In
fact
windows_package works fine but windows_batch, windows_zipfile, and
windows_path do not (these are the only ones I've tried).
Additionally
a
similar thing happens with the powershell cookbook so I don't think
it's
cookbook specific, more platform specific maybe...
-----Original Message-----
From: Andrew Hollingsworth [mailto:adh@techopsguru.com]
Sent: Tuesday, July 15, 2014 1:58 PM
To: chef@lists.opscode.com
Subject: [chef] Windows NoMethodError - winows cookbook
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"'
--
[ Julian C. Dunn jdunn@aquezada.com * Sorry, I'm ]
[ WWW: http://www.aquezada.com/staff/julian * only Web 1.0 ]
[ gopher://sdf.org/1/users/keymaker/ * compliant! ]
[ PGP: 91B3 7A9D 683C 7C16 715F 442C 6065 D533 FDC2 05B9 ]
--
[ Julian C. Dunn jdunn@aquezada.com * Sorry, I'm ]
[ WWW: http://www.aquezada.com/staff/julian * only Web 1.0 ]
[ gopher://sdf.org/1/users/keymaker/ * compliant! ]
[ PGP: 91B3 7A9D 683C 7C16 715F 442C 6065 D533 FDC2 05B9 ]
--
[ Julian C. Dunn jdunn@aquezada.com * Sorry, I'm ]
[ WWW: http://www.aquezada.com/staff/julian * only Web 1.0 ]
[ gopher://sdf.org/1/users/keymaker/ * compliant! ]
[ PGP: 91B3 7A9D 683C 7C16 715F 442C 6065 D533 FDC2 05B9 ]
No problems, thanks Julian... I'd got around it temporarily by git cloning,
changing the tag to 1.32.1 and pointing Berkshelf at the local directory
before uploading to my chef server. I'll correct that tomorrow....
I apologize, we're still having some serious problems with Stove. I've
re-released 'windows' the old way, using "knife cookbook site share",
and validated the tarball is correct.
Julian
On Tue, Jul 15, 2014 at 3:46 PM, Andrew Hollingsworth
<adh@techopsguru.com <javascript:;>> wrote:
Hi Julian,
Weirdly for the windows 1.32.1 cookbook the resources directory is not
coming down :
On Tue, Jul 15, 2014 at 11:39 AM, Julian C. Dunn <jdunn@aquezada.com
<javascript:;>> wrote:
New powershell & windows cookbooks with a .1 on their version # have
been released to correct this issue. They are functionally equivalent
to the .0 releases except that they actually contain the 'resources'
folder :-/
Julian
On Tue, Jul 15, 2014 at 2:28 PM, Andrew Hollingsworth
<adh@techopsguru.com <javascript:;>> wrote:
We will re-release the powershell & windows cookbooks today using
Stove
3.2.0.
Julian
On Tue, Jul 15, 2014 at 2:15 PM, Andrew Hollingsworth
<adh@techopsguru.com <javascript:;>> wrote:
HI Kapil,
Yes indeed it is... And it's picked up by the chef-client converge.
In
fact
windows_package works fine but windows_batch, windows_zipfile, and
windows_path do not (these are the only ones I've tried).
Additionally
a
similar thing happens with the powershell cookbook so I don't think
it's
cookbook specific, more platform specific maybe...
Is windows cookbook added to the runlist for this node?
-Kapil
From: adh@inkswirl.org <javascript:;> [mailto:adh@inkswirl.org
<javascript:;>] On Behalf Of Andrew
Hollingsworth
Sent: Tuesday, July 15, 2014 2:02 PM
To: chef@lists.opscode.com <javascript:;>
Subject: [chef] Re: RE: Windows NoMethodError - winows cookbook
-----Original Message-----
From: Andrew Hollingsworth [mailto:adh@techopsguru.com
<javascript:;>]
Sent: Tuesday, July 15, 2014 1:58 PM
To: chef@lists.opscode.com <javascript:;>
Subject: [chef] Windows NoMethodError - winows cookbook
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"'
--
[ Julian C. Dunn <jdunn@aquezada.com <javascript:;>> *
Sorry, I'm ]
[ WWW: http://www.aquezada.com/staff/julian * only Web 1.0 ]
[ gopher://sdf.org/1/users/keymaker/ * compliant! ]
[ PGP: 91B3 7A9D 683C 7C16 715F 442C 6065 D533 FDC2 05B9 ]
--
[ Julian C. Dunn <jdunn@aquezada.com <javascript:;>> * Sorry,
I'm ]
[ WWW: http://www.aquezada.com/staff/julian * only Web 1.0 ]
[ gopher://sdf.org/1/users/keymaker/ * compliant! ]
[ PGP: 91B3 7A9D 683C 7C16 715F 442C 6065 D533 FDC2 05B9 ]
--
[ Julian C. Dunn <jdunn@aquezada.com <javascript:;>> * Sorry,
I'm ]
[ WWW: http://www.aquezada.com/staff/julian * only Web 1.0 ]
[ gopher://sdf.org/1/users/keymaker/ * compliant! ]
[ PGP: 91B3 7A9D 683C 7C16 715F 442C 6065 D533 FDC2 05B9 ]