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: ERROR: Detected missing journal files - When upgrading from 5.9 to 5.15.3
Date Fri, 16 Mar 2018 13:00:27 GMT
Sorry for not reading carefully enough, I see you found Martin's post and I
didn't recognize that we were talking about the same thing.

Martin described deleting the index files, not the journal files. He
referenced deleting three files, which I can't explain, since the index
files I'm aware of are db.data and db.redo. Those two files can be safely
deleted and the broker will rebuild them on restart. Don't delete any *.log
files; those are the journal files themselves.

Tim

On Fri, Mar 16, 2018, 6:52 AM Tim Bain <tbain@alumni.duke.edu> wrote:

> Have you tried applying the ignoreMissingJournalfiles option? I think this
> is the situation it's intended to be used in.
>
> If that doesn't work, Martin Lichtin reported that he solved the problem
> by deleting the index files and letting KahaDB rebuild them:
> http://activemq.2283324.n4.nabble.com/KahaDb-issue-Detected-missing-journal-files-when-upgrading-from-5-12-2-to-5-14-0-td4716052.html
> .
>
> Tim
>
> On Thu, Mar 15, 2018, 8:30 AM muralimohan <muralihere@gmail.com> wrote:
>
>> A part of the stack trace is given below. As the subject says, I am
>> upgrading
>> from ActiveMQ 5.9 to 5.15.3.  I do see someone raised a similar issue for
>> 5.14 upgrade, but there were no good solutions apart from removing the
>> journals (I guess the db*.log files are what are being referred to as
>> journals). I do not want to delete those logs, which will mean I delete
>> the
>> persistent messages in the Queue?
>>
>> How can I proceed?
>>
>> Stacktrace:
>>
>> 2018-03-14 13:56:39,716 | WARN  | Some journal files are missing: [59183]
>> |
>> org.apache.activemq.store.kahadb.MessageDatabase | main
>> 2018-03-14 13:56:39,718 | ERROR | Detected missing journal files. [59183]
>> |
>> org.apache.activemq.store.kahadb.MessageDatabase | main
>> 2018-03-14 13:56:39,719 | ERROR | Failed to start Apache ActiveMQ
>> (vlmql001.test.camelot, null) | org.apache.activemq.broker.BrokerService |
>> main
>> java.io.IOException: Detected missing journal files. [59183]
>>         at
>>
>> org.apache.activemq.store.kahadb.MessageDatabase.recoverIndex(MessageDatabase.java:979)
>>         at
>>
>> org.apache.activemq.store.kahadb.MessageDatabase$5.execute(MessageDatabase.java:717)
>>         at
>>
>> org.apache.activemq.store.kahadb.disk.page.Transaction.execute(Transaction.java:779)
>>         at
>>
>> org.apache.activemq.store.kahadb.MessageDatabase.recover(MessageDatabase.java:714)
>>         at
>>
>> org.apache.activemq.store.kahadb.MessageDatabase.open(MessageDatabase.java:473)
>>         at
>>
>> org.apache.activemq.store.kahadb.MessageDatabase.load(MessageDatabase.java:493)
>>         at
>>
>> org.apache.activemq.store.kahadb.MessageDatabase.doStart(MessageDatabase.java:297)
>>         at
>> org.apache.activemq.store.kahadb.KahaDBStore.doStart(KahaDBStore.java:219)
>>         at
>> org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:55)
>>         at
>>
>> org.apache.activemq.store.kahadb.KahaDBPersistenceAdapter.doStart(KahaDBPersistenceAdapter.java:232)
>>         at
>> org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:55)
>>         at
>>
>> org.apache.activemq.broker.BrokerService.doStartPersistenceAdapter(BrokerService.java:687)
>>         at
>>
>> org.apache.activemq.broker.BrokerService.startPersistenceAdapter(BrokerService.java:671)
>>         at
>> org.apache.activemq.broker.BrokerService.start(BrokerService.java:635)
>>         at
>>
>> org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet(XBeanBrokerService.java:73)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at
>>
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>         at
>>
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>         at java.lang.reflect.Method.invoke(Method.java:498)
>>         at
>>
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1758)
>>         at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBean
>>
>>
>>
>> --
>> Sent from:
>> http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html
>>
>

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