Must-share information (formatted with Markdown):
-
which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
Sonarqube 9.8 -
how is SonarQube deployed: zip, Docker, Helm
zip -
what are you trying to achieve
My organisation recently upgraded licence to Enterprise. I am trying to setup a staging licence in staging environment which comes up with Enterprise. -
what have you tried so far to achieve this
Have done following steps
1 Staging db setup by copying data from production.
- New staging instance setup with sonarqube 9.8 - pointed to staging db
We are migrating our production version to 9.9 LTS with in next two weeks and trying to use this staging environment as a playground to practise upgrade. - Installed it as a service in linux.
- Started the sonarqube. The process failed in web server with following error
2023.11.07 01:41:16 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile kubernetes/Sonar way
2023.11.07 01:41:16 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile css/Sonar way
2023.11.07 01:41:16 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@5bc2b487-org.sonar.server.qualityprofile.RegisterQualityProfiles’: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: Duplicate key ignoreSelectors
2023.11.07 01:41:16 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@5bc2b487-org.sonar.server.qualityprofile.RegisterQualityProfiles’: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: Duplicate key ignoreSelectors
Tried these steps to triage
- Checked web.log and can see that it connects to DB and produced a new server ID
- Deleted the contents in es7 directory and re-started sonarqube. still the same issue
Can I try installing 9.9 LTS directly on staging environment(which is connected to a database which still has 9.8 schema)
Appreciate a help to reslove this issue. Attaching the web.log and es.log with topic.
web.log (17.6 KB)
es.log (12.4 KB)