2015-10-26 36 views
1

这是我收到的错误。Neo4j - 从2.2.5升级到2.3.0后无法启动

数据库为空,没有graph.db目录。

所有的服务器属性文件与用于版本2.2.5的文件相同。

这里的console.log的内容:

15:56:31.972 [main] DEBUG i.n.u.i.l.InternalLoggerFactory - Using SLF4J as the default logging framework 
2015-10-26 15:56:33.932+0000 INFO Successfully shutdown Neo4j Server 
2015-10-26 15:56:33.934+0000 ERROR Failed to start Neo4j: Starting Neo4j failed: Component 'org.neo4j.server.d 
[email protected]' was successfully initialized, but failed to start. Please see atta 
ched cause exception. Starting Neo4j failed: Component '[email protected] 
a005fb' was successfully initialized, but failed to start. Please see attached cause exception. 
org.neo4j.server.ServerStartupException: Starting Neo4j failed: Component 'org.neo4j.server.database.Lifecycle 
[email protected]' was successfully initialized, but failed to start. Please see attached cause except 
ion. 
    at org.neo4j.server.exception.ServerStartupErrors.translateToServerStartupError(ServerStartupErrors.ja 
va:67) 
    at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:234) 
    at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:100) 
    at org.neo4j.server.CommunityBootstrapper.start(CommunityBootstrapper.java:48) 
    at org.neo4j.server.CommunityBootstrapper.main(CommunityBootstrapper.java:35) 
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.server.database.LifecycleManagi 
[email protected]' was successfully initialized, but failed to start. Please see attached cause exception. 
    at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:538) 
    at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:109) 
    at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:194) 
    ... 3 more 
    Suppressed: java.lang.RuntimeException: Error starting org.neo4j.kernel.impl.factory.CommunityFacadeFa 
ctory, /var/lib/neo4j/data/graph.db 
     at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.newFacade(GraphDatabaseFacadeFacto 
ry.java:143) 
     at org.neo4j.kernel.impl.factory.CommunityFacadeFactory.newFacade(CommunityFacadeFactory.java: 
43) 
     at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.newFacade(GraphDatabaseFacadeFacto 
ry.java:108) 
     at org.neo4j.server.CommunityNeoServer$1.newGraphDatabase(CommunityNeoServer.java:66) 
     at org.neo4j.server.database.LifecycleManagingDatabase.start(LifecycleManagingDatabase.java:95 
) 
     at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:528) 
     ... 5 more 
    Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.recovery.Recover 
[email protected]' failed to initialize. Please see attached cause exception. 
     at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.init(LifeSupport.java:510) 

这里有什么问题?

+0

你是否在neo4j.properties中激活了'allow_store_upgrade'配置? 我有一些东西在data/graph.db/messages.log? – logisima

+0

文件夹graph.db不存在: Ubuntu的@ IP-10-92-135-77:〜/数据/ Neo4j的数据$ LS -lrt 共0 该参数allow_store_upgrade设置为true: #启用此以便能够从旧版本升级商店。 allow_store_upgrade = true – LDB

回答

0

看起来这是马赫简单的东西。由于安装程序提供的默认位置错误,我不得不更改参数org.neo4j.server.database.location =/home/ubuntu/data/neo4j-data/graph.db。

+0

您是否使用'apt-get'来安装Neo4j?我经常使用curl直接从neo4j.com下载Neo4j,并将其解压缩到我想要的位置,这样我就不必担心它的安装位置。由于Neo4j是自包含的,你可以在一个地方拥有所有东西(或者不是,如果这就是你想要的,就像你从'database.location'设置中找到的那样) –

+0

是的,我总是使用apt-get,因为我不知道如何用curl和解压缩来下载。 – LDB

+0

了解。这非常简单。你可以运行'curl http:// host/path> download_path',然后运行'tar -xvzf neo4j-community-2.3.0.tar.gz'(参见http://askubuntu.com/questions/25347/what-c​​ommand -do -i-need-to-unzip-extract-a-tar-gz-file) –

相关问题