[rabbitmq-discuss] Rabbit forgetting users after shutting down both cluster-nodes

Emile Joubert emile at rabbitmq.com
Fri Jan 13 10:55:48 GMT 2012


On 13/01/12 10:41, Emile Joubert wrote:
> Hi Lukas,
> 
> On 12/01/12 17:18, lukas wrote:
>> We have a strange problem.
>>
>> Setup: Two rabbitmq-nodes (v. 2.5.1) running as a cluster, one user
>> (added with rabbitmqctl add_user and set_permissions), system is Linux
>> 2.6.32
>>
>> The following happens:
>>
>> 1. Both nodes running normally
>> 2. First node is stopped (rabbitmqctl stop_app) -> our client switches
>> to 2nd node
>> 3. Second node is stopped -> client diconnects
>> 4. First node is started again -> client can't connect because the
>> user is gone. ( there is only the default user "guest")
>>
>> How can this happen?
> 
> From you description it sounds likely that node2 was the only disc node.
> You can use the "rabbitmqctl cluster_status" command to confirm. Also
> note that more recent versions of RabbitMQ will log a warning when the
> last disc-node leaves the cluster. You should ensure that both nodes are
> disc-nodes to prevent this problem.

Could you please supply the exact transcript so that I can confirm my
diagnosis? I'm interested to know whether you performed a "rabbitmqctl
reset" command between step 3 and 4.


-Emile



More information about the rabbitmq-discuss mailing list