Issue
If you are having problems starting a CQ instance you may notice the following exception in the CRX error.log that prevent the instance to start:
*ERROR* RepositoryImpl: failed to start Repository: org.apache.jackrabbit.core.cluster.ClusterException: Cluster initialization failed: org.apache.jackrabbit.core.cluster.ClusterNode@3c10e820 (RepositoryImpl.java, line 383)
javax.jcr.RepositoryException: org.apache.jackrabbit.core.cluster.ClusterException: Cluster initialization failed: org.apache.jackrabbit.core.cluster.ClusterNode@3c10e820
at org.apache.jackrabbit.core.RepositoryImpl.createClusterNode(RepositoryImpl.java:661)
at com.day.crx.core.CRXRepositoryImpl.createClusterNode(CRXRepositoryImpl.java:817)
at org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:319)
….
Caused by: com.day.crx.cluster.LoginException: Login failed to master running at /<ip_address>:<port>
at com.day.crx.cluster.TransportHandlerContext.login(TransportHandlerContext.java:375)
at com.day.crx.cluster.AbstractMasterElection.createConnection(AbstractMasterElection.java:503)
…
Caused by: com.day.crx.cluster.LoginException: Key does not match.
at com.day.crx.cluster.TransportHandlerContext.doInvoke(TransportHandlerContext.java:395)
at com.day.crx.cluster.InvokeHandler.invoke(InvokeHandler.java:130)
at com.day.crx.cluster.http.HttpProcessor.handle(HttpProcessor.java:138)
at com.day.crx.cluster.http.HttpProcessor.enterLoop(HttpProcessor.java:109)
at com.day.crx.cluster.http.HttpTransportHandler.process(HttpTransportHandler.java:61)
at com.day.crx.cluster.AbstractMasterElection$Processor.run(AbstractMasterElection.java:733)
at java.lang.Thread.run(Thread.java:662)
Reason
This problem occurs when the instance is setup as a cluster with a shared journal and the \crx-quickstart\repository\shared\journal\control\listener.properties file still contains old connection information (ip:port and key). This could occur if the instance was not shut down unexpectedly, or due to restoring a backup.
Previous versions of CRX were setup to use shared journal clustering by default, even for single instances. Since CRX 2.2 (CQ5.4) you can use tar journals for share-nothing clustering.
Solution
If you only have a single instance you can clear the journal folder to resolve the issue, and disable clustering:
http://dev.day.com/content/kb/home/cq5/CQ5Troubleshooting/performancetuningtips.html#TIP06
reference: (36489)




