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
- Installing Jupyter: Get up and running on your computer - November 2, 2024
- An Introduction of SymOps by SymOps.com - October 30, 2024
- Introduction to System Operations (SymOps) - October 30, 2024