TL;DR Replace your init script with this one. It uses sudo to change to the RabbitMQ user before starting, stopping, and checking the status. Here's a link that corroborates what I found: http://www.mentby.com/Group/rabbitmq-discuss/issues-on-rhel-62-with-rabbitmq-282.html We're doing an upgrade of RabbitMQ here at Weebly. Moving from a CentOS 5 single node to CentOS 6 with DRBD and Pacemaker. Going from RabbitMQ 2.old-and-busted to 2.8.new-hotness. How hard could it be? Well a few things.
Here's an example of output you'll get with the bad (stock) RabbitMQ init script: root@rabbit1-a:~# rabbitmq rabbitmqctl status Status of node rabbit@localhost ... Error: unable to connect to node rabbit@localhost: nodedown DIAGNOSTICS =========== nodes in question: [rabbit@localhost] hosts, their running nodes and ports: - localhost: [{rabbitmqctl8732,17442}] current node details: - node name: 'rabbitmqctl8732@rabbit1-a' - home dir: /var/lib/rabbitmq - cookie hash: somethingsomething root@rabbit1-a:~# echo $? 0 See that exit code of 0? It should be 2. If you do the same thing with sudo -u rabbitmq, it will show an exit code of 2 (which is what you need). That's how I fixed the init script.
Cristian
11/12/2012 05:34:49 pm
Hi,
Cristian
11/13/2012 04:38:54 pm
We have tested sssd version 1.9.2 ( from here - http://repos.fedorapeople.org/repos/jhrozek/sssd/epel-6/x86_64/ ) which doesn't have this issue any more. So it seems they have fixed it at some point. Hoping RedHat release an official update for us to use soon.
Soichi Hayashi
11/13/2012 05:19:35 am
Hi. Thank you for posting the modified init script. I was having problem starting rabbitmq on RHEL6 and now I can thanks to your script. Have you reported this issue to RabbitMQ maintainer?
Doug
11/17/2012 10:55:32 am
Worked for me, thanks!
Tommy
12/18/2012 05:14:28 pm
I have a trouble...
Tommy
1/8/2013 09:42:09 am
I resolved my problem. I read a documentation of rabbotmq and found that there are thresholds configured for memory and disk space. The problem was too small /var partition. Resized it and it work good. Comments are closed.
|
AuthorA NOLA native just trying to get by. I live in San Francisco and work as a digital plumber for the joint that runs this thing. (Square/Weebly) Thoughts are mine, not my company's. Archives
May 2021
Categories
All
|