RabbitMQ Windows Server - Won't Stay Running.....

1,592 views
Skip to first unread message

SallySue

unread,
Oct 30, 2015, 12:30:02 PM10/30/15
to rabbitmq-users

Hello.  I have been struggling to get RabbitMQ Windows service to stay started.  It will start initially, but within a few seconds will stop and write to the erl_crash.dump file.  No logs are ever generated.

 

Here is the initial error in the Crash Dump.

Slogan: init terminating in do_boot ()

System version: Erlang/OTP 18 [erts-7.1] [64-bit] [smp:4:4] [async-threads:30]

Compiled: Tue Sep 22 21:08:32 2015

 

RabbitMQ is being installed on a Windows 2008 R2 SP1 server.

Environment Variables that are set:


ERLANG_HOME                                       D:\Program Files\erl7.1

ERLANG_SERVICE_MANAGER_PATH      D:\Program Files\erl7.1\erts-7.1\bin

 

RABBITMQ_BASE                                     D:\RabbitMQ

RABBITMQ_CONFIG_FILE                         D:\RABBITMQ

RABBITMQ_LOG_BASE                             D:\RabbitMQ\logs

RABBITMQ_NODE_IP_ADDRESS               x.x.x.x

 

I have tried both the local service account (which we don't want to use long-term) and a domain service account to start the service, same result regardless of account.

 

I have created a rabbitmq-env-conf.bat file per earlier direction and have placed this in the D:\RabbitMQ Directory, to contain:


set /p cookie= <!RABBITMQ_BASE!\.erlang.cookie

set RABBITMQ_CTL_ERL_ARGS=-setcookie !cookie!

set RABBITMQ_SERVER_ERL_ARGS=-setcookie !cookie!

 

I have a copy of the rabbitmq.config file in the D:\RabbitMQ Directory.  I changed logging to debug, No other changes.


The .erlang.cookie was placed (manually by me) in the D:\RabbitMQ directory.


I have reinstalled the service using the rabbitmq-service.bat install command after changes as I understand the service needs to be reinstalled.

 

The Windows Event log is presenting the following errors:


Event ID: 7023, The RabbitMQ service terminated with the following error:

The process terminated unexpectedly.

 

Event ID: RabbitMQ: Erlang machine stopped instantly (distribution name conflict?). The service is not restarted as OnFail is set to ignore.

 

 

Our objective is to not have this run in a user’s profile, but rather in a standard directory on the server.  We are also required to use a domain account to run the service.

 

 

Any help is appreciated to get this up and running.

 

Thanks.

SallySue

 

SallySue

unread,
Oct 30, 2015, 5:45:10 PM10/30/15
to rabbitmq-users
Hello.  I just wanted to note this for people looking for a solution.  Essentially, I reinstalled RabbitMQ Server and changed the directory to eliminate all spaces and characters, set to D:\RabbitMQServer, all started well, I have my logs now in the directory I defined below and was able to start and have the service stay running under the domain account.

Thank you
SallySue

Michael Klishin

unread,
Oct 31, 2015, 2:24:45 AM10/31/15
to rabbitm...@googlegroups.com, SallySue
 On 31 October 2015 at 00:45:12, SallySue (jennifer...@pearson.com) wrote:
> Hello. I just wanted to note this for people looking for a solution.
> Essentially, I reinstalled RabbitMQ Server and changed the
> directory to eliminate all spaces and characters, set to D:\RabbitMQServer,
> all started well, I have my logs now in the directory I defined
> below and was able to start and have the service stay running under
> the domain account.

while we understand that this is not great, this is a known Windows-specific issue
that has been documented for a long time:
https://www.rabbitmq.com/windows-quirks.html
--
MK

Staff Software Engineer, Pivotal/RabbitMQ


Reply all
Reply to author
Forward
0 new messages