javax.jcr.RepositoryException: The repository home /crx-quickstart/repository appears to be in use since the file named .lock is locked by another process.
at org.apache.jackrabbit.core.util.RepositoryLock.tryLock(RepositoryLock.java:166)
at org.apache.jackrabbit.core.util.RepositoryLock.acquire(RepositoryLock.java:138)
at org.apache.jackrabbit.core.RepositoryImpl.
at com.day.crx.core.CRXRepositoryImpl.
at com.day.crx.core.CRXRepositoryImpl.
at com.day.crx.core.CRXRepositoryImpl.create(CRXRepositoryImpl.java:193)
at com.day.crx.j2ee.CRXRepositoryStartupServlet.createRepository(CRXRepositoryStartupServlet.java:173)
Reason why above happen, If you forcefully shut down CQ sometimes .lock files does not get deleted.
Solution :
You can use following command in Linux/ Unix platform to delete all lock files
find <Path to crx-quickstart>/repository -name "\.lock" -exec rm '{}' \; -print
Make sure your doors are locked at all times and have lock repair done on exterior doors that provide easy entry for intruders.Locksmith Colorado Springs
ReplyDelete