54
votes

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?

8

8 Answers

90
votes

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.

17
votes

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.

9
votes

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

1
votes

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>
1
votes

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

1
votes

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.

0
votes

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.

0
votes

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