Facing error while upgrading from SonarQube 8.9 LTS to 9.9 LTS

Hi Team,

We are trying to upgrade from SonarQube 8.9 LTS to 9.9 LTS.
We already have Java -17 installed on the windows server.

While trying to execute the StartSonar.bat file we are getting below error.

Could you please help with this.

Thanks.

Error logs.

D:\sonarqube-9.9.0.65466\bin\windows-x86-64>StartSonar.bat
Starting SonarQube…
2023.04.06 02:39:06 INFO app[o.s.a.AppFileSystem] Cleaning or creating temp directory D:\sonarqube-9.9.0.65466\temp
2023.04.06 02:39:06 INFO app[o.s.a.es.EsSettings] Elasticsearch listening on
2023.04.06 02:39:06 INFO app[o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from …
2023.04.06 02:39:06 INFO app[o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
2023.04.06 02:39:19 INFO app[o.s.a.SchedulerImpl] Process[es] is up
2023.04.06 02:39:19 INFO app[o.s.a.ProcessLauncherImpl] Launch process[WEB_SERVER] from …
02:39:19.876 [main] INFO com.github.mc1arke.sonarqube.plugin.CommunityBranchAgent - Loading agent
Exception in thread “main” java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:491)
at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:503)
Caused by: java.lang.ClassNotFoundException: org.sonar.server.almsettings.MultipleAlmFeatureProvider
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:375)
at com.github.mc1arke.sonarqube.plugin.CommunityBranchAgent.redefineEdition(CommunityBranchAgent.java:93)
at com.github.mc1arke.sonarqube.plugin.CommunityBranchAgent.premain(CommunityBranchAgent.java:56)
… 6 more
*** java.lang.instrument ASSERTION FAILED ***: “result” with message agent load/premain call failed at s\open\src\java.instrument\share\native\libinstrument\JPLISAgent.c line: 422
FATAL ERROR in native method: processing of -javaagent failed, processJavaStart failed
2023.04.06 02:39:19 WARN app[o.s.a.p.AbstractManagedProcess] Process exited with exit value [Web Server]: 1
2023.04.06 02:39:19 INFO app[o.s.a.SchedulerImpl] Process[Web Server] is stopped
2023.04.06 02:39:19 INFO app[o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped
2023.04.06 02:39:19 INFO app[o.s.a.SchedulerImpl] SonarQube is stopped

D:\sonarqube-9.9.0.65466\bin\windows-x86-64>

Your issue looks to be with a plugin that’s not supported in this Community.