RabbitMQ login failed

rabbitMQ logon failure

check log found error

tail /var/log/rabbitmq/rabbit\@VM-OR-rabbit-MQ.log

=ERROR REPORT==== 12-Mar-2019::10:13:56 ===

webmachine error: path=”/api/whoami”

“Unauthorized”

solution:

look at the list of users

[[email protected] ~]# rabbitmqctl list_users

Listing users …

guest (administrator)
Create an admin user with a password of admin

[[email protected] ~]# rabbitmqctl add_user admin admin

Creating user “admin” …

is set to administrator

[[email protected] ~]# rabbitmqctl set_user_tags admin administrator

Setting tags for user “admin” to [administrator] …

[[email protected] ~]# rabbitmqctl list_users

Listing users …

admin/administrator

guest (administrator)
Restart the rabbitmq service:

[[email protected] ~]# service rabbitmq-server restart

Restarting rabbitmq-server: SUCCESS

rabbitmq-server.

retest rabbitMQ login success

Read More: