cancel
Showing results for 
Search instead for 
Did you mean: 

Failed to restart neo4j

pinartyilmaz
Node Link

Hello,

I am getting the following error whenever I want to restart a neo4j database.
2X_f_f28b515dfddde4e107a4e0e3b68cbf85381ecbdc.png

And the log file looks as follows:

2020-06-10 12:39:27.159+0000 ERROR Failed to start Neo4j: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@20a14b55' was successfully initialized, but failed to start. Please see the attached cause exception "Store and its lock file has been locked by another process: D:\neo4jDatabases\database-2de513a5-da71-4c90-919c-a2baf7261a1f\installation-3.5.14\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@20a14b55' was successfully initialized, but failed to start. Please see the attached cause exception "Store and its lock file has been locked by another process: D:\neo4jDatabases\database-2de513a5-da71-4c90-919c-a2baf7261a1f\installation-3.5.14\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@20a14b55' was successfully initialized, but failed to start. Please see the attached cause exception "Store and its lock file has been locked by another process: D:\neo4jDatabases\database-2de513a5-da71-4c90-919c-a2baf7261a1f\installation-3.5.14\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:187)
at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:124)
at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:91)
at com.neo4j.server.enterprise.CommercialEntryPoint.main(CommercialEntryPoint.java:22)
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.server.database.LifecycleManagingDatabase@20a14b55' was successfully initialized, but failed to start. Please see the attached cause exception "Store and its lock file has been locked by another process: D:\neo4jDatabases\database-2de513a5-da71-4c90-919c-a2baf7261a1f\installation-3.5.14\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:180)
... 3 more
Caused by: java.lang.RuntimeException: Error starting org.neo4j.graphdb.facade.GraphDatabaseFacadeFactory, D:\neo4jDatabases\database-2de513a5-da71-4c90-919c-a2baf7261a1f\installation-3.5.14\data\databases
at org.neo4j.graphdb.facade.GraphDatabaseFacadeFactory.initFacade(GraphDatabaseFacadeFactory.java:232)
at com.neo4j.commercial.edition.CommercialGraphDatabase.(CommercialGraphDatabase.java:20)
at com.neo4j.server.database.CommercialGraphFactory.newGraphDatabase(CommercialGraphFactory.java:40)
at org.neo4j.server.database.LifecycleManagingDatabase.start(LifecycleManagingDatabase.java:90)
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@66b7550d' was successfully initialized, but failed to start. Please see the attached cause exception "Store and its lock file has been locked by another process: D:\neo4jDatabases\database-2de513a5-da71-4c90-919c-a2baf7261a1f\installation-3.5.14\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:227)
... 9 more
Caused by: org.neo4j.kernel.StoreLockException: Store and its lock file has been locked by another process: D:\neo4jDatabases\database-2de513a5-da71-4c90-919c-a2baf7261a1f\installation-3.5.14\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

Could someone help me with this?

Thanks!
Pinar.

1 REPLY 1

Cobra
Ninja
Ninja

Hello @pinartyilmaz

I guess you got this error on Neo4j Desktop, did Neo4j Desktop can't start or can't connect to a database?

Did you try to reinstall?

Regards,
Cobra

Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit

On November 16 and 17 for 24 hours across all timezones, you’ll learn about best practices for beginners and experts alike.