2016-05-16 41 views
2

我的Neo4j數據庫沒有響應,所以我不得不殺掉這個進程,之後就不再啓動了。有人可以幫我解決它嗎?以下是錯誤日誌:Neo4j不再啓動了

016-05-16 07:41:05.422+0200 INFO Successfully shutdown Neo4j Server 
2016-05-16 07:41:05.423+0200 ERROR Failed to start Neo4j: Starting Neo4j failed: Component '[email protected]' was successfully initialized, but failed to start. Please see attached cause exception. Starting Neo4j failed: Component '[email protected]' was successfully initialized, but failed to start. Please see attached cause exception. 
org.neo4j.server.ServerStartupException: Starting Neo4j failed: Component '[email protected]' was successfully initialized, but failed to start. Please see attached cause exception. 
     at org.neo4j.server.exception.ServerStartupErrors.translateToServerStartupError(ServerStartupErrors.java:67) 
     at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:235) 
     at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:97) 
     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 '[email protected]' was successfully initialized, but failed to start. Please see attached cause exception. 
     at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:462) 
     at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:111) 
     at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:195) 
     ... 3 more 
Caused by: java.lang.RuntimeException: Error starting org.neo4j.kernel.impl.factory.CommunityFacadeFactory, /tmp/sarah/neo4j-community-2.3.3/data/graph.db 
     at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.newFacade(GraphDatabaseFacadeFactory.java:143) 
     at org.neo4j.kernel.impl.factory.CommunityFacadeFactory.newFacade(CommunityFacadeFactory.java:43) 
     at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.newFacade(GraphDatabaseFacadeFactory.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:452) 
     ... 5 more 
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component '[email protected]' was successfully initialized, but failed to start. Please see attached cause exception. 
     at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:462) 
     at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:111) 
     at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.newFacade(GraphDatabaseFacadeFactory.java:139) 
     ... 10 more 
Caused by: org.neo4j.kernel.StoreLockException: Store and its lock file has been locked by another process: data/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.StoreLocker.storeLockException(StoreLocker.java:93) 
     at org.neo4j.kernel.StoreLocker.checkLock(StoreLocker.java:79) 
     at org.neo4j.kernel.StoreLockerLifecycleAdapter.start(StoreLockerLifecycleAdapter.java:44) 
     at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:452) 
     ... 12 more 
2016-05-16 07:47:13.337+0200 INFO Successfully shutdown Neo4j Server 
2016-05-16 07:47:13.338+0200 ERROR Failed to start Neo4j: Starting Neo4j failed: Component '[email protected]' was successfully initialized, but failed to start. Please see attached cause exception. Starting Neo4j failed: Component '[email protected]' was successfully initialized, but failed to start. Please see attached cause exception. 
org.neo4j.server.ServerStartupException: Starting Neo4j failed: Component '[email protected]' was successfully initialized, but failed to start. Please see attached cause exception. 
     at org.neo4j.server.exception.ServerStartupErrors.translateToServerStartupError(ServerStartupErrors.java:67) 
     at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:235 

回答

1
Caused by: org.neo4j.kernel.StoreLockException: Store and its lock file has been locked by another process: data/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) 

看起來你還是在後臺運行一些Neo4j的過程。看看你是否可以找到它,然後殺死它。

0

今天早上我遇到了同樣的錯誤信息。這是對我有用的東西。我創建了一個新的數據庫文件夾,將啓動屏幕指向新的位置 - 啓動成功。然後我關閉這個新的實例並重新指向一個現有的(失敗的)數據庫位置,然後按照正常情況啓動它。我希望它有幫助。