0

Neo4j への接続中に次のエラーが発生します。

Exception in thread "main" java.lang.RuntimeException:  org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.StoreLockerLifecycleAdapter@1798b372' was successfully initialized, but failed to start. Please see attached cause exception.
at org.neo4j.kernel.InternalAbstractGraphDatabase.run(InternalAbstractGraphDatabase.java:281)
at org.neo4j.kernel.EmbeddedGraphDatabase.<init>(EmbeddedGraphDatabase.java:106)
at org.neo4j.graphdb.factory.GraphDatabaseFactory$1.newDatabase(GraphDatabaseFactory.java:88)
at org.neo4j.graphdb.factory.GraphDatabaseBuilder.newGraphDatabase(GraphDatabaseBuilder.java:207)
at org.neo4j.graphdb.factory.GraphDatabaseFactory.newEmbeddedDatabase(GraphDatabaseFactory.java:69)
at com.neo4j.NeoStart.createDatabase(NeoStart.java:41)
at com.neo4j.NeoStart.main(NeoStart.java:26)
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.StoreLockerLifecycleAdapter@1798b372' was successfully initialized, but failed to start. Please see attached cause exception.
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:497)
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:104)
at org.neo4j.kernel.InternalAbstractGraphDatabase.run(InternalAbstractGraphDatabase.java:259)
... 6 more
Caused by: org.neo4j.kernel.StoreLockException: Could not create lock file
at org.neo4j.kernel.StoreLocker.checkLock(StoreLocker.java:74)
at org.neo4j.kernel.StoreLockerLifecycleAdapter.start(StoreLockerLifecycleAdapter.java:40)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:491)

次のようにneo4jをインストールしました:apt-get install neo4j in ubuntu 12.04

私が使用している DB_PATH は次のとおりです。 private static final String neo4j_DB_PATH=" /var/lib/neo4j/data/graph.db ";

この問題を解決するのを手伝ってください...

4

1 に答える 1

2

neo4j サーバーが使用する uid にデータ ディレクトリへの書き込み権限があることを確認しますか? また、複数のインスタンスが実行されていないことを確認していますか? 端末の aps axf|grep neo4jで確認できます。

于 2013-08-27T07:31:12.230 に答える