Error : login failed on rabbitmq web-management console

If you have newly installed RabbitMQ server and trying to view queues or exchanges using RabbitMQ web management console you may see below error, while login with guest account.


In order to login to RabbitMQ web-management console using guest account, follow below steps

1. Enable web-management plugin
Use below command to enable the management plugin


# sudo rabbitmq-plugins enable rabbitmq_management


2. Once plugin is enabled, you will need to update the rabbitmq.config file. Create if not exists and edit "/etc/rabbitmq/rabbitmq.config" file.
Append below line to the file


[{rabbit, [{loopback_users, []}]}].


Do not miss last dot from the line. Once the changes are saved, restart RabbiMQ server using below command


# service rabbitmq-server restart


Now you should be able to login to management console with guest user account.




For more details about access control visit RabbitMQ Access Control

No comments:

Post a Comment

Golang: Http POST Request with JSON Body example

Go standard library comes with "net/http" package which has excellent support for HTTP Client and Server.   In order to post JSON ...