Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us at Qlik Connect 2026 in Orlando, April 13–15: Register Here!

ActiveMQ issue with UNC path an NFS shared directory

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
TalendSolutionExpert
Contributor II
Contributor II

ActiveMQ issue with UNC path an NFS shared directory

Last Update:

Feb 9, 2024 1:22:49 PM

Updated By:

Jamie_Gregory

Created date:

Apr 1, 2021 6:14:56 AM

Problem Description

In a Windows environment, when configuring ActiveMQ for master/slave setup, the following UNC path to an NFS share drive is set in the ActiveMQ configuration file activemq.xml:

 

<persistenceAdapter>
  <kahaDB directory="\\server_ip\amqshare\kahadb" />
</persistenceAdapter>

 
This prevents the ActiveMQ master from starting, with the following error message:

 

| INFO | Database \\server_ip\amqshare\kahadb\lock is locked by another server. 
This broker is now in slave mode waiting a lock to be acquired |
org.apache.activemq.store.SharedFileLocker | main

 

Root Cause

NFS file lock does not work on the Java level. The Lock operation is not supported for NFS share on Windows using UNC with Microsoft NFS client.

 

Solution

NFS mount the share drive, and map it to the drive, for example, and use P:\...\kahadb in activemq.xml:

 

<persistenceAdapter>
  <kahaDB directory="P:\kahadb" />
</persistenceAdapter>
Version history
Last update:
‎2024-02-09 01:22 PM
Updated by: