Failed to Create Cookie file RabbitMQ in Windows

user636525 picture user636525 · Aug 28, 2013 · Viewed 18k times · Source

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 !

Answer

Espresso picture Espresso · Mar 12, 2015

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.