Chef error: "LoadError: there is no such file to load - win32 / open3"

How can I solve this error? I get it when I start chef-solowith a very simple node.jsonand configuration file, although I do not use Windows.

$ chef-solo -c solo.rb -j node.json
...
[Sun, 06 Nov 2011 13:21:03 +0000] FATAL: LoadError: no such file to load -- win32/open3

solo.rb:

file_cache_path "/usr/local/var/chef-solo"
cookbook_path "/home/mjs/workspace/cookbooks"

node.json:

{ "run_list": [ "recipe[greeting]" ] }
+5
source share
3 answers

Opscode recommends that you do not clone the entire cookbook repository (for this reason, others), but instead download the cookbooks you need from the site of the chef community.

, , . , Chef Solo. README.md Cookbooks .

http://wiki.opscode.com/display/chef/Cookbooks http://www.opscode.com/blog/2011/05/05/future-of-opscode-cookbooks/ http://community.opscode.com/

+8

/home/mjs/workspace/cookbooks, opscode. (.. .) , runlist , -, , - , , , Windows- .

+3
-

, run_list. chef-solo , , , chef-, ( Ruby script) , , t .

For me, this happened in the Windows cookbook when I tested some recipe with Vagrant. I just commented on the require line as a workaround.

For testing recipes with a chef, I keep a git branch with a few commits that avoid these problems. Since these commits are usually small and not related to the recipes I am testing, but just to make sure chef-solo works, this is enough to get around such problems.

+1
source

All Articles