{"id":2800,"date":"2017-12-09T13:01:02","date_gmt":"2017-12-09T13:01:02","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/?p=2800"},"modified":"2021-02-27T09:15:38","modified_gmt":"2021-02-27T09:15:38","slug":"getting-error-while-executing-che-recipe","status":"publish","type":"post","link":"https:\/\/www.scmgalaxy.com\/tutorials\/getting-error-while-executing-che-recipe\/","title":{"rendered":"Getting Error while executing Che recipe"},"content":{"rendered":"<p><strong>rajbazar created the topic: Getting Error while executing Che recipe<\/strong><\/p>\n<p>Hi! Rajesh !<br \/>\nInstalled Chef successfully on my Mac.<br \/>\n=================<\/p>\n<pre class=\"brush: css; title: ; notranslate\" title=\"\">\r\nRajs-MacBook-Pro:~ Raj$ which chef\r\n\/usr\/local\/bin\/chef\r\nRajs-MacBook-Pro:~ Raj$ chef -v\r\nChef Development Kit Version: 2.0.28\r\nchef-client version: 13.2.20\r\ndelivery version: master (17c1b0fed9be4c70f69091a6d21a4cbf0df60a23)\r\nberks version: 6.2.0\r\nkitchen version: 1.16.0\r\ninspec version: 1.31.1\r\n<\/pre>\n<p>====================<br \/>\nMy Issue I&#8217;am not able to execute first and initial recipe .<\/p>\n<pre class=\"brush: css; title: ; notranslate\" title=\"\">\r\nIssue:\r\nRaj$ vi server.rb\r\nRajs-MacBook-Pro:~ Raj$ chef-apply server.rb\r\nRecipe: (chef-apply cookbook)::(chef-apply recipe)\r\n* homebrew_package&#x5B;httpd] action install\r\n<\/pre>\n<p>================================================================================<br \/>\nError executing action `install` on resource &#8216;homebrew_package[httpd]&#8217;<br \/>\n================================================================================<\/p>\n<pre class=\"brush: css; title: ; notranslate\" title=\"\">\r\nMixlib::ShellOut::ShellCommandFailed\r\nExpected process to exit with &#x5B;0], but received '1'\r\n---- Begin output of &#x5B;&quot;brew&quot;, &quot;info&quot;, &quot;--json=v1&quot;, &quot;httpd&quot;] ----\r\nSTDOUT:\r\nSTDERR: Error: No available formula with the name &quot;httpd&quot;\r\n---- End output of &#x5B;&quot;brew&quot;, &quot;info&quot;, &quot;--json=v1&quot;, &quot;httpd&quot;] ----\r\nRan &#x5B;&quot;brew&quot;, &quot;info&quot;, &quot;--json=v1&quot;, &quot;httpd&quot;] returned 1\r\n<\/pre>\n<p>Resource Declaration:<\/p>\n<pre class=\"brush: css; title: ; notranslate\" title=\"\">\r\n# In server.rb\r\n\r\n1: package 'httpd'\r\n2: service 'httpd' do\r\n<\/pre>\n<p>Compiled Resource:<\/p>\n<pre class=\"brush: css; title: ; notranslate\" title=\"\">\r\n# Declared in server.rb:1:in `run_chef_recipe'\r\n\r\nhomebrew_package(&quot;httpd&quot;) do\r\npackage_name &quot;httpd&quot;\r\naction &#x5B;:install]\r\ndefault_guard_interpreter :default\r\ndeclared_type :package\r\ncookbook_name &quot;(chef-apply cookbook)&quot;\r\nrecipe_name &quot;(chef-apply recipe)&quot;\r\nend\r\n<\/pre>\n<p>System Info:<\/p>\n<pre class=\"brush: css; title: ; notranslate\" title=\"\">\r\nchef_version=13.2.20\r\nplatform=mac_os_x\r\nplatform_version=10.12.6\r\nruby=ruby 2.4.1p111 (2017-03-22 revision 58053) &#x5B;x86_64-darwin14]\r\nprogram_name=\/usr\/local\/bin\/chef-apply\r\nexecutable=\/opt\/chefdk\/bin\/chef-apply\r\n\r\n&#x5B;2017-07-24T10:46:03+01:00] FATAL: Stacktrace dumped to \/Users\/Raj\/.chef\/cache\/chef-stacktrace.out\r\n&#x5B;2017-07-24T10:46:03+01:00] FATAL: Stacktrace dumped to \/Users\/Raj\/.chef\/cache\/chef-stacktrace.out\r\n&#x5B;2017-07-24T10:46:03+01:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report\r\n&#x5B;2017-07-24T10:46:03+01:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report\r\n&#x5B;2017-07-24T10:46:03+01:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: homebrew_package&#x5B;httpd] ((chef-apply cookbook)::(chef-apply recipe) line 1) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with &#x5B;0], but received '1'\r\n---- Begin output of &#x5B;&quot;brew&quot;, &quot;info&quot;, &quot;--json=v1&quot;, &quot;httpd&quot;] ----\r\nSTDOUT:\r\nSTDERR: Error: No available formula with the name &quot;httpd&quot;\r\n---- End output of &#x5B;&quot;brew&quot;, &quot;info&quot;, &quot;--json=v1&quot;, &quot;httpd&quot;] ----\r\nRan &#x5B;&quot;brew&quot;, &quot;info&quot;, &quot;--json=v1&quot;, &quot;httpd&quot;] returned 1\r\n&#x5B;2017-07-24T10:46:03+01:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: homebrew_package&#x5B;httpd] ((chef-apply cookbook)::(chef-apply recipe) line 1) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with &#x5B;0], but received '1'\r\n---- Begin output of &#x5B;&quot;brew&quot;, &quot;info&quot;, &quot;--json=v1&quot;, &quot;httpd&quot;] ----\r\nSTDOUT:\r\nSTDERR: Error: No available formula with the name &quot;httpd&quot;\r\n---- End output of &#x5B;&quot;brew&quot;, &quot;info&quot;, &quot;--json=v1&quot;, &quot;httpd&quot;] ----\r\n<\/pre>\n<p><strong>rajeshkumar replied the topic: Getting Error while executing Che recipe<\/strong><\/p>\n<p>I guess you are running this script in Mac<\/p>\n<p>&#8220;Error executing action `install` on resource &#8216;homebrew_package[httpd]'&#8221;<\/p>\n<p>Check the name of apache http package name in Mac. I guess its &#8220;httpd24&#8221; but need to verify first.<br \/>\nRegards,<br \/>\nRajesh Kumar<br \/>\nTwitt me @ <a href=\"http:\/\/twitter.com\/RajeshKumarIn\">twitter.com\/RajeshKumarIn<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>rajbazar created the topic: Getting Error while executing Che recipe Hi! Rajesh ! Installed Chef successfully on my Mac. ================= [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[574],"tags":[258],"class_list":["post-2800","post","type-post","status-publish","format-standard","hentry","category-ssue-bug-tracking-system","tag-error"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Getting Error while executing Che recipe - scmGalaxy<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.scmgalaxy.com\/tutorials\/getting-error-while-executing-che-recipe\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Getting Error while executing Che recipe - scmGalaxy\" \/>\n<meta property=\"og:description\" content=\"rajbazar created the topic: Getting Error while executing Che recipe Hi! Rajesh ! Installed Chef successfully on my Mac. ================= [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.scmgalaxy.com\/tutorials\/getting-error-while-executing-che-recipe\/\" \/>\n<meta property=\"og:site_name\" content=\"scmGalaxy\" \/>\n<meta property=\"article:published_time\" content=\"2017-12-09T13:01:02+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-02-27T09:15:38+00:00\" \/>\n<meta name=\"author\" content=\"scmgalaxy K\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"scmgalaxy K\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/getting-error-while-executing-che-recipe\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/getting-error-while-executing-che-recipe\\\/\"},\"author\":{\"name\":\"scmgalaxy K\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/fc12ad190f540e79460243c81148d102\"},\"headline\":\"Getting Error while executing Che recipe\",\"datePublished\":\"2017-12-09T13:01:02+00:00\",\"dateModified\":\"2021-02-27T09:15:38+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/getting-error-while-executing-che-recipe\\\/\"},\"wordCount\":569,\"commentCount\":0,\"keywords\":[\"error\"],\"articleSection\":[\"ssue-Bug Tracking System\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/getting-error-while-executing-che-recipe\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/getting-error-while-executing-che-recipe\\\/\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/getting-error-while-executing-che-recipe\\\/\",\"name\":\"Getting Error while executing Che recipe - scmGalaxy\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\"},\"datePublished\":\"2017-12-09T13:01:02+00:00\",\"dateModified\":\"2021-02-27T09:15:38+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/fc12ad190f540e79460243c81148d102\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/getting-error-while-executing-che-recipe\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/getting-error-while-executing-che-recipe\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/getting-error-while-executing-che-recipe\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Getting Error while executing Che recipe\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\",\"name\":\"scmGalaxy\",\"description\":\"A Platform for Software Engineers\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/fc12ad190f540e79460243c81148d102\",\"name\":\"scmgalaxy K\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g\",\"caption\":\"scmgalaxy K\"},\"sameAs\":[\"http:\\\/\\\/www.DevOpsSchool.com\"],\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/author\\\/scmgalaxy\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Getting Error while executing Che recipe - scmGalaxy","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.scmgalaxy.com\/tutorials\/getting-error-while-executing-che-recipe\/","og_locale":"en_US","og_type":"article","og_title":"Getting Error while executing Che recipe - scmGalaxy","og_description":"rajbazar created the topic: Getting Error while executing Che recipe Hi! Rajesh ! Installed Chef successfully on my Mac. ================= [&hellip;]","og_url":"https:\/\/www.scmgalaxy.com\/tutorials\/getting-error-while-executing-che-recipe\/","og_site_name":"scmGalaxy","article_published_time":"2017-12-09T13:01:02+00:00","article_modified_time":"2021-02-27T09:15:38+00:00","author":"scmgalaxy K","twitter_card":"summary_large_image","twitter_misc":{"Written by":"scmgalaxy K","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/getting-error-while-executing-che-recipe\/#article","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/getting-error-while-executing-che-recipe\/"},"author":{"name":"scmgalaxy K","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/fc12ad190f540e79460243c81148d102"},"headline":"Getting Error while executing Che recipe","datePublished":"2017-12-09T13:01:02+00:00","dateModified":"2021-02-27T09:15:38+00:00","mainEntityOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/getting-error-while-executing-che-recipe\/"},"wordCount":569,"commentCount":0,"keywords":["error"],"articleSection":["ssue-Bug Tracking System"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.scmgalaxy.com\/tutorials\/getting-error-while-executing-che-recipe\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/getting-error-while-executing-che-recipe\/","url":"https:\/\/www.scmgalaxy.com\/tutorials\/getting-error-while-executing-che-recipe\/","name":"Getting Error while executing Che recipe - scmGalaxy","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website"},"datePublished":"2017-12-09T13:01:02+00:00","dateModified":"2021-02-27T09:15:38+00:00","author":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/fc12ad190f540e79460243c81148d102"},"breadcrumb":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/getting-error-while-executing-che-recipe\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.scmgalaxy.com\/tutorials\/getting-error-while-executing-che-recipe\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/getting-error-while-executing-che-recipe\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.scmgalaxy.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"Getting Error while executing Che recipe"}]},{"@type":"WebSite","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website","url":"https:\/\/www.scmgalaxy.com\/tutorials\/","name":"scmGalaxy","description":"A Platform for Software Engineers","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.scmgalaxy.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/fc12ad190f540e79460243c81148d102","name":"scmgalaxy K","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g","caption":"scmgalaxy K"},"sameAs":["http:\/\/www.DevOpsSchool.com"],"url":"https:\/\/www.scmgalaxy.com\/tutorials\/author\/scmgalaxy\/"}]}},"_links":{"self":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/2800","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/comments?post=2800"}],"version-history":[{"count":1,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/2800\/revisions"}],"predecessor-version":[{"id":2801,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/2800\/revisions\/2801"}],"wp:attachment":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/media?parent=2800"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/categories?post=2800"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/tags?post=2800"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}