java.lang.IllegalStateException: missing snapshot file: /opt/onos/apache-karaf-3.0.8/data/partitions/5/partition-5-1-20170212223714.snapshot

JIRA | You Wang | 1 month 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

    We always see one or more "missing snapshot file" error in nightly tests when scaling up onos cluster size (e.g. uninstalling 3-node cluster and then install 5-node cluster) {noformat} 2017-02-12 22:52:45,441 | ERROR | artition-5-state | SingleThreadContext | 90 - io.atomix.all - 1.0.0 | An uncaught exception occurred java.lang.IllegalStateException: missing snapshot file: /opt/onos/apache-karaf-3.0.8/data/partitions/5/partition-5-1-20170212223714.snapshot at io.atomix.catalyst.util.Assert.state(Assert.java:69) at io.atomix.copycat.server.storage.snapshot.FileSnapshot.reader(FileSnapshot.java:75) at io.atomix.copycat.server.state.ServerStateMachine.lambda$installSnapshot$67(ServerStateMachine.java:122) at io.atomix.catalyst.concurrent.Runnables.lambda$logFailure$2(Runnables.java:20) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_74] at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_74] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)[:1.8.0_74] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)[:1.8.0_74] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_74] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_74] at java.lang.Thread.run(Thread.java:745)[:1.8.0_74] {noformat}

    JIRA | 1 month ago | You Wang
    java.lang.IllegalStateException: missing snapshot file: /opt/onos/apache-karaf-3.0.8/data/partitions/5/partition-5-1-20170212223714.snapshot
  2. 0

    While starting up the Onos cluster(3 nodes) i am getting "java.lang.IllegalStateException: session is expired" exception frequently Log: 2016-12-28 11:19:56,736 | ERROR | artition-1-state | AtomixLeaderElectorState | 140 - org.onosproject.onos-core-primitives - 1.6.1.SNAPSHOT | State machine operation failed java.lang.IllegalStateException: session is expired at io.atomix.catalyst.util.Assert.state(Assert.java:69) at io.atomix.catalyst.util.Assert.stateNot(Assert.java:76) at io.atomix.copycat.server.state.ServerSessionContext.publish(ServerSessionContext.java:509) at io.atomix.manager.internal.ManagedResourceSession.publish(ManagedResourceSession.java:64) at org.onosproject.store.primitives.resources.impl.AtomixLeaderElectorState.lambda$notifyLeadershipChanges$0(AtomixLeaderElectorState.java:110) at java.util.LinkedHashMap$LinkedValues.forEach(LinkedHashMap.java:600)[:1.8.0_77] at org.onosproject.store.primitives.resources.impl.AtomixLeaderElectorState.notifyLeadershipChanges(AtomixLeaderElectorState.java:109) at org.onosproject.store.primitives.resources.impl.AtomixLeaderElectorState.notifyLeadershipChange(AtomixLeaderElectorState.java:101) at org.onosproject.store.primitives.resources.impl.AtomixLeaderElectorState.withdraw(AtomixLeaderElectorState.java:194) at io.atomix.resource.ResourceStateMachineExecutor.lambda$register$1(ResourceStateMachineExecutor.java:105) at io.atomix.resource.ResourceStateMachineExecutor.executeCommand(ResourceStateMachineExecutor.java:84) at io.atomix.manager.internal.ResourceManagerStateMachineExecutor.execute(ResourceManagerStateMachineExecutor.java:101) at io.atomix.manager.internal.ResourceManagerState.operateResource(ResourceManagerState.java:102) at io.atomix.copycat.server.state.ServerStateMachineExecutor.executeOperation(ServerStateMachineExecutor.java:144) at io.atomix.copycat.server.state.ServerStateMachine.executeCommand(ServerStateMachine.java:854) at io.atomix.copycat.server.state.ServerStateMachine.lambda$apply$85(ServerStateMachine.java:796) at io.atomix.catalyst.concurrent.Runnables.lambda$logFailure$2(Runnables.java:20) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_77] at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_77] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)[:1.8.0_77] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)[:1.8.0_77] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_77] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_77] at java.lang.Thread.run(Thread.java:745)[:1.8.0_77] 2016-12-28 11:19:56,752 | ERROR | ew I/O worker #2 | OFChannelHandler | 177 - org.onosproject.onos-of-ctl - 1.6.1.SNAPSHOT | Error while processing message from switch org.onosproject.driver.handshaker.NiciraSwitchHandshaker [/10.0.3.1:55852 DPID[00:00:00:00:00:00:00:01]]state WAIT_DESCRIPTION_STAT_REPLY

    JIRA | 3 months ago | Kavitha Alagesan
    java.lang.IllegalStateException: session is expired
  3. 0

    Error when starting up the server after an unable to serialize exception

    GitHub | 4 months ago | SerialVelocity
    java.util.concurrent.CompletionException: java.lang.IllegalArgumentException: offset cannot be less than or equal to the last offset in the index
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 77#200017405

    GitHub | 1 year ago | HeroesHannibal
    io.atomix.catalyst.serializer.SerializationException: cannot serialize unregistered type: class io.atomix.group.state.GroupCommands$Listen
  6. 0

    GitHub comment 86#165067215

    GitHub | 1 year ago | electrical
    java.util.concurrent.CompletionException: java.lang.IllegalStateException: failed to join the cluster

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      missing snapshot file: /opt/onos/apache-karaf-3.0.8/data/partitions/5/partition-5-1-20170212223714.snapshot

      at io.atomix.catalyst.util.Assert.state()
    2. io.atomix.catalyst
      Assert.state
      1. io.atomix.catalyst.util.Assert.state(Assert.java:69)
      1 frame
    3. io.atomix.copycat
      ServerStateMachine.lambda$installSnapshot$67
      1. io.atomix.copycat.server.storage.snapshot.FileSnapshot.reader(FileSnapshot.java:75)
      2. io.atomix.copycat.server.state.ServerStateMachine.lambda$installSnapshot$67(ServerStateMachine.java:122)
      2 frames
    4. io.atomix.catalyst
      Runnables.lambda$logFailure$2
      1. io.atomix.catalyst.concurrent.Runnables.lambda$logFailure$2(Runnables.java:20)
      1 frame
    5. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_74]
      2. java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_74]
      3. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)[:1.8.0_74]
      4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)[:1.8.0_74]
      5. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_74]
      6. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_74]
      7. java.lang.Thread.run(Thread.java:745)[:1.8.0_74]
      7 frames