Note that there are some explanatory texts on larger screens.

plurals
  1. POActiveMQ won't restart because KahaDB is locked
    text
    copied!<p>Locally to start/stop ActiveMQ (5.6) on my dev machine I just run <code>./activemq start</code> and <code>./activemq stop</code> respectively.</p> <p>On our QA machine we have it installed as a service and run <code>service activemq start</code> and <code>service activemq stop</code> respectively.</p> <p>I just went to bounce the QA machine and issued <code>service activemq stop</code>, then <code>service activemq start</code> to restart it.</p> <p>I see a process ID being created, and if I run <code>ps -aef | grep activemq</code> I see the living, breathing process of an ActiveMQ server.</p> <p>But if I go to <code>http://&lt;qa-server&gt;:8161/admin</code> I get the typical error that you see when a server is down:</p> <blockquote> <p>Firefox can't establish a connection to the server at :8161.</p> </blockquote> <p><strong>Edit:</strong> I have now tried both the <code>./active start</code> and <code>service activemq start</code> methods, and both produce the same issue: I see a process being created, but nothing in the web admin tool.</p> <p>I checked ActiveMQ's home directory and don't see any type of <code>logs/</code> directory, so I'm not even sure where to begin debugging the issue.</p> <p>Either AMQ is not restarting, or its web admin app isn't restarting or functioning properly; either way I have no idea where to start. Thanks in advance!</p> <p><strong>Edit</strong>:</p> <p>I see the following error in <code>data/activemq.log</code>:</p> <blockquote> <p>2012-10-07 11:37:14,501 | INFO | Database /qa-server/kahadb/lock is locked... waiting 10 seconds for the database to be unlocked. Reason: java.io.IOException: File '/qa-server/kahadb/lock' could not be locked. | org.apache.activemq.store.kahadb.MessageDatabase | main 2012-10-07 11:37:24,504 | INFO | Database /qa-server/kahadb/lock is locked... waiting 10 seconds for the database to be unlocked. Reason: java.io.IOException: File '/qa-server/kahadb/lock' could not be locked. | org.apache.activemq.store.kahadb.MessageDatabase | main</p> </blockquote>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload