OnApp "Error unable to connect to node rabbit"

The OnApp vCD integration requires the usage of RabbitMQ to keep vCD and OnApp synchronized. At times we may get this error while trying to start the Rabbitmq-server.

Here at Ibmi Media, as part of our Server Management Services, we regularly help our Customers to perform related OnApp queries.

What triggers OnApp "Error unable to connect to node rabbit" ?

Following are the reason which may cause this error:

  • This issue can happen during power outages.
  • The error can also be seen when we restart the Control Panel server by using the Reset button.

How to fix OnApp "Error unable to connect to node rabbit" ?

The root cause can be checked in the default rabbitmq logging directory (/var/log/rabbitmq). Moreover, it can be found specifically in the "rabbit@cp.log" file.

Following are two examples of the most widespread root causes, which can be easily checked and fixed:

1. After checking the logs, from the following output we can understand that the rabbitmq queues have been corrupted:

# tail -n 25 /var/log/rabbitmq/rabbit\@cp.log
=INFO REPORT==== 4-Jan-2017::22:57:24 ===
Error description:

We can fix this issue by moving all the available queues off from the working rabbitmq directory.

This can be done using the following command:

# ls /var/lib/rabbitmq/mnesia/rabbit@cp/queues
# mkdir -p /tmp/badrabbit/; mv /var/lib/rabbitmq/mnesia/rabbit@cp/queues/* /tmp/badrabbit/;

2. If we see the following output from the logs, we can assume that the dets table file has been corrupted:

# tail -n 15 /var/log/rabbitmq/rabbit\@cp.log
=INFO REPORT==== 16-Jan-2017::09:11:03 ===
Error description:

We can fix these corrupt table files by moving dets file off from the working rabbitmq directory. For this we can use the following command:

# mkdir -p /tmp/badrabbit/; mv /var/lib/rabbitmq/mnesia/rabbit@cp/recovery.dets /tmp/badrabbit/;

[Need assistance in fixing Server errors? We can help you. ]


This article covers method to fix OnApp error  'unable to connect to node rabbit' for our customers. This issue can happen on power outages or just because a Control Panel server was restarted by Reset button.