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

SharpCoder picture SharpCoder · Jul 5, 2018 · Viewed 8k times · Source

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

Answer

SharpCoder picture SharpCoder · Jul 6, 2018

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.