Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RabbitMQ 3.3.1 can not login with guest/guest

Tags:

rabbitmq

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.

like image 432
Hamad Salahuddin Avatar asked May 15 '14 05:05

Hamad Salahuddin


People also ask

What is default username and password for RabbitMQ?

Log in to the RabbitMQ web-based management interface as admin admin using the default password of changeme. To access the RabbitMQ web-based management interface, connect with a browser to port 15672 on the host where RabbitMQ is installed.

How do I connect to RabbitMQ server remotely?

Create new RabbitMQ user and set permissions To create a new RabbitMQ user to access the RabbitMQ server remotely: Open a browser and navigate to http://localhost:15672/. The RabbitMQ Management login screen displays. Log into RabbitMQ using guest as both the username and password.


2 Answers

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 :)

like image 167
Prasanth Jaya Avatar answered Sep 23 '22 13:09

Prasanth Jaya


I tried on Debian the same configuration with the following steps:

  1. Installed RabbitMQ.
  2. Enabled the web-management plug-in (not necessary).

When I tried to login I had the same error:

enter image description here

So I created a rabbitmq.config file (classic configuration file) inside the /etc/rabbitmq directory with the following content (notice the final dot):

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

Alternatively, one can create instead a rabbitmq.conf file (new configuration file) inside the same directory with the following content:

loopback_users = none

Then I executed the invoke-rc.d rabbitmq-server start command and both the console and the Java client were able to connect using the guest/guest credentials:

enter image description here

So I think you have some other problem if this procedure doesn't work. For example your RabbitMQ might be unable to read the configuration file if for some reason you have changed the RABBITMQ_CONFIG_FILE environment variable.

like image 31
Gabriele Santomaggio Avatar answered Sep 22 '22 13:09

Gabriele Santomaggio