Hello,<div><br></div><div>I&#39;ve just started using rabbitmq. I&#39;ve run into trouble trying to use rabbitmq-server on an Ubuntu 10.04 EC2 EBS instance (<span class="Apple-style-span" style="font-family: &#39;Comic Sans MS&#39;; font-size: 13px; color: rgb(58, 58, 58); white-space: pre-wrap; ">ami-6006f309</span>). When I first installed rabbitmq (sudo apt-get install rabbitmq-server), it was working just fine and also worked fine after stopping/starting my EC2 instance. However, now after I reboot the EC2 instance and ssh back in, I get this when trying to check the status (the first command I issue):</div>
<div><br></div><div><span class="Apple-style-span" style="font-size: x-small;">$ sudo rabbitmqctl status</span></div><div><span class="Apple-style-span" style="font-size: x-small;">Status of node &#39;rabbit@ip-10-100-100-200&#39; ...</span></div>
<div><span class="Apple-style-span" style="font-size: x-small;">Error: unable to connect to node &#39;rabbit@ip-10-100-100-200&#39;: nodedown</span></div><div><span class="Apple-style-span" style="font-size: x-small;">diagnostics:</span></div>
<div><span class="Apple-style-span" style="font-size: x-small;">- unable to connect to epmd on ip-10-100-100-200: address</span></div><div><span class="Apple-style-span" style="font-size: x-small;">- current node: &#39;rabbitmqctl812@ip-10-100-100-200&#39;</span></div>
<div><span class="Apple-style-span" style="font-size: x-small;">- current node home dir: /var/lib/rabbitmq</span></div><div><span class="Apple-style-span" style="font-size: x-small;">- current node cookie hash: X5WdGfO9GimAgcVGJx/dSQ==</span></div>
<div><br></div><div>So then I try to manually start it:</div><div><br></div><div><div><span class="Apple-style-span" style="font-size: x-small;">$ sudo rabbitmq-server </span></div><div><span class="Apple-style-span" style="font-size: x-small;">{error_logger,{{2010,10,14},{19,54,3}},&quot;Protocol: ~p: register error: ~p~n&quot;,[&quot;inet_tcp&quot;,{{badmatch,{error,duplicate_name}},[{inet_tcp_dist,listen,1},{net_kernel,start_protos,4},{net_kernel,start_protos,3},{net_kernel,init_node,2},{net_kernel,init,1},{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}]}</span></div>
<div><span class="Apple-style-span" style="font-size: x-small;">{error_logger,{{2010,10,14},{19,54,3}},crash_report,[[{initial_call,{net_kernel,init,[&#39;Argument__1&#39;]}},{pid,&lt;0.22.0&gt;},{registered_name,[]},{error_info,{exit,{error,badarg},[{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}},{ancestors,[net_sup,kernel_sup,&lt;0.10.0&gt;]},{messages,[]},{links,[#Port&lt;0.119&gt;,&lt;0.19.0&gt;]},{dictionary,[{longnames,false}]},{trap_exit,true},{status,running},{heap_size,377},{stack_size,24},{reductions,495}],[]]}</span></div>
<div><span class="Apple-style-span" style="font-size: x-small;">{error_logger,{{2010,10,14},{19,54,3}},supervisor_report,[{supervisor,{local,net_sup}},{errorContext,start_error},{reason,{&#39;EXIT&#39;,nodistribution}},{offender,[{pid,undefined},{name,net_kernel},{mfa,{net_kernel,start_link,[[rabbit,shortnames]]}},{restart_type,permanent},{shutdown,2000},{child_type,worker}]}]}</span></div>
<div><span class="Apple-style-span" style="font-size: x-small;">{error_logger,{{2010,10,14},{19,54,3}},supervisor_report,[{supervisor,{local,kernel_sup}},{errorContext,start_error},{reason,shutdown},{offender,[{pid,undefined},{name,net_sup},{mfa,{erl_distribution,start_link,[]}},{restart_type,permanent},{shutdown,infinity},{child_type,supervisor}]}]}</span></div>
<div><span class="Apple-style-span" style="font-size: x-small;">{error_logger,{{2010,10,14},{19,54,3}},std_info,[{application,kernel},{exited,{shutdown,{kernel,start,[normal,[]]}}},{type,permanent}]}</span></div><div><span class="Apple-style-span" style="font-size: x-small;">{&quot;Kernel pid terminated&quot;,application_controller,&quot;{application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}}&quot;}</span></div>
<div><span class="Apple-style-span" style="font-size: x-small;"><br></span></div><div><span class="Apple-style-span" style="font-size: x-small;">Crash dump was written to: erl_crash.dump</span></div><div><span class="Apple-style-span" style="font-size: x-small;">Kernel pid terminated (application_controller) ({application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}})</span></div>
</div><div><br></div><div>From googling around I determined that that error means rabbitmq is already running, which makes sense since it should have started via /etc/init.d. So I kill the running processes and then try to start it again and it appears to startup fine:</div>
<div><br></div><div><div><span class="Apple-style-span" style="font-size: x-small;">$ ps ax | grep beam</span></div><div><span class="Apple-style-span" style="font-size: x-small;">  530 ?        Sl     0:00 /usr/lib/erlang/erts-5.7.4/bin/beam.smp -- -root /usr/lib/erlang -progname erl -- -home /var/lib/rabbitmq -- -pa /usr/lib/rabbitmq/lib/rabbitmq_server-1.7.2/sbin/../ebin -noshell -noinput -hidden -sname rabbitmq_multi530 -s rabbit_multi -extra start_all 1</span></div>
<div><span class="Apple-style-span" style="font-size: x-small;">  661 ?        Ssl    0:00 /usr/lib/erlang/erts-5.7.4/bin/beam.smp -W w -K true -A30 -- -root /usr/lib/erlang -progname erl -- -home /var/lib/rabbitmq -- -pa /usr/lib/rabbitmq/lib/rabbitmq_server-1.7.2/sbin/../ebin -noshell -noinput -s rabbit -sname rabbit -boot start_sasl -kernel inet_default_listen_options [{nodelay,true}] -kernel inet_default_connect_options [{nodelay,true}] -sasl errlog_type error -kernel error_logger {file,&quot;/var/log/rabbitmq/rabbit.log&quot;} -sasl sasl_error_logger {file,&quot;/var/log/rabbitmq/rabbit-sasl.log&quot;} -os_mon start_cpu_sup true -os_mon start_disksup false -os_mon start_memsup false -mnesia dir &quot;/var/lib/rabbitmq/mnesia/rabbit&quot; -noshell -noinput</span></div>
<div><span class="Apple-style-span" style="font-size: x-small;">  972 pts/0    R+     0:00 grep --color=auto beam</span></div></div><div><span class="Apple-style-span" style="font-size: x-small;">$ sudo kill 530</span></div>
<div><span class="Apple-style-span" style="font-size: x-small;">kill: No such process</span></div><div><span class="Apple-style-span" style="font-size: x-small;">$ sudo kill 661</span></div><div><span class="Apple-style-span" style="font-size: x-small;">$ sudo rabbitmq-server</span></div>
<div><span class="Apple-style-span" style="font-size: x-small;"><i>&lt;standard rabbitmq logo and other info&gt;</i></span></div><div><div><span class="Apple-style-span" style="font-size: x-small;">node          : rabbit@ip-10-100-100-200</span></div>
<div><span class="Apple-style-span" style="font-size: x-small;">app descriptor: /usr/lib/rabbitmq/lib/rabbitmq_server-1.7.2/sbin/../ebin/rabbit.app</span></div><div><span class="Apple-style-span" style="font-size: x-small;">home dir      : /var/lib/rabbitmq</span></div>
<div><span class="Apple-style-span" style="font-size: x-small;">cookie hash   : X5WdGfO9GimAgcVGJx/dSQ==</span></div><div><span class="Apple-style-span" style="font-size: x-small;">log           : /var/log/rabbitmq/rabbit.log</span></div>
<div><span class="Apple-style-span" style="font-size: x-small;">sasl log      : /var/log/rabbitmq/rabbit-sasl.log</span></div><div><span class="Apple-style-span" style="font-size: x-small;">database dir  : /var/lib/rabbitmq/mnesia/rabbit</span></div>
</div><div><span class="Apple-style-span" style="font-size: x-small;"><i>&lt;alot of &quot;starting&quot; lines; each of which has &quot;...done&quot; at the end&gt;</i></span></div><div><span class="Apple-style-span" style="font-size: x-small;">broker running</span></div>
<div><br></div><div>Then in another SSH terminal I try to check the status and get the same error as my first attempt to check the status. So I again made no rabbitmq (i.e. beam) processes were running and tried to start rabbitmq via /etc/init.d/rabbitmq-server:</div>
<div><br></div><div><span class="Apple-style-span" style="font-size: x-small;">$ sudo /etc/init.d/rabbitmq-server start</span></div><div><span class="Apple-style-span" style="font-size: x-small;">Starting rabbitmq-server:</span></div>
<div><i><span class="Apple-style-span" style="font-size: x-small;">&lt;indefinite hang, had to Ctrl-C,Ctrl-C&gt;</span></i></div><div><br></div><div>I tried several other things like deleting all contents of /var/lib/rabbitmq and that starting again; all to no avail. Can someone help? I&#39;m hoping this is fairly easy to reproduce as I did a very straightforward setup from the official Ubuntu us-east ebs ami (<span class="Apple-style-span" style="font-family: &#39;Comic Sans MS&#39;; font-size: 13px; color: rgb(58, 58, 58); white-space: pre-wrap; ">ami-6006f309</span>). Note that I&#39;ve changed the hostname (ip-10-100-100-200) in everything I&#39;ve pasted above from it&#39;s original (but similar) value for privacy.</div>
<div><br></div><div>Also, at some point in my testing i got the following in startup_err, but I can&#39;t remember what the steps were that led to getting that error message:</div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div>
<br></div><div><span class="Apple-style-span" style="font-size: x-small;">$ cat /var/log/rabbitma/startup_err</span></div><div><span class="Apple-style-span" style="font-size: x-small;">Error: cannot_get_pid</span></div><div>
<br></div><div><br></div><div>Many thanks in advance for any help!</div><div><br></div><div>-Matt</div>