问题
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:
- The RabbitMQ service (windows service) is running but not responding.
- In the log file I see error
access to vhost 'XXX' refused for user 'guest'
- 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:
- Opened RabbitMQ management console.
- Clicked on Virtual Host
- 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'"
- Gave permission to that virtual host to guest account.
来源:https://stackoverflow.com/questions/51195026/rabbitmq-access-to-vhost-xxx-refused-for-user-guest