<HTML>
<HEAD>
<TITLE>Re: [rabbitmq-discuss] EC2 clustering issue</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
I found out that the issue came from the fact I cloned the instance to create my second instance and that instance was containing a mnesia db for the first node rabbit1. After deleting the<BR>
Mnesia/rabbitmq folder I was able to start the node.<BR>
Though the cluster is not created despite my configuration.<BR>
<BR>
I tried to create the cluster manually but it did not work even if the cluster command returned Done<BR>
<BR>
Sebastien<BR>
<BR>
On 2/3/10 10:45 AM, "Sebastien Plisson" <<a href="splisson@veodia.com">splisson@veodia.com</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Yes I added the entries in hosts file on both machine.<BR>
<BR>
<BR>
On 2/3/10 10:34 AM, "Paul Jones" <<a href="pauljones23@gmail.com">pauljones23@gmail.com</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hi Sebastien,<BR>
<BR>
Have you added host file entries to both machines for rabbit1 and rabbit2? Unless you do that, I don't believe they are gong to be able to find each other. If pinging rabbit1 from rabbit2 and vice-versa doesn't work, then the clustering won't be able to start.<BR>
<BR>
Paul.<BR>
<BR>
On Wed, Feb 3, 2010 at 6:04 PM, Sebastien Plisson <<a href="splisson@veodia.com">splisson@veodia.com</a>> wrote:<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hi,<BR>
<BR>
I’m trying to setup a cluster of rabbit nodes with 2 ec2 instances:<BR>
<BR>
I installed rabbitmq with apt-get.<BR>
I use the same erlang cookie on both machine,<BR>
I setup the hostname of the instances to be rabbit1 and rabbit2.<BR>
I configured the clustering through configuration file /etc/rabbitmq/rabbitmq_cluster.config on both machine containing:<BR>
[rabbit@rabbit1, rabbit@rabbit2].<BR>
<BR>
The node starts fine on rabbit1 but I keep getting timeout when I try to start rabbitmqserver on rabbit2 :<BR>
Startup_log:<BR>
<BR>
Starting all nodes...<BR>
Starting node rabbit@rabbit2...<BR>
<BR>
+---+ +---+<BR>
| | | |<BR>
| | | |<BR>
| | | |<BR>
| +---+ +-------+<BR>
| |<BR>
| RabbitMQ +---+ |<BR>
| | | |<BR>
| v1.7.1 +---+ |<BR>
| |<BR>
+-------------------+<BR>
AMQP 8-0<BR>
Copyright (C) 2007-2009 LShift Ltd., Cohesive Financial Technologies LLC., and Rabbit Technologies Ltd.<BR>
Licensed under the MPL. See <FONT COLOR="#0000FF"><U><a href="http://www.rabbitmq.com/">http://www.rabbitmq.com/</a><BR>
</U></FONT><BR>
node : rabbit@rabbit2<BR>
app descriptor: /usr/lib/rabbitmq/lib/rabbitmq_server-1.7.1/sbin/../ebin/rabbit.app<BR>
home dir : /var/lib/rabbitmq<BR>
cookie hash : P3hRIQU6rcvxMCzOSrBi7w==<BR>
log : /var/log/rabbitmq/rabbit.log<BR>
sasl log : /var/log/rabbitmq/rabbit-sasl.log<BR>
database dir : /var/lib/rabbitmq/mnesia/rabbit<BR>
<BR>
starting database ...timeout<BR>
{"init terminating in do_boot",{{nocatch,{error,{cannot_start_application,rabbit,{{timeout_waiting_for_tables,[rabbit_user,rabbit_user_permission,rabbit_vhost,rabbit_config,rabbit_listener,rabbit_durable_route,rabbit_route,rabbit_reverse_route,rabbit_durable_exchange,rabbit_exchange,rabbit_durable_queue,rabbit_queue]},{rabbit,start,[normal,[]]}}}}},[{init,start_it,1},{init,start_em,1}]}}<BR>
<BR>
What’s wrong with this setup ?<BR>
<BR>
Thank you<BR>
<BR>
Sebastien Plisson<BR>
<BR>
<BR>
_______________________________________________<BR>
rabbitmq-discuss mailing list<BR>
<a href="rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><BR>
<a href="http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss">http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT></BLOCKQUOTE>
</BODY>
</HTML>