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.
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.