{"id":2830,"date":"2017-12-09T13:39:04","date_gmt":"2017-12-09T13:39:04","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/?p=2830"},"modified":"2021-11-18T06:21:11","modified_gmt":"2021-11-18T06:21:11","slug":"error-could-not-find-cookbook-cookbooks_test-in-your-cookbook-path-sk","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/error-could-not-find-cookbook-cookbooks_test-in-your-cookbook-path-sk\/","title":{"rendered":"Chef Error: Could not find cookbook cookbooks_test in your cookbook path, sk"},"content":{"rendered":"<p><strong>rajeshkumar created the topic: ERROR: Could not find cookbook cookbooks_test in your cookbook path, sk<\/strong><\/p>\n<p>Error while uploading the cookbooks&#8230;.<br>\n[code language=&#8221;css&#8221;]<br>\n&gt; knife cookbook upload cookbooks_test<br>\nERROR: Could not find cookbook cookbooks_test in your cookbook path, skipping it<br>\nERROR: Failed to upload 1 cookbook.<br>\n[\/code]<\/p>\n<p>Solution:<\/p>\n<p>You can pass path of the cookbooks via commend line using&#8230;<br>\n[code language=&#8221;css&#8221;]<br>\nknife cookbook upload cookbooks_test -o \/path\/to\/cookbook<br>\n[\/code]<\/p>\n<p>Also, you can set the path in .chef\/knife.rb. If .chef\/knife.rb is missing, you can following commands&#8230;<br>\n[code language=&#8221;css&#8221;]<br>\nknife configure &#8211;initial<br>\n[\/code]<\/p>\n<p>But if you install the startter kit from manage.chef.io, you just need to replace all the files including .knife.rb<\/p>\n<p>if you cookbooks files many places then you can set your .knife.rb like as below;<br>\n[code language=&#8221;css&#8221;]<br>\ncookbook_path [ &#8216;.&#8217;, &#8216;..&#8217;, &#8216;.\/cookbooks&#8217;, &#8216;~\/git\/chef&#8217; ]<br>\n[\/code]<\/p>\n<p>If you are still getting this error, make sure the metadata.rb has same name which you using to upload the cookbooks.<br>\nRegards,<br>\nRajesh Kumar<br>\nTwitt me @ twitter.com\/RajeshKumarIn<\/p>\n\n<div class=\"epyt-gallery\" data-currpage=\"1\" id=\"epyt_gallery_19411\"><iframe loading=\"lazy\"  id=\"_ytid_99729\"  width=\"760\" height=\"427\"  data-origwidth=\"760\" data-origheight=\"427\" src=\"https:\/\/www.youtube.com\/embed\/?enablejsapi=1&#038;autoplay=0&#038;cc_load_policy=0&#038;cc_lang_pref=&#038;iv_load_policy=1&#038;loop=0&#038;rel=1&#038;fs=1&#038;playsinline=0&#038;autohide=2&#038;theme=dark&#038;color=red&#038;controls=1&#038;disablekb=0&#038;\" class=\"__youtube_prefs__  no-lazyload\" title=\"YouTube player\"  data-epytgalleryid=\"epyt_gallery_19411\"  allow=\"fullscreen; accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen data-no-lazy=\"1\" data-skipgform_ajax_framebjll=\"\"><\/iframe><div class=\"epyt-gallery-list\"><div>Sorry, there was a YouTube error.<\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>rajeshkumar created the topic: ERROR: Could not find cookbook cookbooks_test in your cookbook path, sk Error while uploading the cookbooks&#8230;. [code language=&#8221;css&#8221;] &gt; knife cookbook upload cookbooks_test ERROR: Could not&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[2],"tags":[258],"class_list":["post-2830","post","type-post","status-publish","format-standard","hentry","category-uncategorised","tag-error"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2830","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=2830"}],"version-history":[{"count":3,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2830\/revisions"}],"predecessor-version":[{"id":25669,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2830\/revisions\/25669"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=2830"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=2830"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=2830"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}