Issue while Sonar upgrade from 8.6-developer to 8.9.10-developer edition

We are unable to upgrade from 8.9.6-developer version to 8.9.10-developer. SonarQube is running inside kubernetes(EKS) cluster as a pod.

Make sure to tell us:

  • What version are you upgrading from?
    8.9.6-developer to 8.9.10-developer version

  • System information (Operating system, Java version, Database provider/version)
    Executing in Gitlab runner with below configuration
    Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
    Maven home: /usr/lib/mvn
    Java version: 1.8.0_275, vendor: IcedTea, runtime: /usr/lib/jvm/java-1.8-openjdk/jre
    Default locale: en_US, platform encoding: UTF-8
    name: “linux”, version: “5.4.228-131.415.amzn2.x86_64”, arch: “amd64”, family: “unix”

  • What’s the issue you’re facing?
    java.lang.IllegalStateException: cannot downgrade a node from version [7.17.8] to version [7.16.2]
    2023.05.17 17:50:43 ERROR es[o.e.b.ElasticsearchUncaughtExceptionHandler] uncaught exception in thread [main]
    org.elasticsearch.bootstrap.StartupException: java.lang.IllegalStateException: cannot downgrade a node from version [7.17.8] to version [7.16.2]
    at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:170) ~[elasticsearch-7.16.2.jar:7.16.2]
    at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:157) ~[elasticsearch-7.16.2.jar:7.16.2]
    at .elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:77) ~[elasticsearch-7.16.2.jar:7.16.2]
    at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:112)

With 9.9.0-Developer edition, we are facing different issue like below with Java 8.
An API incompatibility was encountered while executing org.sonarsource.scanner.maven:sonar-maven-plugin:3.7.0.1746:sonar: java.lang.UnsupportedClassVersionError: org/sonar/batch/bootstrapper/EnvironmentInformation has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

Hi,

Welcome to the community!

This may help:

Regarding your second problem, we try to keep it to one topic per thread. Otherwise it can get messy, fast. But this one’s easy. We no longer support Java 8. You’ll need to upgrade to Java 11 or 17 on your build agents.

 
HTH,
Ann