recipe_url with windows

Anyone get this working? I have tried various things, but keep running in to an issue where the tar command to extract the cookbooks fails with:

c:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.4-x86-mingw32/lib/chef/mixin/command.rb:141:in block in ou tput_of_command': undefined methodexitstatus’ for nil:NilClass (NoMethodError)
from c:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.4-x86-mingw32/lib/chef/mixin/command.rb:122:in
chdir' from c:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.4-x86-mingw32/lib/chef/mixin/command.rb:122:inoutput_of_command’
from c:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.4-x86-mingw32/lib/chef/mixin/command.rb:101:in
run_command_and_return_stdout_stderr' from c:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.4-x86-mingw32/lib/chef/mixin/command.rb:79:inrun_command’
from c:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.4-x86-mingw32/lib/chef/application/solo.rb:200
:in reconfigure' from c:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.4-x86-mingw32/lib/chef/application.rb:65:inr
un’
from c:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.4-x86-mingw32/bin/chef-solo:25:in <top (requi red)>' from c:/opscode/chef/bin/chef-solo:23:inload’
from c:/opscode/chef/bin/chef-solo:23:in `’

Digging through the code there is nothing that jumps out at me. The interesting thing is that if I do a pry break in the method which causes a delay in processing, then it works. So seems like there is a weird race condition in here.

Just curious if others have tried to get this working and have a solution?

Thanks!!

Kevin

Kevin, this looks like the following known issue that is being worked on
now. Does this only repro for you with chef-solo Kevin?


https://tickets.opscode.com/browse/CHEF-5333

I’m not aware of workarounds at the moment, though if it’s a chef-solo
thing my first suggestion is to try chef local mode.

Kevin, I’m sorry that you’re hitting this problem.

-Adam
-----Original Message-----
From: Moser, Kevin [mailto:Kevin.Moser@nordstrom.com]
Sent: Wednesday, July 30, 2014 10:07 AM
To: chef@lists.opscode.com
Subject: [chef] recipe_url with windows

Anyone get this working? I have tried various things, but keep running in
to an issue where the tar command to extract the cookbooks fails with:

c:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.4-x86-mingw32
/lib/chef/mixin/command.rb:141:in block in ou tput_of_command': undefined methodexitstatus’ for nil:NilClass
(NoMethodError)
from
c:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.4-x86-mingw32
/lib/chef/mixin/command.rb:122:in
chdir' from c:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.4-x86-mingw32 /lib/chef/mixin/command.rb:122:inoutput_of_command’
from
c:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.4-x86-mingw32
/lib/chef/mixin/command.rb:101:in
run_command_and_return_stdout_stderr' from c:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.4-x86-mingw32 /lib/chef/mixin/command.rb:79:inrun_command’
from
c:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.4-x86-mingw32
/lib/chef/application/solo.rb:200
:in reconfigure' from c:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.4-x86-mingw32 /lib/chef/application.rb:65:inr un’
from
c:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.4-x86-mingw32
/bin/chef-solo:25:in <top (requi red)>' from c:/opscode/chef/bin/chef-solo:23:inload’
from c:/opscode/chef/bin/chef-solo:23:in `’

Digging through the code there is nothing that jumps out at me. The
interesting thing is that if I do a pry break in the method which causes a
delay in processing, then it works. So seems like there is a weird race
condition in here.

Just curious if others have tried to get this working and have a solution?

Thanks!!

Kevin

This is actually a different issue. This is if you use ³\² instead of ³/³
in path. That is due to this line:

94

The workaround for that one is to switch file separator so c:/chef instead
of c:\chef

Once you get past that one, then they are going to hit the issue below.
:slight_smile:

On 7/30/14, 10:58 AM, "Adam Edwards" adamed@getchef.com wrote:

Kevin, this looks like the following known issue that is being worked on
now. Does this only repro for you with chef-solo Kevin?

Can't use remote cookbooks.tar.gz with chef-solo on windows · Issue #1515 · chef/chef · GitHub
https://tickets.opscode.com/browse/CHEF-5333

I'm not aware of workarounds at the moment, though if it's a chef-solo
thing my first suggestion is to try chef local mode.

Kevin, I'm sorry that you're hitting this problem.

-Adam
-----Original Message-----
From: Moser, Kevin [mailto:Kevin.Moser@nordstrom.com]
Sent: Wednesday, July 30, 2014 10:07 AM
To: chef@lists.opscode.com
Subject: [chef] recipe_url with windows

Anyone get this working? I have tried various things, but keep running in
to an issue where the tar command to extract the cookbooks fails with:

c:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.4-x86-mingw32
/lib/chef/mixin/command.rb:141:in block in ou tput_of_command': undefined method exitstatus' for nil:NilClass
(NoMethodError)
from
c:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.4-x86-mingw32
/lib/chef/mixin/command.rb:122:in
chdir' from c:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.4-x86-mingw32 /lib/chef/mixin/command.rb:122:in output_of_command'
from
c:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.4-x86-mingw32
/lib/chef/mixin/command.rb:101:in
run_command_and_return_stdout_stderr' from c:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.4-x86-mingw32 /lib/chef/mixin/command.rb:79:in run_command'
from
c:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.4-x86-mingw32
/lib/chef/application/solo.rb:200
:in reconfigure' from c:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.4-x86-mingw32 /lib/chef/application.rb:65:in r un'
from
c:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.4-x86-mingw32
/bin/chef-solo:25:in <top (requi red)>' from c:/opscode/chef/bin/chef-solo:23:in load'
from c:/opscode/chef/bin/chef-solo:23:in `'

Digging through the code there is nothing that jumps out at me. The
interesting thing is that if I do a pry break in the method which causes a
delay in processing, then it works. So seems like there is a weird race
condition in here.

Just curious if others have tried to get this working and have a solution?

Thanks!!

Kevin