RabbitMQ started but can't access management interface
Asked Answered
R

17

83

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?

Ruinous answered 6/5, 2014 at 16:23 Comment(0)
J
162

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.

Juxtaposition answered 6/5, 2014 at 16:50 Comment(10)
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)Demp
this was only part of the problem for me, right now rabbitmq keeps restarting. so no solution yetEpanodos
after following all the comments here I am finally able to run localhost:15672Comanchean
yes, it run on http://localhost:15672/ but In code, I have to specify the port as 5672 not 15672. any idea why?Utley
@Utley 5672 is the port of the actual server, 15672 is the port of the web-based management interface toolAtomics
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 PowerShellOstraw
cd C:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.16\sbin and then ./rabbitmq-plugins enable rabbitmq_management and than go to localhost:15672Pharmacopoeia
Same problem, in my case the solution was restart after apply the commandConvoke
I run the command. Console write success message with plugin enabled. But still cann not access localhost:15672Isleana
surely there is a configuration option in rabbitmq.conf for this - a better answer might have that? this is dumbAtomy
L
33

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.

Livraison answered 11/5, 2018 at 6:1 Comment(3)
Regular Command line only, power shell does not seem to work. ThanksOstraw
You are a Saviour :)Grease
Worked for me, but before that had to set env variable correctly for erl, see my answer below. Thanks!Facient
L
21

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

Lentic answered 16/8, 2018 at 14:35 Comment(5)
Thanks, I reinstalled and it started working (Windows 7 Enterprise)Inundate
superb. all docs say you do NOT have to re-install. After your comment I have re-installed. waisted a lot of time till I found this answer!Frozen
I have done rabbitmq-plugins enable rabbitmq_management and (re)installed RabbitMQ.. It worked . ThanksNabataean
Yes reinstalling was the key, the plugin was already enabled running rabbitmq-plugins listDragoman
Thanks a lot, reinstalling works for me, Windows 10 ProMassachusetts
R
7

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

Rodrique answered 13/5, 2020 at 5:23 Comment(1)
Fixed using Firefox instead of Chrome browserDistil
D
5

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

Donelson answered 25/10, 2022 at 7:6 Comment(0)
P
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>
Prospective answered 20/5, 2019 at 13:5 Comment(1)
You can also do this by clicking the Play button in the Docker Desktop windows app on the container itself.Baldachin
M
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.

Ministrant answered 16/8, 2020 at 22:53 Comment(0)
E
2

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

Eshelman answered 8/7, 2021 at 4:32 Comment(0)
G
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
Gefell answered 5/9, 2022 at 21:26 Comment(0)
F
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`
Facient answered 13/3, 2022 at 7:56 Comment(0)
C
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
Crespo answered 26/12, 2022 at 15:33 Comment(0)
P
1

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.

Potentilla answered 12/5, 2023 at 14:2 Comment(0)
M
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.

Milkwhite answered 26/2, 2020 at 16:17 Comment(0)
B
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.

Buchan answered 12/10, 2021 at 12:1 Comment(0)
K
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.

Kaiserism answered 13/3, 2022 at 8:23 Comment(0)
H
0

These days browsers automatically redirect requests to HTTPS, but it appears management console works only on HTTP.

Whatever browser you are using, please try to stop redirecting (best if you do that just for localhost).

For Chrome, you navigate chrome://net-internals/#hsts and add "localhost" (without quotes) into the "Delete domain security policies" input & press the button.

Harlin answered 26/9, 2023 at 15:46 Comment(0)
K
0

For docker version use below command in command prompt

docker run -it --rm --name rabbitmq -p 5672:5672 -p 15672:15672 rabbitmq:3.12.14-management-alpine

And then access management portal in web http://localhost:15672/

username & password both are guest

Kalikow answered 1/6 at 17:23 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.