[rabbitmq-discuss] rabbitmq nodedown error

Tim Watson tim at rabbitmq.com
Thu Dec 20 10:20:53 GMT 2012


Guys,

The erlang.cookie needs to be getting picked up from the same place, so if the account that runs rabbitmqctl is picking up the cookie from a different file (or not at all) then the rabbitmqctl node won't be able to connect to the other node (on which the broker is running).

The cookie is often located in /var/lib/rabbitmq/.erlang.cookie on unix based installs, though that may differ if you've installed via macports which I can see Terry has. Terry I'd suggest looking for the .erlang.cookie file beneath /opt/local - if you look at the broker logs I'm pretty sure you'll see that the home directory is not /Users/terry and erlang will look in $HOME/.erlang.cookie so if you figure out where macports has put this and copy it to your home directory, you should be ok.

Same should go for you pi, though obviously minus the /opt/local prefix.

Cheers,
Tim  

On 20 Dec 2012, at 01:48, Terry Weymouth wrote:

> pi, did you ever get an answer?
> 
> I am having the same problem. Furthermore, I tried to forcibly kill the process (with and without -9), but it keeps coming back.
> Here is what i see:
> 
> terry% sudo cat .erlang.cookie 
> MBFIPNFMCWGYGTVEVPLE
> 
> terry% sudo -u rabbitmq rabbitmqctl stop
> Stopping and halting node rabbit at terry ...
> Error: unable to connect to node rabbit at terry: nodedown
> 
> DIAGNOSTICS
> ===========
> 
> nodes in question: [rabbit at terry]
> 
> hosts, their running nodes and ports:
> - terry: [{rabbit,54387},{rabbitmqctl55720,54434}]
> 
> current node details:
> - node name: rabbitmqctl55720 at terry
> - home dir: /Users/terry
> - cookie hash: qLCaC9zyMZQKKUfgYXz/AA==
> 
> terry% ps aux | grep rabbit
> rabbitmq 55331   0.1  1.0  2500740  40544   ??  S     8:19PM   0:06.25 /opt/local/lib/erlang/erts-5.9/bin/beam.smp -W w -K true -A30 -P 1048576 -- -root /opt/local/lib/erlang -progname erl -- -home /opt/local/var/lib/rabbitmq -- -noshell -noinput -sname rabbit at terry -boot /opt/local/var/lib/rabbitmq/mnesia/rabbit at terry-plugins-expand/rabbit -kernel inet_default_connect_options [{nodelay,true}] -sasl errlog_type error -sasl sasl_error_logger false -rabbit error_logger {file,"/opt/local/var/log/rabbitmq/rabbit at terry.log"} -rabbit sasl_error_logger {file,"/opt/local/var/log/rabbitmq/rabbit at terry-sasl.log"} -os_mon start_cpu_sup false -os_mon start_disksup false -os_mon start_memsup false -mnesia dir "/opt/local/var/lib/rabbitmq/mnesia/rabbit at terry"
> rabbitmq 55374   0.0  0.0  2434996    276   ??  S     8:20PM   0:00.00 inet_gethost 4
> rabbitmq 55373   0.0  0.0  2434992    788   ??  Ss    8:20PM   0:00.01 inet_gethost 4
> rabbitmq 55325   0.0  0.0  2435544    684   ??  S     8:19PM   0:00.00 /bin/sh /opt/local/sbin/rabbitmq-server
> rabbitmq 55322   0.0  0.0  2448144   1120   ??  Ss    8:19PM   0:00.01 /opt/local/bin/daemondo --label=rabbitmq-server --start-cmd /opt/local/etc/LaunchDaemons/org.macports.rabbitmq-server/rabbitmq-server.wrapper start ; --stop-cmd /opt/local/etc/LaunchDaemons/org.macports.rabbitmq-server/rabbitmq-server.wrapper stop ; --restart-cmd /opt/local/etc/LaunchDaemons/org.macports.rabbitmq-server/rabbitmq-server.wrapper restart ; --pid=none
> rabbitmq 55192   0.0  0.0  2434996    256   ??  S     8:13PM   0:00.02 /opt/local/lib/erlang/erts-5.9/bin/epmd -daemon
> 
> 
> 
> 
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss



More information about the rabbitmq-discuss mailing list