Fixing Vagrant error “Chef::Exceptions::CookbookNotFound”

[Fri, 17 Aug 2012 02:52:02 +0200] FATAL: Chef::Exceptions::CookbookNotFound: Cookbook couchdb not found. If you're loading couchdb from another cookbook, make sure you configure the dependency in your metadata

This is an easy error to create if you only downloaded one cookbook. It’s tempting to write the path as “./couchdb” when in fact, the path is to the directory containing many cookbooks.

In other words, do this:

chef.cookbooks_path = "../cookbooks"

Not this:

chef.cookbooks_path = "../cookbooks/couchdb"

Leave a Reply

Your email address will not be published.