RabbitMq status failed after installation

121 views
Skip to first unread message

WordOnIce

unread,
May 25, 2020, 1:34:49 AM5/25/20
to rabbitmq-users
I've just installed RabbitMq, following the installation instructions here: https://www.rabbitmq.com/install-windows.html

I ran the command: "rabbitmqctl.bat status", and this is what comes up:

The directory name is invalid.
The directory name is invalid.
The directory name is invalid.
The directory name is invalid.
The filename, directory name, or volume label syntax is incorrect.
The directory name is invalid.
The filename, directory name, or volume label syntax is incorrect.
Error: unable to perform an operation on node 'rabbit@VT-LT-366'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node rabbit@VT-LT-366
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['rabbit@VT-LT-366']

rabbit@VT-LT-366:
  * connected to epmd (port 4369) on VT-LT-366
  * epmd reports node 'rabbit' uses port 25672 for inter-node and CLI tool traffic
  * TCP connection succeeded but Erlang distribution failed

  * Authentication failed (rejected by the remote node), please check the Erlang cookie


Current node details:
 * node name: 'rabbitmqcli-9284-rabbit@VT-LT-366'
 * effective user's home directory: C:\Users\vggspartan
 * Erlang cookie hash: dimODS7+7Wx6RWpRBAaYIg==

I've gone online, looked around, and no one seems to have a definitive answer on what exactly is wrong.

I have to say - and no offence to fans of RabbitMQ - but the RabbitMQ team needs to work on their documentation, honestly. This is absolutely discouraging. Clearly, I'm missing out on some extra configuration or setup, but the documentation says that after installation, the default state should be enough for development / QA. If there's something extra new users need to do after installation to get RabbitMQ running minimally, I think it should be stated on the official site.

Wesley

unread,
May 25, 2020, 1:41:14 AM5/25/20
to rabbitm...@googlegroups.com
WordOnIce wrote:
>   * Authentication failed (rejected by the remote node), please check
> the Erlang cookie

The systems have given you the answer. Please check erlang's cookie.

regards.

WordOnIce

unread,
May 25, 2020, 3:04:37 AM5/25/20
to rabbitmq-users
I had to go search online for what this erlang cookie is and its likely location. I've searched my computer, but i've come up empty. Apparently, it's supposed to be here %HOMEDRIVE%%HOMEPATH%

but I can't find the file .erlang.cookie.

Please, how do I generate the file?

Wesley

unread,
May 25, 2020, 3:42:17 AM5/25/20
to rabbitm...@googlegroups.com
WordOnIce wrote:
> I had to go search online for what this erlang cookie is and its likely
> location. I've searched my computer, but i've come up empty. Apparently,
> it's supposed to be here %HOMEDRIVE%%HOMEPATH%
>
> but I can't find the file .erlang.cookie.
>
> Please, how do I generate the file?


I am not familiar with windows. I almost never used windows installation.

But for my installation on linux, this is the erlang cookie dir:

# ls -al /var/lib/rabbitmq/
total 16
drwxr-xr-x 3 rabbitmq rabbitmq 4096 Oct 28 2019 .
drwxr-xr-x 54 root root 4096 Oct 31 2019 ..
-r-------- 1 rabbitmq rabbitmq 20 Oct 28 2019 .erlang.cookie
drwxr-x--- 4 rabbitmq rabbitmq 4096 Mar 18 10:34 mnesia


It's the same dir to rabbitmq's default installation.


regards.

WordOnIce

unread,
May 25, 2020, 4:14:23 AM5/25/20
to rabbitmq-users
Ok. Please, from the diagnosis i sent, it says:

Current node details:
 * node name: 'rabbitmqcli-9284-rabbit@VT-LT-366'
 * effective user's home directory: C:\Users\vggspartan
 * Erlang cookie hash: dimODS7+7Wx6RWpRBAaYIg==

I would like for the effective user's home directory to change, because I'm not running rabbitmq from that home. In fact, i didn't install rabbitmq from that account, so i'm surprised it's defaulting there. Is there a way to get RabbitMq to switch homes? It's in C drive right now. Don't know why it's pointing to another user's directory.

Wesley

unread,
May 25, 2020, 4:22:16 AM5/25/20
to rabbitm...@googlegroups.com
WordOnIce wrote:
>
> I would like for the effective user's home directory to change, because
> I'm not running rabbitmq from that home. In fact, i didn't install
> rabbitmq from that account, so i'm surprised it's defaulting there. Is
> there a way to get RabbitMq to switch homes? It's in C drive right now.
> Don't know why it's pointing to another user's directory.
>

Please read the section:
https://www.rabbitmq.com/configure.html#config-file

regards.

WordOnIce

unread,
May 25, 2020, 5:27:11 AM5/25/20
to rabbitmq-users
Thanks.


Thanks again
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted

M K

unread,
May 25, 2020, 7:01:24 AM5/25/20
to rabbitmq-users
>   * TCP connection succeeded but Erlang distribution failed

is the key line. Please see [1]. 

A cookie (shared secret) file is generated
by the RabbitMQ node when it starts so you don't need to generate it manually.
You do have to make sure that your effective user has it in the correct location.

See [2] and "Installing as a non-administrator user leaves .erlang.cookie in the wrong place" in [3].

M K

unread,
May 25, 2020, 7:14:34 AM5/25/20
to rabbitmq-users
One solution to this very much OS-specific class of problems would be to make the Windows installer
use a specific installation location and user, and possibly refuse to install as a non-administrator. Then the matrix
of possible server/CLI tool user home directories would be limited.

That would obviously upset another group of users who want more control.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages