0

我在 Neo4j 企业版和社区版之间切换时遇到问题。由于我无法进行 graphml 导入,我切换到可以导入 graphml 数据库的企业版。完成后,我试图打开在企业版中创建的数据库文件社区版本它给出错误。

  org.neo4j.server.database.LifeCycleManagingDatabase was succesfully initialized but failed to start

是否可以在社区中打开在企业版中创建的数据库。我在这里做错了什么?

请找到我从 java 打开数据库时遇到的错误。

Exception in thread "main" java.lang.RuntimeException: Error starting org.neo4j.kernel.EmbeddedGraphDatabase, D:\roshni\graph.db
at org.neo4j.kernel.InternalAbstractGraphDatabase.run(InternalAbstractGraphDatabase.java:314)
at org.neo4j.kernel.EmbeddedGraphDatabase.<init>(EmbeddedGraphDatabase.java:59)
at org.neo4j.graphdb.factory.GraphDatabaseFactory.newDatabase(GraphDatabaseFactory.java:107)
at org.neo4j.graphdb.factory.GraphDatabaseFactory$1.newDatabase(GraphDatabaseFactory.java:94)
at org.neo4j.graphdb.factory.GraphDatabaseBuilder.newGraphDatabase(GraphDatabaseBuilder.java:176)
at org.neo4j.graphdb.factory.GraphDatabaseFactory.newEmbeddedDatabase(GraphDatabaseFactory.java:66)
at Testing.main(Testing.java:15)
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.impl.transaction.state.DataSourceManager@f1cb476' was successfully initialized, but failed to start. Please see attached cause exception.
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:499)
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:108)
at org.neo4j.kernel.InternalAbstractGraphDatabase.run(InternalAbstractGraphDatabase.java:309)
... 6 more
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.NeoStoreDataSource@2ad13d80' was successfully initialized, but failed to start. Please see attached cause exception.
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:499)
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:108)
at org.neo4j.kernel.impl.transaction.state.DataSourceManager.start(DataSourceManager.java:117)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:493)
... 8 more
Caused by: org.neo4j.kernel.impl.storemigration.StoreUpgrader$UpgradingStoreVersionNotFoundException: 'neostore.nodestore.db' does not contain a store version, please ensure that the original database was shut down in a clean state.
at org.neo4j.kernel.impl.storemigration.UpgradableDatabase.checkUpgradeable(UpgradableDatabase.java:86)
at org.neo4j.kernel.impl.storemigration.StoreMigrator.needsMigration(StoreMigrator.java:158)
at org.neo4j.kernel.impl.storemigration.StoreUpgrader.getParticipantsEagerToMigrate(StoreUpgrader.java:259)
at org.neo4j.kernel.impl.storemigration.StoreUpgrader.migrateIfNeeded(StoreUpgrader.java:134)
at org.neo4j.kernel.NeoStoreDataSource.upgradeStore(NeoStoreDataSource.java:532)
at org.neo4j.kernel.NeoStoreDataSource.start(NeoStoreDataSource.java:434)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:493)
... 11 more
4

3 回答 3

2

最好有相同版本的 Neo4j 社区和企业。

如果您的企业版本较旧,那么社区。我建议更改以下属性以更新数据存储

conf/neo4j.properties

allow_store_upgrade=true
于 2015-10-12T06:41:30.393 回答
1

除了@MicTech 所说的,您不能降级数据存储。Neo4j 支持升级。因此,当从社区迁移到企业时,企业变体需要是相同版本更新版本。

在进行商店升级之前,使用旧版本彻底关闭至关重要。

于 2015-10-12T07:00:11.433 回答
1

根据他们关于 Ubuntu 和 Debian 的文档,您可以对Neo4j 2.3.1进行如下升级

Neo4j Debian 存储库可以在 Debian 或 Ubuntu 上使用。

要使用存储库,请执行以下步骤:

wget -O - https://debian.neo4j.org/neotechnology.gpg.key | sudo apt-key add - echo 'deb http://debian.neo4j.org/repo stable/' /tmp/neo4j.list sudo mv /tmp/neo4j.list /etc/apt/sources.list.d sudo apt-获取更新

安装 Neo4j 安装最新的 Neo4j 社区版:

sudo apt-get 安装 neo4j

安装最新的 Neo4j 企业版:

sudo apt-get install neo4j-enterprise

安装过程将指导您完成升级

于 2015-12-23T19:04:12.147 回答