2016-05-16 136 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

今天早上我遇到了同样的错误信息。这是对我有用的东西。我创建了一个新的数据库文件夹,将启动屏幕指向新的位置 - 启动成功。然后我关闭这个新的实例并重新指向一个现有的(失败的)数据库位置,然后按照正常情况启动它。我希望它有帮助。