Hi,<div><br></div><div>Thanks you very much for this information </div><div>another problem i am facing is i have two nodes clustered lets say rabbit@SHIKHARM(ram) and rabbit@CHETANDEV(disc)</div><div>now if i stop rabbit@SHIKHARM using rabbitmwctl stop command and then i stop rabbit@CHETANDEV using stop_app command and then reset it this way i remove it from cluster and restart the node </div>
<div>now rabbit@CHETANDEV starts and works fine but when i try to start rabbit@SHIKHARM it fails .</div><div>i think it is trying to cluster with rabbit@CHETANDEV but that node is now not in cluster but is there a way so that i can reset rabbit@SHIKHARM and start it normally</div>
<div>here is the error that i got: </div><div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">node : rabbit@SHIKHARM</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
app descriptor : c:/Program Files/RabbitMQ Server/rabbitmq_server-2.8.6/sbin/../</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">ebin/rabbit.app</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
home dir : C:\Users\Acer</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">config file(s) : (none)</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
cookie hash : +3xbT32/GKScN3yhCcE0Ag==</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">log : C:/Users/Acer/AppData/Roaming/RabbitMQ/log/rabbit@SHIKHARM.log</div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">sasl log : C:/Users/Acer/AppData/Roaming/RabbitMQ/log/rabbit@SHIKHARM-sasl</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
.log</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">database dir : c:/Users/Acer/AppData/Roaming/RabbitMQ/db/rabbit@SHIKHARM-mnesi</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
a</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">erlang version : 5.9.1</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">-- rabbit boot start</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
starting file handle cache server ...done</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">starting worker pool ...done</div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">starting database ...</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">BOOT FAILED</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
===========</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
Error description:</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"> {error,{failed_to_cluster_with,[rabbit@CHETANDEV],</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
"Mnesia could not connect to any disc nodes."}</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">}</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Log files (may contain more information):</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
C:/Users/Acer/AppData/Roaming/RabbitMQ/log/rabbit@SHIKHARM.log</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"> C:/Users/Acer/AppData/Roaming/RabbitMQ/log/rabbit@SHIKHARM-sasl.log</div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
Stack trace:</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"> [{rabbit_mnesia,init_db,3,[]},</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
{rabbit_mnesia,init,0,[]},</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"> {rabbit,'-run_boot_step/1-lc$^1/1-1-',1,[]},</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
{rabbit,run_boot_step,1,[]},</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"> {rabbit,'-start/2-lc$^0/1-0-',1,[]},</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
{rabbit,start,2,[]},</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"> {application_master,start_it_old,4,</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
[{file,"application_master.erl"},{line,274}]}]</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
{"Kernel pid terminated",application_controller,"{application_start_failure,rabb</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">it,{bad_return,{{rabbit,start,[normal,[]]},{'EXIT',{rabbit,failure_during_boot}}</div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">}}}"}</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Crash dump was written to: erl_crash.dump</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
Kernel pid terminated (application_controller) ({application_start_failure,rabbi</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">t,{bad_return,{{rabbit,start,[normal,[]]},{'EXIT',{rabbit,failure_during_boot}}}</div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">}})</div></div><div><br></div><div><br></div><div><br></div><div>Thanks</div><div><br></div><div><br></div><div>
<br></div><div>
<br>
<br><div class="gmail_quote">On Tue, Oct 23, 2012 at 1:50 PM, Tim Watson <span dir="ltr"><<a href="mailto:watson.timothy@gmail.com" target="_blank">watson.timothy@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Ah of course - sorry i missed that guys. After so recently looking at the 3.0 cluster commands I'd forgotten that the choice of disk/ram was done that way in 2.8.x.<br>
<div><div><br>
On 22 Oct 2012, at 21:26, Matthias Radestock <<a href="mailto:matthias@rabbitmq.com" target="_blank">matthias@rabbitmq.com</a>> wrote:<br>
<br>
> On 22/10/12 20:28, chetan dev wrote:<br>
>>> here is what i am doing<br>
>>> 1. two nodes rabbit@SHIKHARM and rabbit@CHETANDEV are clustered<br>
><br>
> yes, but...<br>
><br>
>>> i clustered them as given on rabbitmq clustering documentation for e.g<br>
>>> on the first place both nodes are running<br>
>>> now i stopped app using rabbitmqctl stop_app then i reset that node than<br>
>>> i clusterd that node with another using rabbitmqctl cluster rabbit@SHIKHARM<br>
>>> then i started the node using rabbitmqctl start_app<br>
>>> when i checked the cluster status it was showing fine then i did as i<br>
>>> mentioned earlier<br>
><br>
> That will make rabbit@CHETANDEV a *ram* node. To make both nodes disk nodes the node itself would have to be mentioned in the cluster command too, i.e. 'rabbitmqctl cluster rabbit@SHIKHAR rabbit@CHETANDEV'.<br>
><br>
>>> 2. now i stop node rabbit@SHIKHARM using rabbitmqctl stop commnad<br>
>>> 3. now i start the node rabbit@SHIKHARM using rabbitmq-server<br>
>>> start commnad<br>
><br>
> You have just stopped and restarted the clusters' only disk node. Rabbit clusters won't function properly if they have only ram nodes.<br>
><br>
>>> 4. and then i check cluster status it shows only one running node<br>
>>> Cluster status of node rabbit@CHETANDEV ...<br>
>>> [{nodes,[{disc,[rabbit@SHIKHARM]},{ram,[rabbit@CHETANDEV]}]},<br>
>>> {running_nodes,[rabbit@CHETANDEV]}]<br>
>>> ...done.<br>
><br>
> Try running that command against rabbit@SHIKHARM. I suspect it will tell you that it only knows about itself.<br>
><br>
> Anyway, I suggest you change your cluster configuration s.t. both nodes are disk nodes.<br>
><br>
> Regards,<br>
><br>
> Matthias.<br>
</div></div><div><div>> _______________________________________________<br>
> rabbitmq-discuss mailing list<br>
> <a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">rabbitmq-discuss@lists.rabbitmq.com</a><br>
> <a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Cheten Dev <br><br>B.Tech Final Year<br>Dept. of Electrical Engg.<br>IIT Delhi, New Delhi<br>ph 8527333215<br><br>
</div>