activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Bain <tb...@alumni.duke.edu>
Subject Re: failed to start ActiveMQ
Date Mon, 26 Mar 2018 04:17:35 GMT
I've submitted https://issues.apache.org/jira/browse/AMQ-6938 to capture
the fact that the broker failed to start due to the missing journal file,
even though ignoreMissingJournalFiles was set to true. Please add any
information to it that you think would be useful.

I think the next workaround is to remove your db.data and db.redo files
(the KahaDB index and recovery files) and try starting the broker. This
should cause it to not know that file 531 is missing, and the index will be
rebuilt based on the content of those journal files that are present.

Sorry you've hit two successive bugs in the course of this work; I'm sure
that's frustrating for you. Hopefully this second workaround will get your
broker back up and running, and hopefully both bug reports I submitted will
get implemented and will avoid this problem for future users.

On the subject of the offline durable subscription cleanup, you'd see an
INFO-level log line saying "Destroying durable subscriber due to
inactivity: ..." if a subscriber were getting removed due to inactivity. If
you've got a subscriber who should be getting removed and you don't see
that log line, I'd suggest grabbing the source code and putting a
breakpoint in org.apache.activemq.broker.region.TopicRegion.doCleanup(), to
see why that subscription is not considered eligible for removal. The code
looks pretty straightforward, so there's nothing obvious that I see that
might cause it to not remove the subscription, so hopefully the debugger
will indicate what the root of the problem is.

Tim

On Thu, Mar 22, 2018 at 11:35 PM, norinos <tainookasira99@gmail.com> wrote:

> > You need to set ignoreMissingJournalFiles. See
> > http://activemq.apache.org/kahadb.html for more information.
>
> Thank you for the information.
>
> I tryed the above settings, but the following error occured and
> failed to start ActiveMQ.
>
>
> 2018-03-22 17:21:56,218 | ERROR | Looking for key 531 but not found in
> fileMap: ........
> 2018-03-22 17:21:56,222 | ERROR | Failed to start Apache ActiveMQ
> ([broker0,
> null], java.io.IOException: Could not locate data file
> /data/kahadb/db-531.log) | org.apache.activemq.broker.BrokerService |
> WrapperSimpleAppMain
>
>
>
> > That's certainly possible. Are you sure that the durable subscription in
> > question has actually been offline continuously for more than a month? It
> > hasn't been sporadically connecting briefly and then disconnecting?
>
> My application connect and subscribe the message at the same time.
> So the durable subscription has actually been offline continuously for more
> than a month.
>
>
>
>
> --
> Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-
> f2341805.html
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message