I am trying to upgrade to the latest version of Neo4J and I am hit with this exception:
2024-12-10 19:32:40 java.lang.RuntimeException: Error starting Neo4j database server at /data/databases
2024-12-10 19:32:40 at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.startDatabaseServer(DatabaseManagementServiceFactory.java:288) ~[neo4j-5.26.0.jar:5.26.0]
2024-12-10 19:32:40 at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.build(DatabaseManagementServiceFactory.java:223) ~[neo4j-5.26.0.jar:5.26.0]
2024-12-10 19:32:40 at org.neo4j.server.CommunityBootstrapper.createNeo(CommunityBootstrapper.java:38) ~[neo4j-5.26.0.jar:5.26.0]
2024-12-10 19:32:40 at org.neo4j.server.NeoBootstrapper.start(NeoBootstrapper.java:185) [neo4j-5.26.0.jar:5.26.0]
2024-12-10 19:32:40 at org.neo4j.server.NeoBootstrapper.start(NeoBootstrapper.java:100) [neo4j-5.26.0.jar:5.26.0]
2024-12-10 19:32:40 at org.neo4j.server.CommunityEntryPoint.main(CommunityEntryPoint.java:30) [neo4j-5.26.0.jar:5.26.0]
2024-12-10 19:32:40 Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.extension.GlobalExtensions@7906578e' failed to initialize. Please see the attached cause exception "io.prometheus.client.Collector".
2024-12-10 19:32:40 at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.init(LifeSupport.java:334) ~[neo4j-common-5.26.0.jar:5.26.0]
2024-12-10 19:32:40 at org.neo4j.kernel.lifecycle.LifeSupport.init(LifeSupport.java:56) ~[neo4j-common-5.26.0.jar:5.26.0]
2024-12-10 19:32:40 at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:85) ~[neo4j-common-5.26.0.jar:5.26.0]
2024-12-10 19:32:40 at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.startDatabaseServer(DatabaseManagementServiceFactory.java:279) ~[neo4j-5.26.0.jar:5.26.0]
2024-12-10 19:32:40 ... 5 more
2024-12-10 19:32:40 Caused by: org.neo4j.kernel.extension.FailedToBuildExtensionException: Failed to build kernel extension Extension:GraphDataScienceExtension[gds.closed] because it is compiled with a reference to a class, method, or field, that is not in the class path: 'io/prometheus/client/Collector'. The most common cause of this problem, is that Neo4j has been upgraded without also upgrading all installed extensions, such as APOC. Make sure that all of your extensions are build against your specific version of Neo4j.
2024-12-10 19:32:40 at org.neo4j.kernel.extension.ExtensionFailureStrategies.wrap(ExtensionFailureStrategies.java:56) ~[neo4j-kernel-5.26.0.jar:5.26.0]
2024-12-10 19:32:40 at org.neo4j.kernel.extension.ExtensionFailureStrategies$1.handle(ExtensionFailureStrategies.java:68) ~[neo4j-kernel-5.26.0.jar:5.26.0]
2024-12-10 19:32:40 at org.neo4j.kernel.extension.AbstractExtensions.init(AbstractExtensions.java:68) ~[neo4j-kernel-5.26.0.jar:5.26.0]
2024-12-10 19:32:40 at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.init(LifeSupport.java:317) ~[neo4j-common-5.26.0.jar:5.26.0]
2024-12-10 19:32:40 at org.neo4j.kernel.lifecycle.LifeSupport.init(LifeSupport.java:56) ~[neo4j-common-5.26.0.jar:5.26.0]
2024-12-10 19:32:40 at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:85) ~[neo4j-common-5.26.0.jar:5.26.0]
2024-12-10 19:32:40 at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.startDatabaseServer(DatabaseManagementServiceFactory.java:279) ~[neo4j-5.26.0.jar:5.26.0]
2024-12-10 19:32:40 ... 5 more
2024-12-10 19:32:40 Caused by: java.lang.NoClassDefFoundError: io/prometheus/client/Collector
2024-12-10 19:32:40 at com.neo4j.gds.metrics.GdsMetrics.create(GdsMetrics.java:33) ~[graph-data-science.jar:?]
2024-12-10 19:32:40 at com.neo4j.gds.extension.GraphDataScienceAndExtrasExtensionBuilder.create(GraphDataScienceAndExtrasExtensionBuilder.java:134) ~[graph-data-science.jar:?]
2024-12-10 19:32:40 at com.neo4j.gds.extension.GraphDataScienceExtension.newInstance(GraphDataScienceExtension.java:72) ~[graph-data-science.jar:?]
2024-12-10 19:32:40 at com.neo4j.gds.extension.GraphDataScienceExtension.newInstance(GraphDataScienceExtension.java:37) ~[graph-data-science.jar:?]
2024-12-10 19:32:40 at org.neo4j.kernel.extension.AbstractExtensions.newInstance(AbstractExtensions.java:124) ~[neo4j-kernel-5.26.0.jar:5.26.0]
2024-12-10 19:32:40 at org.neo4j.kernel.extension.AbstractExtensions.init(AbstractExtensions.java:62) ~[neo4j-kernel-5.26.0.jar:5.26.0]
2024-12-10 19:32:40 at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.init(LifeSupport.java:317) ~[neo4j-common-5.26.0.jar:5.26.0]
2024-12-10 19:32:40 at org.neo4j.kernel.lifecycle.LifeSupport.init(LifeSupport.java:56) ~[neo4j-common-5.26.0.jar:5.26.0]
2024-12-10 19:32:40 at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:85) ~[neo4j-common-5.26.0.jar:5.26.0]
2024-12-10 19:32:40 at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.startDatabaseServer(DatabaseManagementServiceFactory.java:279) ~[neo4j-5.26.0.jar:5.26.0]
2024-12-10 19:32:40 ... 5 more
2024-12-10 19:32:40 Caused by: java.lang.ClassNotFoundException: io.prometheus.client.Collector
2024-12-10 19:32:40 at jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641) ~[?:?]
2024-12-10 19:32:40 at jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188) ~[?:?]
2024-12-10 19:32:40 at java.lang.ClassLoader.loadClass(ClassLoader.java:525) ~[?:?]
2024-12-10 19:32:40 at com.neo4j.gds.metrics.GdsMetrics.create(GdsMetrics.java:33) ~[graph-data-science.jar:?]
2024-12-10 19:32:40 at com.neo4j.gds.extension.GraphDataScienceAndExtrasExtensionBuilder.create(GraphDataScienceAndExtrasExtensionBuilder.java:134) ~[graph-data-science.jar:?]
2024-12-10 19:32:40 at com.neo4j.gds.extension.GraphDataScienceExtension.newInstance(GraphDataScienceExtension.java:72) ~[graph-data-science.jar:?]
2024-12-10 19:32:40 at com.neo4j.gds.extension.GraphDataScienceExtension.newInstance(GraphDataScienceExtension.java:37) ~[graph-data-science.jar:?]
2024-12-10 19:32:40 at org.neo4j.kernel.extension.AbstractExtensions.newInstance(AbstractExtensions.java:124) ~[neo4j-kernel-5.26.0.jar:5.26.0]
2024-12-10 19:32:40 at org.neo4j.kernel.extension.AbstractExtensions.init(AbstractExtensions.java:62) ~[neo4j-kernel-5.26.0.jar:5.26.0]
2024-12-10 19:32:40 at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.init(LifeSupport.java:317) ~[neo4j-common-5.26.0.jar:5.26.0]
2024-12-10 19:32:40 at org.neo4j.kernel.lifecycle.LifeSupport.init(LifeSupport.java:56) ~[neo4j-common-5.26.0.jar:5.26.0]
2024-12-10 19:32:40 at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:85) ~[neo4j-common-5.26.0.jar:5.26.0]
2024-12-10 19:32:40 at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.startDatabaseServer(DatabaseManagementServiceFactory.java:279) ~[neo4j-5.26.0.jar:5.26.0]
2024-12-10 19:32:40 ... 5 more
2024-12-10 19:32:40 2024-12-10 19:32:40.284+0000 INFO Neo4j Server shutdown initiated by request
2024-12-10 19:32:40 2024-12-10 19:32:40.284+0000 INFO Stopped.