Chef Error: Could not find cookbook cookbooks_test in your cookbook path, sk

rajeshkumar created the topic: ERROR: Could not find cookbook cookbooks_test in your cookbook path, sk

Error while uploading the cookbooks….
[code language=”css”]
> knife cookbook upload cookbooks_test
ERROR: Could not find cookbook cookbooks_test in your cookbook path, skipping it
ERROR: Failed to upload 1 cookbook.
[/code]

Solution:

You can pass path of the cookbooks via commend line using…
[code language=”css”]
knife cookbook upload cookbooks_test -o /path/to/cookbook
[/code]

Also, you can set the path in .chef/knife.rb. If .chef/knife.rb is missing, you can following commands…
[code language=”css”]
knife configure –initial
[/code]

But if you install the startter kit from manage.chef.io, you just need to replace all the files including .knife.rb

if you cookbooks files many places then you can set your .knife.rb like as below;
[code language=”css”]
cookbook_path [ ‘.’, ‘..’, ‘./cookbooks’, ‘~/git/chef’ ]
[/code]

If you are still getting this error, make sure the metadata.rb has same name which you using to upload the cookbooks.
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn