Friday, November 4, 2011

How to remove lock files in CQ / WEM

Problem :

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(
at org.apache.jackrabbit.core.util.RepositoryLock.acquire(
at org.apache.jackrabbit.core.RepositoryImpl.(

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

1 comment:

  1. 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