<html><head></head><body bgcolor="#FFFFFF"><div>You should issue the command like so:</div><div><br></div><div>'sudo rabbitmqctl stop'<br><br>Version 1.6 is ancient - use should consider downloading 3.0.4 from the website an installing that instead. Rea the upgrade instructions from the release notes carefully though.</div><div><br></div><div>Cheers,</div><div>Tim</div><div><br>On 16 Mar 2013, at 07:42, Rikesh Gupta &lt;<a href="mailto:rikeshgupta@gmail.com">rikeshgupta@gmail.com</a>&gt; wrote:<br><br></div><div></div><blockquote type="cite"><div>how do i stop any previous rabbitmq if running...<br><br>On Tuesday, February 21, 2012 2:51:47 AM UTC+5:30, Abhishek Singh Bailoo wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">Greetings!<br><br>I am a newb to RabbitMQ and the whole Erlang thing :) <br><br>I compiled from source and installed RabbitMQ on my server (an Amazon EC2 instance). It was configured to run with CouchDB. <br><br>After that I tried to upgrade by using apt-get install. It did warn me that it was upgrading from lesser than version 1.5.4 to version 1.6.0 and since my database was different, it will take a backup but old settings will be lost. I was fine with it. <br>

<br>Now rabbitmq-server does not start, complaining<br><br>Setting up rabbitmq-server (1.7.2-1ubuntu1) ...<br>Starting rabbitmq-server: FAILED - check /var/log/rabbitmq/startup_log, _err<br>rabbitmq-server.<br>invoke-rc.d: initscript rabbitmq-server, action "start" failed.<br>

dpkg: error processing rabbitmq-server (--configure):<br>&nbsp;subprocess installed post-installation script returned error exit status 1<br>Errors were encountered while processing:<br>&nbsp;rabbitmq-server<br>E: Sub-process /usr/bin/dpkg returned an error code (1)<br>

<br>I tried apt-get remove rabbitmq-server and manually deleted the directory /var/lib/rabbitmq and then again tried to do apt-get install but it gives the same error. <br><br>Any help will be much appreciated!<br><br>startup logs are ...<br>

<br># cat /var/log/rabbitmq/startup_err <br>Error: {node_start_failed,normal}<br><br>Crash dump was written to: erl_crash.dump<br>Kernel pid terminated (application_controller) ({application_start_failure,<wbr>kernel,{shutdown,{kernel,<wbr>start,[normal,[]]}}})<br>

<br><br># cat /var/log/rabbitmq/startup_log<br>Starting all nodes...<br>Starting node rabbit@ip-10-252-17-24...<br>{error_logger,{{2012,2,20},{<wbr>21,12,19}},"Protocol: ~p: register error: ~p~n",["inet_tcp",{{badmatch,{<wbr>error,duplicate_name}},[{inet_<wbr>tcp_dist,listen,1},{net_<wbr>kernel,start_protos,4},{net_<wbr>kernel,start_protos,3},{net_<wbr>kernel,init_node,2},{net_<wbr>kernel,init,1},{gen_server,<wbr>init_it,6},{proc_lib,init_p_<wbr>do_apply,3}]}]}<br>

{error_logger,{{2012,2,20},{<wbr>21,12,19}},crash_report,[[{<wbr>initial_call,{net_kernel,init,<wbr>['Argument__1']}},{pid,&lt;0.21.<wbr>0&gt;},{registered_name,[]},{<wbr>error_info,{exit,{error,<wbr>badarg},[{gen_server,init_it,<wbr>6},{proc_lib,init_p_do_apply,<wbr>3}]}},{ancestors,[net_sup,<wbr>kernel_sup,&lt;0.10.0&gt;]},{<wbr>messages,[]},{links,[#Port&lt;0.<wbr>107&gt;,&lt;0.18.0&gt;]},{dictionary,[{<wbr>longnames,false}]},{trap_exit,<wbr>true},{status,running},{heap_<wbr>size,610},{stack_size,24},{<wbr>reductions,484}],[]]}<br>

{error_logger,{{2012,2,20},{<wbr>21,12,19}},supervisor_report,[<wbr>{supervisor,{local,net_sup}},{<wbr>errorContext,start_error},{<wbr>reason,{'EXIT',nodistribution}<wbr>},{offender,[{pid,undefined},{<wbr>name,net_kernel},{mfargs,{net_<wbr>kernel,start_link,[[rabbit,<wbr>shortnames]]}},{restart_type,<wbr>permanent},{shutdown,2000},{<wbr>child_type,worker}]}]}<br>

{error_logger,{{2012,2,20},{<wbr>21,12,19}},supervisor_report,[<wbr>{supervisor,{local,kernel_sup}<wbr>},{errorContext,start_error},{<wbr>reason,shutdown},{offender,[{<wbr>pid,undefined},{name,net_sup},<wbr>{mfargs,{erl_distribution,<wbr>start_link,[]}},{restart_type,<wbr>permanent},{shutdown,infinity}<wbr>,{child_type,supervisor}]}]}<br>

{error_logger,{{2012,2,20},{<wbr>21,12,19}},std_info,[{<wbr>application,kernel},{exited,{<wbr>shutdown,{kernel,start,[<wbr>normal,[]]}}},{type,permanent}<wbr>]}<br>{"Kernel pid terminated",application_<wbr>controller,"{application_<wbr>start_failure,kernel,{<wbr>shutdown,{kernel,start,[<wbr>normal,[]]}}}"}<br>

<br><br><br><br clear="all">regards,<br>Abhishek Singh Bailoo,<br>Platform Team<br>Knowlus, FreeSWITCH.<br><br>
</blockquote></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>