Neo4J无法启动:java.lang.IllegalArgumentException:无法识别的日志条目版本-9和logHeaderFormatVersion -1

时间:2016-11-28 11:54:33

标签: neo4j

在Windows上运行Neo4j.bat时出现以下错误。 早些时候它曾经工作,我已经使用了很多个小时。但不知道现在出了什么问题。如果我没记错的话,我想我之前曾经遇到过同样的问题,但它会自动消失。这次我根本无法启动Neo4j。

C:\Mahesh\Program Files\neo4j-community-3.0.0-M05\bin>Neo4j.bat
WARNING! This batch script has been deprecated. Please use the provided PowerShell scripts instead: http://neo4j.com/docs/stable/powershell.html
2016-11-28 17:14:53.094+0530 INFO  Starting...
2016-11-28 17:14:55.425+0530 ERROR Failed to start Neo4j: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@59717aa7' was successfully initializ
ed, but failed to start. Please see attached cause exception. Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@59717aa7' was successfully initi
alized, but failed to start. Please see attached cause exception.
org.neo4j.server.ServerStartupException: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@59717aa7' was successfully initialized, but failed to
 start. Please see attached cause exception.
        at org.neo4j.server.exception.ServerStartupErrors.translateToServerStartupError(ServerStartupErrors.java:68)
        at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:206)
        at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:90)
        at org.neo4j.server.CommunityBootstrapper.start(CommunityBootstrapper.java:43)
        at org.neo4j.server.CommunityBootstrapper.main(CommunityBootstrapper.java:30)
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.server.database.LifecycleManagingDatabase@59717aa7' was successfully initialized, but failed to start
. Please see attached cause exception.
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:444)
        at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107)
        at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:178)
        ... 3 more
Caused by: java.lang.RuntimeException: Error starting org.neo4j.kernel.impl.factory.CommunityFacadeFactory, C:\Mahesh\PROGRA~1\NEO4J-~1.0-M\data\databases\graph.db
        at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.newFacade(GraphDatabaseFacadeFactory.java:144)
        at org.neo4j.kernel.impl.factory.CommunityFacadeFactory.newFacade(CommunityFacadeFactory.java:40)
        at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.newFacade(GraphDatabaseFacadeFactory.java:108)
        at org.neo4j.server.CommunityNeoServer.lambda$static$21(CommunityNeoServer.java:55)
        at org.neo4j.server.database.LifecycleManagingDatabase.start(LifecycleManagingDatabase.java:89)
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:434)
        ... 5 more
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.recovery.Recovery@42e996ca' failed to initialize. Please see attached cause exception.
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.init(LifeSupport.java:416)
        at org.neo4j.kernel.lifecycle.LifeSupport.init(LifeSupport.java:62)
        at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:98)
        at org.neo4j.kernel.NeoStoreDataSource.start(NeoStoreDataSource.java:505)
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:434)
        at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107)
        at org.neo4j.kernel.impl.transaction.state.DataSourceManager.start(DataSourceManager.java:99)
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:434)
        at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107)
        at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.newFacade(GraphDatabaseFacadeFactory.java:140)
        ... 10 more
Caused by: java.lang.IllegalArgumentException: Unrecognized log entry version -9 and logHeaderFormatVersion -1. At position LogPosition{logVersion=0, byteOffset=454975} and entry v
ersion null
        at org.neo4j.kernel.impl.transaction.log.entry.LogEntryVersion.byVersion(LogEntryVersion.java:199)
        at org.neo4j.kernel.impl.transaction.log.entry.VersionAwareLogEntryReader.readLogEntry(VersionAwareLogEntryReader.java:87)
        at org.neo4j.kernel.impl.transaction.log.LogEntryCursor.next(LogEntryCursor.java:50)
        at org.neo4j.kernel.recovery.LatestCheckPointFinder.find(LatestCheckPointFinder.java:77)
        at org.neo4j.kernel.recovery.PositionToRecoverFrom.apply(PositionToRecoverFrom.java:53)
        at org.neo4j.kernel.recovery.DefaultRecoverySPI.getPositionToRecoverFrom(DefaultRecoverySPI.java:110)
        at org.neo4j.kernel.recovery.Recovery.init(Recovery.java:72)
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.init(LifeSupport.java:406)
        ... 19 more
Nov 28, 2016 5:15:01 PM org.neo4j.wrapper.NeoServiceWrapper launchAsConsoleApp
INFO: Params
Nov 28, 2016 5:15:01 PM org.neo4j.wrapper.NeoServiceWrapper launchAsConsoleApp
INFO: -Dorg.neo4j.config.file="conf/neo4j.conf"
Nov 28, 2016 5:15:01 PM org.neo4j.wrapper.NeoServiceWrapper launchAsConsoleApp
INFO: "-XX:+UseG1GC"
Nov 28, 2016 5:15:01 PM org.neo4j.wrapper.NeoServiceWrapper launchAsConsoleApp
INFO: "-XX:-OmitStackTraceInFastThrow"
Nov 28, 2016 5:15:01 PM org.neo4j.wrapper.NeoServiceWrapper launchAsConsoleApp
INFO: "-XX:hashCode=5"
Nov 28, 2016 5:15:01 PM org.neo4j.wrapper.NeoServiceWrapper launchAsConsoleApp
INFO: "-XX:+AlwaysPreTouch"
Nov 28, 2016 5:15:01 PM org.neo4j.wrapper.NeoServiceWrapper launchAsConsoleApp
INFO: "-XX:+UnlockExperimentalVMOptions"
Nov 28, 2016 5:15:01 PM org.neo4j.wrapper.NeoServiceWrapper launchAsConsoleApp
INFO: "-XX:+TrustFinalNonStaticFields"
Nov 28, 2016 5:15:01 PM org.neo4j.wrapper.NeoServiceWrapper launchAsConsoleApp
INFO: "-XX:+DisableExplicitGC"
Nov 28, 2016 5:15:01 PM org.neo4j.wrapper.NeoServiceWrapper launchAsConsoleApp
INFO: -Dneo4j.ext.udc.source="zip"
Nov 28, 2016 5:15:01 PM org.neo4j.wrapper.NeoServiceWrapper launchAsConsoleApp
INFO: Classpath: "-classpath" "...deleted classpath for cleaner post..."
Nov 28, 2016 5:15:02 PM org.neo4j.wrapper.NeoServiceWrapper launchAsConsoleApp
INFO: Main class: org.neo4j.server.CommunityBootstrapper
Nov 28, 2016 5:15:02 PM org.neo4j.wrapper.NeoServiceWrapper launchAsConsoleApp
INFO: Args:

我觉得这个问题正如上次Caused by指出的那样:

java.lang.IllegalArgumentException: Unrecognized log entry version -9 and logHeaderFormatVersion -1. At position LogPosition{logVersion=0, byteOffset=454975} and entry version null

导致主要问题。但我无法从中得出任何意义。这里出了什么问题?

2 个答案:

答案 0 :(得分:2)

我也面临同样的问题。尝试使用neo4j的最新依赖(3.1.2版本为我解决了问题)

答案 1 :(得分:0)

你在运行这个版本的neo4j?我碰巧知道日志条目版本-9来自neo4j版本3.0.2。如果您在该版本或3.0.x的更高版本上运行neo4j,然后在此之前返回某个版本并尝试打开该数据库,则可能会发生这种情况。是吗?