[rabbitmq-discuss] EC2 clustering issue

Sebastien Plisson splisson at veodia.com
Wed Feb 3 19:32:57 GMT 2010


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
Mnesia/rabbitmq folder I was able to start the node.
Though the cluster is not created despite my configuration.

I tried to create the cluster manually but it did not work even if the cluster command returned Done

Sebastien

On 2/3/10 10:45 AM, "Sebastien Plisson" <splisson at veodia.com> wrote:

Yes I added the entries in hosts file on both machine.


On 2/3/10 10:34 AM, "Paul Jones" <pauljones23 at gmail.com> wrote:

Hi Sebastien,

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.

Paul.

On Wed, Feb 3, 2010 at 6:04 PM, Sebastien Plisson <splisson at veodia.com> wrote:
Hi,

I'm trying to setup a cluster of rabbit nodes with 2 ec2 instances:

I installed rabbitmq with apt-get.
I use the same erlang cookie on both machine,
I setup the hostname of the instances to be rabbit1 and rabbit2.
I configured the clustering through configuration file /etc/rabbitmq/rabbitmq_cluster.config on both machine containing:
[rabbit at rabbit1, rabbit at rabbit2].

The node starts fine on rabbit1 but I keep getting timeout when I try to start rabbitmqserver on rabbit2 :
Startup_log:

Starting all nodes...
Starting node rabbit at rabbit2...

+---+   +---+
|   |   |   |
|   |   |   |
|   |   |   |
|   +---+   +-------+
|                   |
| RabbitMQ  +---+   |
|           |   |   |
|   v1.7.1  +---+   |
|                   |
+-------------------+
AMQP 8-0
Copyright (C) 2007-2009 LShift Ltd., Cohesive Financial Technologies LLC., and Rabbit Technologies Ltd.
Licensed under the MPL.  See http://www.rabbitmq.com/

node          : rabbit at rabbit2
app descriptor: /usr/lib/rabbitmq/lib/rabbitmq_server-1.7.1/sbin/../ebin/rabbit.app
home dir      : /var/lib/rabbitmq
cookie hash   : P3hRIQU6rcvxMCzOSrBi7w==
log           : /var/log/rabbitmq/rabbit.log
sasl log      : /var/log/rabbitmq/rabbit-sasl.log
database dir  : /var/lib/rabbitmq/mnesia/rabbit

starting database             ...timeout
{"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}]}}

What's wrong with this setup ?

Thank you

Sebastien Plisson


_______________________________________________
rabbitmq-discuss mailing list
rabbitmq-discuss at lists.rabbitmq.com
http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20100203/a23a7367/attachment.htm 


More information about the rabbitmq-discuss mailing list