Background Initilization failed. Sonarqube server not started

Sonarqube server not started with these logs

web.log

2021.09.06 17:46:54 INFO  web[][o.s.p.ProcessEntryPoint] Starting web
2021.09.06 17:46:54 INFO  web[][o.s.p.ProcessEntryPoint] Gracefully stopping process
2021.09.06 17:46:55 INFO  web[][o.s.s.app.WebServer] WebServer stopped
2021.09.06 17:47:26 INFO  web[][o.s.p.ProcessEntryPoint] Starting web
2021.09.06 17:47:27 INFO  web[][o.a.t.u.n.NioSelectorPool] Using a shared selector for servlet write/read
2021.09.06 17:47:28 INFO  web[][o.s.s.e.EsClientProvider] Connected to local Elasticsearch: [http://localhost:9001]
2021.09.06 17:47:29 INFO  web[][o.s.s.p.LogServerVersion] SonarQube Server / 9.0.1.46107 / d32acdb9a65112f50702ab8f09521c7ebe80ead0
2021.09.06 17:47:29 INFO  web[][o.s.s.p.d.EmbeddedDatabase] Starting embedded database on port 9092 with url jdbc:h2:tcp://127.0.0.1:9092/sonar
2021.09.06 17:47:29 INFO  web[][o.s.s.p.d.EmbeddedDatabase] Embedded database started. Data stored in: /Applications/sonarqube/data
2021.09.06 17:47:29 INFO  web[][o.sonar.db.Database] Create JDBC data source for jdbc:h2:tcp://127.0.0.1:9092/sonar
2021.09.06 17:47:29 WARN  web[][o.s.db.dialect.H2] H2 database should be used for evaluation purpose only.
2021.09.06 17:47:31 INFO  web[][o.s.s.p.ServerFileSystemImpl] SonarQube home: /Applications/sonarqube
2021.09.06 17:47:31 INFO  web[][o.s.s.u.SystemPasscodeImpl] System authentication by passcode is disabled
2021.09.06 17:47:31 INFO  web[][o.s.s.p.d.m.h.MigrationHistoryTableImpl] Creating table schema_migrations
2021.09.06 17:47:31 INFO  web[][o.s.s.p.ServerPluginManager] Deploy plugin C# Code Quality and Security / 8.25.0.33663 / b0179674e9c2f72aae6c02a9a432a7b16b9dfef9
2021.09.06 17:47:31 INFO  web[][o.s.s.p.ServerPluginManager] Deploy plugin CSS Code Quality and Security / 1.4.2.2002 / faa7d4f1407df67df7ada53caf677ab783721173
2021.09.06 17:47:31 INFO  web[][o.s.s.p.ServerPluginManager] Deploy plugin Flex Code Quality and Security / 2.6.2.2641 / 11f07506915923b3a0e39e4e34280644c035b925
2021.09.06 17:47:31 INFO  web[][o.s.s.p.ServerPluginManager] Deploy plugin Go Code Quality and Security / 1.8.3.2219 / d6ad7a5a47fc4785d2e80918fb7424be46e38a7f
2021.09.06 17:47:31 INFO  web[][o.s.s.p.ServerPluginManager] Deploy plugin HTML Code Quality and Security / 3.4.0.2754 / 38f7ff864ae15152c9f1efc3014594f7e7ca7b6e
2021.09.06 17:47:31 INFO  web[][o.s.s.p.ServerPluginManager] Deploy plugin JaCoCo / 1.1.1.1157 / 83478572b9f23efac29de15e30c7758bbb0c0e47
2021.09.06 17:47:31 INFO  web[][o.s.s.p.ServerPluginManager] Deploy plugin Java Code Quality and Security / 7.1.0.26670 / 443133205a173cc74f55c04cc3d5d8a25644538c
2021.09.06 17:47:31 INFO  web[][o.s.s.p.ServerPluginManager] Deploy plugin JavaScript/TypeScript Code Quality and Security / 8.1.0.15788 / 5f6b8aa5acbb10db6a8852860755314fb1532449
2021.09.06 17:47:31 INFO  web[][o.s.s.p.ServerPluginManager] Deploy plugin Kotlin Code Quality and Security / 2.0.1.110 / 484b3faa8cbcada38d017045d7faf5438e0b5395
2021.09.06 17:47:31 INFO  web[][o.s.s.p.ServerPluginManager] Deploy plugin PHP Code Quality and Security / 3.17.0.7439 / 44c7760147080c157fa0ff579772f92d3c8e1ebf
2021.09.06 17:47:31 INFO  web[][o.s.s.p.ServerPluginManager] Deploy plugin Python Code Quality and Security / 3.5.0.8244 / 7992d2ad600835c9c1a3533f2ede108288e1a1e5
2021.09.06 17:47:31 INFO  web[][o.s.s.p.ServerPluginManager] Deploy plugin Ruby Code Quality and Security / 1.8.3.2219 / d6ad7a5a47fc4785d2e80918fb7424be46e38a7f
2021.09.06 17:47:31 INFO  web[][o.s.s.p.ServerPluginManager] Deploy plugin Scala Code Quality and Security / 1.8.3.2219 / d6ad7a5a47fc4785d2e80918fb7424be46e38a7f
2021.09.06 17:47:31 INFO  web[][o.s.s.p.ServerPluginManager] Deploy plugin Swift (Backelite) / 0.4.4 / null
2021.09.06 17:47:31 INFO  web[][o.s.s.p.ServerPluginManager] Deploy plugin VB.NET Code Quality and Security / 8.25.0.33663 / b0179674e9c2f72aae6c02a9a432a7b16b9dfef9
2021.09.06 17:47:31 INFO  web[][o.s.s.p.ServerPluginManager] Deploy plugin XML Code Quality and Security / 2.2.0.2973 / 16002945f0725643a7b42f090572795dd8b72a0f
2021.09.06 17:47:33 INFO  web[][o.s.s.p.d.m.AutoDbMigration] Automatically perform DB migration on fresh install
2021.09.06 17:47:33 INFO  web[][DbMigrations] Executing DB migrations...
2021.09.06 17:47:33 INFO  web[][DbMigrations] #1 'Create initial schema'...
2021.09.06 17:47:33 INFO  web[][DbMigrations] #1 'Create initial schema': success | time=560ms
2021.09.06 17:47:33 INFO  web[][DbMigrations] #2 'Populate initial schema'...
2021.09.06 17:47:33 INFO  web[][DbMigrations] #2 'Populate initial schema': success | time=146ms
2021.09.06 17:47:33 INFO  web[][DbMigrations] #5001 'Drop PK on 'uuid' for 'ce_activity' table'...
2021.09.06 17:47:33 INFO  web[][DbMigrations] #5001 'Drop PK on 'uuid' for 'ce_activity' table': success | time=18ms
2021.09.06 17:47:33 INFO  web[][DbMigrations] #5002 'Drop 'ce_activity_uuid' index'...
2021.09.06 17:47:33 INFO  web[][DbMigrations] #5002 'Drop 'ce_activity_uuid' index': success | time=15ms
2021.09.06 17:47:33 INFO  web[][DbMigrations] #5003 'Recreate PK on 'uuid' for 'ce_activity' table'...
2021.09.06 17:47:33 INFO  web[][DbMigrations] #5003 'Recreate PK on 'uuid' for 'ce_activity' table': success | time=11ms
2021.09.06 17:47:33 INFO  web[][DbMigrations] #5004 'Drop PK on 'uuid' for 'events' table'...
2021.09.06 17:47:33 INFO  web[][DbMigrations] #5004 'Drop PK on 'uuid' for 'events' table': success | time=9ms
2021.09.06 17:47:33 INFO  web[][DbMigrations] #5005 'Drop 'events_uuid' index'...
2021.09.06 17:47:33 INFO  web[][DbMigrations] #5005 'Drop 'events_uuid' index': success | time=9ms
2021.09.06 17:47:33 INFO  web[][DbMigrations] #5006 'Recreate PK on 'uuid' for 'events' table'...
2021.09.06 17:47:33 INFO  web[][DbMigrations] #5006 'Recreate PK on 'uuid' for 'events' table': success | time=11ms
2021.09.06 17:47:33 INFO  web[][DbMigrations] #5007 'Drop PK on 'kee' for 'issues' table'...
2021.09.06 17:47:33 INFO  web[][DbMigrations] #5007 'Drop PK on 'kee' for 'issues' table': success | time=19ms
2021.09.06 17:47:33 INFO  web[][DbMigrations] #5008 'Drop 'issues_kee' index'...
2021.09.06 17:47:33 INFO  web[][DbMigrations] #5008 'Drop 'issues_kee' index': success | time=10ms
2021.09.06 17:47:33 INFO  web[][DbMigrations] #5009 'Recreate PK on 'kee' for 'issues' table'...
2021.09.06 17:47:33 INFO  web[][DbMigrations] #5009 'Recreate PK on 'kee' for 'issues' table': success | time=6ms
2021.09.06 17:47:33 INFO  web[][DbMigrations] #5010 'Drop PK on 'kee' for 'snapshots' table'...
2021.09.06 17:47:33 INFO  web[][DbMigrations] #5010 'Drop PK on 'kee' for 'snapshots' table': success | time=8ms
2021.09.06 17:47:33 INFO  web[][DbMigrations] #5011 'Drop 'analyses_uuid' index'...
2021.09.06 17:47:33 INFO  web[][DbMigrations] #5011 'Drop 'analyses_uuid' index': success | time=7ms
2021.09.06 17:47:33 INFO  web[][DbMigrations] #5012 'Recreate PK on 'kee' for 'snapshots' table'...
2021.09.06 17:47:33 INFO  web[][DbMigrations] #5012 'Recreate PK on 'kee' for 'snapshots' table': success | time=4ms
2021.09.06 17:47:33 INFO  web[][DbMigrations] Executed DB migrations: success | time=861ms
2021.09.06 17:47:33 INFO  web[][o.s.s.p.Platform] Database has been automatically updated
2021.09.06 17:47:33 INFO  web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.platform.web.WebServiceFilter@6bea23c [pattern=UrlPattern{inclusions=[/api/system/migrate_db.*, ...], exclusions=[/api/components/update_key, ...]}]
2021.09.06 17:47:34 INFO  web[][o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9000
2021.09.06 17:47:35 INFO  web[][o.s.s.p.UpdateCenterClient] Update center: https://update.sonarsource.org/update-center.properties (no proxy)
2021.09.06 17:47:36 INFO  web[][o.s.s.e.IndexCreator] Create index [metadatas]
2021.09.06 17:47:37 INFO  web[][o.s.s.e.IndexCreator] Create type metadatas/metadata
2021.09.06 17:47:38 INFO  web[][o.s.s.e.IndexCreator] Create index [components]
2021.09.06 17:47:40 INFO  web[][o.s.s.e.IndexCreator] Create type components/auth
2021.09.06 17:47:40 INFO  web[][o.s.s.e.IndexCreator] Create index [projectmeasures]
2021.09.06 17:47:43 INFO  web[][o.s.s.e.IndexCreator] Create type projectmeasures/auth
2021.09.06 17:47:43 INFO  web[][o.s.s.e.IndexCreator] Create index [rules]
2021.09.06 17:47:44 INFO  web[][o.s.s.e.IndexCreator] Create type rules/rule
2021.09.06 17:47:44 INFO  web[][o.s.s.e.IndexCreator] Create index [issues]
2021.09.06 17:47:47 INFO  web[][o.s.s.e.IndexCreator] Create type issues/auth
2021.09.06 17:47:47 INFO  web[][o.s.s.e.IndexCreator] Create index [users]
2021.09.06 17:47:48 INFO  web[][o.s.s.e.IndexCreator] Create type users/user
2021.09.06 17:47:48 INFO  web[][o.s.s.e.IndexCreator] Create index [views]
2021.09.06 17:47:50 INFO  web[][o.s.s.e.IndexCreator] Create type views/view
2021.09.06 17:47:50 INFO  web[][o.s.s.s.LogServerId] Server ID: BF41A1F2-AXu7lCgICSF8DHFg2oqf
2021.09.06 17:47:50 WARN  web[][o.s.s.a.LogOAuthWarning] For security reasons, OAuth authentication should use HTTPS. You should set the property 'Administration > Configuration > Server base URL' to a HTTPS URL.
2021.09.06 17:47:52 WARN  web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/plugins/download
2021.09.06 17:47:52 WARN  web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/permissions/search_templates
2021.09.06 17:47:52 WARN  web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/alm_integrations/list_bitbucketserver_projects
2021.09.06 17:47:52 WARN  web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/alm_integrations/search_bitbucketcloud_repos
2021.09.06 17:47:52 WARN  web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/alm_integrations/check_pat
2021.09.06 17:47:52 WARN  web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/alm_integrations/list_azure_projects
2021.09.06 17:47:52 WARN  web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/alm_integrations/search_bitbucketserver_repos
2021.09.06 17:47:52 WARN  web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/alm_integrations/search_azure_repos
2021.09.06 17:47:52 WARN  web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/alm_integrations/list_github_organizations
2021.09.06 17:47:52 WARN  web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/alm_integrations/list_github_repositories
2021.09.06 17:47:52 WARN  web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/alm_integrations/get_github_client_id
2021.09.06 17:47:52 WARN  web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/alm_settings/get_binding
2021.09.06 17:47:52 WARN  web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/alm_settings/list
2021.09.06 17:47:52 WARN  web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/alm_settings/list_definitions
2021.09.06 17:47:52 WARN  web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/alm_settings/count_binding
2021.09.06 17:47:52 WARN  web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/alm_settings/validate
2021.09.06 17:47:52 INFO  web[][o.s.s.t.TelemetryDaemon] Sharing of SonarQube statistics is enabled.
2021.09.06 17:47:52 INFO  web[][o.s.s.n.NotificationDaemon] Notification service started (delay 60 sec.)
2021.09.06 17:47:52 INFO  web[][o.s.s.a.p.ExpiredSessionsCleaner] Purge of expired session tokens has removed 0 elements
2021.09.06 17:47:52 INFO  web[][o.s.s.a.p.ExpiredSessionsCleaner] Purge of expired SAML message ids has removed 0 elements
2021.09.06 17:47:52 INFO  web[][o.s.s.s.GeneratePluginIndex] Generate scanner plugin index
2021.09.06 17:47:52 INFO  web[][o.s.s.s.RegisterPlugins] Register plugins
2021.09.06 17:47:52 INFO  web[][o.s.s.s.RegisterMetrics] Register metrics
2021.09.06 17:47:52 INFO  web[][o.s.s.q.RegisterQualityGates] Built-in quality gate's conditions of [Sonar way] has been updated
2021.09.06 17:47:52 INFO  web[][o.s.s.r.RegisterRules] Register rules
2021.09.06 17:47:53 ERROR web[][o.s.s.p.Platform] Background initialization failed. Stopping SonarQube
java.lang.NoSuchMethodError: org.sonar.api.server.rule.RulesDefinition$NewRule.setDebtSubCharacteristic(Ljava/lang/String;)Lorg/sonar/api/server/rule/RulesDefinition$NewRule;
	at org.sonar.squidbridge.rules.SqaleXmlLoader.processRule(SqaleXmlLoader.java:124)
	at org.sonar.squidbridge.rules.SqaleXmlLoader.processSubChar(SqaleXmlLoader.java:92)
	at org.sonar.squidbridge.rules.SqaleXmlLoader.processRoot(SqaleXmlLoader.java:78)
	at org.sonar.squidbridge.rules.SqaleXmlLoader.loadXmlResource(SqaleXmlLoader.java:65)
	at org.sonar.squidbridge.rules.SqaleXmlLoader.load(SqaleXmlLoader.java:52)
	at com.backelite.sonarqube.swift.issues.swiftlint.SwiftLintRulesDefinition.define(SwiftLintRulesDefinition.java:61)
	at org.sonar.server.rule.RuleDefinitionsLoader.load(RuleDefinitionsLoader.java:53)
	at org.sonar.server.rule.RegisterRules.start(RegisterRules.java:117)
	at org.sonar.core.platform.StartableCloseableSafeLifecyleStrategy.start(StartableCloseableSafeLifecyleStrategy.java:40)
	at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.start(AbstractInjectionFactory.java:84)
	at org.picocontainer.behaviors.AbstractBehavior.start(AbstractBehavior.java:169)
	at org.picocontainer.behaviors.Stored$RealComponentLifecycle.start(Stored.java:132)
	at org.picocontainer.behaviors.Stored.start(Stored.java:110)
	at org.picocontainer.DefaultPicoContainer.potentiallyStartAdapter(DefaultPicoContainer.java:1016)
	at org.picocontainer.DefaultPicoContainer.startAdapters(DefaultPicoContainer.java:1009)
	at org.picocontainer.DefaultPicoContainer.start(DefaultPicoContainer.java:767)
	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:136)
	at org.sonar.server.platform.platformlevel.PlatformLevel.start(PlatformLevel.java:90)
	at org.sonar.server.platform.platformlevel.PlatformLevelStartup.access$001(PlatformLevelStartup.java:49)
	at org.sonar.server.platform.platformlevel.PlatformLevelStartup$1.doPrivileged(PlatformLevelStartup.java:87)
	at org.sonar.server.user.DoPrivileged.execute(DoPrivileged.java:45)
	at org.sonar.server.platform.platformlevel.PlatformLevelStartup.start(PlatformLevelStartup.java:84)
	at org.sonar.server.platform.PlatformImpl.executeStartupTasks(PlatformImpl.java:198)
	at org.sonar.server.platform.PlatformImpl$1.lambda$doRun$1(PlatformImpl.java:122)
	at org.sonar.server.platform.PlatformImpl$AutoStarterRunnable.runIfNotAborted(PlatformImpl.java:370)
	at org.sonar.server.platform.PlatformImpl$1.doRun(PlatformImpl.java:122)
	at org.sonar.server.platform.PlatformImpl$AutoStarterRunnable.run(PlatformImpl.java:354)
	at java.base/java.lang.Thread.run(Thread.java:834)
2021.09.06 17:47:53 INFO  web[][o.s.p.ProcessEntryPoint] Hard stopping process
2021.09.06 17:47:53 INFO  web[][o.s.s.n.NotificationDaemon] Notification service stopped
2021.09.06 17:47:53 INFO  web[][o.s.s.p.d.EmbeddedDatabase] Embedded database stopped

sonar.log

Launching a JVM...
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
  Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.

2021.09.06 17:47:16 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /Applications/sonarqube/temp
2021.09.06 17:47:16 INFO  app[][o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:56368]
2021.09.06 17:47:17 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [/Applications/sonarqube/elasticsearch]: /Applications/sonarqube/elasticsearch/bin/elasticsearch
2021.09.06 17:47:17 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
warning: no-jdk distributions that do not bundle a JDK are deprecated and will be removed in a future release
Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
2021.09.06 17:47:26 INFO  app[][o.s.a.SchedulerImpl] Process[es] is up
2021.09.06 17:47:26 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[[key='web', ipcIndex=2, logFilenamePrefix=web]] from [/Applications/sonarqube]: /Library/Java/JavaVirtualMachines/jdk-11.0.12.jdk/Contents/Home/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/Applications/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 -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.nonProxyHosts=localhost|127.*|[::1] -cp ./lib/sonar-application-9.0.1.46107.jar:/Applications/sonarqube/lib/jdbc/h2/h2-1.4.199.jar org.sonar.server.app.WebServer /Applications/sonarqube/temp/sq-process11427021370541365489properties
2021.09.06 17:47:51 WARN  app[][startup] ####################################################################################################################
2021.09.06 17:47:51 WARN  app[][startup] Default Administrator credentials are still being used. Make sure to change the password or deactivate the account.
2021.09.06 17:47:51 WARN  app[][startup] ####################################################################################################################
2021.09.06 17:47:53 INFO  app[][o.s.a.SchedulerImpl] Process[web] is stopped
2021.09.06 17:47:54 INFO  app[][o.s.a.SchedulerImpl] Process[es] is stopped
2021.09.06 17:47:54 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped
2021.09.06 17:47:54 WARN  app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 143
<-- Wrapper Stopped```

Hi @Ebubekir_Sezer ,

you are using a 3rd party plugin that is not compatible with sonarqube anymore (see github issue). please remove this plugin and start sonarqube again. this should work.
also note that this plugin is from a 3rd party so we as sonarsourcers can not help you with it. your best bet is to create an issue on the projects github page.

hope that helps

Thanks

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.