Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

chef error: "LoadError: no such file to load -- win32/open3"

Tags:

chef-infra

How can I resolve this error? I get it when running chef-solo with a very simple node.json and configuration file, even though I'm not using 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 is:

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

node.json is:

{ "run_list": [ "recipe[greeting]" ] }
like image 963
mjs Avatar asked Nov 06 '11 13:11

mjs


2 Answers

Opscode recommends that you not clone the entire cookbooks repository (for this reason and others), and instead download the cookbooks you need from the Chef Community site.

Mainly, that repository is in development, and individual cookbooks are released on the Community site. Further, not all the cookbooks are optimized for, or even work with, with Chef Solo. The latest README.md in the Cookbooks repository should make this pretty clear, too.

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

like image 172
jtimberman Avatar answered Oct 14 '22 22:10

jtimberman


In my case, this was caused by /home/mjs/workspace/cookbooks containing all of opscode's cookbooks. (i.e. I'd cloned their repo, and was adding a new cookbook.) Even though the runlist specifies my recipe only, chef seems to be doing something to the other cookbooks in the directory, at least one of which assumes that some Windows-related gem is installed.

like image 25
mjs Avatar answered Oct 14 '22 21:10

mjs