[rabbitmq-discuss] Unable to join cluster: "Bad cookie in table definition rabbit_queue"

Eugene Kirpichov ekirpichov at gmail.com
Wed Aug 3 13:20:57 BST 2011


I got the following error today: I was changing the composition of a
4-node RabbitMQ cluster (it was on nodes A,B,C,D and became B,C,D,E).
I killed rabbitmq on nodes B,C,D (forgot to kill it on A) and followed
the cluster start procedure on B,C,D,E (stop_app, reset, cluster all
to B, start_app).

Is this expected behavior in such a scenario?
Would the right way to avoid it be "kill on A before starting B,C,D,E cluster"?

=INFO REPORT==== 3-Aug-2011::04:50:23 ===
Limiting to approx 924 file handles (829 sockets)

=ERROR REPORT==== 3-Aug-2011::04:50:23 ===
Mnesia(rabbit at RACK2UNIT002): ** ERROR ** mnesia_event got
{inconsistent_database, running_partitioned_network,
rabbit at RACK2UNIT001}

=ERROR REPORT==== 3-Aug-2011::04:50:23 ===
Mnesia(rabbit at RACK2UNIT002): ** ERROR ** mnesia_event got
{inconsistent_database, starting_partitioned_network,
rabbit at RACK2UNIT001}

=ERROR REPORT==== 3-Aug-2011::04:50:23 ===
Reason: {error,
                [rabbit at RACK2UNIT002,rabbit at RACK2UNIT001],
                    "Bad cookie in table definition rabbit_queue:
rabbit at RACK2UNIT002 =
{cstruct,rabbit_queue,set,[rabbit at RACK2UNIT002],[],[],0,read_write,[],[],false,amqqueue,[name,durable,auto_delete,exclusive_owner,arguments,pid],[],[],{{1312,371791,515002},rabbit at RACK2UNIT001},{{3,1},{rabbit at RACK2UNIT002,{1312,372070,234006}}}},
rabbit at RACK2UNIT001 =
{cstruct,rabbit_queue,set,[rabbit at RACK2UNIT004,rabbit at RACK2UNIT003,rabbit at RACK2UNIT001],[],[],0,read_write,[],[],false,amqqueue,[name,durable,auto_delete,exclusive_owner,arguments,pid],[],[],{{1312,372061,609002},rabbit at RACK2UNIT001},{{3,2},{rabbit at RACK2UNIT003,{1312,372100,781007}}}}\n"}}}
Stacktrace: [{rabbit_mnesia,init_db,3},

=INFO REPORT==== 3-Aug-2011::04:50:24 ===
    application: rabbit
    exited: {bad_return,{{rabbit,start,[normal,[]]},
    type: permanent

Eugene Kirpichov
Principal Engineer, Mirantis Inc. http://www.mirantis.com/
Editor, http://fprog.ru/

More information about the rabbitmq-discuss mailing list