Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot enable rabbitmq-management plugin on Windows

Tags:

rabbitmq

So, this is what I've done:

  1. Installed Erlang on my Windows x64 bit machine
  2. Installed RabbitMQ
  3. Started RabbitMQ service

At this step I have no errors. When, however, I try to enabe rabbitmq-management, I get some error messages in the console. The way I try to enable it is this one:

C:\...\rabbitmq-server-3.5.6\sbin>rabbitmq-plugins.bat enable rabbitmq_management

This results in:

Applying plugin configuration to rabbit@Jacobian... failed

To add to this, I know about this thread, but I'm not sure what this command means SET HOMEDRIVE=C:. Nevertheless, I tried it like so:

C:\...\rabbitmq-server-3.5.6\sbin>  SET HOMEDRIVE=C:
C:\...\rabbitmq-server-3.5.6\sbin>  rabbitmq-plugins.bat enable rabbitmq_management

But I still got the same error message. Thanks!

EDIT:

enter image description here

EDIT

It seems, like RabbitMQ became RubbishMQ. The catch is I followed very standard and very basic steps to install RabbitMQ now on Ubuntu machine and got a terrible list of error messages once again. These are the steps I followed:

apt-get install pkg-config automake autoconf libsigc++-2.0-dev 
git clone git://github.com/alanxz/rabbitmq-c.git
cd rabbitmq-c
# Enable and update the codegen git submodule
git submodule init
git submodule update
# Configure, compile and install
autoreconf -i && ./configure && make && sudo make install 
rabbitmq-plugins enable rabbitmq_management

When I run the last command I get tons of error messages. Among them I see such as "error_logger ... Error when reading ./.erlang.cookie: eaccess". So, I guess there are some secret missing steps or some voodoo spell, that can make it work. But I do not know all that stuff and hope to hear some advice. This is what I expect to see - 1) step by step installation of RabbitMQ on Windows and step by step test, that all works 2) the same for Ubuntu. Ready, Steady, Go!

like image 872
Jacobian Avatar asked Nov 27 '15 06:11

Jacobian


Video Answer


4 Answers

I faced the same problem and my investigations led me to https://stackoverflow.com/a/34538688 which helped me solve it. After following the steps in that answer, start the service and the problem should be solved.

Basically, the problem is caused by the RabbitMQ installer not registering the service correctly.

like image 84
Eric Kamara Avatar answered Oct 22 '22 13:10

Eric Kamara


Somehow, this solved my issue from Command Prompt run as administrator.

C:\...\rabbitmq-server-3.5.6\sbin> SET HOMEDRIVE=C: C:\...\rabbitmq-server-3.5.6\sbin> rabbitmq-service remove C:\...\rabbitmq-server-3.5.6\sbin> rabbitmq-service install C:\...\rabbitmq-server-3.5.6\sbin> rabbitmq-plugins.bat enable rabbitmq_management

Thanks @jacboian

like image 26
itwasnoteasy Avatar answered Oct 22 '22 14:10

itwasnoteasy


Check if this file C:\Windows\.erlang.cookie and this file C:\Users\youruser\.erlang.cookie are equals.

If not, copy C:\Windows\.erlang.cookie to C:\Users\youruser\.erlang.cookie

youruser is the windows user you are using to enable the management console. for example in my case: C:\Users\gabriele\.erlang.cookie

like image 29
Gabriele Santomaggio Avatar answered Oct 22 '22 13:10

Gabriele Santomaggio


I faced the same problem, but none of presented solution helped me. Maybe someone will find my solution helpfull.

After running

rabbitmq-service.bat install

command I found that RabbitMQ service in windows service manager was added but didn't run. I turned it on manually and then

rabbitmq-plugins.bat enable rabbitmq_management

command runs perfectly.

After that http://localhost:15672 run successfully

like image 31
Jukka Newkampton Avatar answered Oct 22 '22 13:10

Jukka Newkampton