RabbitMQ setUp Issue In windows - rabbitmq

I am beginner to RabbitMQ. For the first time I am trying to configure RabbitMQ in my windows machine.I followed the steps given on official site www.rabbitmq.com/install-windows-manual.html.But the problem I am facing is when I run "services.msc" command, I am not able to see RABBITMQ_SERVICENAME .
What could be the issue?

Shivangi,
When you say "I am not able to see RABBITMQ_SERVICENAME", does it mean you don't see the RabbitMQ service in the list of services ?
What I usually do when RabbitMQ service fails to install correctly, I use the rabbitmq-service script located in the "sbin" installation folder and run the 2 following commands in a command prompt:
rabbitmq-service remove
rabbitmq-service install

Related

RabbitMQ management not visible after installation

I am trying to install Rabbitmq on local machine..
I have initially downloaded Erlang v23.1 and then rabbitmq for windows.
The RabbitMQ service is running but i can't see the management interface.
I ran the command
rabbitmq-plugins enable rabbitmq_management
I am getting below result
The tutorial which i follow say that it should be something like
.
I noted that i have missing some plugins. Can this be a reason why rabbitmq managment interface is not visible. If yes how can i install those..

Error while installing RabbitMQ Service on Windows

I want to install RabbitMQ Service as a Windows Service. I see an option to install RabbitMQ Service from installer (v3.6.5). However, it does not work.
I write a Batch script trying to re-install RabbitMQ service after running installer file.
set HOMEDRIVE=C:
set HOMEPATH=\Users\%username%
call "C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.5\sbin\rabbitmq-service.bat" remove
call "C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.5\sbin\rabbitmq-service.bat" install
call net start RabbitMQ
call "C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.5\sbin\rabbitmq-plugins.bat" enable rabbitmq_management
However, this script is quite unstable.
Sometimes it works, but sometimes it doesn't.
I tested in many PCs with Windows 10, Windows 8.1, Windows 7 and Windows Server 2012.
When error occurs, it always occurs in the last command (enabling RabbitMQ management)
C:\Program Files\erl9.0\erts-9.0\bin\erlsrv: Service RabbitMQ removed from system.
C:\Program Files\erl9.0\erts-9.0\bin\erlsrv: Service RabbitMQ added to system.
The RabbitMQ service is starting.
The RabbitMQ service was started successfully.
Plugin configuration unchanged.
Applying plugin configuration to rabbit#<myhost>... failed.
* Could not contact node rabbit#<myhost>.
Changes will take effect at broker restart.
* Options: --online - fail if broker cannot be contacted.
--offline - do not try to contact broker.
Sometimes, I got this error
...
Plugin configuration unchanged.
Applying plugin configuration to rabbit#<myhost>... failed.
Error: noproc
In my PC, I get the first error (could not contact node...) when %HOMEDRIVE%%HOMEPATH% is C:\users\myusername. When I change to C:\Windows, it works well. Then I change back to C:\users\, it also works well, no more error.
However, on a server with Windows Server 2012, even C:\Windows does not work (could not contact node...).
In all PCs, I see .erlang.cookie file in both C:\Windows and C:\Users[username]. (I don't know anything about erlang, just follow some instructions from other questions in StackOverFlow).
What is wrong with my script?
Is the error related to the version of RabbitMQ? I am not using the latest version.
Is it related to Erlang? I guess if Erlang caused this problem, then two commands about removing/installing RabbitMQ service would be failed.
Is it able to install the service without checking service option from installer, just run command rabbitmq-service.bat install?
The RabbitMQ team monitors this mailing list and only sometimes answers questions on stackoverflow.
You should be using the most recent version of the RabbitMQ installer for Windows, available here. I am assuming that <myhost> in your question is an edited-out hostname, not what is actually being used. You also don't mention which version of Erlang you have installed, but I assume it is a recent one.
You should uninstall RabbitMQ and ensure all traces are removed from C:\Users\myusername (be sure to check %APPDATA%) and C:\Windows. You should not have to change the default values of HOMEDRIVE and HOMEPATH prior to installation. Use an administrative account when running the Erlang and RabbitMQ .exe installers.
Please note that 3.6.12 has this issue on Windows. A workaround is to set vm_memory_calculation_strategy to erlang. I fixed this issue and it will be delivered in 3.6.13.
Thanks for using RabbitMQ!

Can't open RabbitMq after installation on Windows

I was receiving this error when accessing http://localhost:15672 with user guest and password guest (default credentials)
undefined: There is no template at js/tmpl/login.ejs undefined
So I restarted the rabbitmq service from services.msc then by mistake started also the Radio Management Service.
After doing this, http://localhost:15672/ wouldn't even open. It says:
localhost refused to connect. Search Google for localhost 15672
ERR_CONNECTION_REFUSED
So I stopped "Radio Management Service", tried to open rabbitmq again, same thing: ERR_CONNECTION_REFUSED.
So I uninstalled both Rabbit MQ Server and erlang.
Then downloaded them from the official site and reinstalled them, first the "Erlang for Windows installer 64-bit" and then the "rabbitmq-server-3.6.12.exe".
However, I still get ERR_CONNECTION_REFUSED (when trying to access http://localhost:15672/).
I didn't know what exactly I should allow through firewall so I added all exe files found in C:\Program Files\erl9.0\bin
Restarted RabbitMq from services.msc. Still ERR_CONNECTION_REFUSED.
Am I missing any plugins or something?
Next, I ran the command rabbitmq-plugins enable rabbitmq_management from the RabbitMQ Command Prompt found in C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.12\sbin, however I got:
C:\Program Files\RabbitMQ
Server\rabbitmq_server-3.6.12\sbin>rabbitmq-plugins enable
rabbitmq_management Plugin configuration unchanged.
Applying plugin configuration to rabbit#MYPCNAME... failed. * Could
not contact node rabbit#MYPCNAME. Changes will take effect at broker
restart. * Options: --online - fail if broker cannot be contacted.
--offline - do not try to contact broker.
I am at a loss. What else should I try?
*** Later edit:
I also removed and readded the rabbitmq service in case that was related to the core issue at hand:
C:\Program Files\RabbitMQ
Server\rabbitmq_server-3.6.12\sbin>rabbitmq-service remove C:\Program
Files\erl9.0\erts-9.0\bin\erlsrv: Service RabbitMQ removed from
system.
C:\Program Files\RabbitMQ
Server\rabbitmq_server-3.6.12\sbin>rabbitmq-service install C:\Program
Files\erl9.0\erts-9.0\bin\erlsrv: Service RabbitMQ added to system.
and then reattempted to:
C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.12\sbin>rabbitmq-plugins enable rabbitmq_management
...with the same error as above. (could not contact node etc)
You might need to enable rabbit management pluggin. By default it's not enabled. Run the following command:
rabbitmq-plugins enable rabbitmq_management
Then restart your service.
Should work.
In my case, I checked my RabbitMQ service if it was running. I found that it showed running, but as soon I refreshed the Services window, I could see that the service was not started. Restarting would start but immediately stop. I had to reinstall the service.
I ran the following on command prompt (as Administrator) to solve the problem:
SET HOMEDRIVE=C:
SC delete RabbitMQ
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Ericsson\Erlang\ErlSrv\1.1\RabbitMQ" /f
call rabbitmq-service.bat install
call rabbitmq-service.bat start
call rabbitmq-plugins.bat enable rabbitmq_management
I've stumbled on this problem and none of the other answers did not work. In my case, I needed to clear all the cookies and everything worked out smoothly from that point.
I was upgrading Rabbit and Erlang to resolve the use of outdated jquery.js and initially ran into the issue where the management UI wouldn't load in the browser. But it turned out that the service never actually started the broker (this can be verified by running rabbitmq-server - if that works then the service is the problem).
As noted elsewhere, it is absolutely mandatory to run rabbitmq-plugins enable rabbitmq_management to enable the management UI.
After following Sri Reddy's recommendation a couple times, it boiled down to the fact that I had to delete my existing .erlang.cookie, then SET HOMEDRIVE=C: and (re)install the service in the same command session/scope.
Our company uses a networked home drive of H: so the cookie failed to install and the service (quietly) failed to run the broker (despite saying it was started and running).

Getting Chef to install, configure and run RabbitMQ

I am trying to get a simple, single instance of RabbitMQ running via this RabbitMQ-chef recipe. Essentially, I have an Ubuntu machine, and I’d like Chef to take care of all the heavy lifting necessary to install, configure and get RabbitMQ running on it.
The documentation isn’t really written for beginners, but I went ahead and started by downloading the cookook:
knife cookbook site download rabbitmq
WARNING: No knife configuration file found
Downloading rabbitmq from the cookbooks site at version 4.1.2 to /Users/myuser/sandbox/chef/0.6.2/rabbitmq-4.1.2.tar.gz
Cookbook saved: /Users/myuser/sandbox/chef/0.6.2/rabbitmq-4.1.2.tar.gz
However now I’m at a complete loss as to what I need to script/configure in order to add this cookbook to my Chef server, such that when I SSH onto my target Ubuntu machine, I can bootstrap that machine with Chef and then run something to turn the Ubuntu machine into a RabbitMQ server. Any ideas?

How to keep mule CE 5.3.0 running

I've created my mule application, and i deploy it on mule ce 5.3.0 my question now is how to keep my server running which means even if i close my CMD (the window where my mule is running) my application keep running.
See here: https://developer.mulesoft.com/docs/display/current/Starting+and+Stopping+Mule+ESB#StartingandStoppingMuleESB-StartingandStoppingMuleViatheCommandLine
Starting In the Background
Use the cd command to navigate to the $MULE_HOME/bin directory.
Run the startup script according to the options below.
Unix: ./mule start
Windows: mule.bat start
To further add on to what Ryan said, you can also install Mule as a service if you're running on Windows. From then you can also configure your Mule server to start up every time your machine boots up.
You can do so using the following command:
mule install