RabbitMQ - access to vhost 'XXX' refused for user 'guest'

佐手、 提交于 2020-06-27 09:21:16

问题


I am using RabbitMQ 3.0.3 version. The service was working fine for last 4-5 years. Recently some updates patches were installed on the server and the Service stopped responding. This is what is happening:

  1. The RabbitMQ service (windows service) is running but not responding.
  2. In the log file I see error access to vhost 'XXX' refused for user 'guest'
  3. The management console is throwing site cannot be reached error

What options do I have here? I cannot update RabbitMQ version as my code starts to fail. I have not tried reinstalling the service.

I am using RabbitMQ 3.0.3 - How can I request guest account to be accessible even from remote machine. rabbitmq.conf file only appeared after version 3.7.0


回答1:


I am not saying this is the right answer but this is what I did to fix this issue.

Confusing part: RabbitMQ says Guest account is not allowed to access RabbitMQ from a remote machine. I am using RabbitMQ 3.0.3 and I am able to access RabbitMQ from remote machine using Guest account. I am not sure if they made this change in a later version.

Fix I applied:

  1. Opened RabbitMQ management console.
  2. Clicked on Virtual Host
  3. Created the Virtual host (gave a name and clicked on Add Virtual host button). The name of Virtual host was same as the one I saw in error message "access to vhost 'XXX' refused for user 'guest'"
  4. Gave permission to that virtual host to guest account.


来源:https://stackoverflow.com/questions/51195026/rabbitmq-access-to-vhost-xxx-refused-for-user-guest

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!