RabbitMQ Cluster Status

187 views
Skip to first unread message

Ashutosh R

unread,
Mar 1, 2016, 5:21:58 PM3/1/16
to rabbitmq-users
Hi,

I am trying to setup cluster for RabbitMQ. RabbitMQ is up and running. I can use management plugin to browse Management portal. But when I try to run

rabbitmqctl cluster_status

I got the following error. How can I fix this?

Cluster status of node 'rabbit@hostname' ...
Error: unable to connect to node 'rabbit@hostname': nodedown

DIAGNOSTICS
===========

attempted to contact: ['rabbit@hostname']

rabbit@hostname:
  * connected to epmd (port 4369) on hostname
  * epmd reports node 'rabbit' running on port 25672
  * TCP connection succeeded but Erlang distribution failed
  * suggestion: hostname mismatch?
  * suggestion: is the cookie set correctly?
  * suggestion: is the Erlang distribution using TLS?

current node details:
- node name: nonode@nohost
- home dir: /home/username
- cookie hash: 92vmrYD/iLl+OKWxh4sJhQ==

Thanks

Michael Klishin

unread,
Mar 1, 2016, 5:25:04 PM3/1/16
to rabbitm...@googlegroups.com, Ashutosh R
 On 2 March 2016 at 01:22:01, Ashutosh R (rava...@gmail.com) wrote:
> * epmd reports node 'rabbit' running on port 25672
> * TCP connection succeeded but Erlang distribution failed
> * suggestion: hostname mismatch?
> * suggestion: is the cookie set correctly?
> * suggestion: is the Erlang distribution using TLS?

The above lines provide a clue and some suggestions.

`rabbitmqctl` cannot authenticate to the node. See the section on the Erlang
cookie on http://www.rabbitmq.com/clustering.html. This is one of the most
frequently asked questions on this list, too.
--
MK

Staff Software Engineer, Pivotal/RabbitMQ


Ashutosh R

unread,
Mar 1, 2016, 5:34:53 PM3/1/16
to rabbitmq-users, rava...@gmail.com
Hi Michael,

I have cookies in two places. One in /var/lib/rabbitmq/.erlang.cookie and other in /home/username/.erlang.cookie.

I have already made both cookie value same. 

When I try to get the status of rabbitmq using the following command, it gives me that error

sudo ./rabbitmqctl status

But the following command works

sudo /sbin/service rabbitmq-server status

Is it something incorrect?

Michael Klishin

unread,
Mar 1, 2016, 5:36:35 PM3/1/16
to rabbitm...@googlegroups.com, Ashutosh R
On 2 March 2016 at 01:34:56, Ashutosh R (rava...@gmail.com) wrote:
> sudo ./rabbitmqctl status

you use sudo, therefore $HOME is quite possibly  neither /var/lib/rabbitmq ($HOME of user rabbitmq)
nor /home/username ($HOME of username).

Ashutosh R

unread,
Mar 1, 2016, 5:39:38 PM3/1/16
to rabbitmq-users, rava...@gmail.com
I did not get that part. Do I need to set $HOME? I do not have root access so have to use sudo.

Shweta Lokhande

unread,
Mar 18, 2017, 3:04:43 AM3/18/17
to rabbitmq-users, rava...@gmail.com
Hi Ashutosh ,

Did you manage to get  a resolution of this issue ?

Can you please share it ?

Michael Klishin

unread,
Mar 18, 2017, 3:30:07 AM3/18/17
to rabbitm...@googlegroups.com, rava...@gmail.com
There are clues and a doc link right in this thread.
Please put in some effort of your own.

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Staff Software Engineer, Pivotal/RabbitMQ
Reply all
Reply to author
Forward
0 new messages