Cannot start more than 2 JPP 6 cluster nodes on a single machine
Issue
We are trying to run a cluster of 4 nodes on a single machine, but until now we have not been able to have a cluster of more than 2 nodes. The cluster of 2 nodes works correctly but when we start 3rd node it fails with the following error:
09:24:54,052 ERROR [exo.kernel.component.cache.CacheServiceImpl] (MSC service thread 1-8) Could not create the cache for the region 'MOPSessionManager': org.exoplatform.services.cache.ExoCacheInitException: The cache 'MOPSessionManager' could n
ot be initialized
at org.exoplatform.services.cache.impl.jboss.ExoCacheFactoryImpl.createCache(ExoCacheFactoryImpl.java:220) [exo.kernel.component.ext.cache.impl.jboss.v3-2.4.11-GA-redhat-1.jar:2.4.11-GA-redhat-1]
...
Caused by: java.lang.Exception: failed to open a port in range 56200-56201
at org.jgroups.protocols.UDP.createDatagramSocketWithBindPort(UDP.java:660)
at org.jgroups.protocols.UDP.createSockets(UDP.java:482)
at org.jgroups.protocols.UDP.start(UDP.java:398)
... 81 more
We have discarded to be a specific server problem because it does not happen always with the same servers, it works always with two servers no matter which ones, and fails with the last two started.
The commands to start the server nodes are the following:
$ java -cp modules\system\layers\base\com\h2database\h2\main\h2-1.3.168.redhat-4.jar org.h2.tools.Server -webAllowOthers -tcpAllowOthersstart
$ ./bin/standalone.sh -c standalone-ha.xml -b 192.168.0.11 -u 230.0.0.4 -Djboss.server.base.dir=standalone1 -Djboss.node.name=node1 -Djboss.socket.binding.port-offset=100
$ ./bin/standalone.sh -c standalone-ha.xml -b 192.168.0.11 -u 230.0.0.4 -Djboss.server.base.dir=standalone2 -Djboss.node.name=node2 -Djboss.socket.binding.port-offset=200
$ ./bin/standalone.sh -c standalone-ha.xml -b 192.168.0.11 -u 230.0.0.4 -Djboss.server.base.dir=standalone3 -Djboss.node.name=node3 -Djboss.socket.binding.port-offset=300
Environment
- Red Hat JBoss Portal
- 6.2.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
