cancel
Showing results for 
Search instead for 
Did you mean: 

Join the community at Nodes 2022, our free virtual event on November 16 - 17.

ale_garcia_fern
Visitor

Hi,
I just installed neo4j on Windows 10 and tried to run movie database but it gives error. Version is 4.1.3
I could not understand what is wrong from logs.

2020-12-30 23:00:19.589+0000 INFO [c.n.s.e.EnterpriseNeoWebServer] ======== Neo4j 4.1.3 ========
2020-12-30 23:00:19.651+0000 INFO [o.n.b.BoltServer] Bolt server loaded
2020-12-30 23:00:19.706+0000 ERROR [o.n.g.f.DatabaseManagementServiceFactory] Error starting Neo4j database server at C:\Users\F17470\AppData\Local\Neo4j\Relate\Data\dbmss\dbms-d0f93e17-9474-42ec-96f6-c439bd05ea52\data\databases Component 'org.neo4j.kernel.internal.locker.LockerLifecycleAdapter@73302995' was successfully initialized, but failed to start. Please see the attached cause exception "Lock file has been locked by another process: C:\Users\F17470\AppData\Local\Neo4j\Relate\Data\dbmss\dbms-d0f93e17-9474-42ec-96f6-c439bd05ea52\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.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.internal.locker.LockerLifecycleAdapter@73302995' was successfully initialized, but failed to start. Please see the attached cause exception "Lock file has been locked by another process: C:\Users\F17470\AppData\Local\Neo4j\Relate\Data\dbmss\dbms-d0f93e17-9474-42ec-96f6-c439bd05ea52\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:463)
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:110)
at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.startDatabaseServer(DatabaseManagementServiceFactory.java:189)
at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.build(DatabaseManagementServiceFactory.java:158)
at com.neo4j.server.enterprise.EnterpriseManagementServiceFactory.createManagementService(EnterpriseManagementServiceFactory.java:38)
at com.neo4j.server.enterprise.EnterpriseBootstrapper.createNeo(EnterpriseBootstrapper.java:20)
at org.neo4j.server.NeoBootstrapper.start(NeoBootstrapper.java:117)
at org.neo4j.server.NeoBootstrapper.start(NeoBootstrapper.java:87)
at com.neo4j.server.enterprise.EnterpriseEntryPoint.main(EnterpriseEntryPoint.java:25)
Caused by: org.neo4j.kernel.internal.locker.FileLockException: Lock file has been locked by another process: C:\Users\F17470\AppData\Local\Neo4j\Relate\Data\dbmss\dbms-d0f93e17-9474-42ec-96f6-c439bd05ea52\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.Locker.storeLockException(Locker.java:176)
at org.neo4j.kernel.internal.locker.Locker.checkLock(Locker.java:96)
at org.neo4j.kernel.internal.locker.GlobalFileLocker.checkLock(GlobalFileLocker.java:58)
at org.neo4j.kernel.internal.locker.GlobalLocker.checkLock(GlobalLocker.java:28)
at org.neo4j.kernel.internal.locker.LockerLifecycleAdapter.start(LockerLifecycleAdapter.java:36)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:442)
... 8 more
2020-12-30 23:00:19.707+0000 INFO [o.n.g.f.DatabaseManagementServiceFactory] Shutdown started

Comments
anthapu
Graph Fellow

Most likely reason is either db instance is still running or it has crashed and left the lock file behind.

Check if the process is still running. If not delete that store_lock file and start the process again.

can you please help me to check whats wrong from my logs?

Directories in use:
home: C:\Program Files\neo4j-community-4.4.6
config: C:\Program Files\neo4j-community-4.4.6\conf
logs: C:\Program Files\neo4j-community-4.4.6\logs
plugins: C:\Program Files\neo4j-community-4.4.6\plugins
import: C:\Program Files\neo4j-community-4.4.6
data: C:\Program Files\neo4j-community-4.4.6\data
certificates: C:\Program Files\neo4j-community-4.4.6\certificates
licenses: C:\Program Files\neo4j-community-4.4.6\licenses
run: C:\Program Files\neo4j-community-4.4.6\run
Starting Neo4j.
2022-05-10 14:57:06.101+0000 WARN Config file [C:\Program Files\neo4j-community-4.4.6\conf\neo4j.conf] does not exist.
2022-05-10 14:57:06.106+0000 INFO Starting...
Powershell : ERROR StatusLogger Unable to create file C:\Program Files\neo4j-community-4.4.6\logs\debug.log
At C:\Users\STELLA\AppData\Local\Neo4j\Relate\Cache\neo4j-start.ps1:11 char:1

  • Powershell -NoProfile -NonInteractive -NoLogo `
  •   + CategoryInfo          : NotSpecified: (ERROR StatusLog...\logs\debug.log:String) [], RemoteException
      + FullyQualifiedErrorId : NativeCommandError
    
    

java.io.IOException: Could not create directory C:\Program Files\neo4j-community-4.4.6\logs
at org.neo4j.logging.shaded.log4j.core.util.FileUtils.mkdir(FileUtils.java:120)
at org.neo4j.logging.shaded.log4j.core.util.FileUtils.makeParentDirs(FileUtils.java:137)
at org.neo4j.logging.shaded.log4j.core.appender.rolling.RollingFileManager$RollingFileManagerFactory.createManager(Rol
lingFileManager.java:732)
at org.neo4j.logging.shaded.log4j.core.appender.rolling.RollingFileManager$RollingFileManagerFactory.createManager(Rol
lingFileManager.java:716)
at org.neo4j.logging.shaded.log4j.core.appender.AbstractManager.getManager(AbstractManager.java:114)
at org.neo4j.logging.shaded.log4j.core.appender.OutputStreamManager.getManager(OutputStreamManager.java:100)
at org.neo4j.logging.shaded.log4j.core.appender.rolling.RollingFileManager.getFileManager(RollingFileManager.java:217)
at org.neo4j.logging.shaded.log4j.core.appender.RollingFileAppender$Builder.build(RollingFileAppender.java:146)
at org.neo4j.logging.log4j.LogConfig.createRollingFileAppender(LogConfig.java:173)
at org.neo4j.logging.log4j.LogConfig.getAppender(LogConfig.java:142)
at org.neo4j.logging.log4j.LogConfig.configureLogging(LogConfig.java:97)
at org.neo4j.logging.log4j.LogConfig$Builder.build(LogConfig.java:283)
at org.neo4j.graphdb.factory.module.GlobalModule.createLogService(GlobalModule.java:357)
at org.neo4j.graphdb.factory.module.GlobalModule.(GlobalModule.java:186)
at
org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.createGlobalModule(DatabaseManagementServiceFactory.java:273)
at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.build(DatabaseManagementServiceFactory.java:133)
at com.neo4j.server.enterprise.EnterpriseManagementServiceFactory.createManagementService(EnterpriseManagementServiceF
actory.java:38)
at com.neo4j.server.enterprise.EnterpriseBootstrapper.createNeo(EnterpriseBootstrapper.java:20)
at org.neo4j.server.NeoBootstrapper.start(NeoBootstrapper.java:142)
at org.neo4j.server.NeoBootstrapper.start(NeoBootstrapper.java:95)
at com.neo4j.server.enterprise.EnterpriseEntryPoint.main(EnterpriseEntryPoint.java:24)
2022-05-10 14:57:06.249+0000 ERROR Failed to start Neo4j on localhost:7474.
java.lang.IllegalStateException: ManagerFactory [org.neo4j.logging.shaded.log4j.core.appender.rolling.RollingFileManager$RollingFileManagerFactory@21fdfefc] unable to create manager for [C:\Program Files\neo4j-community-4.4.6\logs\debug.log] with data [org.neo4j.logging.shaded.log4j.core.appender.rolling.RollingFileManager$FactoryData@3daa82be[pattern=C:\Program Files\neo4j-community-4.4.6\logs\debug.log.%i, append=true, bufferedIO=true, bufferSize=8192, policy=SizeBasedTriggeringPolicy(size=20971520), strategy=DefaultRolloverStrategy(min=1, max=7, useMax=false), advertiseURI=null, layout=org.neo4j.logging.log4j.Neo4jLogLayout@ec1b2e4, filePermissions=null, fileOwner=null]]
at org.neo4j.logging.shaded.log4j.core.appender.AbstractManager.getManager(AbstractManager.java:116) ~[neo4j-logging-4.4.5.jar:4.4.5]
at org.neo4j.logging.shaded.log4j.core.appender.OutputStreamManager.getManager(OutputStreamManager.java:100) ~[neo4j-logging-4.4.5.jar:4.4.5]
at org.neo4j.logging.shaded.log4j.core.appender.rolling.RollingFileManager.getFileManager(RollingFileManager.java:217) ~[neo4j-logging-4.4.5.jar:4.4.5]
at org.neo4j.logging.shaded.log4j.core.appender.RollingFileAppender$Builder.build(RollingFileAppender.java:146) ~[neo4j-logging-4.4.5.jar:4.4.5]
at org.neo4j.logging.log4j.LogConfig.createRollingFileAppender(LogConfig.java:173) ~[neo4j-logging-4.4.5.jar:4.4.5]
at org.neo4j.logging.log4j.LogConfig.getAppender(LogConfig.java:142) ~[neo4j-logging-4.4.5.jar:4.4.5]
at org.neo4j.logging.log4j.LogConfig.configureLogging(LogConfig.java:97) ~[neo4j-logging-4.4.5.jar:4.4.5]
at org.neo4j.logging.log4j.LogConfig$Builder.build(LogConfig.java:283) ~[neo4j-logging-4.4.5.jar:4.4.5]
at org.neo4j.graphdb.factory.module.GlobalModule.createLogService(GlobalModule.java:357) ~[neo4j-4.4.5.jar:4.4.5]
at org.neo4j.graphdb.factory.module.GlobalModule.(GlobalModule.java:186) ~[neo4j-4.4.5.jar:4.4.5]
at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.createGlobalModule(DatabaseManagementServiceFactory.java:273) ~[neo4j-4.4.5.jar:4.4.5]
at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.build(DatabaseManagementServiceFactory.java:133) ~[neo4j-4.4.5.jar:4.4.5]
at com.neo4j.server.enterprise.EnterpriseManagementServiceFactory.createManagementService(EnterpriseManagementServiceFactory.java:38) ~[neo4j-enterprise-4.4.5.jar:4.4.5]
at com.neo4j.server.enterprise.EnterpriseBootstrapper.createNeo(EnterpriseBootstrapper.java:20) ~[neo4j-enterprise-4.4.5.jar:4.4.5]
at org.neo4j.server.NeoBootstrapper.start(NeoBootstrapper.java:142) [neo4j-4.4.5.jar:4.4.5]
at org.neo4j.server.NeoBootstrapper.start(NeoBootstrapper.java:95) [neo4j-4.4.5.jar:4.4.5]
at com.neo4j.server.enterprise.EnterpriseEntryPoint.main(EnterpriseEntryPoint.java:24) [neo4j-enterprise-4.4.5.jar:4.4.5]
2022-05-10 14:57:06.258+0000 INFO Neo4j Server shutdown initiated by request
2022-05-10 14:57:06.259+0000 INFO Stopped.
Unexpected process failure. See log for info.
Run with '--verbose' for a more detailed error message.

Version history
Last update:
‎12-30-2020 03:05 PM
Updated by:
Contributors