74

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?

roottraveller
  • 7,942
  • 7
  • 60
  • 65
tehdoommarine
  • 1,868
  • 3
  • 18
  • 31

15 Answers15

144

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.

Ahmed Ashour
  • 5,179
  • 10
  • 35
  • 56
Scott Jungwirth
  • 6,105
  • 3
  • 38
  • 35
  • 20
    You have to run the above command from 'sbin' folder in RabbitMQ installtion path (e.g. C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.4\sbin) – Vijai Mar 16 '18 at 12:53
  • 1
    this was only part of the problem for me, right now rabbitmq keeps restarting. so no solution yet – qodeninja Aug 13 '18 at 17:39
  • 1
    after following all the comments here I am finally able to run http://localhost:15672/ – mruanova Sep 19 '18 at 18:25
  • 2
    yes, it run on `http://localhost:15672/` but In code, I have to specify the port as `5672` not `15672`. any idea why? – roottraveller Jul 26 '19 at 07:45
  • 5
    @roottraveller 5672 is the port of the actual server, 15672 is the port of the web-based management interface tool – Avrohom Yisroel Aug 06 '19 at 17:37
  • For anytone with the same issue, you need to open the sbin RabbitMQ Server folder under Program Files on the console. It does not work on the PowerShell – Marco Leite Jan 15 '20 at 10:35
  • cd C:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.16\sbin and then ./rabbitmq-plugins enable rabbitmq_management and than go to http://localhost:15672/ – Mateusz May 30 '21 at 15:29
  • 2
    Same problem, in my case the solution was restart after apply the command – Julián Feb 02 '23 at 14:40
  • I run the command. Console write success message with plugin enabled. But still cann not access localhost:15672 – Čamo Apr 26 '23 at 11:22
32

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.

roottraveller
  • 7,942
  • 7
  • 60
  • 65
Ashwini
  • 771
  • 10
  • 5
17

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

Javasick
  • 2,753
  • 1
  • 23
  • 35
4

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

Nadeesha
  • 825
  • 2
  • 9
  • 12
4

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

sina
  • 2,103
  • 1
  • 19
  • 26
3

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>
elirandav
  • 1,913
  • 19
  • 27
  • You can also do this by clicking the Play button in the Docker Desktop windows app on the container itself. – Cord Rehn Nov 05 '21 at 21:41
3

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.

Raj Shukla
  • 442
  • 5
  • 9
2

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

Ahmed Ashour
  • 5,179
  • 10
  • 35
  • 56
Shantesh Sindgi
  • 265
  • 3
  • 4
2

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
meJustAndrew
  • 6,011
  • 8
  • 50
  • 76
1

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`
Derrick
  • 3,669
  • 5
  • 35
  • 50
1

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
defourten
  • 9
  • 2
0

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.

Alexei - check Codidact
  • 22,016
  • 16
  • 145
  • 164
0

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.

MarekK
  • 428
  • 3
  • 12
0

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.

Ashish Singh
  • 399
  • 4
  • 11
0

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.

chandler
  • 71
  • 3
  • 9