[rabbitmq-discuss] Clustering issue: Error: unable to connect to node rabbit at CNTD3BWEB87O: nodedown

Wood, Eric (LNG-RDU) eric.wood at lexisnexis.com
Wed Jul 11 17:55:08 BST 2012


Here was the issue that I had ...
When I installed Rabbit MQ on my windows server, it created a .erland.cookie file in both:
   1) c:\Windows
   2) c:\users\<adminUser>

I installed the software under the user <adminUser>, but the service that it created was running under a system account and creating a cookie file under the c:\windows folder.  I changed the service to run under the <adminUser> account and then copied the .erlang.cokkie file to the c:\users\<adminuser> folder on all servers abnd was able to successfully cluster my nodes.



-----Original Message-----
From: Emile Joubert [mailto:emile at rabbitmq.com] 
Sent: Wednesday, July 11, 2012 5:47 AM
To: Wood, Eric (LNG-RDU)
Cc: Discussions about RabbitMQ
Subject: Re: [rabbitmq-discuss] Clustering issue: Error: unable to connect to node rabbit at CNTD3BWEB87O: nodedown

Hi,

On 10/07/12 17:33, Wood, Eric (LNG-RDU) wrote:
> Help.

Your earlier emails had
- cookie hash: VWZk1leRufUBRYr1dwMuJg==
but more recently you report
- cookie hash: 0xT5raNnyX73mPb3lJZWuQ==

If the cookie hash reported by rabbitmqctl differs from the hash that appears in the startup banner then you will be unable to manage that node. The startup banner contains an ASCII-art rabbit, platform version numbers and some diagnostic information, such as the location of the active config file, logfiles, etc. Amongst this diagnostic information is the cookie hash. Compare this with the information reported by rabbitmqctl - you will probably find they are different, which means the cookie file was not copied over correctly. Make sure you follow the instructions about Erlang cookies on this page:
http://www.rabbitmq.com/install-windows-manual.html

> I have tried this on several servers and get the same results.  What 
> steps are required to execute when I copy the cookie file from one 
> server to the next?  I copy it after both installations have been 
> completed and both nodes are up and running as "detached" nodes.

You will need to restart the nodes after copying the cookie files. Their contents is only read at startup, so modifications will not affect a running broker.

You might be copying the cookie file to the wrong location. If you are running the broker as a non-system user then the file should be copied to %HOMEDRIVE%\%HOMEPATH%, or what the Windows API call
GetWindowsDirectory() would return. If running the broker as a service, as a system user then use %windir% (typically C:\WINDOWS).



-Emile




More information about the rabbitmq-discuss mailing list