When installing RabbitMQ and Erland you may come across an error that the 'Cookie cant be placed' or 'Failed to create cookie file'
This guide is to help you get around the issue.
typically this error is seen on domain-joined machines.
To resolve this issue
Open the file: "Program Files/RabbitMQ Server/rabbitmq_server-/sbin/rabbitmq-env"
-
At the end of the file, append the line:
REM Environment cleanup set BOOT_MODULE= set CONFIG_FILE= set FEATURE_FLAGS_FILE= set ENABLED_PLUGINS_FILE= set LOG_BASE= set MNESIA_BASE= set PLUGINS_DIR= set SCRIPT_DIR= set SCRIPT_NAME= set TDP0= set HOMEDRIVE=C: <<< the new path of the .erlang.cookie
Open the RabbitMQ console
-
write:
4.1.
rabbitmq-service stop
4.2.rabbitmq-service remove
4.3.rabbitmq-service install
4.4.rabbitmq-service start