Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 505
SharpCoder Avatar asked Jul 05 '18 15:07

SharpCoder


1 Answers

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.
like image 130
SharpCoder Avatar answered Oct 19 '22 21:10

SharpCoder