我在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
答案 0 :(得分:2)
拥有相同版本的Neo4j社区和企业会更好。
如果您的企业版本比社区旧。我建议更改以下属性以获取更新数据存储区
conf / neo4j.properties
allow_store_upgrade=true
答案 1 :(得分:1)
除了@MicTech所说的,你不能降级数据存储。 Neo4j支持升级。因此,当从社区迁移到企业时,企业变体需要是相同版本或更新版本。
在进行商店升级之前,使用旧版本进行干净关机至关重要。
答案 2 :(得分:1)
根据他们关于Ubuntu和Debian的文档,您可以按照以下步骤进行升级, Neo4j 2.3.1
Neo4j Debian存储库可以在Debian或Ubuntu上使用。
要使用存储库,请按以下步骤操作:
wget -O - https://debian.neo4j.org/neotechnology.gpg.key |须藤 apt-key add - echo&#39; deb http://debian.neo4j.org/repo stable /&#39; /tmp/neo4j.list sudo mv /tmp/neo4j.list /etc/apt/sources.list.d sudo apt-get update
安装Neo4j 要安装最新的Neo4j社区版:
sudo apt-get install neo4j
安装最新的Neo4j企业版:
sudo apt-get install neo4j-enterprise
安装过程将指导您完成升级