Hi,
Lately I've been facing many bugs using Neo4j Desktop.
One of them occurs after updating the graph database settings, for example, to increase heap.max_size. Also, when I install APOC v4.2.0.0.
The error is:
Database failed to start: Database process terminated, see logs.. Check the logs
And this is the log:
2021-03-09 13:31:26.582+0000 INFO Starting...
2021-03-09 13:31:30.323+0000 INFO ======== Neo4j 4.2.1 ========
2021-03-09 13:31:33.788+0000 INFO Sending metrics to CSV file at C:\Users\n901495\AppData\Local\Neo4j\Relate\Data\dbmss\dbms-bf1fe9a5-0b9b-4409-9e24-3173f5184587\metrics
2021-03-09 13:31:33.815+0000 INFO Bolt enabled on localhost:7687.
2021-03-09 13:31:34.882+0000 INFO Remote interface available at http://localhost:7474/
2021-03-09 13:31:34.883+0000 INFO Started.
2021-03-09 13:32:19.024+0000 INFO Starting...
2021-03-09 13:32:22.440+0000 INFO ======== Neo4j 4.2.1 ========
WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.
2021-03-09 13:32:30.923+0000 ERROR Failed to start Neo4j on dbms.connector.http.listen_address, a socket address. If missing port or hostname it is acquired from dbms.default_listen_address.
java.lang.RuntimeException: Error starting Neo4j database server at C:\Users\n901495\AppData\Local\Neo4j\Relate\Data\dbmss\dbms-bf1fe9a5-0b9b-4409-9e24-3173f5184587\data\databases
at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.startDatabaseServer(DatabaseManagementServiceFactory.java:207) ~[neo4j-4.2.1.jar:4.2.1]
at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.build(DatabaseManagementServiceFactory.java:163) ~[neo4j-4.2.1.jar:4.2.1]
at com.neo4j.server.enterprise.EnterpriseManagementServiceFactory.createManagementService(EnterpriseManagementServiceFactory.java:38) ~[neo4j-enterprise-4.2.1.jar:4.2.1]
at com.neo4j.server.enterprise.EnterpriseBootstrapper.createNeo(EnterpriseBootstrapper.java:20) ~[neo4j-enterprise-4.2.1.jar:4.2.1]
at org.neo4j.server.NeoBootstrapper.start(NeoBootstrapper.java:134) [neo4j-4.2.1.jar:4.2.1]
at org.neo4j.server.NeoBootstrapper.start(NeoBootstrapper.java:90) [neo4j-4.2.1.jar:4.2.1]
at com.neo4j.server.enterprise.EnterpriseEntryPoint.main(EnterpriseEntryPoint.java:25) [neo4j-enterprise-4.2.1.jar:4.2.1]
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.procedure.impl.GlobalProceduresRegistry@1e545821' was successfully initialized, but failed to start. Please see the attached cause exception "Some jar procedure files are invalid, see log for details.".
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:463) ~[neo4j-common-4.2.1.jar:4.2.1]
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:110) ~[neo4j-common-4.2.1.jar:4.2.1]
at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.startDatabaseServer(DatabaseManagementServiceFactory.java:198) ~[neo4j-4.2.1.jar:4.2.1]
... 6 more
Caused by: java.util.zip.ZipException: Some jar procedure files are invalid, see log for details.
at org.neo4j.procedure.impl.ProcedureJarLoader.loadProceduresFromDir(ProcedureJarLoader.java:79) ~[neo4j-procedure-4.2.1.jar:4.2.1]
at org.neo4j.procedure.impl.GlobalProceduresRegistry.start(GlobalProceduresRegistry.java:383) ~[neo4j-procedure-4.2.1.jar:4.2.1]
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:442) ~[neo4j-common-4.2.1.jar:4.2.1]
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:110) ~[neo4j-common-4.2.1.jar:4.2.1]
at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.startDatabaseServer(DatabaseManagementServiceFactory.java:198) ~[neo4j-4.2.1.jar:4.2.1]
... 6 more
2021-03-09 13:32:30.924+0000 INFO Neo4j Server shutdown initiated by request
2021-03-09 13:32:30.924+0000 INFO Stopped.
This is not the first time I came up with this bug. After trying to migrate the version we use in production from 3.5 to 4.2 we faced the same bug. We just update the settings file neo4j.conf and at most, also install the APOC procedures.
I assume that I don't need to set anything after installing Neo4j Desktop to have it up and running, and if I had to I didn't read it anywhere.
I don't know why this happens but it is infuriating because I just want to create a new database and seed it with data but I can't even start it.
Help
Thanks
EDIT: It seems to be an error with the APOC version. v4.2.0.0 prompts an Exception. If you look closely into the logs you can see the following line:
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.procedure.impl.GlobalProceduresRegistry@1e545821' was successfully initialized, but failed to start. Please see the attached cause exception "Some jar procedure files are invalid, see log for details.".
I don't know how is this possible. I'm gonna try to use an older APOC version.