Checking Broker Status

You can use rabbitmqctl status to verify whether a broker is running.
Normal output from a running broker without plugins follows this pattern:

  Status of node '[email protected]' ...

This example indicates that no broker is running:

  Status of node '[email protected]' ...
  Error: unable to connect to node '[email protected]': nodedown
  - nodes and their ports on xxx: [{rabbitmqctl,...}]
  - current node: '[email protected]'
  - current node home dir: [...]
  - current node cookie hash: [...]

If the diagnostic line looks like this:

  - nodes and their ports on xxx: [{rabbit,...},{rabbitmqctl,...}]
and the broker log file contains entries similar to
  Connection attempt from disallowed node...
then you should make sure the erlang cookies are the same, e.g. by checking that the cookie hash displayed in the diagnostics is the same as that shown by the broker when it starts up.

A common reason for cookie mismatches when invoking rabbitmqctl against a broker on the same host is that broker and rabbitmqctl were run as different user. Evidence of this comes in the form of a mismatch in the node home dir shown by the broker on startup vs what is displayed in the rabbitmqctl diagnostics.

In the absence of the " Connection attempt from disallowed node..." log entry, check that the Erlang distribution port on which the broker is listening is not blocked by a firewall. The port is shown in the {rabbit,...} part of the "nodes and their ports..." diagnostics line. Try connecting to it with e.g. telnet.

If the "nodes and their ports..." line contains no entry for rabbit then the broker probably isn't running. Check the broker logs for errors.

Server Fails to Start

When the server fails to start, usually a crash dump file erl_crash.dump is created in the directory where the server was started. This can provide very detailed information on the causes of a start up failure, but its analysis requires Erlang expertise.

If you attempt to start another server while a broker is already running, then you will receive an error report. You can confirm whether the broker is already running by checking the status.

If the server fails to start, examine the console output and the log files in the RABBITMQ_LOG_BASE directory. Configuration and permission errors are frequently the cause, e.g. the Mnesia directory cannot be created.

Windows Service fails to Install

If the service fails to install, check the service account has full access permission for RABBITMQ_BASE, RABBITMQ_MNESIA_BASE and RABBITMQ_LOG_BASE directories [XP, Vista].

Windows Service fails to Start

If the service fails to start, make sure the service has been installed.

On starting the service, if the service output reads " The process terminated unexpectedly" instead, then the service did not start correctly. Check that the environment variables are set correctly. The logfiles in RABBITMQ_BASE may also contain useful diagnostic information.

If RABBITMQ_BASE path contains non-ASCII characters, RabbitMQ service may fail to start with the error "RabbitMQ: Erlang machine stopped instantly (distribution name conflict?)". If this is the case, override RABBITMQ_BASE to point to a directory that only has ASCII characters and re-install the service (restarting will not be sufficient).

You receive an error message reading "The handle is invalid" after upgrading the Windows Service

The solution is to uninstall RabbitMQ and Erlang. Then remove all registry keys under HKLM/SOFTWARE/Ericsson/Erlang/ErlSrv, and then install Erlang and RabbitMQ (in that order).

Plugin fails to activate

If a plugin fails to activate, check the output of rabbitmq-plugins list.

Problems with SSL

See SSL troubleshooting.

Client Connection Takes a Long Time

Client connections generally should not take more than a second on networks with reasonable latency. If it takes 10 or more seconds for a client to connect to RabbitMQ, this typically suggests a DNS resolution timeout. This is often the case with environements that use VPN, which may alter DNS servers configuration silently.

If the server is not behaving as expected during operation, examine the log files and use the rabbitmqctl commands from the admin guide to obtain further information on the server status.

For problems encountered in the handling of network traffic, the RabbitMQ capture and analysis tool may help in the analysis.

Failing that, it's possible that we've solved the problem for someone else. Try using the search box at the top of our web pages to find site, mailing list and blog information. You might also check our mailing list archives.

If you still can't find a solution to your problem then please post a new message to RabbitMQ mailing list. Please specify what you were trying to do and the error you're getting. Plase also including the log files under RABBITMQ_LOG_BASE in your report.

Getting Help and Providing Feedback

If you have questions about the contents of this guide or any other topic related to RabbitMQ, don't hesitate to ask them on the RabbitMQ mailing list.

Help Us Improve the Docs <3

If you'd like to contribute an improvement to the site, its source is available on GitHub. Simply fork the repository and submit a pull request. Thank you!