RabbitMQ - Windows - Issues Moving Default Locations

464 views
Skip to first unread message

Zack Kozar

unread,
Jun 16, 2015, 3:05:56 PM6/16/15
to rabbitm...@googlegroups.com
Our organization just started working with RabbitMQ in a POC environment.  I am on the learning curve here but RabbitMQ installs by default to the %AppData%\User directory structure.  I would like to move the files to a new data lun, i have tried using the environment variables detailed here at https://www.rabbitmq.com/relocate.html but my rabbitmq management console is still showing the initial paths.

I have restarted the RabbitMQ service after adding the environment variables, rebooted the server, and flushed the cache.

Any help would be greatly appreciated.

Environment Variables Added:

RABBITMQ_BASE - D:\RabbitMQ
RABBITMQ_CONFIG_FILE - D:\RabbitMQ
RABBITMQ_LOG_BASE - D:\RabbitMQ\log
RABBITMQ_LOGS - D:\RabbitMQ\log
RABBITMQ_MNESIA_BASE - D:\RabbitMQ\db

Michael Klishin

unread,
Jun 16, 2015, 3:08:44 PM6/16/15
to rabbitm...@googlegroups.com, Zack Kozar
 On 16 June 2015 at 22:05:59, Zack Kozar (zack...@gmail.com) wrote:
> I have restarted the RabbitMQ service after adding the environment
> variables, rebooted the server, and flushed the cache.

From http://www.rabbitmq.com/configure.html:

«For environment changes to take effect on Windows, the service must be re-installed. It is not sufficient to restart the service.»

There's also a transcript of how the service can be "recreated" without reinstalling
RabbitMQ.
--
MK

Staff Software Engineer, Pivotal/RabbitMQ


Zack Kozar

unread,
Jun 16, 2015, 3:38:39 PM6/16/15
to rabbitm...@googlegroups.com, zack...@gmail.com
MK

Thank you for the help, this was the root of my problem.  Re-install of RabbitMQ resolved my issue.

Thanks

run2...@gmail.com

unread,
Aug 18, 2016, 7:20:34 PM8/18/16
to rabbitmq-users
Hi - I am having a similar problem, however, re-installing the the service didn't solve the problem.  I changed the RABBITMQ_LOG_BASE variable once and restarted the service and it worked.  However, I had a misspelling, I typed RabbitQM instead of RabbitMQ in my path.  When I tried to correct the spelling, the logs still go to the misspelled path.  When I view the environment variables, I see RABBITMQ_LOG_BASE twice, but I can't seem to delete or modify the erroneous one.  I think buried in Erlang, but am not sure.  When I scour the drive for occurences of the misspelled path, I see some paramter called error_logging.  Any ideas appreciated.  Thank you.

Michael Klishin

unread,
Aug 19, 2016, 1:22:30 AM8/19/16
to rabbitm...@googlegroups.com
Where specifically do you see two environment variables?
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Elizabeth Everly

unread,
Aug 19, 2016, 7:03:44 AM8/19/16
to rabbitm...@googlegroups.com
From the the Windows command prompt.  I enter the SET command, and it lists the envrionment variable twice.  
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "rabbitmq-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rabbitmq-users/d1X2cWW3OAA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.

Michael Klishin

unread,
Aug 19, 2016, 7:20:52 AM8/19/16
to rabbitm...@googlegroups.com
Then either there is a typo in one of those, or maybe their case is different? I have never seen this
before (Windows is not an OS I use much, though).

I am also not sure how the Erlang runtime would pick a value in such case.

On Fri, Aug 19, 2016 at 2:03 PM, Elizabeth Everly <run2...@gmail.com> wrote:
From the the Windows command prompt.  I enter the SET command, and it lists the envrionment variable twice.  


On Thursday, August 18, 2016, Michael Klishin <mkli...@pivotal.io> wrote:
Where specifically do you see two environment variables?

On 19 ago 2016, at 2:20, run2...@gmail.com wrote:

Hi - I am having a similar problem, however, re-installing the the service didn't solve the problem.  I changed the RABBITMQ_LOG_BASE variable once and restarted the service and it worked.  However, I had a misspelling, I typed RabbitQM instead of RabbitMQ in my path.  When I tried to correct the spelling, the logs still go to the misspelled path.  When I view the environment variables, I see RABBITMQ_LOG_BASE twice, but I can't seem to delete or modify the erroneous one.  I think buried in Erlang, but am not sure.  When I scour the drive for occurences of the misspelled path, I see some paramter called error_logging.  Any ideas appreciated.  Thank you.

On Tuesday, June 16, 2015 at 12:05:56 PM UTC-7, Zack Kozar wrote:
Our organization just started working with RabbitMQ in a POC environment.  I am on the learning curve here but RabbitMQ installs by default to the %AppData%\User directory structure.  I would like to move the files to a new data lun, i have tried using the environment variables detailed here at https://www.rabbitmq.com/relocate.html but my rabbitmq management console is still showing the initial paths.

I have restarted the RabbitMQ service after adding the environment variables, rebooted the server, and flushed the cache.

Any help would be greatly appreciated.

Environment Variables Added:

RABBITMQ_BASE - D:\RabbitMQ
RABBITMQ_CONFIG_FILE - D:\RabbitMQ
RABBITMQ_LOG_BASE - D:\RabbitMQ\log
RABBITMQ_LOGS - D:\RabbitMQ\log
RABBITMQ_MNESIA_BASE - D:\RabbitMQ\db

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "rabbitmq-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rabbitmq-users/d1X2cWW3OAA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rabbitmq-users+unsubscribe@googlegroups.com.

To post to this group, send email to rabbitm...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

run2...@gmail.com

unread,
Aug 19, 2016, 10:53:08 AM8/19/16
to rabbitmq-users
Well, when I got into work today, after a server reboot, I see only one environment variable for each of these paths. 

RABBITMQ_BASE - C:\RabbitMQ
RABBITMQ_CONFIG_FILE - C:\RabbitMQ
RABBITMQ_LOG_BASE - C:\RabbitMQ\log
RABBITMQ_LOGS - C:\RabbitMQ\log
RABBITMQ_MNESIA_BASE - C:\RabbitMQ\db
 
However, the RabbitMQ service will not start.  The windows event viewer shows this:

RabbitMQ: Erlang machine stopped instantly (distribution name conflict?). The service is not restarted, ignoring OnFail option.

I wonder if I need to unistall and reinstall everything?


On Tuesday, June 16, 2015 at 12:05:56 PM UTC-7, Zack Kozar wrote:

Michael Klishin

unread,
Aug 19, 2016, 11:00:55 AM8/19/16
to rabbitm...@googlegroups.com, run2...@gmail.com
There could be a node with the same name running on your machine already. Uninstalling should
stop it :) 
> --
> You received this message because you are subscribed to the Google Groups "rabbitmq-users"
> group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
> To post to this group, send an email to rabbitm...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

--

run2...@gmail.com

unread,
Aug 19, 2016, 11:03:14 AM8/19/16
to rabbitmq-users
I don't understand.  I did a -remove and -install with the parameters below, but in looking at the log file to see why the service won't start, this is in the log, not the corrected paths that I set in the environment variables  (even with the path Typos I mentioned yesterday):

=INFO REPORT==== 18-Aug-2016::16:12:52 ===
node           : rabbit@SWHD-DEV
home dir       : C:\Windows
config file(s) : c:/Users/EEverly/AppData/Roaming/RabbitMQ/rabbitmq.config
cookie hash    : 5p7NuSdIgWhv0Gz34nPfhA==
log            : C:/RabbitQM/Log/RABBIT~1.LOG
sasl log       : C:/RabbitQM/Log/RABBIT~2.LOG
database dir   : c:/Users/EEverly/AppData/Roaming/RabbitMQ/db/RABBIT~1

Jared Kauppila

unread,
Aug 19, 2016, 1:47:41 PM8/19/16
to rabbitmq-users
What command are you using to remove and install the service?
Reply all
Reply to author
Forward
0 new messages