Hi,
In one of the exercises I am supposed to deploy SonarQube to K8s. When I do that, the pod is being restared, and when I look at the logs I can see:
2022.09.22 18:37:35 INFO web[][o.s.s.e.EsClientProvider] Connected to local Elasticsearch: [http://localhost:9001]
2022.09.22 18:37:37 WARN web[][o.s.a.s.w.WebService$Action] Description is not set on action api/monitoring/metrics
2022.09.22 18:37:37 WARN web[][o.s.a.s.w.WebService$Action] Since is not set on action api/monitoring/metrics
2022.09.22 18:37:37 WARN web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/monitoring/metrics
2022.09.22 18:37:37 WARN web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/system/liveness
2022.09.22 18:37:37 INFO web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.platform.web.WebServiceFilter@1c6e3ff9 [pattern=UrlPattern{inclusions=[/api/system/migrate_db.*, ...], exclusions=[/api/components/update_key, ...]}]
2022.09.22 18:37:37 INFO web[][o.s.s.p.DetectPluginChange] Detect plugin changes
2022.09.22 18:37:37 INFO web[][o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9000
2022.09.22 18:37:37 ERROR web[][o.s.s.p.Platform] Background initialization failed. Stopping SonarQube
java.lang.IllegalStateException: org.springframework.context.annotation.AnnotationConfigApplicationContext@584db854 has been closed already
at org.springframework.context.support.AbstractApplicationContext.assertBeanFactoryActive(AbstractApplicationContext.java:1138)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1171)
at org.sonar.core.platform.SpringComponentContainer.getOptionalComponentByType(SpringComponentContainer.java:145)
at org.sonar.server.platform.platformlevel.PlatformLevel.getOptional(PlatformLevel.java:97)
at org.sonar.server.platform.platformlevel.PlatformLevel.lambda$getWebServer$0(PlatformLevel.java:149)
at java.base/java.util.Optional.flatMap(Optional.java:294)
at org.sonar.server.platform.platformlevel.PlatformLevel.getWebServer(PlatformLevel.java:149)
at org.sonar.server.platform.platformlevel.PlatformLevel.addIfStartupLeader(PlatformLevel.java:115)
at org.sonar.server.platform.platformlevel.PlatformLevel4.configureLevel(PlatformLevel4.java:280)
at org.sonar.server.platform.platformlevel.PlatformLevel.configure(PlatformLevel.java:70)
at org.sonar.server.platform.PlatformImpl.start(PlatformImpl.java:193)
at org.sonar.server.platform.PlatformImpl.startLevel34Containers(PlatformImpl.java:177)
at org.sonar.server.platform.PlatformImpl$1.lambda$doRun$0(PlatformImpl.java:105)
at org.sonar.server.platform.PlatformImpl$AutoStarterRunnable.runIfNotAborted(PlatformImpl.java:344)
at org.sonar.server.platform.PlatformImpl$1.doRun(PlatformImpl.java:105)
at org.sonar.server.platform.PlatformImpl$AutoStarterRunnable.run(PlatformImpl.java:328)
at java.base/java.lang.Thread.run(Thread.java:829)
2022.09.22 18:37:38 INFO web[][o.s.s.p.d.EmbeddedDatabase] Embedded database stopped
2022.09.22 18:37:38 INFO app[][o.s.a.SchedulerImpl] Process[Web Server] is stopped
2022.09.22 18:37:38 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped
Any suggestions ?