[rabbitmq-discuss] Bad cookie when clustering

Matthew Sackman matthew at lshift.net
Mon Feb 15 18:21:58 GMT 2010


Hi Peter,

On Fri, Feb 12, 2010 at 05:32:26PM -0600, Peter Fitzgibbons wrote:
> I have servers : vmrabbita, vmrabbitb, vmrabbitc
> RabbitMQ 1.7.1
> All 3 have the same /var/lib/rabbitmq/.erlang.cookie
> 
> a and c are clustered successfully.
> 
> b gives me this
> 
>  rabbitmqctl cluster rabbit at vmrabbita
> Clustering node rabbit at vmrabbitb with [rabbit at vmrabbita] ...
> Error: {unable_to_join_cluster,
>            [rabbit at vmrabbita],
>            {merge_schema_failed,

That normally suggests mnesia is not empty. On vmrabbitb, run
rabbitmqctl stop_app
rabbitmqctl reset

You should then be able to cluster
rabbitmqctl cluster vmrabbita vmrabbitb
rabbitmqctl start_app

Do let us know how you get on.

Matthew




More information about the rabbitmq-discuss mailing list