12

We had a network network partition and RabbitMQ ended up in "split brain".

After the cluster recovered, I have a queue that I cant delete. In the mgmt. interface the queue is just listed with "?", and I'm unable to delete it from using mgmt. interface or from commandline.

I have tried to remove the node "sh-mq-cl1a-04" from the cluster, but the queue remains in the cluster.

3
  • Any error messages in the logs when you try to delete the queue? I think it would be better to reach out to us here groups.google.com/forum/#!forum/rabbitmq-users Commented Jun 8, 2015 at 11:43
  • 1
    No noting - the command just hangs until i kill the process Commented Jun 24, 2015 at 18:17
  • have you found any solution for this. I am also facing similar issue. Commented Jan 23, 2017 at 5:53

1 Answer 1

11

I had a similar issue where I couldn't delete some queues, and the solution listed here worked for me: https://community.pivotal.io/s/article/Queue-cant-be-deleted-or-purged-in-RabbitMQ

I ssh'd onto one of the nodes in my cluster (the one where the queue is hosted is probably best), sudo'd as root, and then ran this command:

rabbitmqctl eval '{ok, Q} = rabbit_amqqueue:lookup(rabbit_misc:r(<<"VHOST">>, queue, <<"QUEUE">>)), rabbit_amqqueue:delete_crashed(Q).'

You'll need to replace VHOST with your virtual host name, and QUEUE with your queue name (which I realize it might be tricky to figure out, in your situation).

Sign up to request clarification or add additional context in comments.

2 Comments

That's a great point, thanks for the reminder! I will update my answer.
my 2 cents: I also connected to the pod and ran: rabbitmqctl delete_queue <queue:name> which is a bit simpler

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.