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 Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms.
I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.
Find Trusted Cardiac Hospitals
Compare heart hospitals by city and services — all in one place.
Explore Hospitals