Was following neo4j tutorials to run core servers on a docker container, everything works fine until I get the following error when running the command docker start -a core1
error:
Starting Neo4j.
2019-10-13 17:24:14.009+0000 WARN ha.host.data is deprecated.
2019-10-13 17:24:14.011+0000 WARN ha.pull_interval is deprecated.
2019-10-13 17:24:14.012+0000 WARN dbms.active_database is deprecated.
2019-10-13 17:24:14.033+0000 INFO ======== Neo4j 3.5.11 ========
2019-10-13 17:24:14.040+0000 INFO Starting...
2019-10-13 17:24:14.313+0000 ERROR Failed to start Neo4j: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@316bcf94' was successfully initialized, but failed to start. Please see the attached cause exception "Unable to create directory path [/var/lib/neo4j/data/cluster-state] for Neo4j store.". Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@316bcf94' was successfully initialized, but failed to start. Please see the attached cause exception "Unable to create directory path [/var/lib/neo4j/data/cluster-state] for Neo4j store.".
org.neo4j.server.ServerStartupException: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@316bcf94' was successfully initialized, but failed to start. Please see the attached cause exception "Unable to create directory path [/var/lib/neo4j/data/cluster-state] for Neo4j store.".
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@316bcf94' was successfully initialized, but failed to start. Please see the attached cause exception "Unable to create directory path [/var/lib/neo4j/data/cluster-state] for Neo4j store.".
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: org.neo4j.causalclustering.core.state.ClusterStateException: java.io.IOException: Unable to create directory path [/var/lib/neo4j/data/cluster-state] for Neo4j store.
at org.neo4j.causalclustering.core.EnterpriseCoreEditionModule.<init>(EnterpriseCoreEditionModule.java:211)
at com.neo4j.causalclustering.core.CommercialCoreEditionModule.<init>(CommercialCoreEditionModule.java:53)
at com.neo4j.causalclustering.core.CommercialCoreGraphDatabase.lambda$new$0(CommercialCoreGraphDatabase.java:27)
at org.neo4j.graphdb.facade.GraphDatabaseFacadeFactory.initFacade(GraphDatabaseFacadeFactory.java:181)
at com.neo4j.causalclustering.core.CommercialCoreGraphDatabase.<init>(CommercialCoreGraphDatabase.java:28)
at com.neo4j.server.database.CommercialGraphFactory.newGraphDatabase(CommercialGraphFactory.java:36)
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.causalclustering.core.state.ClusterStateException: java.io.IOException: Unable to create directory path [/var/lib/neo4j/data/cluster-state] for Neo4j store.
at org.neo4j.causalclustering.core.state.ClusterStateDirectory.ensureDirectoryExists(ClusterStateDirectory.java:121)
at org.neo4j.causalclustering.core.state.ClusterStateDirectory.initialize(ClusterStateDirectory.java:60)
at org.neo4j.causalclustering.core.EnterpriseCoreEditionModule.<init>(EnterpriseCoreEditionModule.java:207)
... 12 more
Caused by: java.io.IOException: Unable to create directory path [/var/lib/neo4j/data/cluster-state] for Neo4j store.
at org.neo4j.io.fs.DefaultFileSystemAbstraction.mkdirs(DefaultFileSystemAbstraction.java:120)
at org.neo4j.causalclustering.core.state.ClusterStateDirectory.ensureDirectoryExists(ClusterStateDirectory.java:117)