[chef] Having a problem with chef-solo and remote cookbooks on Windows and CHEF-5332


Chronological Thread 
  • From: Daniel Spisak < >
  • To:
  • Subject: [chef] Having a problem with chef-solo and remote cookbooks on Windows and CHEF-5332
  • Date: Tue, 23 Dec 2014 16:36:34 -0800

Hi there!

I am somewhat new to Chef and have been trying to learn it to deal with an automation problem I'm trying to tackle on Windows. I had been working with a set of recipes in my cookbook on a VM where I was doing testing of my code before taking it to the next step and trying to do a full test by deploying the node.json and chef-solo.tar.gz cookbook archive on a web server for the chef-solo client to get from and then execute on a Windows 2012 system. Currently this is what happens when I try to execute my chef-solo action:


PS C:\chef> chef-solo -c solo.rb -j http://xxxxx/node.json -r http://xxxxx/chef-solo.tar.gz
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4-x86-mingw32/lib/chef/application/solo.rb:195:in `join': can't convert nil into String (TypeError)
        from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4-x86-mingw32/lib/chef/application/solo.rb:195:in `reconfigure'
        from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4-x86-mingw32/lib/chef/application.rb:53:in `run'
        from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4-x86-mingw32/bin/chef-solo:25:in `<top (required)>'
        from C:/opscode/chef/bin/chef-solo:23:in `load'
        from C:/opscode/chef/bin/chef-solo:23:in `<main>'

and my solo.rb has the following contents

log_level :info
log_location STDOUT
file_cache_path 'c:\\chef\cache'
cookbook_path 'c:\\chef\cookbooks'

This is on the 11.16-4 client, which according to this bug says this should work


Sooooo...what gives? Am I screwed?



Archive powered by MHonArc 2.6.16.

§