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

Talend Version 6.x

Summary

The MDM server fails to start with the following exception:

java.io.IOException: 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 [org.apache.activemq.store.SharedFileLocker] 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: java.io.IOException: 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 #:
3 of 3
Last update:
‎07-16-2018 02:21 PM
Updated by:
 
Labels (2)