Neo4j Enterprise 3.0无法启动

时间:2016-05-05 10:09:34

标签: neo4j java-8

我在ubuntu 14.04上安装了新版Neo4j 3.0企业版。还安装了java 8 ..

重新启动服务器后,我发现neo4j正在进程中运行但是如果我#service neo4j status我得到了neo4j is not running

似乎neo4j已经在运行,但不是来自同一个init.d neo4j脚本。

当我运行#service neo4j start时,我得到了

Starting Neo4j.
/usr/share/neo4j/bin/neo4j: line 149: /var/run/neo4j/neo4j.pid: No such file or directory

从neo4j登录:

2016-05-05 09:51:57.905+0000 INFO  Starting...
2016-05-05 09:51:58.856+0000 INFO  Bolt enabled on localhost:7687.
2016-05-05 09:51:58.875+0000 INFO  Initiating metrics...
2016-05-05 09:51:59.006+0000 ERROR Failed to start Neo4j: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@36b36a23' was successfully initialized, but failed to start. Please see attached cause exception. Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@36b36a23' 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@36b36a23' 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:81)
        at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:60)
        at org.neo4j.server.enterprise.EnterpriseEntryPoint.main(EnterpriseEntryPoint.java:32)
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.server.database.LifecycleManagingDatabase@36b36a23' 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.enterprise.EnterpriseFacadeFactory, /var/lib/neo4j/data/databases/graph.db
        at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.newFacade(GraphDatabaseFacadeFactory.java:144)
        at org.neo4j.kernel.impl.enterprise.EnterpriseFacadeFactory.newFacade(EnterpriseFacadeFactory.java:42)
        at org.neo4j.graphdb.EnterpriseGraphDatabase.<init>(EnterpriseGraphDatabase.java:57)
        at org.neo4j.server.enterprise.EnterpriseNeoServer.lambda$static$1(EnterpriseNeoServer.java:85)
        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.internal.StoreLockerLifecycleAdapter@130ceaaa' 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.impl.factory.GraphDatabaseFacadeFactory.newFacade(GraphDatabaseFacadeFactory.java:140)
        ... 10 more
Caused by: org.neo4j.kernel.StoreLockException: Store and its lock file has been locked by another process: /var/lib/neo4j/data/databases/graph.db/store_lock. Please ensure no other process is using this database, and that the directory is writable (required even for read-only access)
        at org.neo4j.kernel.internal.StoreLocker.storeLockException(StoreLocker.java:90)
        at org.neo4j.kernel.internal.StoreLocker.checkLock(StoreLocker.java:76)
        at org.neo4j.kernel.internal.StoreLockerLifecycleAdapter.start(StoreLockerLifecycleAdapter.java:40)
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:434)
        ... 12 more

安装了Java版本:

java版&#34; 1.8.0_91&#34; Java(TM)SE运行时环境(版本1.8.0_91-b14) Java HotSpot(TM)64位服务器VM(版本25.91-b14,混合模式)

有什么建议吗?我试图安装两次,我得到同样的问题..

请帮助:)

2 个答案:

答案 0 :(得分:1)

发现问题.. neo4j安装进程没有为/ var / run /中的pid创建目录 手动创建,现在它工作正常。

答案 1 :(得分:0)

使用ps aux | grep java或{{1}}检查是否正在运行java进程。确保给定的db位置没有正在运行的进程。