java.lang.IllegalStateException

File has been unmapped:blah/neo4j/data/databases/graph.db/neostore.counts.db.b

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web2

Stack trace

  • java.lang.IllegalStateException: File has been unmapped:blah
  • eo4j/data/databases/graph.db
  • eostore.counts.db.b at org.neo4j.io.pagecache.impl.muninn.MuninnPagedFile.getLastPageId(MuninnPagedFile.java:380) at org.neo4j.io.pagecache.impl.muninn.MuninnPageCursor.assertPagedFileStillMappedAndGetIdOfLastPage(MuninnPageCursor.java:369) at org.neo4j.io.pagecache.impl.muninn.MuninnReadPageCursor.next(MuninnReadPageCursor.java:55) at org.neo4j.kernel.impl.store.kvstore.KeyValueStoreFile.scan(KeyValueStoreFile.java:87) at org.neo4j.kernel.impl.store.kvstore.ReadableState$1.lookup(ReadableState.java:67) at org.neo4j.kernel.impl.store.kvstore.ConcurrentMapState.performLookup(ConcurrentMapState.java:354) at org.neo4j.kernel.impl.store.kvstore.ConcurrentMapState.lookup(ConcurrentMapState.java:342) at org.neo4j.kernel.impl.store.kvstore.ConcurrentMapState.performLookup(ConcurrentMapState.java:354) at org.neo4j.kernel.impl.store.kvstore.ConcurrentMapState.access$300(ConcurrentMapState.java:33) at org.neo4j.kernel.impl.store.kvstore.ConcurrentMapState$Prototype.lookup(ConcurrentMapState.java:277) at org.neo4j.kernel.impl.store.kvstore.RotationState$Rotation.lookup(RotationState.java:201) at org.neo4j.kernel.impl.store.kvstore.AbstractKeyValueStore.lookup(AbstractKeyValueStore.java:86) at org.neo4j.kernel.impl.store.counts.CountsTracker.get(CountsTracker.java:165) at org.neo4j.kernel.impl.store.counts.CountsTracker.nodeCount(CountsTracker.java:176) at org.neo4j.kernel.impl.api.store.DiskLayer.countsForNode(DiskLayer.java:562) at org.neo4j.kernel.impl.api.store.CacheLayer.countsForNode(CacheLayer.java:351) at org.neo4j.kernel.impl.api.StateHandlingStatementOperations.countsForNodeWithoutTxState(StateHandlingStatementOperations.java:1193) at org.neo4j.kernel.impl.api.OperationsFacade.countsForNodeWithoutTxState(OperationsFacade.java:1394) at org.neo4j.cypher.internal.spi.v3_0.TransactionBoundGraphStatistics$BaseTransactionBoundGraphStatistics.indexSelectivity(TransactionBoundGraphStatistics.scala:39) at org.neo4j.cypher.internal.compiler.v3_0.spi.DelegatingGraphStatistics.indexSelectivity(GraphStatistics.scala:66) at org.neo4j.cypher.internal.compiler.v3_0.spi.InstrumentedGraphStatistics.indexSelectivity(InstrumentedGraphStatistics.scala:77) at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.cardinality.ExpressionSelectivityCalculator$$anonfun$5.apply(ExpressionSelectivityCalculator.scala:139) at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.cardinality.ExpressionSelectivityCalculator$$anonfun$5.apply(ExpressionSelectivityCalculator.scala:136) at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:241) at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:241) at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59) at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:48) at scala.collection.TraversableLike$class.flatMap(TraversableLike.scala:241) at scala.collection.AbstractTraversable.flatMap(Traversable.scala:104) at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.cardinality.ExpressionSelectivityCalculator.calculateSelectivityForPropertyEquality(ExpressionSelectivityCalculator.scala:135) at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.cardinality.ExpressionSelectivityCalculator.apply(ExpressionSelectivityCalculator.scala:55) at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.cardinality.assumeIndependence.AssumeIndependenceQueryGraphCardinalityModel$$anonfun$4.apply(AssumeIndependenceQueryGraphCardinalityModel.scala:101) at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.cardinality.assumeIndependence.AssumeIndependenceQueryGraphCardinalityModel$$anonfun$4.apply(AssumeIndependenceQueryGraphCardinalityModel.scala:101) at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234) at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234) at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59) at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:48) at scala.collection.TraversableLike$class.map(TraversableLike.scala:234) at scala.collection.AbstractTraversable.map(Traversable.scala:104) at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.cardinality.ExpressionSelectivityCalculator.calculateSelectivityForPropertyEquality(ExpressionSelectivityCalculator.scala:135) at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.cardinality.ExpressionSelectivityCalculator.apply(ExpressionSelectivityCalculator.scala:55) at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.cardinality.assumeIndependence.AssumeIndependenceQueryGraphCardinalityModel$$anonfun$4.apply(AssumeIndependenceQueryGraphCardinalityModel.scala:101) at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.cardinality.assumeIndependence.AssumeIndependenceQueryGraphCardinalityModel$$anonfun$4.apply(AssumeIndependenceQueryGraphCardinalityModel.scala:101) at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234) at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234) at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59) at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:48) at scala.collection.TraversableLike$class.map(TraversableLike.scala:234) at scala.collection.AbstractTraversable.map(Traversable.scala:104) at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.cardinality.assumeIndependence.AssumeIndependenceQueryGraphCardinalityModel.calculateSelectivity(AssumeIndependenceQueryGraphCardinalityModel.scala:101) at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.cardinality.assumeIndependence.AssumeIndependenceQueryGraphCardinalityModel.org$neo4j$cypher$internal$compiler$v3_0$planner$logical$cardinality$assumeIndependence$AssumeIndependenceQueryGraphCardinalityModel$$cardinalityForQueryGraph(AssumeIndependenceQueryGraphCardinalityModel.scala:77) at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.cardinality.assumeIndependence.AssumeIndependenceQueryGraphCardinalityModel$$anonfun$1.apply(AssumeIndependenceQueryGraphCardinalityModel.scala:46) at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.cardinality.assumeIndependence.AssumeIndependenceQueryGraphCardinalityModel$$anonfun$1.apply(AssumeIndependenceQueryGraphCardinalityModel.scala:46) at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234) at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234) at scala.collection.immutable.List.foreach(List.scala:381) at scala.collection.TraversableLike$class.map(TraversableLike.scala:234) at scala.collection.immutable.List.map(List.scala:285) at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.cardinality.assumeIndependence.AssumeIndependenceQueryGraphCardinalityModel.apply(AssumeIndependenceQueryGraphCardinalityModel.scala:46) at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.cardinality.assumeIndependence.AssumeIndependenceQueryGraphCardinalityModel.apply(AssumeIndependenceQueryGraphCardinalityModel.scala:31) at scala.Function3$$anonfun$tupled$1.apply(Function3.scala:35) at scala.Function3$$anonfun$tupled$1.apply(Function3.scala:34) at org.neo4j.cypher.internal.compiler.v3_0.helpers.CachedFunction$$anon$1$$anonfun$apply$1.apply(CachedFunction.scala:30) at scala.collection.mutable.MapLike$class.getOrElseUpdate(MapLike.scala:194) at scala.collection.mutable.AbstractMap.getOrElseUpdate(Map.scala:80) at org.neo4j.cypher.internal.compiler.v3_0.helpers.CachedFunction$$anon$1.apply(CachedFunction.scala:30) at scala.Function$$anonfun$untupled$2.apply(Function.scala:115) at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.StatisticsBackedCardinalityModel.org$neo4j$cypher$internal$compiler$v3_0$planner$logical$StatisticsBackedCardinalityModel$$calculateCardinalityForQueryGraph(StatisticsBackedCardinalityModel.scala:95) at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.StatisticsBackedCardinalityModel$$anonfun$1.apply(StatisticsBackedCardinalityModel.scala:36) at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.StatisticsBackedCardinalityModel$$anonfun$1.apply(StatisticsBackedCardinalityModel.scala:34) at org.neo4j.cypher.internal.compiler.v3_0.planner.PlannerQuery$class.recurse$1(PlannerQuery.scala:145) at org.neo4j.cypher.internal.compiler.v3_0.planner.PlannerQuery$class.fold(PlannerQuery.scala:153) at org.neo4j.cypher.internal.compiler.v3_0.planner.RegularPlannerQuery.fold(PlannerQuery.scala:39) at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.StatisticsBackedCardinalityModel.apply(StatisticsBackedCardinalityModel.scala:34) at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.StatisticsBackedCardinalityModel.apply(StatisticsBackedCardinalityModel.scala:31) at scala.Function3$$anonfun$tupled$1.apply(Function3.scala:35) at scala.Function3$$anonfun$tupled$1.apply(Function3.scala:34) at org.neo4j.cypher.internal.compiler.v3_0.helpers.CachedFunction$$anon$1$$anonfun$apply$1.apply(CachedFunction.scala:30) at scala.collection.mutable.MapLike$class.getOrElseUpdate(MapLike.scala:194) at scala.collection.mutable.AbstractMap.getOrElseUpdate(Map.scala:80) at org.neo4j.cypher.internal.compiler.v3_0.helpers.CachedFunction$$anon$1.apply(CachedFunction.scala:30) at scala.Function$$anonfun$untupled$2.apply(Function.scala:115) at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.steps.LogicalPlanProducer.estimatePlannerQuery(LogicalPlanProducer.scala:641) at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.steps.LogicalPlanProducer$$anonfun$planStarProjection$1.apply(LogicalPlanProducer.scala:379) at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.steps.LogicalPlanProducer$$anonfun$planStarProjection$1.apply(LogicalPlanProducer.scala:379) at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.plans.LogicalPlan.updateSolved(LogicalPlan.scala:77) at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.steps.LogicalPlanProducer.planStarProjection(LogicalPlanProducer.scala:379) at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.steps.projection$.apply(projection.scala:42) at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.PlanEventHorizon$.apply(PlanEventHorizon.scala:47) at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.PlanEventHorizon$.apply(PlanEventHorizon.scala:31) at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.PlanWithTail.apply(PlanWithTail.scala:46) at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.PlanWithTail.apply(PlanWithTail.scala:29) at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.PlanSingleQuery.apply(PlanSingleQuery.scala:47) at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.PlanSingleQuery.apply(PlanSingleQuery.scala:30) at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.DefaultQueryPlanner$$anonfun$2.apply(QueryPlanner.scala:51) at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.DefaultQueryPlanner$$anonfun$2.apply(QueryPlanner.scala:51) at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234) at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234) at scala.collection.immutable.List.foreach(List.scala:381) at scala.collection.TraversableLike$class.map(TraversableLike.scala:234) at scala.collection.immutable.List.map(List.scala:285) at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.DefaultQueryPlanner.planQueries(QueryPlanner.scala:51) at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.DefaultQueryPlanner.plan(QueryPlanner.scala:36) at org.neo4j.cypher.internal.compiler.v3_0.planner.CostBasedExecutablePlanBuilder.produceLogicalPlan(CostBasedExecutablePlanBuilder.scala:95) at org.neo4j.cypher.internal.compiler.v3_0.planner.CostBasedExecutablePlanBuilder$$anonfun$1.apply(CostBasedExecutablePlanBuilder.scala:71) at org.neo4j.cypher.internal.compiler.v3_0.planner.CostBasedExecutablePlanBuilder$$anonfun$1.apply(CostBasedExecutablePlanBuilder.scala:71) at org.neo4j.cypher.internal.compiler.v3_0.helpers.package$$anonfun$closing$1.apply(package.scala:29) at org.neo4j.cypher.internal.compiler.v3_0.helpers.package$$anonfun$closing$1.apply(package.scala:29) at org.neo4j.cypher.internal.compiler.v3_0.helpers.package$.using(package.scala:37) at org.neo4j.cypher.internal.compiler.v3_0.helpers.package$.closing(package.scala:29) at org.neo4j.cypher.internal.compiler.v3_0.planner.CostBasedExecutablePlanBuilder.producePlan(CostBasedExecutablePlanBuilder.scala:70) at org.neo4j.cypher.internal.compiler.v3_0.executionplan.procs.DelegatingProcedureExecutablePlanBuilder.producePlan(DelegatingProcedureExecutablePlanBuilder.scala:98) at org.neo4j.cypher.internal.compiler.v3_0.executionplan.FallbackBuilder$class.producePlan(SilentFallbackPlanBuilder.scala:38) at org.neo4j.cypher.internal.compiler.v3_0.executionplan.SilentFallbackPlanBuilder.producePlan(SilentFallbackPlanBuilder.scala:61) at org.neo4j.cypher.internal.compiler.v3_0.executionplan.ExecutionPlanBuilder.build(ExecutionPlanBuilder.scala:83) at org.neo4j.cypher.internal.compiler.v3_0.CypherCompiler$$anonfun$5.apply(CypherCompiler.scala:170) at org.neo4j.cypher.internal.compiler.v3_0.CypherCompiler$$anonfun$5.apply(CypherCompiler.scala:170) at org.neo4j.cypher.internal.compiler.v3_0.QueryCache$$anonfun$getOrElseUpdate$1$$anonfun$apply$1.apply(CacheAccessor.scala:36) at org.neo4j.cypher.internal.compiler.v3_0.MonitoringCacheAccessor$$anonfun$1.apply(CacheAccessor.scala:57) at org.neo4j.cypher.internal.compiler.v3_0.LRUCache.getOrElseUpdate(LRUCache.scala:34) at org.neo4j.cypher.internal.compiler.v3_0.LRUCache.apply(LRUCache.scala:64) at org.neo4j.cypher.internal.compiler.v3_0.MonitoringCacheAccessor.getOrElseUpdate(CacheAccessor.scala:55) at org.neo4j.cypher.internal.compiler.v3_0.QueryCache$$anonfun$getOrElseUpdate$1.apply(CacheAccessor.scala:34) at scala.collection.Iterator$$anon$9.next(Iterator.scala:162) at scala.collection.Iterator$$anon$12.nextCur(Iterator.scala:434) at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:440) at scala.collection.Iterator$$anon$12.next(Iterator.scala:444) at org.neo4j.cypher.internal.compiler.v3_0.QueryCache.getOrElseUpdate(CacheAccessor.scala:46) at org.neo4j.cypher.internal.compiler.v3_0.CypherCompiler.planPreparedQuery(CypherCompiler.scala:168) at org.neo4j.cypher.internal.compatibility.CompatibilityFor3_0$$anon$3$$anonfun$plan$1.apply(CompatibilityFor3_0.scala:194) at org.neo4j.cypher.internal.compatibility.CompatibilityFor3_0$$anon$3$$anonfun$plan$1.apply(CompatibilityFor3_0.scala:191) at org.neo4j.cypher.internal.compatibility.exceptionHandlerFor3_0$.runSafely(CompatibilityFor3_0.scala:139) at org.neo4j.cypher.internal.compatibility.CompatibilityFor3_0$$anon$3.plan(CompatibilityFor3_0.scala:191) at org.neo4j.cypher.internal.ExecutionEngine.org$neo4j$cypher$internal$ExecutionEngine$$producePlan$1(ExecutionEngine.scala:167) at org.neo4j.cypher.internal.ExecutionEngine$$anonfun$liftedTree1$1$1.apply(ExecutionEngine.scala:170) at org.neo4j.cypher.internal.ExecutionEngine$$anonfun$liftedTree1$1$1.apply(ExecutionEngine.scala:170) at org.neo4j.cypher.internal.compiler.v3_0.QueryCache$$anonfun$getOrElseUpdate$1$$anonfun$apply$1.apply(CacheAccessor.scala:36) at org.neo4j.cypher.internal.compiler.v3_0.MonitoringCacheAccessor$$anonfun$1.apply(CacheAccessor.scala:57) at org.neo4j.cypher.internal.compiler.v3_0.LRUCache.getOrElseUpdate(LRUCache.scala:34) at org.neo4j.cypher.internal.compiler.v3_0.LRUCache.apply(LRUCache.scala:64) at org.neo4j.cypher.internal.compiler.v3_0.MonitoringCacheAccessor.getOrElseUpdate(CacheAccessor.scala:55) at org.neo4j.cypher.internal.compiler.v3_0.QueryCache$$anonfun$getOrElseUpdate$1.apply(CacheAccessor.scala:34) at scala.collection.Iterator$$anon$9.next(Iterator.scala:162) at scala.collection.Iterator$$anon$12.nextCur(Iterator.scala:434) at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:440) at scala.collection.Iterator$$anon$12.next(Iterator.scala:444) at org.neo4j.cypher.internal.compiler.v3_0.QueryCache.getOrElseUpdate(CacheAccessor.scala:46) at org.neo4j.cypher.internal.ExecutionEngine.liftedTree1$1(ExecutionEngine.scala:170) at org.neo4j.cypher.internal.ExecutionEngine.planQuery(ExecutionEngine.scala:156) at org.neo4j.cypher.internal.ExecutionEngine.execute(ExecutionEngine.scala:110) at org.neo4j.cypher.internal.javacompat.ExecutionEngine.executeQuery(ExecutionEngine.java:65) at org.neo4j.bolt.v1.runtime.internal.CypherStatementRunner.run(CypherStatementRunner.java:73) at org.neo4j.bolt.v1.runtime.internal.StandardStateMachineSPI.run(StandardStateMachineSPI.java:110) at org.neo4j.bolt.v1.runtime.internal.SessionStateMachine$State$2.runStatement(SessionStateMachine.java:132) at org.neo4j.bolt.v1.runtime.internal.SessionStateMachine.run(SessionStateMachine.java:725) at org.neo4j.bolt.v1.runtime.internal.concurrent.SessionWorkerFacade.lambda$run$1(SessionWorkerFacade.java:69) at org.neo4j.bolt.v1.runtime.internal.concurrent.SessionWorker.execute(SessionWorker.java:116) at org.neo4j.bolt.v1.runtime.internal.concurrent.SessionWorker.run(SessionWorker.java:77) at java.lang.Thread.run(Thread.java:745)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

We couldn't find other users who have seen this exception.