{"id":1269,"date":"2016-06-22T14:31:41","date_gmt":"2016-06-22T14:31:41","guid":{"rendered":"http:\/\/www.incredigeek.com\/home\/?p=1269"},"modified":"2016-06-22T14:37:40","modified_gmt":"2016-06-22T14:37:40","slug":"zenoss-5-rabbitmq-not-starting","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/zenoss-5-rabbitmq-not-starting\/","title":{"rendered":"Zenoss 5 RabbitMQ not starting"},"content":{"rendered":"<p>The following is some commands to try and troubleshoot RabbitMQ not starting in Zenoss 5.<\/p>\n<p><strong>Connecting to the RabbitMQ container<\/strong><\/p>\n<pre>serviced service attach $(serviced service list | grep -i rabbitmq | awk '{print $2}')<\/pre>\n<p><strong>Check the service<\/strong><\/p>\n<p>You can check the RabbitMQ service by running &#8220;rabbitmqctl status&#8221;<\/p>\n<pre>[root@764399e5hhba \/]# rabbitmqctl status\r\nStatus of node rabbit@rbt0 ...\r\nError: unable to connect to node rabbit@rbt0: nodedown\r\n\r\nDIAGNOSTICS\r\n===========\r\n\r\nattempted to contact: [rabbit@rbt0]\r\n\r\nrabbit@rbt0:\r\n\u00a0 * unable to connect to epmd (port 4369) on rbt0: nxdomain (non-existing domain)\r\n\r\n\r\ncurrent node details:\r\n- node name: rabbitmqct22222@764399e5hhba\r\n- home dir: \/var\/lib\/rabbitmq\r\n- cookie hash: yy3+awwOpeaaaa12wdf42ff==\r\n\r\n[root@764399e5hhba \/]# \r\n<\/pre>\n<p>As you can see the node is down so RabbitMQ is not able to start.<\/p>\n<p>Try to ping rbt0 (RabbitMQ connects to rbt0 so if it can&#8217;t resolve, then it can&#8217;t start)<\/p>\n<pre>ping rbt0<\/pre>\n<p>If you get a &#8220;ping: unknown host rbt0&#8221; then add the following to \/etc\/hosts.\u00a0 Change the IP address to the IP address of the container.\u00a0 You can run &#8220;ip addr&#8221; or ifconfig to get the IP.<\/p>\n<pre>172.20.0.11\u00a0 rbt0<\/pre>\n<p>Or if your interface is eth0, you can run this command.<\/p>\n<pre>echo \"$(ifconfig eth0 | grep \"inet \" | awk '{print $2}')\u00a0 rbt0\"\u00a0 &gt;&gt; \/etc\/hosts<\/pre>\n<p>Then run &#8220;rabbitmqctl status&#8221; again.\u00a0 The service auto starts, so it may take a minute, but you should see something similar to the following. (Not that I cut some of the text out.)<\/p>\n<pre>[root@764399e5hhba \/]# rabbitmqctl status\r\n Status of node rabbit@rbt0 ...\r\n [{pid,4629},\r\n {running_applications,\r\n ... CUT TEXT ...\r\n {uptime,5}]\r\n ...done.\r\n [root@764399e5hhba \/]#<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>Checking vhost<\/strong><\/p>\n<p>List the RabbitMQ vhosts with &#8220;rabbitmqcl list_vhosts&#8221;<\/p>\n<pre>[root@764399e5hhba \/]# rabbitmqctl list_vhosts\r\n Listing vhosts ...\r\n \/\r\n \/zenoss\r\n ...done.<\/pre>\n<p>If you run rabbitmqctl list_vhosts and don&#8217;t see \/zenoss, then add it<\/p>\n<pre>rabbitmqctl add_vhost \/zenoss\r\nrabbitmqctl set_permissions -p \/zenoss zenoss '.*' '.*' '.*'<\/pre>\n<p>If the vhost is up then you can try deleting the zenoss vhosts and readding it.<\/p>\n<pre>[root@764399e5hhba \/]#\r\nrabbitmqctl delete_vhost \/zenoss\r\nrabbitmqctl add_vhost \/zenoss\r\nrabbitmqctl set_permissions -p \/zenoss zenoss '.*' '.*' '.*'<\/pre>\n<p>The only downside to theses changes is that once the service gets restarted the changes you made inside the container will be lost, There should be a way to update the container so that the changes are persistent.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The following is some commands to try and troubleshoot RabbitMQ not starting in Zenoss 5. Connecting to the RabbitMQ container serviced service attach $(serviced service list | grep -i rabbitmq | awk &#8216;{print $2}&#8217;) Check the service You can check &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/zenoss-5-rabbitmq-not-starting\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,4,3,198],"tags":[246,286,199,228],"class_list":["post-1269","post","type-post","status-publish","format-standard","hentry","category-centos-linux","category-command-line","category-linux","category-zenoss","tag-docker","tag-rabbitmq","tag-zenoss-2","tag-zenoss-5"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/1269","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/comments?post=1269"}],"version-history":[{"count":13,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/1269\/revisions"}],"predecessor-version":[{"id":1290,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/1269\/revisions\/1290"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=1269"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=1269"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=1269"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}