Skip to content

Instantly share code, notes, and snippets.

@prabhuvikas
Created June 25, 2020 10:31
Show Gist options
  • Save prabhuvikas/c78332d8a2eecdbb4bcf2a22e8a9a53f to your computer and use it in GitHub Desktop.
Save prabhuvikas/c78332d8a2eecdbb4bcf2a22e8a9a53f to your computer and use it in GitHub Desktop.

Revisions

  1. prabhuvikas created this gist Jun 25, 2020.
    23 changes: 23 additions & 0 deletions erlang-cookie.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,23 @@
    For those out there googling, this same erlang cookie error can happen when you are missing the HOME parameter from your environment configuration. For example, on the default ArchLinux installation of rabbitmq.

    In this case, the service is started with systemctl start rabbitmq and it
    generates a cookie but the cli tools like rabbitmqctl status will not work out of the box because they do not know the home location.

    default /etc/rabbitmq/rabbitmq-env.conf

    NODENAME=rabbit
    NODE_IP_ADDRESS=0.0.0.0
    NODE_PORT=5672

    LOG_BASE=/var/log/rabbitmq
    MNESIA_BASE=/var/lib/rabbitmq/mnesia
    modified /etc/rabbitmq/rabbitmq-env.conf

    NODENAME=rabbit
    NODE_IP_ADDRESS=127.0.0.1
    NODE_PORT=5672

    HOME=/var/lib/rabbitmq
    LOG_BASE=/var/log/rabbitmq
    MNESIA_BASE=/var/lib/rabbitmq/mnesia
    ref https://bbs.archlinux.org/viewtopic.php?id=191587