我安装了neo4j 3.0.3。我拿了2.3.0-M02数据库,通过设置取消注释来启用升级
dbms.allow_format_migration=true
并启动服务器,但它失败并带有
2016-06-15 17:50:18.439+0000 INFO Starting...
2016-06-15 17:50:18.874+0000 INFO Bolt enabled on localhost:7687.
2016-06-15 17:50:19.027+0000 INFO Starting upgrade of database
2016-06-15 17:50:19.046+0000 INFO Migrating Indexes (1/3):
2016-06-15 17:50:19.049+0000 INFO 10% completed
2016-06-15 17:50:19.049+0000 INFO 20% completed
2016-06-15 17:50:19.049+0000 INFO 30% completed
2016-06-15 17:50:19.050+0000 INFO 40% completed
2016-06-15 17:50:19.050+0000 INFO 50% completed
2016-06-15 17:50:19.050+0000 INFO 60% completed
2016-06-15 17:50:19.050+0000 INFO 70% completed
2016-06-15 17:50:19.050+0000 INFO 80% completed
2016-06-15 17:50:19.050+0000 INFO 90% completed
2016-06-15 17:50:19.050+0000 INFO 100% completed
2016-06-15 17:50:19.051+0000 INFO Migrating Legacy indexes (2/3):
2016-06-15 17:50:19.057+0000 INFO 10% completed
2016-06-15 17:50:19.058+0000 INFO 20% completed
2016-06-15 17:50:19.058+0000 INFO 30% completed
2016-06-15 17:50:19.058+0000 INFO 40% completed
2016-06-15 17:50:19.058+0000 INFO 50% completed
2016-06-15 17:50:19.058+0000 INFO 60% completed
2016-06-15 17:50:19.058+0000 INFO 70% completed
2016-06-15 17:50:19.058+0000 INFO 80% completed
2016-06-15 17:50:19.058+0000 INFO 90% completed
2016-06-15 17:50:19.059+0000 INFO 100% completed
2016-06-15 17:50:19.059+0000 INFO Migrating Store files (3/3):
2016-06-15 17:50:19.067+0000 INFO 10% completed
2016-06-15 17:50:19.067+0000 INFO 20% completed
2016-06-15 17:50:19.067+0000 INFO 30% completed
2016-06-15 17:50:19.068+0000 INFO 40% completed
2016-06-15 17:50:19.068+0000 INFO 50% completed
2016-06-15 17:50:19.068+0000 INFO 60% completed
2016-06-15 17:50:19.068+0000 INFO 70% completed
2016-06-15 17:50:19.068+0000 INFO 80% completed
2016-06-15 17:50:19.068+0000 INFO 90% completed
2016-06-15 17:50:19.068+0000 INFO 100% completed
2016-06-15 17:50:19.091+0000 INFO Successfully finished upgrade of database
2016-06-15 17:50:19.389+0000 ERROR Failed to start Neo4j: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@3693c13' was successfully initialized, but failed to start. Please see attached cause exception. Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@3693c13' was successfully initialized, but failed to start. Please see attached cause exception.
org.neo4j.server.ServerStartupException: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@3693c13' 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:217)
at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:87)
at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:66)
at org.neo4j.server.CommunityEntryPoint.main(CommunityEntryPoint.java:28)
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.server.database.LifecycleManagingDatabase@3693c13' 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:189)
... 3 more
Caused by: java.lang.RuntimeException: Error starting org.neo4j.kernel.impl.factory.CommunityFacadeFactory, /home/pavel/devel/neo4j-community-3.0.3/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$31(CommunityNeoServer.java:55)
at org.neo4j.server.CommunityNeoServer$$Lambda$43/1644443712.newGraphDatabase(Unknown Source)
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.impl.storageengine.impl.recordstorage.RecordStorageEngine@6ec66b58' 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.kernel.NeoStoreDataSource.start(NeoStoreDataSource.java:503)
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)
... 11 more
Caused by: org.neo4j.kernel.impl.store.InvalidRecordException: DynamicRecord[1869509480,used=false,(0),type=-1,data=byte[],start=true,next=-1] not in use
at org.neo4j.kernel.impl.store.record.RecordLoad.verify(RecordLoad.java:63)
at org.neo4j.kernel.impl.store.CommonAbstractStore.verifyAfterNotRead(CommonAbstractStore.java:1229)
at org.neo4j.kernel.impl.store.CommonAbstractStore.readIntoRecord(CommonAbstractStore.java:1051)
at org.neo4j.kernel.impl.store.CommonAbstractStore.access$000(CommonAbstractStore.java:60)
at org.neo4j.kernel.impl.store.CommonAbstractStore$1.next(CommonAbstractStore.java:1177)
at org.neo4j.kernel.impl.store.CommonAbstractStore$1.next(CommonAbstractStore.java:1142)
at org.neo4j.kernel.impl.store.RecordCursor.getAll(RecordCursor.java:106)
at org.neo4j.kernel.impl.store.CommonAbstractStore.getRecords(CommonAbstractStore.java:1124)
at org.neo4j.kernel.impl.store.TokenStore.ensureHeavy(TokenStore.java:141)
at org.neo4j.kernel.impl.store.TokenStore.getStringFor(TokenStore.java:146)
at org.neo4j.kernel.impl.store.TokenStore.getTokens(TokenStore.java:100)
at org.neo4j.kernel.impl.storageengine.impl.recordstorage.RecordStorageEngine.start(RecordStorageEngine.java:415)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:434)
... 19 more
我试图谷歌这个,但除了代码本身,没有太多可以找到。
答案 0 :(得分:0)
通常不支持从里程碑升级。
您可以使用一致性检查程序检查旧商店是否正常?
http://www.markhneedham.com/blog/2014/01/22/neo4j-backup-store-copy-and-consistency-check/
您还可以尝试在商店中使用我的商店复制工具来复制所有未受影响的记录:https://github.com/jexp/store-utils/tree/30