MDM server fails to start with the exception ' File '/.../data/activemq-data/localhost/kahadb/lock' could not be locked'

Talend Version 6.x


The MDM server fails to start with the following exception: File '/.../data/activemq-data/localhost/kahadb/lock' could not be locked.
Additional Versions  
Product Master Data Management
Component MDM server
Problem Description

The MDM server will not start, and the mdm.log file displays the following error message:

2017-10-24 10:46:56,111 INFO [] Database /opt/Talend/Talend-6.1.1/mdm/data/activemq-data/localhost/kahadb/lock is locked... waiting 10 seconds for the database to be unlocked. Reason: File '/opt/Talend/Talend-6.1.1/mdm/data/activemq-data/localhost/kahadb/lock' could not be locked.
Problem root cause

Apache ActiveMQ uses the file lock in TALEND MDM HOME/data/activemq-data/localhost/kahadb.


If you encounter a problem when stopping the MDM server, or something gets corrupted, the file may still be locked, preventing the MDM Server from starting.

Solution or Workaround
  1. Stop the MDM server.
  2. Open the TALEND MDM HOME/data/activemq-data/localhost/kahadb folder.
  3. Delete the file lock.
  4. Restart the MDM server.
JIRA ticket number  
Version history
Revision #:
5 of 5
Last update:
‎03-01-2019 03:50 AM
Updated by: