java.io.IOException: Could not load journal record. Invalid location: 8:17852084

JIRA | Wyatt Alt | 2 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Currently if you run PDB on master, then check out stable, clear your database, and run there, you hit an AMQ error on startup. This was a consequence of the clamq removal, and the solution is do delete your mq directory. We'll need to document this because the error will be surprising to users attempting a downgrade from 3.0: {code} 2015-04-23 14:18:45,583 ERROR [o.a.a.b.BrokerService] Failed to start ActiveMQ JMS Message Broker (localhost, null). Reason: java.io.IOException: Could not load journal record. Invalid location: 8:178520 84 java.io.IOException: Could not load journal record. Invalid location: 8:17852084 at org.apache.activemq.store.kahadb.MessageDatabase.load(MessageDatabase.java:935) ~[activemq-core-5.6.0.jar:5.6.0] at org.apache.activemq.store.kahadb.MessageDatabase.recover(MessageDatabase.java:532) ~[activemq-core-5.6.0.jar:5.6.0] at org.apache.activemq.store.kahadb.MessageDatabase.open(MessageDatabase.java:367) ~[activemq-core-5.6.0.jar:5.6.0] at org.apache.activemq.store.kahadb.MessageDatabase.load(MessageDatabase.java:424) ~[activemq-core-5.6.0.jar:5.6.0] at org.apache.activemq.store.kahadb.MessageDatabase.doStart(MessageDatabase.java:240) ~[activemq-core-5.6.0.jar:5.6.0] at org.apache.activemq.store.kahadb.KahaDBStore.doStart(KahaDBStore.java:180) ~[activemq-core-5.6.0.jar:5.6.0] at org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:54) ~[activemq-core-5.6.0.jar:5.6.0] at org.apache.activemq.store.kahadb.KahaDBPersistenceAdapter.start(KahaDBPersistenceAdapter.java:192) ~[activemq-core-5.6.0.jar:5.6.0] at org.apache.activemq.broker.BrokerService.start(BrokerService.java:525) ~[activemq-core-5.6.0.jar:5.6.0] at com.puppetlabs.mq$start_broker_BANG_.invoke(mq.clj:118) [na:na] at com.puppetlabs.mq$build_and_start_broker_BANG_.invoke(mq.clj:132) [na:na] {code}

    JIRA | 2 years ago | Wyatt Alt
    java.io.IOException: Could not load journal record. Invalid location: 8:17852084
  2. 0

    Currently if you run PDB on master, then check out stable, clear your database, and run there, you hit an AMQ error on startup. This was a consequence of the clamq removal, and the solution is do delete your mq directory. We'll need to document this because the error will be surprising to users attempting a downgrade from 3.0: {code} 2015-04-23 14:18:45,583 ERROR [o.a.a.b.BrokerService] Failed to start ActiveMQ JMS Message Broker (localhost, null). Reason: java.io.IOException: Could not load journal record. Invalid location: 8:178520 84 java.io.IOException: Could not load journal record. Invalid location: 8:17852084 at org.apache.activemq.store.kahadb.MessageDatabase.load(MessageDatabase.java:935) ~[activemq-core-5.6.0.jar:5.6.0] at org.apache.activemq.store.kahadb.MessageDatabase.recover(MessageDatabase.java:532) ~[activemq-core-5.6.0.jar:5.6.0] at org.apache.activemq.store.kahadb.MessageDatabase.open(MessageDatabase.java:367) ~[activemq-core-5.6.0.jar:5.6.0] at org.apache.activemq.store.kahadb.MessageDatabase.load(MessageDatabase.java:424) ~[activemq-core-5.6.0.jar:5.6.0] at org.apache.activemq.store.kahadb.MessageDatabase.doStart(MessageDatabase.java:240) ~[activemq-core-5.6.0.jar:5.6.0] at org.apache.activemq.store.kahadb.KahaDBStore.doStart(KahaDBStore.java:180) ~[activemq-core-5.6.0.jar:5.6.0] at org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:54) ~[activemq-core-5.6.0.jar:5.6.0] at org.apache.activemq.store.kahadb.KahaDBPersistenceAdapter.start(KahaDBPersistenceAdapter.java:192) ~[activemq-core-5.6.0.jar:5.6.0] at org.apache.activemq.broker.BrokerService.start(BrokerService.java:525) ~[activemq-core-5.6.0.jar:5.6.0] at com.puppetlabs.mq$start_broker_BANG_.invoke(mq.clj:118) [na:na] at com.puppetlabs.mq$build_and_start_broker_BANG_.invoke(mq.clj:132) [na:na] {code}

    JIRA | 2 years ago | Wyatt Alt
    java.io.IOException: Could not load journal record. Invalid location: 8:17852084

    Root Cause Analysis

    1. java.io.IOException

      Could not load journal record. Invalid location: 8:17852084

      at org.apache.activemq.store.kahadb.MessageDatabase.load()
    2. ActiveMQ :: KahaDB Store
      KahaDBStore.doStart
      1. org.apache.activemq.store.kahadb.MessageDatabase.load(MessageDatabase.java:935)[activemq-core-5.6.0.jar:5.6.0]
      2. org.apache.activemq.store.kahadb.MessageDatabase.recover(MessageDatabase.java:532)[activemq-core-5.6.0.jar:5.6.0]
      3. org.apache.activemq.store.kahadb.MessageDatabase.open(MessageDatabase.java:367)[activemq-core-5.6.0.jar:5.6.0]
      4. org.apache.activemq.store.kahadb.MessageDatabase.load(MessageDatabase.java:424)[activemq-core-5.6.0.jar:5.6.0]
      5. org.apache.activemq.store.kahadb.MessageDatabase.doStart(MessageDatabase.java:240)[activemq-core-5.6.0.jar:5.6.0]
      6. org.apache.activemq.store.kahadb.KahaDBStore.doStart(KahaDBStore.java:180)[activemq-core-5.6.0.jar:5.6.0]
      6 frames
    3. ActiveMQ :: Broker
      ServiceSupport.start
      1. org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:54)[activemq-core-5.6.0.jar:5.6.0]
      1 frame
    4. ActiveMQ :: KahaDB Store
      KahaDBPersistenceAdapter.start
      1. org.apache.activemq.store.kahadb.KahaDBPersistenceAdapter.start(KahaDBPersistenceAdapter.java:192)[activemq-core-5.6.0.jar:5.6.0]
      1 frame
    5. ActiveMQ :: Broker
      BrokerService.start
      1. org.apache.activemq.broker.BrokerService.start(BrokerService.java:525)[activemq-core-5.6.0.jar:5.6.0]
      1 frame
    6. com.puppetlabs
      mq$build_and_start_broker_BANG_.invoke
      1. com.puppetlabs.mq$start_broker_BANG_.invoke(mq.clj:118)[na:na]
      2. com.puppetlabs.mq$build_and_start_broker_BANG_.invoke(mq.clj:132)[na:na]
      2 frames