Cannot start post office since there is already a post office in the cluster with the same node id

Solution Verified - Updated -

Environment

Red Hat JBoss Enterprise Application Platform (EAP)
- 5.x
Red Hat JBoss SOA Platform
- 5.3.0

Issue

I'm getting the following error whenever jboss experiences an improper shutdown. I have only one node.

ERROR [org.jboss.messaging.util.ExceptionUtil] (main) org.jboss.messaging.core.jmx.MessagingPostOfficeService@1938a38 startService
java.lang.IllegalArgumentException: Cannot start post office since there is already a post office in the cluster with the same node id (0). Are you sure you have given each node a unique node id during installation?

Resolution

Restart cluster.

Root Cause

This is often caused by restarting a node too fast. For example you have two nodes, and you shutdown one of them (kill -9), the other node still keeps the node information until it gets the 'node left' signal and clear it up. If you restart the node before the other node gets cleaned up the information, the other node will pass the information (the 'dead' node id) back to the starting node as part of cluster forming process, thus causes this error message.

In this case, the same is happening with only one node.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments