Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failed to Create Cookie file RabbitMQ in Windows

I am trying to run the following command

rabbitmq-plugins.bat enable rabbitmq_management  

and its giving me an error like this:

11:36:55.464 [error] Failed to create cookie file 'h:/.erlang.cookie': enoent

I am using windows 7, Erlang Version R16B01 and RabbitMQ-Server version 3.1.5

I am using my work PC and our Corporate policy sets the HOMEDRIVE to h: and HOMEPATH to / and i dont think they will let me change this.

I can see the .erlang.cookie file under C:\Windows.

Could someone let me know of a workaround for this ?

Thanks in advance !

like image 921
user636525 Avatar asked Aug 28 '13 18:08

user636525


2 Answers

Had the same H: problem. Set the home drive to some dir in the dos shell before executing the cli.

set HOMEDRIVE=C:/conf/rabbitmq :: Or your favorite dir 
rabbitmq-plugins.bat enable rabbitmq_management

Use a folder in C drive. The rabbitmq system will write the cookie file there.

like image 186
Espresso Avatar answered Oct 17 '22 21:10

Espresso


Find location of ".erlang.cookie" in your PC and run the commands bellow:

set HOMEDRIVE=[location of ".erlang.cookie"]
rabbitmq-plugins.bat enable rabbitmq_management
like image 7
Nhan Phan Avatar answered Oct 17 '22 20:10

Nhan Phan