Reputation: 2618
I am trying to set up a HA rabbit mq cluster and I am following the instruction in https://www.rabbitmq.com/clustering.html
The first rabbit mq server is fine, whereas in the second and third rabbitmq servers I am getting the below error,
Kernel pid terminated (application_controller) ({application_start_failure,kernel,{{shutdown,{failed_to_start_child,net_sup,{shutdown,{failed_to_start_child,auth,{"Cookie file /var/lib/rabbitmq/.erl
I have double check /var/lib/rabbitmq/.erlang.cookie
on all three servers have the same value. Stuck with this error, any help on this is appreciated
Upvotes: 2
Views: 7144
Reputation: 171
Maybe it is too late but I run into this same issue. Here how I solved it:
rabbitmqctl status
(as root or use sudo). It gave me some error messages. One of them was: {error_logger,{{2016,9,20},{12,4,22}},"Cookie file /var/lib/rabbitmq/.erlang.cookie must be accessible by owner only",[]}
ls -l /var/lib/rabbitmq/.erlang.cookie
. It returns to me this: -rwxrwxrwx 1 rabbitmq rabbitmq 20 Set 25 2014 /var/lib/rabbitmq/.erlang.cookie
chmod 600 /var/lib/rabbitmq/.erlang.cookie
I think other users may have to change the ownership too. It was not my case tough.
Upvotes: 3