{"id":2810,"date":"2017-12-09T13:09:34","date_gmt":"2017-12-09T13:09:34","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/?p=2810"},"modified":"2021-11-18T06:26:22","modified_gmt":"2021-11-18T06:26:22","slug":"error-executing-action-run-on-resource-execute-opt-opscode-embedded-bin-chps","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/error-executing-action-run-on-resource-execute-opt-opscode-embedded-bin-chps\/","title":{"rendered":"Chef Error &#8211; Error executing action `run` on resource &#8216;execute[\/opt\/opscode\/embedded\/bin\/chps"},"content":{"rendered":"<p><strong>rajeshkumar created the topic: Error executing action `run` on resource &#8216;execute[\/opt\/opscode\/embedded\/bin\/chps<\/strong><\/p>\n<p>Error executing action `run` on resource &#8216;execute[\/opt\/opscode\/embedded\/bin\/chpst -u opscode -U opscode \/opt\/opscode\/embedded\/bin\/rabbitmqctl wait \/var\/opt\/opscode\/rabbitmq\/db\/rabbit@localhost.pid]&#8217;<\/p>\n<p>Fix 1<br>\nSo obviously RabbitMq is running, on port 5672, which can be verified through<br>\n&gt; netstat -ltnp<br>\ntcp 0 0 127.0.0.1:5672 0.0.0.0:* LISTEN 1111\/beam.smp<\/p>\n<p>Fix 2<br>\n&gt; \/etc\/init.d\/rabbitmq-server stop<\/p>\n<p>Fix 3:<br>\nCheck your \/etc\/hosts file. That is not defined well.<\/p>\n<p>Reference<br>\n<a href=\"http:\/\/discourse.chef.io\/t\/chef-server-missing-...and-pivotal-pem\/7756\" target=\"_blank\" rel=\"noopener\">discourse.chef.io\/t\/chef-server-missing-&#8230;and-pivotal-pem\/7756 <\/a><br>\n<a href=\"http:\/\/serverfault.com\/questions\/663310\/chef-se...-fails-with-rabbitmq\" target=\"_blank\" rel=\"noopener\">serverfault.com\/questions\/663310\/chef-se&#8230;-fails-with-rabbitmq <\/a><br>\n<a href=\"http:\/\/discourse.chef.io\/t\/chef-12-server-dead-...nfigure-bombs\/7435\/7\" target=\"_blank\" rel=\"noopener\">discourse.chef.io\/t\/chef-12-server-dead-&#8230;nfigure-bombs\/7435\/7<\/a><\/p>\n<p>Regards,<br>\nRajesh Kumar<br>\nTwitt me @ <a href=\"http:\/\/twitter.com\/RajeshKumarIn\" target=\"_blank\" rel=\"noopener\">twitter.com\/RajeshKumarIn<\/a><\/p>\n\n<div class=\"epyt-gallery\" data-currpage=\"1\" id=\"epyt_gallery_96596\"><figure class=\"wp-block-embed wp-block-embed-youtube is-type-video is-provider-youtube epyt-figure\"><div class=\"wp-block-embed__wrapper\"><iframe loading=\"lazy\"  id=\"_ytid_93857\"  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_96596\"  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><\/figure><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 executing action `run` on resource &#8216;execute[\/opt\/opscode\/embedded\/bin\/chps Error executing action `run` on resource &#8216;execute[\/opt\/opscode\/embedded\/bin\/chpst -u opscode -U opscode \/opt\/opscode\/embedded\/bin\/rabbitmqctl wait \/var\/opt\/opscode\/rabbitmq\/db\/rabbit@localhost.pid]&#8217; Fix 1 So obviously RabbitMq is running, on port 5672, which can be verified through &gt; netstat -ltnp tcp 0 0 127.0.0.1:5672 0.0.0.0:* LISTEN 1111\/beam.smp Fix 2 &gt; \/etc\/init.d\/rabbitmq-server stop&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","_joinchat":[],"footnotes":""},"categories":[2],"tags":[258],"class_list":["post-2810","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\/2810","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=2810"}],"version-history":[{"count":3,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2810\/revisions"}],"predecessor-version":[{"id":25675,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2810\/revisions\/25675"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=2810"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=2810"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=2810"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}