cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Fix Exception at LogService.getUserLog for 5.1.0

BairDev
Node Clone

Again I have troubles with starting Neo4J after upgrading, I can see the following Exceptions, all seem to be related to org.neo4j.logging.Log org.neo4j.logging.internal.LogService.getUserLog and I have no clue what could be wrong with it or with my system regarding it.

2022-11-02 13:06:07.046+0000 INFO ======== Neo4j 5.1.0 ========
2022-11-02 13:06:07.154+0000 ERROR Failed to start Neo4j on localhost:7474.
java.lang.RuntimeException: Error starting Neo4j database server at /var/lib/neo4j/data/databases
at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.startDatabaseServer(DatabaseManagementServiceFactory.java:255) ~[neo4j-5.1.0.jar:5.1.0]
at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.build(DatabaseManagementServiceFactory.java:193) ~[neo4j-5.1.0.jar:5.1.0]
at org.neo4j.server.CommunityBootstrapper.createNeo(CommunityBootstrapper.java:36) ~[neo4j-5.1.0.jar:5.1.0]
at org.neo4j.server.NeoBootstrapper.start(NeoBootstrapper.java:164) ~[neo4j-5.1.0.jar:5.1.0]
at org.neo4j.server.NeoBootstrapper.start(NeoBootstrapper.java:85) ~[neo4j-5.1.0.jar:5.1.0]
at org.neo4j.server.CommunityEntryPoint.main(CommunityEntryPoint.java:30) ~[neo4j-5.1.0.jar:5.1.0]
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.extension.GlobalExtensions@6d2d99fc' failed to initialize. Please see the attached cause exception "'org.neo4j.logging.Log org.neo4j.logging.internal.LogService.getUserLog(java.lang.Class)'".
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.init(LifeSupport.java:340) ~[neo4j-common-5.1.0.jar:5.1.0]
at org.neo4j.kernel.lifecycle.LifeSupport.init(LifeSupport.java:57) ~[neo4j-common-5.1.0.jar:5.1.0]
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:86) ~[neo4j-common-5.1.0.jar:5.1.0]
at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.startDatabaseServer(DatabaseManagementServiceFactory.java:246) ~[neo4j-5.1.0.jar:5.1.0]
... 5 more
Caused by: org.neo4j.kernel.extension.FailedToBuildExtensionException: Failed to build kernel extension Extension:RegisterComponentFactory[ApocRegisterComponent] because it is compiled with a reference to a class, method, or field, that is not in the class path: ''org.neo4j.logging.Log org.neo4j.logging.internal.LogService.getUserLog(java.lang.Class)''. The most common cause of this problem, is that Neo4j has been upgraded without also upgrading allinstalled extensions, such as APOC. Make sure that all of your extensions are build against your specific version of Neo4j.
at org.neo4j.kernel.extension.ExtensionFailureStrategies.wrap(ExtensionFailureStrategies.java:56) ~[neo4j-kernel-5.1.0.jar:5.1.0]
at org.neo4j.kernel.extension.ExtensionFailureStrategies$1.handle(ExtensionFailureStrategies.java:68) ~[neo4j-kernel-5.1.0.jar:5.1.0]
at org.neo4j.kernel.extension.AbstractExtensions.init(AbstractExtensions.java:69) ~[neo4j-kernel-5.1.0.jar:5.1.0]
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.init(LifeSupport.java:323) ~[neo4j-common-5.1.0.jar:5.1.0]
at org.neo4j.kernel.lifecycle.LifeSupport.init(LifeSupport.java:57) ~[neo4j-common-5.1.0.jar:5.1.0]
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:86) ~[neo4j-common-5.1.0.jar:5.1.0]
at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.startDatabaseServer(DatabaseManagementServiceFactory.java:246) ~[neo4j-5.1.0.jar:5.1.0]
... 5 more
Caused by: java.lang.NoSuchMethodError: 'org.neo4j.logging.Log org.neo4j.logging.internal.LogService.getUserLog(java.lang.Class)'
at apoc.RegisterComponentFactory.newInstance(RegisterComponentFactory.java:33) ~[apoc-4.4.0.10-core.jar:4.4.0.10]
at apoc.RegisterComponentFactory.newInstance(RegisterComponentFactory.java:20) ~[apoc-4.4.0.10-core.jar:4.4.0.10]
at org.neo4j.kernel.extension.AbstractExtensions.newInstance(AbstractExtensions.java:125) ~[neo4j-kernel-5.1.0.jar:5.1.0]
at org.neo4j.kernel.extension.AbstractExtensions.init(AbstractExtensions.java:63) ~[neo4j-kernel-5.1.0.jar:5.1.0]
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.init(LifeSupport.java:323) ~[neo4j-common-5.1.0.jar:5.1.0]
at org.neo4j.kernel.lifecycle.LifeSupport.init(LifeSupport.java:57) ~[neo4j-common-5.1.0.jar:5.1.0]
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:86) ~[neo4j-common-5.1.0.jar:5.1.0]
at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.startDatabaseServer(DatabaseManagementServiceFactory.java:246) ~[neo4j-5.1.0.jar:5.1.0]
... 5 more
2022-11-02 13:06:07.161+0000 INFO Neo4j Server shutdown initiated by request
2022-11-02 13:06:07.162+0000 INFO Stopped.

I have moved apoc-4.4.0.10-core.jar into the /plugins folder, so I hoped to have done the upgrade of APOC. And there are no other plugins there. Is this the right APOC version for Neo4J 5.1.0?

Active Java version:

java --version
java 17.0.1 2021-10-19 LTS

2 REPLIES 2

@BairDev 

 

there should be a 5.x APOC jar in labs/ .   If you copy to plugins/  and remove the 4.x APOC do you still encounter failure

 

 

Ooh, I've missed this apoc version.

This might well work, but I went back to 4.4.12 because I needed to work with the DB immediately.

Thanks a lot and I'll give it another trial later.