Upgrading SonarQube from 9.6.1 to 9.7.1 and 9.8.0

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension) :- We are currently working on SonarQube 9.6.1-community edition which is deployed in EKS cluster with the help of RDS aurora postgres database as the backend.
  • what are you trying to achieve :- We are trying to upgrade SonarQube from 9.6.1-community editon to 9.7.1-community or 9.8.0-community
  • what have you tried so far to achieve this :- We tried upgrading the sonarqube version but it is failing with the below logs. Can you please help with the solution to move ahead with the upgrade ?

Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!

WARN  web[][o.s.c.a.AnnotationConfigApplicationContext] Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jdk.internal.loader.ClassLoaders$AppClassLoader@277050dc-org.sonar.server.rule.RegisterRules': Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: 'void org.sonarsource.analyzer.commons.RuleMetadataLoader.<init>(java.lang.String, java.lang.String, org.sonar.api.SonarRuntime)'
ERROR web[][o.s.s.p.Platform] Background initialization failed. Stopping SonarQube
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jdk.internal.loader.ClassLoaders$AppClassLoader@277050dc-org.sonar.server.rule.RegisterRules': Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: 'void org.sonarsource.analyzer.commons.RuleMetadataLoader.<init>(java.lang.String, java.lang.String, org.sonar.api.SonarRuntime)'
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:628)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
        at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:955)
        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)
        at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:187)
        at org.sonar.server.platform.platformlevel.PlatformLevel.start(PlatformLevel.java:80)
        at org.sonar.server.platform.platformlevel.PlatformLevelStartup.access$001(PlatformLevelStartup.java:55)
        at org.sonar.server.platform.platformlevel.PlatformLevelStartup$1.doPrivileged(PlatformLevelStartup.java:127)
        at org.sonar.server.user.DoPrivileged.execute(DoPrivileged.java:45)
        at org.sonar.server.platform.platformlevel.PlatformLevelStartup.start(PlatformLevelStartup.java:124)
        at org.sonar.server.platform.PlatformImpl.executeStartupTasks(PlatformImpl.java:183)
        at org.sonar.server.platform.PlatformImpl$1.lambda$doRun$1(PlatformImpl.java:107)
        at org.sonar.server.platform.PlatformImpl$AutoStarterRunnable.runIfNotAborted(PlatformImpl.java:344)
        at org.sonar.server.platform.PlatformImpl$1.doRun(PlatformImpl.java:107)
        at org.sonar.server.platform.PlatformImpl$AutoStarterRunnable.run(PlatformImpl.java:328)
        at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.lang.NoSuchMethodError: 'void org.sonarsource.analyzer.commons.RuleMetadataLoader.<init>(java.lang.String, java.lang.String, org.sonar.api.SonarRuntime)'
        at org.sonar.plugins.xml.XmlRulesDefinition.define(XmlRulesDefinition.java:39)
        at org.sonar.server.rule.RuleDefinitionsLoader.load(RuleDefinitionsLoader.java:56)
        at org.sonar.server.rule.RegisterRules.start(RegisterRules.java:125)
        at org.sonar.core.platform.StartableBeanPostProcessor.postProcessBeforeInitialization(StartableBeanPostProcessor.java:33)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:440)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1796)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620)
        ... 20 common frames omitted
INFO  web[][o.s.p.ProcessEntryPoint] Hard stopping process

Hey there.

Are you installing any custom plugins in your SonarQube installation?

@Colin @Mayur Did this issue resolved.

We are also facing the same issue while upgrading from 9.6.0 to 9.7.1 version.

We have below plugins.

[root@ip-XXX-XX-X-XX plugins]# ls
checkstyle-sonar-plugin-10.3.2.jar               rules-3.xml                    sonar-auth-aad-plugin-1.2.0.jar          sonar-hadolint-plugin-1.0.0.jar               sonar-shellcheck-plugin-2.4.0.jar
codehawk-1.5.jar                                 rules-4.xml                    sonar-csv-export-plugin-0.4.0.jar        sonarqube-community-branch-plugin-1.13.0.jar  sonar-sonargraph-integration-7.0.0.jar
java-i18n-rules-0.1.0.jar                        sonar-aemrules-plugin-1.3.jar  sonar-dependency-check-plugin-2.0.7.jar  sonarqube-saml-plugin-1.1.3.jar               sonar-webdriver-plugin-1.0.5.jar
mule-validation-sonarqube-plugin-1.0.6-mule.jar  sonar-apigee-plugin-3.0.1.jar  sonar-detekt-2.3.0.jar                   sonar-salesforce-plugin-4.3.10.jar

Below is the error we are getting

2023.02.11 05:34:16 INFO  app[][o.s.a.SchedulerImpl] Process[es] is up
2023.02.11 05:34:16 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[WEB_SERVER] from [/opt/sonarqube]: /usr/lib/jvm/java-11-openjdk/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/opt/sonarqube/temp -XX:-OmitStackTraceInFastThrow --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED --add-exports=java.base/jdk.internal.ref=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/sun.nio.ch=ALL-UNNAMED --add-opens=java.management/sun.management=ALL-UNNAMED --add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED -Dcom.redhat.fips=false -Xmx2999m -javaagent:/opt/sonarqube/extensions/plugins/sonarqube-community-branch-plugin-1.13.0.jar=web -Dhttp.nonProxyHosts=localhost|127.*|[::1] -cp ./lib/sonar-application-9.7.1.62043.jar:/opt/sonarqube/lib/jdbc/postgresql/postgresql-42.4.1.jar org.sonar.server.app.WebServer /opt/sonarqube/temp/sq-process6358944552790323426properties
05:34:16.919 [main] INFO com.github.mc1arke.sonarqube.plugin.CommunityBranchAgent - Loading agent
05:34:16.937 [main] DEBUG com.github.mc1arke.sonarqube.plugin.CommunityBranchAgent - Transforming class org.sonar.server.almsettings.MultipleAlmFeature
05:34:17.035 [main] DEBUG com.github.mc1arke.sonarqube.plugin.CommunityBranchAgent - Transforming class org.sonar.server.newcodeperiod.ws.SetAction
05:34:17.075 [main] DEBUG com.github.mc1arke.sonarqube.plugin.CommunityBranchAgent - Transforming class org.sonar.server.newcodeperiod.ws.UnsetAction
2023.02.11 05:34:17 INFO  web[][o.s.p.ProcessEntryPoint] Starting Web Server
2023.02.11 05:34:19 INFO  web[][o.s.s.p.LogServerVersion] SonarQube Server / 9.7.1.62043 / 13c69ab992096c497badccbdb4a31110594574fd
2023.02.11 05:34:19 INFO  web[][o.sonar.db.Database] Create JDBC data source for jdbc:postgresql://awsrds-endpoint/sonardb
2023.02.11 05:34:19 INFO  web[][c.z.h.HikariDataSource] HikariPool-1 - Starting...
2023.02.11 05:34:20 INFO  web[][c.z.h.p.HikariPool] HikariPool-1 - Added connection org.postgresql.jdbc.PgConnection@b16e202
2023.02.11 05:34:20 INFO  web[][c.z.h.HikariDataSource] HikariPool-1 - Start completed.
2023.02.11 05:34:20 INFO  web[][o.s.s.p.ServerFileSystemImpl] SonarQube home: /opt/sonarqube
2023.02.11 05:34:20 INFO  web[][o.s.s.u.SystemPasscodeImpl] System authentication by passcode is disabled
2023.02.11 05:34:20 INFO  web[][o.s.c.e.CoreExtensionsLoader] Loaded core extensions: Community Branch Plugin
2023.02.11 05:34:21 INFO  web[][o.s.s.p.ServerPluginManager] Deploy AEM Rules for SonarQube / 1.3 / null
2023.02.11 05:34:21 INFO  web[][o.s.s.p.ServerPluginManager] Deploy Apigee / 3.0.1 / null
2023.02.11 05:34:21 INFO  web[][o.s.s.p.ServerPluginManager] Deploy Azure Active Directory (AAD) Authentication Plug-in for SonarQube / 1.2.0 / null
2023.02.11 05:34:21 INFO  web[][o.s.s.p.ServerPluginManager] Deploy C# Code Quality and Security / 8.46.0.54807 / a9f10bf0c980dd16d428c08c7a984e2205a512df
2023.02.11 05:34:21 INFO  web[][o.s.s.p.ServerPluginManager] Deploy Checkstyle / 10.3.2 /
2023.02.11 05:34:21 INFO  web[][o.s.s.p.ServerPluginManager] Deploy CodeScan / 4.3.10 / 8eda3d2eed26f46f8b8d7f01e5e285ae98d8ce95
2023.02.11 05:34:21 INFO  web[][o.s.s.p.ServerPluginManager] Deploy Codehawk Java / 1.5 / null
2023.02.11 05:34:21 INFO  web[][o.s.s.p.ServerPluginManager] Deploy Community Branch Plugin / 1.13.0 / null
2023.02.11 05:34:21 INFO  web[][o.s.s.p.ServerPluginManager] Deploy Configuration detection fot Code Quality and Security / 1.2.0.267 / 4f37ba9ffb37a96d5883e52ad392ed32c5c6eaab
2023.02.11 05:34:21 INFO  web[][o.s.s.p.ServerPluginManager] Deploy Csv export plugin / 0.4.0 / null
2023.02.11 05:34:21 INFO  web[][o.s.s.p.ServerPluginManager] Deploy Dependency-Check / 2.0.7 / 2e3701caedd1b3bdeb49d2017ea00507ba732d0d
2023.02.11 05:34:21 INFO  web[][o.s.s.p.ServerPluginManager] Deploy Flex Code Quality and Security / 2.7.0.2865 / 9e61d9774455b25eefd0b71bf8903cb030641864
2023.02.11 05:34:21 INFO  web[][o.s.s.p.ServerPluginManager] Deploy Go Code Quality and Security / 1.11.0.3905 / e1f28bc000e04ca01881e84218d01d464a17a36f
2023.02.11 05:34:21 INFO  web[][o.s.s.p.ServerPluginManager] Deploy HTML Code Quality and Security / 3.6.0.3106 / 963bdc9f051f5dcb698b418790364231aeea04f2
2023.02.11 05:34:21 INFO  web[][o.s.s.p.ServerPluginManager] Deploy IaC Code Quality and Security / 1.9.2.2279 / f946157f4bbec5a6a1d40cf3418a0360c8c9c1f6
2023.02.11 05:34:21 INFO  web[][o.s.s.p.ServerPluginManager] Deploy JaCoCo / 1.1.1.1157 / 83478572b9f23efac29de15e30c7758bbb0c0e47
2023.02.11 05:34:21 INFO  web[][o.s.s.p.ServerPluginManager] Deploy Java Code Quality and Security / 7.14.0.30229 / 9079835c8f5e43cef40516cc49073e01bb8ad6e6
2023.02.11 05:34:21 INFO  web[][o.s.s.p.ServerPluginManager] Deploy Java I18n Rules / 1.0-SNAPSHOT / null
2023.02.11 05:34:21 INFO  web[][o.s.s.p.ServerPluginManager] Deploy JavaScript/TypeScript/CSS Code Quality and Security / 9.9.0.19492 / e6156f1886415bd21e0726eb92f61d5605187a29
2023.02.11 05:34:21 INFO  web[][o.s.s.p.ServerPluginManager] Deploy Kotlin Code Quality and Security / 2.10.0.1456 / 187f0a9c30ba26886ee5975df23e2f31de86a8c1
2023.02.11 05:34:21 INFO  web[][o.s.s.p.ServerPluginManager] Deploy MulePlugin / 1.0.6 / null
2023.02.11 05:34:21 INFO  web[][o.s.s.p.ServerPluginManager] Deploy PHP Code Quality and Security / 3.25.0.9077 / 62146fca3dce550eb1dde73881a14c7af4988269
2023.02.11 05:34:21 INFO  web[][o.s.s.p.ServerPluginManager] Deploy Python Code Quality and Security / 3.19.0.10254 / 411866233dc7e1f384592447884d27e220cb00ec
2023.02.11 05:34:21 INFO  web[][o.s.s.p.ServerPluginManager] Deploy Ruby Code Quality and Security / 1.11.0.3905 / e1f28bc000e04ca01881e84218d01d464a17a36f
2023.02.11 05:34:21 INFO  web[][o.s.s.p.ServerPluginManager] Deploy Scala Code Quality and Security / 1.11.0.3905 / e1f28bc000e04ca01881e84218d01d464a17a36f
2023.02.11 05:34:21 INFO  web[][o.s.s.p.ServerPluginManager] Deploy ShellCheck Analyzer / 2.4.0 / null
2023.02.11 05:34:21 INFO  web[][o.s.s.p.ServerPluginManager] Deploy Sonar WebDriver Plugin / 1.0.5 / null
2023.02.11 05:34:21 INFO  web[][o.s.s.p.ServerPluginManager] Deploy SonarQube Hadolint Plugin / 1.0.0 / null
2023.02.11 05:34:21 INFO  web[][o.s.s.p.ServerPluginManager] Deploy Sonargraph Integration / 7.0.0 / null
2023.02.11 05:34:21 INFO  web[][o.s.s.p.ServerPluginManager] Deploy Text file Code Quality and Security / 1.1.0.282 / a90347d77706f598413780a08442deec4ae68f4e
2023.02.11 05:34:21 INFO  web[][o.s.s.p.ServerPluginManager] Deploy VB.NET Code Quality and Security / 8.46.0.54807 / a9f10bf0c980dd16d428c08c7a984e2205a512df
2023.02.11 05:34:21 INFO  web[][o.s.s.p.ServerPluginManager] Deploy XML Code Quality and Security / 2.6.1.3686 / 8935c6f8341cd50defba2d8245d91dc4d07e24d0
2023.02.11 05:34:21 INFO  web[][o.s.s.p.ServerPluginManager] Deploy detekt / 2.3.0 / null
2023.02.11 05:34:21 INFO  web[][o.s.s.p.ServerPluginManager] Deploy miniOrange SonarQube SAML SSO Plugin / 1.1.3 / null
2023.02.11 05:44:27 INFO  web[][o.s.s.p.d.m.c.PostgresCharsetHandler] Verify that database charset supports UTF8
2023.02.11 05:44:28 INFO  web[][o.s.s.e.EsClientProvider] Connected to local Elasticsearch: [http://localhost:9001]
2023.02.11 05:44:28 WARN  web[][o.s.a.s.w.WebService$Action] Description is not set on action api/monitoring/metrics
2023.02.11 05:44:28 WARN  web[][o.s.a.s.w.WebService$Action] Since is not set on action api/monitoring/metrics
2023.02.11 05:44:28 WARN  web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/monitoring/metrics
2023.02.11 05:44:28 WARN  web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/system/liveness
2023.02.11 05:44:28 INFO  web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.platform.web.WebServiceFilter@2aac8ad7 [pattern=UrlPattern{inclusions=[/api/system/migrate_db.*, ...], exclusions=[/api/components/update_key, ...]}]
2023.02.11 05:44:28 INFO  web[][o.s.s.p.DetectPluginChange] Detect plugin changes
2023.02.11 05:44:28 INFO  web[][o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9000
2023.02.11 05:44:29 INFO  web[][o.s.s.e.IndexCreator] Create index [metadatas]
2023.02.11 05:44:29 INFO  es[][o.e.c.m.MetadataCreateIndexService] [metadatas] creating index, cause [api], templates [], shards [1]/[0]
2023.02.11 05:44:30 INFO  es[][o.e.c.r.a.AllocationService] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[metadatas][0]]]).
2023.02.11 05:44:30 INFO  web[][o.s.s.e.IndexCreator] Create type metadatas/metadata
2023.02.11 05:44:30 INFO  es[][o.e.c.m.MetadataMappingService] [metadatas/5Du7mCJOSp2XOR3zpLopCQ] create_mapping [metadata]
2023.02.11 05:44:31 INFO  web[][o.s.s.e.IndexCreator] Create index [components]
2023.02.11 05:44:32 INFO  es[][o.e.c.m.MetadataCreateIndexService] [components] creating index, cause [api], templates [], shards [5]/[0]
2023.02.11 05:44:34 INFO  es[][o.e.c.r.a.AllocationService] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[components][4]]]).
2023.02.11 05:44:34 INFO  web[][o.s.s.e.IndexCreator] Create type components/auth
2023.02.11 05:44:34 INFO  es[][o.e.c.m.MetadataMappingService] [components/xVXvIjyoRGCqTFM2Ziyz8A] create_mapping [auth]
2023.02.11 05:44:34 INFO  web[][o.s.s.e.IndexCreator] Create index [projectmeasures]
2023.02.11 05:44:35 INFO  es[][o.e.c.m.MetadataCreateIndexService] [projectmeasures] creating index, cause [api], templates [], shards [5]/[0]
2023.02.11 05:44:37 INFO  es[][o.e.c.r.a.AllocationService] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[projectmeasures][4]]]).
2023.02.11 05:44:37 INFO  web[][o.s.s.e.IndexCreator] Create type projectmeasures/auth
2023.02.11 05:44:37 INFO  es[][o.e.c.m.MetadataMappingService] [projectmeasures/Jfi8Ko4LSrCiSY-RNliAOg] create_mapping [auth]
2023.02.11 05:44:38 INFO  web[][o.s.s.e.IndexCreator] Create index [rules]
2023.02.11 05:44:39 INFO  es[][o.e.c.m.MetadataCreateIndexService] [rules] creating index, cause [api], templates [], shards [2]/[0]
2023.02.11 05:44:39 INFO  es[][o.e.c.r.a.AllocationService] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[rules][0]]]).
2023.02.11 05:44:40 INFO  web[][o.s.s.e.IndexCreator] Create type rules/rule
2023.02.11 05:44:40 INFO  es[][o.e.c.m.MetadataMappingService] [rules/E0xmlI3uTtClSBuHKSoxVQ] create_mapping [rule]
2023.02.11 05:44:40 INFO  web[][o.s.s.e.IndexCreator] Create index [issues]
2023.02.11 05:44:41 INFO  es[][o.e.c.m.MetadataCreateIndexService] [issues] creating index, cause [api], templates [], shards [5]/[0]
2023.02.11 05:44:43 INFO  es[][o.e.c.r.a.AllocationService] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[issues][4]]]).
2023.02.11 05:44:43 INFO  web[][o.s.s.e.IndexCreator] Create type issues/auth
2023.02.11 05:44:43 INFO  es[][o.e.c.m.MetadataMappingService] [issues/0yB0T3SmSOqoB9fp2jZbmA] create_mapping [auth]
2023.02.11 05:44:44 INFO  web[][o.s.s.e.IndexCreator] Create index [users]
2023.02.11 05:44:44 INFO  es[][o.e.c.m.MetadataCreateIndexService] [users] creating index, cause [api], templates [], shards [1]/[0]
2023.02.11 05:44:45 INFO  es[][o.e.c.r.a.AllocationService] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[users][0]]]).
2023.02.11 05:44:45 INFO  web[][o.s.s.e.IndexCreator] Create type users/user
2023.02.11 05:44:45 INFO  es[][o.e.c.m.MetadataMappingService] [users/KMiJTkuqRiOw_UYKu5RXLQ] create_mapping [user]
2023.02.11 05:44:45 INFO  web[][o.s.s.e.IndexCreator] Create index [views]
2023.02.11 05:44:46 INFO  es[][o.e.c.m.MetadataCreateIndexService] [views] creating index, cause [api], templates [], shards [5]/[0]
2023.02.11 05:44:48 INFO  es[][o.e.c.r.a.AllocationService] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[views][4]]]).
2023.02.11 05:44:48 INFO  web[][o.s.s.e.IndexCreator] Create type views/view
2023.02.11 05:44:48 INFO  es[][o.e.c.m.MetadataMappingService] [views/tCf29XxWSHOzp0yjn7aOcQ] create_mapping [view]
2023.02.11 05:44:49 INFO  web[][o.s.s.s.LogServerId] Server ID: FC88B725-AWXnKhgnUThvizL6bi5A
2023.02.11 05:44:49 INFO  web[][o.s.s.p.UpdateCenterClient] Update center: https://update.sonarsource.org/update-center.properties (no proxy)
2023.02.11 05:44:50 WARN  web[][o.s.a.s.w.WebService$Action] The response example is not set on action saml/validation_init
2023.02.11 05:44:50 WARN  web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/system/liveness
2023.02.11 05:44:50 WARN  web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/plugins/download
2023.02.11 05:44:50 WARN  web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/analysis_cache/get
2023.02.11 05:44:50 WARN  web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/alm_integrations/check_pat
2023.02.11 05:44:50 WARN  web[][o.s.a.s.w.WebService$Action] Description is not set on action api/alm_settings/set_azure_binding
2023.02.11 05:44:50 WARN  web[][o.s.a.s.w.WebService$Action] Since is not set on action api/alm_settings/set_azure_binding
2023.02.11 05:44:50 WARN  web[][o.s.a.s.w.WebService$Action] Description is not set on action api/alm_settings/validate_binding
2023.02.11 05:44:50 WARN  web[][o.s.a.s.w.WebService$Action] Since is not set on action api/alm_settings/validate_binding
2023.02.11 05:44:50 WARN  web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/alm_settings/validate_binding
2023.02.11 05:44:50 WARN  web[][o.s.a.s.w.WebService$Action] Description is not set on action api/alm_settings/delete_binding
2023.02.11 05:44:50 WARN  web[][o.s.a.s.w.WebService$Action] Since is not set on action api/alm_settings/delete_binding
2023.02.11 05:44:50 WARN  web[][o.s.a.s.w.WebService$Action] Description is not set on action api/alm_settings/set_github_binding
2023.02.11 05:44:50 WARN  web[][o.s.a.s.w.WebService$Action] Since is not set on action api/alm_settings/set_github_binding
2023.02.11 05:44:50 WARN  web[][o.s.a.s.w.WebService$Action] Description is not set on action api/alm_settings/set_gitlab_binding
2023.02.11 05:44:50 WARN  web[][o.s.a.s.w.WebService$Action] Since is not set on action api/alm_settings/set_gitlab_binding
2023.02.11 05:44:50 WARN  web[][o.s.a.s.w.WebService$Action] Description is not set on action api/alm_settings/set_bitbucket_binding
2023.02.11 05:44:50 WARN  web[][o.s.a.s.w.WebService$Action] Since is not set on action api/alm_settings/set_bitbucket_binding
2023.02.11 05:44:50 WARN  web[][o.s.a.s.w.WebService$Action] Description is not set on action api/alm_settings/set_bitbucketcloud_binding
2023.02.11 05:44:50 WARN  web[][o.s.a.s.w.WebService$Action] Since is not set on action api/alm_settings/set_bitbucketcloud_binding
2023.02.11 05:44:50 WARN  web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/push/sonarlint_events
2023.02.11 05:44:50 WARN  web[][o.s.a.s.w.WebService$Action] Description is not set on action api/project_pull_requests/list
2023.02.11 05:44:50 WARN  web[][o.s.a.s.w.WebService$Action] Since is not set on action api/project_pull_requests/list
2023.02.11 05:44:50 WARN  web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/project_pull_requests/list
2023.02.11 05:44:50 WARN  web[][o.s.a.s.w.WebService$Action] Description is not set on action api/project_pull_requests/delete
2023.02.11 05:44:50 WARN  web[][o.s.a.s.w.WebService$Action] Since is not set on action api/project_pull_requests/delete
2023.02.11 05:44:50 INFO  web[][o.s.s.a.p.ExpiredSessionsCleaner] Purge of expired session tokens has removed 0 elements
2023.02.11 05:44:50 INFO  web[][o.s.s.n.NotificationDaemon] Notification service started (delay 60 sec.)
2023.02.11 05:44:50 INFO  web[][o.s.s.a.p.ExpiredSessionsCleaner] Purge of expired SAML message ids has removed 0 elements
2023.02.11 05:44:50 INFO  web[][o.s.s.t.TelemetryDaemon] Sharing of SonarQube statistics is enabled.
2023.02.11 05:44:50 INFO  web[][o.s.s.s.GeneratePluginIndex] Generate scanner plugin index
2023.02.11 05:44:50 INFO  web[][c.h.s.i.s.SonargraphMetrics] Sonargraph Integration: Created 55 predefined and 0 custom metric(s)
2023.02.11 05:44:50 INFO  web[][o.s.s.s.RegisterMetrics] Register metrics
2023.02.11 05:44:50 INFO  web[][o.s.s.r.RegisterRules] Register rules
2023.02.11 05:44:51 INFO  web[][c.h.s.i.s.SonargraphRulesProvider] Sonargraph Integration: Loaded standard rules file '/com/hello2morrow/sonargraph/integration/sonarqube/SonargraphRules.properties'
2023.02.11 05:44:51 INFO  web[][c.h.s.i.s.SonargraphRulesProvider] Sonargraph Integration: No custom rules file found at '/home/sonarqube/.sonargraphintegration/SonargraphRules.properties'
2023.02.11 05:44:51 INFO  web[][c.h.s.i.s.SonargraphRules] Sonargraph Integration: Created 18 predefined and 0 custom rule(s)
2023.02.11 05:44:51 INFO  web[][c.h.s.i.s.SonargraphRulesProvider] Sonargraph Integration: Loaded standard rules file '/com/hello2morrow/sonargraph/integration/sonarqube/SonargraphRules.properties'
2023.02.11 05:44:51 INFO  web[][c.h.s.i.s.SonargraphRulesProvider] Sonargraph Integration: No custom rules file found at '/home/sonarqube/.sonargraphintegration/SonargraphRules.properties'
2023.02.11 05:44:51 INFO  web[][c.h.s.i.s.SonargraphRules] Sonargraph Integration: Created 18 predefined and 0 custom rule(s)
2023.02.11 05:44:51 WARN  web[][o.s.c.a.AnnotationConfigApplicationContext] Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jdk.internal.loader.ClassLoaders$AppClassLoader@6a6824be-org.sonar.server.rule.RegisterRules': Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: 'void org.sonarsource.analyzer.commons.RuleMetadataLoader.<init>(java.lang.String, java.lang.String, org.sonar.api.SonarRuntime)'
2023.02.11 05:44:51 ERROR web[][o.s.s.p.Platform] Background initialization failed. Stopping SonarQube
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jdk.internal.loader.ClassLoaders$AppClassLoader@6a6824be-org.sonar.server.rule.RegisterRules': Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: 'void org.sonarsource.analyzer.commons.RuleMetadataLoader.<init>(java.lang.String, java.lang.String, org.sonar.api.SonarRuntime)'
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:628)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
        at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:955)
        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)
        at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:187)
        at org.sonar.server.platform.platformlevel.PlatformLevel.start(PlatformLevel.java:80)
        at org.sonar.server.platform.platformlevel.PlatformLevelStartup.access$001(PlatformLevelStartup.java:55)
        at org.sonar.server.platform.platformlevel.PlatformLevelStartup$1.doPrivileged(PlatformLevelStartup.java:127)
        at org.sonar.server.user.DoPrivileged.execute(DoPrivileged.java:45)
        at org.sonar.server.platform.platformlevel.PlatformLevelStartup.start(PlatformLevelStartup.java:124)
        at org.sonar.server.platform.PlatformImpl.executeStartupTasks(PlatformImpl.java:183)
        at org.sonar.server.platform.PlatformImpl$1.lambda$doRun$1(PlatformImpl.java:107)
        at org.sonar.server.platform.PlatformImpl$AutoStarterRunnable.runIfNotAborted(PlatformImpl.java:344)
        at org.sonar.server.platform.PlatformImpl$1.doRun(PlatformImpl.java:107)
        at org.sonar.server.platform.PlatformImpl$AutoStarterRunnable.run(PlatformImpl.java:328)
        at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.lang.NoSuchMethodError: 'void org.sonarsource.analyzer.commons.RuleMetadataLoader.<init>(java.lang.String, java.lang.String, org.sonar.api.SonarRuntime)'
        at org.sonar.plugins.xml.XmlRulesDefinition.define(XmlRulesDefinition.java:39)
        at org.sonar.server.rule.RuleDefinitionsLoader.load(RuleDefinitionsLoader.java:56)
        at org.sonar.server.rule.RegisterRules.start(RegisterRules.java:125)
        at org.sonar.core.platform.StartableBeanPostProcessor.postProcessBeforeInitialization(StartableBeanPostProcessor.java:33)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:440)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1796)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620)
        ... 20 common frames omitted
2023.02.11 05:44:51 INFO  web[][o.s.p.ProcessEntryPoint] Hard stopping process
2023.02.11 05:44:51 INFO  web[][o.s.s.n.NotificationDaemon] Notification service stopped
2023.02.11 05:44:51 INFO  web[][c.z.h.HikariDataSource] HikariPool-1 - Shutdown initiated...
2023.02.11 05:44:51 INFO  web[][c.z.h.HikariDataSource] HikariPool-1 - Shutdown completed.
2023.02.11 05:44:51 INFO  app[][o.s.a.SchedulerImpl] Process[Web Server] is stopped
2023.02.11 05:44:52 WARN  app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [ElasticSearch]: 143
2023.02.11 05:44:52 INFO  app[][o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped
2023.02.11 05:44:52 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped

Hello Colin, We had plugins installed we just tried upgrading SonarQube from 9.6.1 to 9.7.1 and 9.8.0

Hello Praseeb, We are still facing this issue.

It sounds like you might want to compare what plugins you have installed in common, to narrow down which plugin could be causing the issue. You might also try uninstalling all plugins – see if the upgrade works, then selectively reinstall plugins until you face another failure.