<div dir="ltr">Hello,<div><br></div><div>I'm using the very last rabbitmq version (3.1.0), with 3 nodes and I have trouble clustering them in an automatic way (using rabbit.config). I'm not sure it matters but 2 of the nodes are running debian 6 and one is running debian 7 (beta). But anyway this happens even with only the two squeezes.</div>
<div><br></div><div>In short, if I don't specify any rabbit.config, and do the following :</div><div><node1>: rabbitmq-server -detached</div><div><node2>: rabbitmq-server -detached</div><div><node2>: rabbitmqctl stop_app</div>
<div><node2>: rabbitmqctl join_cluster rabbit@<node1></div><div style><node2>: rabbitmqctl start_app</div><div><div><node3>: rabbitmq-server -detached</div><div><node3>: rabbitmqctl stop_app</div>
<div><node3>: rabbitmqctl join_cluster rabbit@<node1></div><node3>: rabbitmqctl start_app<div><br></div><div style>The cluster works perfectly, BUT if I try to set it up in the rabbit.config file like so : </div>
<div style><br></div><div style> {cluster_nodes, {['rabbit@<node1>', 'rabbit@<node2>', 'rabbit@<node3>'], disk}},<br></div><div><br></div><div style>The first node I start does fine, but the other two crash every time.</div>
<div style><br></div><div style>Here are a few logs : </div><div style><br></div><div style>> <b>startup_err</b></div><div style><br></div><div style><div>Crash dump was written to: erl_crash.dump</div><div>init terminating in do_boot ()</div>
<div><br></div><div style>> <b>startup_log</b></div><div style><br></div><div style><div> RabbitMQ 3.1.0. Copyright (C) 2007-2013 VMware, Inc.</div><div> ## ## Licensed under the MPL. See <a href="http://www.rabbitmq.com/">http://www.rabbitmq.com/</a></div>
<div> ## ##</div><div> ########## Logs: /var/log/rabbitmq/rabbit@<node2>.log</div><div> ###### ## /var/log/rabbitmq/rabbit@<node2>-sasl.log</div><div> ##########</div><div> Starting broker...</div>
<div><br></div><div>BOOT FAILED</div><div>===========</div><div><br></div><div>Error description:</div><div> function_clause</div><div><br></div><div>Log files (may contain more information):</div><div> /var/log/rabbitmq/rabbit@<node2>.log</div>
<div> /var/log/rabbitmq/rabbit@<node2>-sasl.log</div><div><br></div><div>Stack trace:</div><div> [{rabbit_table,create_local_copy,[disk],[]},</div><div> {rabbit_mnesia,init_db,3,[]},</div><div> {rabbit_mnesia,init_db_and_upgrade,3,[]},</div>
<div> {rabbit_mnesia,init_from_config,0,[]},</div><div> {rabbit_mnesia,init,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><br></div><div><br></div><div><br></div><div>BOOT FAILED</div><div>===========</div><div><br></div><div>Error description:</div><div> {could_not_start,rabbit,</div><div> {bad_return,</div><div> {{rabbit,start,[normal,[]]},</div>
<div> {'EXIT',{rabbit,failure_during_boot,function_clause}}}}}</div><div><br></div><div>Log files (may contain more information):</div><div> /var/log/rabbitmq/rabbit@<node2>.log</div><div> /var/log/rabbitmq/rabbit@<node2>-sasl.log</div>
<div><br></div><div>{"init terminating in do_boot",{rabbit,failure_during_boot,{could_not_start,rabbit,{bad_return,{{rabbit,start,[normal,[]]},{'EXIT',{rabbit,failure_during_boot,function_clause}}}}}}}</div>
<div><br></div><div style>> <b>rabbit@<node2>.log</b></div><div style><br></div><div style><div>=INFO REPORT==== 3-May-2013::13:25:11 ===</div><div>Starting RabbitMQ 3.1.0 on Erlang R15B01</div><div>Copyright (C) 2007-2013 VMware, Inc.</div>
<div>Licensed under the MPL. See <a href="http://www.rabbitmq.com/">http://www.rabbitmq.com/</a></div><div><br></div><div>=INFO REPORT==== 3-May-2013::13:25:11 ===</div><div>node : rabbit@<node2></div><div>
home dir : /var/lib/rabbitmq</div><div>cookie hash : *************************</div><div>log : /var/log/rabbitmq/rabbit@<node2>.log</div><div>sasl log : /var/log/rabbitmq/rabbit@<node2>-sasl.log</div>
<div>database dir : /var/lib/rabbitmq/mnesia/rabbit@<node2></div><div><br></div><div>=INFO REPORT==== 3-May-2013::13:25:11 ===</div><div>Limiting to approx 924 file handles (829 sockets)</div><div><br></div><div>
=INFO REPORT==== 3-May-2013::13:25:11 ===</div>
<div>Error description:</div><div> function_clause</div><div><br></div><div>Log files (may contain more information):</div><div> /var/log/rabbitmq/rabbit@<node2>.log</div><div> /var/log/rabbitmq/rabbit@<node2>-sasl.log</div>
<div><br></div><div>Stack trace:</div><div> [{rabbit_table,create_local_copy,[disk],[]},</div><div> {rabbit_mnesia,init_db,3,[]},</div><div> {rabbit_mnesia,init_db_and_upgrade,3,[]},</div><div> {rabbit_mnesia,init_from_config,0,[]},</div>
<div> {rabbit_mnesia,init,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><br></div>
<div><br></div><div>=INFO REPORT==== 3-May-2013::13:25:12 ===</div><div>Error description:</div><div> {could_not_start,rabbit,</div><div> {bad_return,</div><div> {{rabbit,start,[normal,[]]},</div><div> {'EXIT',{rabbit,failure_during_boot,function_clause}}}}}</div>
<div><br></div><div>Log files (may contain more information):</div><div> /var/log/rabbitmq/rabbit@<node2>.log</div><div> /var/log/rabbitmq/rabbit@<node2>-sasl.log</div><div><br></div><div style>> <b>rabbit@<node2>-sasl.log</b></div>
<div style><br></div><div style><div>=CRASH REPORT==== 3-May-2013::13:25:12 ===</div><div> crasher:</div><div> initial call: application_master:init/4</div><div> pid: <0.70.0></div><div> registered_name: []</div>
<div> exception exit: {bad_return,</div><div> {{rabbit,start,[normal,[]]},</div><div> {'EXIT',</div><div> {rabbit,failure_during_boot,function_clause}}}}</div>
<div> in function application_master:init/4 (application_master.erl, line 138)</div><div> ancestors: [<0.69.0>]</div><div> messages: [{'EXIT',<0.71.0>,normal}]</div><div> links: [<0.69.0>,<0.7.0>]</div>
<div> dictionary: []</div><div> trap_exit: true</div><div> status: running</div><div> heap_size: 2584</div><div> stack_size: 24</div><div> reductions: 206</div><div> neighbours:</div><div><br></div></div>
<div style>I'll trying differents things but any help would be appreciated. </div><div style><br></div><div style>Thanks !</div><div><br></div></div></div></div>-- <br>michael
</div></div>