Locally to start/stop ActiveMQ (5.6) on my dev machine I just run ./activemq start
and ./activemq stop
respectively.
On our QA machine we have it installed as a service and run service activemq start
and service activemq stop
respectively.
I just went to bounce the QA machine and issued service activemq stop
, then service activemq start
to restart it.
I see a process ID being created, and if I run ps -aef | grep activemq
I see the living, breathing process of an ActiveMQ server.
But if I go to http://<qa-server>:8161/admin
I get the typical error that you see when a server is down:
Firefox can't establish a connection to the server at :8161.
Edit: I have now tried both the ./active start
and service activemq start
methods, and both produce the same issue: I see a process being created, but nothing in the web admin tool.
I checked ActiveMQ's home directory and don't see any type of logs/
directory, so I'm not even sure where to begin debugging the issue.
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!
Edit:
I see the following error in data/activemq.log
:
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
data/
, start AMQ. – Ragtimedata/
that a little confusing to me. Isdata/
its log directory (in which case, why would erasing a log file release a lock)? Or do you mean something else by "cleanupdata/
)? Thanks again for all your help so far, and again +1. – Perrinedata/
contains all AMQ data. Try to release/delete the lock from internal db. Checkkahadb/
. – Ragtimekahadb/
directory under my AMQ home dir. The only reference to "kaha" is${AMQ_HOME}/lib/kahadb-5.6.0.jar
. – Perrine/qa-server/kahadb/
– Ragtimelock
(I was looking in the wrong directory). So, by "cleanlock
", do you mean delete the file itself? Or is there some kind of command-line interface command I have to issue? I'd hate to break AMQ even further... – Perrine