美文网首页
Neo4j ServerStartupException

Neo4j ServerStartupException

作者: letsgetdrunk | 来源:发表于2019-03-25 14:22 被阅读0次

    Neo4j Desktop无法连接,在命令行中连接报错:

    ERROR Failed to start Neo4j: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@3d9c13b5' was successfully initialized, but failed to start. Please see the attached cause exception "Store and its lock file has been locked by another process: C:\Program Files\neo4j-community-3.5.1\data\databases\store_lock. Please ensure no other process is using this database, and that the directory is writable (required even for read-only access)". Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@3d9c13b5' was successfully initialized, but failed to start. Please see the attached cause exception "Store and its lock file has been locked by another process: C:\Program Files\neo4j-community-3.5.1\data\databases\store_lock. Please ensure no other process is using this database, and that the directory is writable (required even for read-only access)".
    org.neo4j.server.ServerStartupException: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@3d9c13b5' was successfully initialized, but failed to start. Please see the attached cause exception "Store and its lock file has been locked by another process: C:\Program Files\neo4j-community-3.5.1\data\databases\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.server.exception.ServerStartupErrors.translateToServerStartupError(ServerStartupErrors.java:45)
            at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:184)
            at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:123)
            at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:90)
            at org.neo4j.server.CommunityEntryPoint.main(CommunityEntryPoint.java:32)
    Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.server.database.LifecycleManagingDatabase@3d9c13b5' was successfully initialized, but failed to start. Please see the attached cause exception "Store and its lock file has been locked by another process: C:\Program Files\neo4j-community-3.5.1\data\databases\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.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:473)
            at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:111)
            at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:177)
            ... 3 more
    Caused by: java.lang.RuntimeException: Error starting org.neo4j.graphdb.facade.GraphDatabaseFacadeFactory, C:\Program Files\neo4j-community-3.5.1\data\databases
            at org.neo4j.graphdb.facade.GraphDatabaseFacadeFactory.initFacade(GraphDatabaseFacadeFactory.java:212)
            at org.neo4j.graphdb.facade.GraphDatabaseFacadeFactory.newFacade(GraphDatabaseFacadeFactory.java:135)
            at org.neo4j.server.database.CommunityGraphFactory.newGraphDatabase(CommunityGraphFactory.java:40)
            at org.neo4j.server.database.LifecycleManagingDatabase.start(LifecycleManagingDatabase.java:78)
            at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:452)
            ... 5 more
    Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.internal.locker.StoreLockerLifecycleAdapter@67d18ed7' was successfully initialized, but failed to start. Please see the attached cause exception "Store and its lock file has been locked by another process: C:\Program Files\neo4j-community-3.5.1\data\databases\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.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:473)
            at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:111)
            at org.neo4j.graphdb.facade.GraphDatabaseFacadeFactory.initFacade(GraphDatabaseFacadeFactory.java:207)
            ... 9 more
    Caused by: org.neo4j.kernel.StoreLockException: Store and its lock file has been locked by another process: C:\Program Files\neo4j-community-3.5.1\data\databases\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.locker.StoreLocker.storeLockException(StoreLocker.java:116)
            at org.neo4j.kernel.internal.locker.StoreLocker.checkLock(StoreLocker.java:92)
            at org.neo4j.kernel.internal.locker.GlobalStoreLocker.checkLock(GlobalStoreLocker.java:61)
            at org.neo4j.kernel.internal.locker.StoreLockerLifecycleAdapter.start(StoreLockerLifecycleAdapter.java:36)
            at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:452)
            ... 11 more
    

    cd到bin目录下,执行停止命令:neo4j stop
    另外neo4j还有其他命令,执行方式相同:neo4j { console | start | stop | restart | status }

    相关文章

      网友评论

          本文标题:Neo4j ServerStartupException

          本文链接:https://www.haomeiwen.com/subject/azwvvqtx.html