<html><body bgcolor="#FFFFFF"><div>Did you happen to change your hostname? That would cause rabbitmqctl to fail to connect to a running server that was started with a different hostname, and a running server would cause the second failure (because it couldn't listen on the correct port).</div><div><br></div><div>- Ian<br><br>On Aug 31, 2010, at 9:17 PM, Mark Soper <<a href="mailto:masoper@gmail.com">masoper@gmail.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div>Just getting started with rabbitmq, hoping for advice on how to troubleshoot this:
<div><br></div><div>Last week I started using celery with rabbitmq on EC2 Ubuntu server.</div><div>It ran fine for a week, then died. </div><div><br></div><div>> sudo rabbitmqctl status</div><div><br></div><div><div>
Status of node 'rabbit@domU-12-31-39-05-6E-52' ...</div><div>Error: unable to connect to node 'rabbit@domU-12-31-39-05-6E-52': nodedown</div><div>diagnostics:</div><div>- nodes and their ports on domU-12-31-39-05-6E-52: [{rabbitmqctl11365,50319}]</div>
<div>- current node: 'rabbitmqctl11365@domU-12-31-39-05-6E-52'</div><div>- current node home dir: /var/lib/rabbitmq</div><div>- current node cookie hash: nF0wVuFwDDUCqBIAugLXcw==</div></div><div><br></div><div><br>
</div><div>> sudo rabbitmq-server</div><div><br></div><div><div>+---+ +---+</div><div>| | | |</div><div>| | | |</div><div>| | | |</div><div>| +---+ +-------+</div><div>| |</div>
<div>| RabbitMQ +---+ |</div><div>| | | |</div><div>| v1.7.2 +---+ |</div><div>| |</div><div>+-------------------+</div><div>AMQP 8-0</div><div>Copyright (C) 2007-2010 LShift Ltd., Cohesive Financial Technologies LLC., and Rabbit Technologies Ltd.</div>
<div>Licensed under the MPL. See <a href="http://www.rabbitmq.com/"><a href="http://www.rabbitmq.com/">http://www.rabbitmq.com/</a></a></div><div><br></div><div>node : rabbit@domU-12-31-39-05-6E-52</div><div>app descriptor: /usr/lib/rabbitmq/lib/rabbitmq_server-1.7.2/sbin/../ebin/rabbit.app</div>
<div>home dir : /var/lib/rabbitmq</div><div>cookie hash : nF0wVuFwDDUCqBIAugLXcw==</div><div>log : /var/log/rabbitmq/rabbit.log</div><div>sasl log : /var/log/rabbitmq/rabbit-sasl.log</div><div>database dir : /var/lib/rabbitmq/mnesia/rabbit</div>
<div><br></div><div>starting internal event notification system ...done</div><div>starting logging server ...done</div><div>starting database ...done</div>
<div>-- kernel ready</div><div>starting alarm handler ...done</div><div>starting queue supervisor ...done</div><div>starting node monitor ...done</div>
<div>starting cluster router ...done</div><div>-- core initialized</div><div>starting empty DB check ...done</div><div>starting codec correctness check ...done</div>
<div>starting exchange recovery ...done</div><div>starting queue recovery ...done</div><div>starting persister ...done</div>
<div>starting guid generator ...done</div><div>-- message delivery logic ready</div><div>starting error log relay ...done</div><div>
starting networking ...BOOT ERROR: FAILED</div><div>Reason: {{badmatch,</div><div> {error,</div><div> {shutdown,</div><div> {child,undefined,'rabbit_tcp_listener_sup_0.0.0.0:5672',</div>
<div> {tcp_listener_sup,start_link,</div><div> [{0,0,0,0},</div><div> 5672,</div><div> [binary,</div><div> {packet,raw},</div>
<div> {reuseaddr,true},</div><div> {exit_on_close,false}],</div><div> {rabbit_networking,tcp_listener_started,[]},</div><div> {rabbit_networking,tcp_listener_stopped,[]},</div>
<div> {rabbit_networking,start_client,[]},</div><div> "TCP Listener"]},</div><div> transient,infinity,supervisor,</div><div> [tcp_listener_sup]}}}},</div>
<div> [{rabbit_networking,start_listener,4},</div><div> {rabbit_networking,'-boot_tcp/0-lc$^0/1-0-',1},</div><div> {rabbit_networking,boot_tcp,0},</div><div> {rabbit_networking,boot,0},</div>
<div> {rabbit,'-run_boot_step/1-lc$^1/1-1-',1},</div><div> {rabbit,run_boot_step,1},</div><div> {rabbit,'-start/2-lc$^0/1-0-',1},</div><div> {rabbit,start,2}]}</div><div>
Erlang has closed</div><div>{"init terminating in do_boot",{{nocatch,{error,{cannot_start_application,rabbit,{bad_return,{{rabbit,start,[normal,[]]},{'EXIT',{rabbit,failure_during_boot}}}}}}},[{init,start_it,1},{init,start_em,1}]}}</div>
<div><br></div><div>Crash dump was written to: erl_crash.dump</div><div>init terminating in do_boot ()</div></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>rabbitmq-discuss mailing list</span><br><span><a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a></span><br><span><a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a></span><br></div></blockquote></body></html>