Skip to main content

Ensuring Matching Erlang Cookies

Summary

This document is to assist in resolving a specific issue related to RabbitMQ caused by an issue with the erlang cookie. If you are encountering any trouble with RabbitMQ or Erlang, please co ntact us at support@getatria.com.

Issue

When completing the installation of newer versions of RabbitMQ, an error can sometimes be thrown relating to the erlang cookie. the error will look something like the below:

Error: unable to connect to node 'rabbit at my-server-name': nodedown
> diagnostics:
> - nodes and their ports on my-server-name: [{rabbit,64066}]
> - current node: 'rabbitmqctl at my-localhost'
> - current node home dir: H:\
> - current node cookie hash:

This error will appear when trying to create the RabbitMQ admin user. Often this issue is caused by the mismatch of erlang cookies on your machine. You need to make sure the cookie files at both systemprofile and userprofile are the same.

Resolution

  1. Navigate to C:\WINDOWS\system32\config\systemprofile

  2. Copy the file named .erlang.cookie.

  3. Open a new file explorer windows and navigate to %USERPROFILE%

  4. Paste the .erlang.cookie file.

  5. Hit confirm to replace the file.

  6. Restart the RabbitMQ Service

  7. Attempt to create the RabbitMQ admin user again and the error should be resolved.