RabbitMQ virtual host error when starting service

前端 未结 3 989
暗喜
暗喜 2021-01-18 03:04

I\'ve had a RabbitMQ server running for months. This morning I was unable to connect to it, my applications was timing out and the Management client was unresponsive. Reboot

相关标签:
3条回答
  • 2021-01-18 03:19

    I figured out what was going on. Someone on my team (me) was creating an unprecedented amount of connections to RabbitMQ. For each connection a file handler is created to one or more files, not sure which. The OS (Windows in my case) has a file handler limit, not sure what the limit is, but when reached, an error is thrown. This corrupted the virtual host (/) and I had to delete it and create it again. Good thing this wasn't production, because then all the messages would've been gone.

    Edit (June 2020):

    There might be a fix for this so it can't happen again. A virtual host can be limited in how many connections they allow. This way Windows won't faulter on the many file handles. Look in the management portal -> Admin -> Limits, set max-connections to a number you think it plausible for your setup.

    0 讨论(0)
  • 2021-01-18 03:26

    I opted to recreate the vhost which resolved the issue for me.

    Clearing the data in transient msg_stores & queues didn't work for me in my scenario. Since data loss wasn't an issue for me.

    0 讨论(0)
  • 2021-01-18 03:34

    For me, I was trying to install management plugin (rabbitmqadmin) and it failed in rabbitmq-delayed-message-exchange. So I downloaded rabbitmq-delayed-message-exchange from JFrog Bintray and updated my plugins folder, stopped and started rabbitmq service. This action, courrupted the database.

    To fix it,

    1. Stop Rabbitmq service

    2. I went to %APPDATA%\RabbitMQ\db and cleared the data in transient msg_stores & queues folders. e.g. C:\Users\bharath\AppData\Roaming\RabbitMQ\db\rabbit@js-mnesia\msg_stores\vhosts\6ZOILVXV632BBEWZY4TBABTPP\msg_store_transient

    3. Removed the rabbitmq-delayed-message-exchange from rabbit@js-plugins-expand folder

    4. Removed the data in transient msg_store & queues from RABBIT~1-upgrade-backup folder

    5. Went one folder back and removed the plugin name rabbitmq-delayed-message-exchange, from enabled_plugins file

    6. Start the rabbitmq service

    It worked!!!

    Note: Only try this if data is not important, as it will get cleared or you can restore it from backup.

    0 讨论(0)
提交回复
热议问题