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
I’m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I am working at Cotocus. I blog tech insights at DevOps School, travel stories at Holiday Landmark, stock market tips at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at I reviewed , and SEO strategies at Wizbrand.
Please find my social handles as below;
Rajesh Kumar Personal Website
Rajesh Kumar at YOUTUBE
Rajesh Kumar at INSTAGRAM
Rajesh Kumar at X
Rajesh Kumar at FACEBOOK
Rajesh Kumar at LINKEDIN
Rajesh Kumar at PINTEREST
Rajesh Kumar at QUORA
Rajesh Kumar at WIZBRAND