Monday, 16 March 2020

RabbitMQ server issue - vhost ‘/’ is down

I'm using RabbitMQ with Celery(Django) for the last couple of months now but recently we faced an unexpected issue where RabbitMQ is not accepting tasks in its queues and error in logs say:

INTERNAL_ERROR — aess to prod_vhost ‘/’ refused for user ‘prod’: prod_vhost ‘/’ is down.`

Now, how to solve this problem:

From the Rabbitmq log file you can get the destination file URL, in my case it was

/var/lib/rabbitmq/mnesia/rabbit@hostname_1/msg_stores/prod_vhost/784WB90CIFDYO9LJI6DKMI78L/recovery.d ets”

If you have problem with vhost '/', most probably the file url will be

/var/lib/rabbitmq/mnesia/rabbit@hostname_1/msg_stores/vhosts/628WB79CIFDYO9LJI6DKMI09L/recovery.d ets”

Resolution :
  1. Stop 'rabbitmq-server'.
  2. delete the folder that contains the corrupt files. In this case: 784WB90CIFDYO9LJI6DKMI78L
  3. Start 'rabbitmq-server'. It should work fine now.

Thanks!!! Enjoy Programming!!!!!!! :)

Reference Link:

No comments:

Post a comment

Thanks for your valuable comments.