Question

I have RabbitMQ installed and started. The service is running as well. However, when I try to open the management interface in firefox, I get this error:

Firefox can't establish a connection to the server at localhost:#####. (##### being several port numbers i tried).

I checked the ports and made sure that they were correct as well as trying to reinstall RabbitMQ.

Any ideas on how to fix this?

Was it helpful?

Solution

I think you should check a few things:

the management plugin is not enabled by default, you need to run the below command to enable it: (see https://www.rabbitmq.com/management.html)

rabbitmq-plugins enable rabbitmq_management

Also this runs on port 15672 by default, it is possible the server/network is blocking this port. You will need to check that the port is open.

OTHER TIPS

The problem is because you need to enable the plugins in RabbitMQ, in order to enable that open "RabbitMQ Command Prompt (sbin dir)" and run the following command

rabbitmq-plugins enable rabbitmq_management

It will enable all the plugins that is associated with the RabbitMQ. Now open the browser and type http://localhost:15672 it will open a RabbitMQ console login with guest as username and guest as password.

Sometimes, on Windows, it's not enough to do just rabbitmq-plugins enable rabbitmq_management. UI is accessible only after reinstalling RabbitMQ

If you are using Chrome please try with Firefox, I had the same issue on Chrome however it worked fine on Firefox.

I am using rabbitmq container. What made the UI available (under http://localhost:15672/) again for me is stopping/starting the container:

> docker stop <container-id> 
> docker start <container-id>

In Windown, For some reason delete all folder in c:\Users\xxx\AppData\Roaming\RabbitMQ\db\ (xxx is your username)

start rabbitmq net start rabbitmq

check rabbitmq service rabbitmqctl status

Then restart the rabbitmq server from Windows start option.

If you are trying to do this under windows just go to the installation directory for RabbitMQ Server in the sbin directory (mine was at C:\Program Files\RabbitMQ Server\rabbitmq_server-3.10.7\sbin) and there you can run the bat file to enable RabbitMQ:

.\rabbitmq-plugins enable rabbitmq_management

1- install erlang & Set environment variables:

Variable name : ERLANG_HOME
Variable value: C:\Program Files (x86)\erl6.4

note: don't include bin on above step.

2- Add %ERLANG_HOME%\bin to the PATH environmental variable:

Variable name : PATH
Variable value: `%ERLANG_HOME%\bin`
restart

3- In Windown, delete everything in c:\Users\--USERNAME--\AppData\Roaming\RabbitMQ\db\

4- run RabbitMQ command prompt (sbin directory) from start menu and type this command:

rabbitmq-plugins enable rabbitmq_management

5- see the RabbitMQ Managment in:

http://localhost:15672/

username = guest

password = guest

In my case,The rabbit mq in browser runs on http://localhost:15672/. I was trying to access http://localhost:5672/

Do follow Ashwini's answer, before that set environmental variable like below ->

  • Set environment variable:

    Variable name : ERLANG_HOME

    Variable value: C:\Program Files (x86)\erl6.4

note: don't include bin on above step.

2- Add %ERLANG_HOME%\bin to the PATH environmental variable:

Variable name : PATH
Variable value: `%ERLANG_HOME%\bin`

In my case (i am updated RabbitMq) worked this:

  • Delete all files and folders in C:\Users\user\AppData\Roaming\RabbitMQ
  • Reinstall RabbitMq
  • Clear cookies or use another browser
  • Go to http://localhost:15672/ and Ctrl + F5

I have encountered this issue on Windows 10 after installing using chocolatey. I removed and reinstall the service, but it still did not work.

I had to remove the whole RabbitMq and manually install using the installer.

That is rather strange, since chocolatey downloads and installs using some setup executables anyway.

Other than having your plugin enabled, in my case I had cookies from other projects in my browser. Clearing them up has fixed this problem for me.

I faced exactly the same issue. Steps I followed:

  1. I installed ERLang, then installed RabbitMQ.
  2. Opened CMD on \RabbitMQ Server\rabbitmq_server-3.9.13\sbin path in administration mode. rabbitmq-plugins enable rabbitmq_management
  3. Then ran rabbitmq-service.bat start command.

Result: Service started but localhost:15672 doesn't shows anything.

How I fixed it.

Uninstalled existing rabbitMQ(not ERLang). Reinstalled rabbitMQ and followed the same process of going into the folder sbin and opened cmd and all.

I have not seen this answered here so I thought I'd include it. You can pull the rabbitmq image from dockerhub with the management tag which includes the management plugin pre-enabled along side the API.

docker pull rabbitmq:management

And you can access the management dashboard via http://localhost:15672/ like you would normally with guest as both username and password.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top