Cannot delete a stuck queue

475 views
Skip to first unread message

Roman149

unread,
Jun 12, 2017, 12:45:10 PM6/12/17
to rabbitmq-discuss
I have durable queues in my cluster. From time to time a queue shows "NaN" in several columns. It happens mostly after network partition. I have normally queues under HA policy but such queue doesn't have replica. Restarting the node on which the queue resides did not help.

I cannot delete such queue. Neither from web interface, nor from the command line.

I tried:
sudo rabbitmqadmin --username=admin --password="mypassword" delete queue name=myqueue
This returns:
*** Not found: /api/queues/%2F/myqueue
(my vhost is definitivelly not called %2F)

and

curl -i -XDELETE "http://admin:mypassword@localhost:15672/api/queues/myvhost/myqueue"
or
curl -XDELETE -u "admin:mypassword" localhost:15672/api/queues/myvhost/myqueue

This just get stuck and doesn't return anything.

I use RabbitMQ 3.5.7 and Erlang 17.5.3

How can I solve the issue with such a stuck queue?

Stuart Johnston

unread,
Jun 30, 2017, 9:26:28 AM6/30/17
to rabbitmq-discuss
Try something liek 

./rabbitmqadmin.py delete queue name='mytest' -H localhost -P 15672 -u guest -p guest

Usually the below error indicates that you don't have permission   
Reply all
Reply to author
Forward
0 new messages