RabbitMQ 3.3.1 can not login with guest/guest

Hamad Salahuddin picture Hamad Salahuddin · May 15, 2014 · Viewed 92.4k times · Source

I have installed the latest version of RabbitMQ on a VPS Debian Linux box. Tried to get login through guest/guest but returned with the message login failed. I did a little research and found that for security reason its prohibited to get login via guest/guest remotely.

I also have tried enabling guest uses on this version to get logged in remotely by creating a rabbitmq.config file manually (because the installation didn't create one) and placing the following entry only

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

after restart the rabbitmq with the following command.

invoke-rc.d rabbitmq-server stop -- to stop
invoke-rc.d rabbitmq-server start -- to start

It still doesn't logged me in with guest/guest. I also have tried installing RabbitMQ on Windows VPS and tried to get log in via guest/guest through localhost but again i get the same message login failed.

Also provide me a source where I could try installing the old version of RabbitMQ that does support logging remotely via guest/guest.

Answer

Prasanth Jaya picture Prasanth Jaya · Nov 28, 2016

I had the same Problem..

I installed RabbitMQ and Enabled Web Interface also but still couldn't sign in with any user i newly created, this is because you need to be administrator to access this.

Do not create any config file and mess with it..

This is what i did then,

  1. Add a new/fresh user, say user test and password test:

    rabbitmqctl add_user test test
    
  2. Give administrative access to the new user:

    rabbitmqctl set_user_tags test administrator
    
  3. Set permission to newly created user:

    rabbitmqctl set_permissions -p / test ".*" ".*" ".*"
    

That's it, enjoy :)