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

[root@VM-OR-rabbit-MQ ~]# rabbitmqctl list_users

Listing users …

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

[root@VM-OR-rabbit-MQ ~]# rabbitmqctl add_user admin admin

Creating user “admin” …

is set to administrator

[root@VM-OR-rabbit-MQ ~]# rabbitmqctl set_user_tags admin administrator

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

[root@VM-OR-rabbit-MQ ~]# rabbitmqctl list_users

Listing users …

admin/administrator

guest (administrator)
Restart the rabbitmq service:

[root@VM-OR-rabbit-MQ ~]# service rabbitmq-server restart

Restarting rabbitmq-server: SUCCESS

rabbitmq-server.

retest rabbitMQ login success

Read More: