Bootstrap FreeKB - RabbitMQ - Resolve "Ghost queue NaN"
RabbitMQ - Resolve "Ghost queue NaN"

Updated:   |  RabbitMQ articles

In this example, queue001 has a NaN. This is consider a ghost queue. The queue will not be included in the rabbitmqctl list_queues or rabbitmqadmin list queues commands.

 

The following command can be used to delete the queue. Once this is done, the queue should no longer be showing in the GUI. Then, the queue can be recreated, if needed.

rabbitmqctl eval 'Q = {resource, <<"VHOST_NAME">>, queue, <<"QUEUE_NAME">>}, rabbit_amqqueue:internal_delete(Q).'

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


June 11 2021 by Shahzad A.Chaudhry
My queue that now is NaN had multiple messages before rabbitmq in a 3 node cluster crashed. How do I recover those messages please?

Add a Comment


Please enter df700e in the box below so that we can be sure you are a human.