码迷,mamicode.com
首页 > 其他好文 > 详细

Not possible to upgrade a store with version 'v0.A.3' to current store version `v0.A.9` (Neo4j 3.5.5).

时间:2020-06-18 01:22:24      阅读:68      评论:0      收藏:0      [点我收藏+]

标签:comm   form   cycle   active   lis   lock   mda   format   mmu   

1.使用已有数据库时,报错

C:\Users\h>neo4j.bat console
2020-06-17 14:17:48.851+0000 WARN dbms.active_database is deprecated.
2020-06-17 14:17:48.870+0000 INFO ======== Neo4j 3.5.5 ========
2020-06-17 14:17:48.886+0000 INFO Starting...
2020-06-17 14:17:50.836+0000 INFO Starting upgrade of database
2020-06-17 14:17:50.851+0000 ERROR Failed to start Neo4j: Starting Neo4j failed: Component org.neo4j.server.database.LifecycleManagingDatabase@ec2cc4 was successfully initialized, but failed to start. Please see the attached cause exception "Not possible to upgrade a store with version ‘v0.A.3‘ to current store version `v0.A.9` (Neo4j 3.5.5).". Starting Neo4j failed: Component org.neo4j.server.database.LifecycleManagingDatabase@ec2cc4 was successfully initialized, but failed to start. Please see the attached cause exception "Not possible to upgrade a store with version ‘v0.A.3‘ to current store version `v0.A.9` (Neo4j 3.5.5).".
org.neo4j.server.ServerStartupException: Starting Neo4j failed: Component org.neo4j.server.database.LifecycleManagingDatabase@ec2cc4 was successfully initialized, but failed to start. Please see the attached cause exception "Not possible to upgrade a store with version ‘v0.A.3‘ to current store version `v0.A.9` (Neo4j 3.5.5).".
at org.neo4j.server.exception.ServerStartupErrors.translateToServerStartupError(ServerStartupErrors.java:45)
at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:187)
at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:123)
at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:90)
at org.neo4j.server.CommunityEntryPoint.main(CommunityEntryPoint.java:32)
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component org.neo4j.server.database.LifecycleManagingDatabase@ec2cc4 was successfully initialized, but failed to start. Please see the attached cause exception "Not possible to upgrade a store with version ‘v0.A.3‘ to current store version `v0.A.9` (Neo4j 3.5.5).".
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:473)
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:111)
at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:180)
... 3 more
Caused by: java.lang.RuntimeException: Error starting org.neo4j.graphdb.facade.GraphDatabaseFacadeFactory, D:\Neo4j\neo4j-community-3.5.5\data\databases
at org.neo4j.graphdb.facade.GraphDatabaseFacadeFactory.initFacade(GraphDatabaseFacadeFactory.java:229)
at org.neo4j.graphdb.facade.GraphDatabaseFacadeFactory.newFacade(GraphDatabaseFacadeFactory.java:146)
at org.neo4j.server.database.CommunityGraphFactory.newGraphDatabase(CommunityGraphFactory.java:41)
at org.neo4j.server.database.LifecycleManagingDatabase.start(LifecycleManagingDatabase.java:90)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:452)
... 5 more
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component org.neo4j.kernel.NeoStoreDataSource@5c08c46a was successfully initialized, but failed to start. Please see the attached cause exception "Not possible to upgrade a store with version ‘v0.A.3‘ to current store version `v0.A.9` (Neo4j 3.5.5).".
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:473)
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:111)
at org.neo4j.kernel.impl.transaction.state.DataSourceManager.start(DataSourceManager.java:116)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:452)
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:111)
at org.neo4j.graphdb.facade.GraphDatabaseFacadeFactory.initFacade(GraphDatabaseFacadeFactory.java:224)
... 9 more
Caused by: org.neo4j.kernel.impl.storemigration.StoreUpgrader$UnexpectedUpgradingStoreVersionException: Not possible to upgrade a store with version v0.A.3 to current store version `v0.A.9` (Neo4j 3.5.5).
at org.neo4j.kernel.impl.storemigration.UpgradableDatabase.checkUpgradable(UpgradableDatabase.java:121)
at org.neo4j.kernel.impl.storemigration.StoreUpgrader.migrateStore(StoreUpgrader.java:141)
at org.neo4j.kernel.impl.storemigration.StoreUpgrader.migrateIfNeeded(StoreUpgrader.java:122)
at org.neo4j.kernel.impl.storemigration.DatabaseMigrator.migrate(DatabaseMigrator.java:101)
at org.neo4j.kernel.NeoStoreDataSource.upgradeStore(NeoStoreDataSource.java:496)
at org.neo4j.kernel.NeoStoreDataSource.start(NeoStoreDataSource.java:344)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:452)
... 14 more
2020-06-17 14:17:50.863+0000 INFO Neo4j Server shutdown initiated by request

2.原因:版本不兼容

(1)依据:

Caused by: org.neo4j.kernel.impl.storemigration.StoreUpgrader$UnexpectedUpgradingStoreVersionException: Not possible to upgrade a store with version ‘v0.A.3‘ to current store version `v0.A.9` (Neo4j 3.5.5).

可以看出,store版本和Neo4j版本要一一对应,v0.A.9 (Neo4j 3.5.5)是我现在使用的版本,v0.A.3应该就是数据库版本了,查了半天才查到版本对应关系,不容易【需要fanqiang】:

(2)store版本——Neo4j版本

参考:https://neo4j.com/developer/kb/store-format-versions/

Standard Store Versions

Store Format Name             Store Format Version              Neo4j Server Version
STANDARD_V2_0                      v0.A.1                                        2.0.0

STANDARD_V2_1                      v0.A.3                                        2.1.0

STANDARD_V2_2                      v0.A.5                                        2.2.0

STANDARD_V2_3                      v0.A.6                                        2.3.0

STANDARD_V3_0                      v0.A.7                                        3.0.0

STANDARD_V3_2                      v0.A.8                                        3.2.0

STANDARD_V3_4                      v0.A.9                                        3.4.0

High Limit Store Versions 

Store Format Name             Store Format Version             Neo4j Server Version
HIGH_LIMIT_V3_0_0                    vE.H.0                                     3.0.0
HIGH_LIMIT_V3_0_6                    vE.H.0b                                   3.0.6
HIGH_LIMIT_V3_1_0                    vE.H.2                                     3.1.0
HIGH_LIMIT_V3_2_0                    vE.H.3                                     3.2.0
HIGH_LIMIT_V3_4_0                    vE.H.4                                     3.4.0

3.查询存储版本Inspecting a store’s format

You can use the neo4j-admin store-info against an offline store to find out what format it is using. Example:

$ ./bin/neo4j-admin store-info --store=data/databases/mygraph.db

#使用时候改一下路径:
D:\Neo4j\neo4j-community-3.5.5\bin>neo4j-admin store-info --store=D:\Neo4j\neo4j-community-3.5.5/data/databases/graph.db
输出结果:
Store format version: v0.A.
9 Store format introduced in: 3.4.0

 

 

Not possible to upgrade a store with version 'v0.A.3' to current store version `v0.A.9` (Neo4j 3.5.5).

标签:comm   form   cycle   active   lis   lock   mda   format   mmu   

原文地址:https://www.cnblogs.com/sybil-hxl/p/13155412.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!