Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RabbitMQ, Erlang: How to "make sure the erlang cookies are the same"

I am using RabbitMQ with Grails, and a problem cropped up this morning. When I run rabbitmqctl status it tells me:

C:\Users\BuildnTest2>rabbitmqctl status Status of node 'rabbit@BUILDNTEST2-PC' ... Error: unable to connect to node 'rabbit@BUILDNTEST2-PC': nodedown diagnostics: - nodes and their ports on BUILDNTEST2-PC: [{rabbit,49164},                                         {rabbitmqctl27693,49286}] - current node: 'rabbitmqctl27693@BuildnTest2-PC' - current node home dir: C:\Users\BuildnTest2 - current node cookie hash: cSYB8tsT4mGGZHSUGQi08w== 

When I go to the Rabbit troubleshooting page they say:

then you should make sure the Erlang cookies are the same. 

What does this mean and how is it accomplished?

Googling found this forum thread which claims to have instructions to solving this problem, but alas it just redirects back to the rabbit site where there is no answer.

like image 414
Mikey Avatar asked Mar 12 '12 19:03

Mikey


People also ask

Why Erlang is used for RabbitMQ?

It is implemented in Erlang OTP, a technology tailored for building stabe, reliable, fault tolerant and highly scalable systems which possess native capabilities of handling very large numbers of concurrent operations, such as is the case with RabbitMQ and other systems like WhatsApp, MongooseIM, to mention a few.

What is Erlang RabbitMQ?

Written in Erlang, the RabbitMQ server is built on the Open Telecom Platform framework for clustering and failover. Client libraries to interface with the broker are available for all major programming languages. The source code is released under the Mozilla Public License.


1 Answers

In my case, for some reason the cookie (.erlang.cookie) stored under C:\Windows\ was different from the one I had stored under my home (%HOMEDRIVE% %HOMEPATH%, which was C:\ for me).

Once I copied the cookie from C:\Windows into my my home folder everything started working.

like image 137
Stefano Ricciardi Avatar answered Sep 23 '22 08:09

Stefano Ricciardi