Node Shutdown after issuing "rabbitmq-server -detached"

855 views
Skip to first unread message

Shweta Lokhande

unread,
Jan 27, 2017, 4:34:39 PM1/27/17
to rabbitmq-users
Hi Team,

I am new to RabbitMQ and want to make a cluster of 3 nodes.
I am unable to understand the reason of rabbitmq node shutdown after I ran "rabbitmq-server -detached" command.

Trying to start the node but it isn't working.

[root@vmrabbitmqt02 rabbitmq]# systemctl start rabbitmq-server.service
[root@vmrabbitmqt02 rabbitmq]# rabbitmqctl status
Error: unable to connect to node 'rab...@vmrabbitmqt02.hersheys.com': nodedown

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

attempted to contact: ['rab...@vmrabbitmqt02.hersheys.com']

  * connected to epmd (port 4369) on vmrabbitmqt02.hersheys.com
  * 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:
- home dir: /var/lib/rabbitmq
- cookie hash: E8X5sOmIM3Y+Ju6lgvSIhA==

[root@vmrabbitmqt02 rabbitmq]# hostname -s
vmrabbitmqt02



Attached excerpt from rabbit.log file 

Can you please help?

Thank you.
Regards,
Shweta 

Rabbit.log.txt

Shweta Lokhande

unread,
Jan 27, 2017, 5:11:19 PM1/27/17
to rabbitmq-users
Hi Team,

Quick update ..
I removed  RABBITMQ_SET_LONGNAME =true   from rabbitmq-env.conf file and I was able to start the node again.

But I am still facing issues in making cluster.
Getting the error as below

[root@vmrabbitmqt01 rabbitmq]# rabbitmq-server  -detached
Warning: PID file not written; -detached was passed.
ERROR: node with name "rabbit" already running on "localhost"
[root@vmrabbitmqt01 rabbitmq]#

Can you help here?

Thank you.

Regards,
Shweta 


On Saturday, 28 January 2017 03:04:39 UTC+5:30, Shweta Lokhande wrote:
Hi Team,

I am new to RabbitMQ and want to make a cluster of 3 nodes.
I am unable to understand the reason of rabbitmq node shutdown after I ran "rabbitmq-server -detached" command.

Trying to start the node but it isn't working.

[root@vmrabbitmqt02 rabbitmq]# systemctl start rabbitmq-server.service
[root@vmrabbitmqt02 rabbitmq]# rabbitmqctl status
Error: unable to connect to node 'rabbit@vmrabbitmqt02.hersheys.com': nodedown

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

attempted to contact: ['rabbit@vmrabbitmqt02.hersheys.com']

  * connected to epmd (port 4369) on vmrabbitmqt02.hersheys.com
  * 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:
- home dir: /var/lib/rabbitmq
- cookie hash: E8X5sOmIM3Y+Ju6lgvSIhA==

[root@vmrabbitmqt02 rabbitmq]# hostname -s
vmrabbitmqt02

Michael Klishin

unread,
Jan 27, 2017, 5:14:03 PM1/27/17
to rabbitm...@googlegroups.com, Shweta Lokhande
See Hostname Resolution Requirements in http://www.rabbitmq.com/clustering.html.

"node already running" means what it says on the tin. 

On 28 January 2017 at 01:11:23, Shweta Lokhande (csr1...@gmail.com) wrote:
> Hi Team,
>
> Quick update ..
> I removed RABBITMQ_SET_LONGNAME =true from rabbitmq-env.conf file and I
> was able to start the node again.
>
> But I am still facing issues in making cluster.
> Getting the error as below
>
> *[root@vmrabbitmqt01 rabbitmq]# rabbitmq-server -detached*
> *Warning: PID file not written; -detached was passed.*
> *ERROR: node with name "rabbit" already running on "localhost"*
> *[root@vmrabbitmqt01 rabbitmq]#*
>
> Can you help here?
>
> Thank you.
>
> Regards,
> Shweta
>
>
> On Saturday, 28 January 2017 03:04:39 UTC+5:30, Shweta Lokhande wrote:
> >
> > Hi Team,
> >
> > I am new to RabbitMQ and want to make a cluster of 3 nodes.
> > I am unable to understand the reason of rabbitmq node shutdown after I ran
> > "rabbitmq-server -detached" command.
> >
> > Trying to start the node but it isn't working.
> >
> > *[root@vmrabbitmqt02 rabbitmq]# systemctl start rabbitmq-server.service*
> > *[root@vmrabbitmqt02 rabbitmq]# rabbitmqctl status*
> > *Status of node 'rab...@vmrabbitmqt02.hersheys.com
> > ' ...*
> > *Error: unable to connect to node 'rab...@vmrabbitmqt02.hersheys.com
> > ': nodedown*
> >
> > *DIAGNOSTICS*
> > *===========*
> >
> > *attempted to contact: ['rab...@vmrabbitmqt02.hersheys.com
> > ']*
> >
> > *rab...@vmrabbitmqt02.hersheys.com :*
> > * * connected to epmd (port 4369) on vmrabbitmqt02.hersheys.com
> > *
> > * * 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: 'rabbitm...@vmrabbitmqt02.hersheys.com
> > '*
> > *- home dir: /var/lib/rabbitmq*
> > *- cookie hash: E8X5sOmIM3Y+Ju6lgvSIhA==*
> >
> > *[root@vmrabbitmqt02 rabbitmq]# hostname -s*
> > *vmrabbitmqt02*
> >
> >
> >
> > Attached excerpt from rabbit.log file
> >
> > Can you please help?
> >
> > Thank you.
> > Regards,
> > Shweta
> >
> >
>
> --
> 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 an email to rabbitm...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

--
MK

Staff Software Engineer, Pivotal/RabbitMQ


Shweta Lokhande

unread,
Jan 27, 2017, 5:45:09 PM1/27/17
to rabbitmq-users, csr1...@gmail.com

Hi,

Just wanted to confirm if the .erlang.cookie file  on server-1 should have same content on .erlang.cookie file on all other servers ?
Reply all
Reply to author
Forward
0 new messages