Cannot restart SonarQube Developer Edition because of rule not being found

Hi,

We’re using SonarQube Developer Edition 7.9.1, we just upgraded a number of plugins (Java, TS/JS, plus some other ones) and restarted the instance.

Now, the SonarQube Developer Edition instance cannot be started any longer because of:

Background initialization failed

Stopping SonarQube

java.lang.IllegalStateException: Rule with key 'java:S2083' not found

How can get out of this situation? As of now, all scans company-wide are blocked because of this.

Thanks,
Damien

1 Like

Would you also have removed some plugins (like “sonar-security-java-frontend-plugin”) by any chance ?

We only upgraded some plugins and restarted SonarQube DE.

Did you upgrade from the Marketplace or manually pushed in …/extensions/plugins/ ?

We upgraded from the Marketplace, and restarted the SonarQube instance.

Here is the list of plugins:

-rw-r--r-- 1 sonarqube sonarqube      224 Mar 20  2019 README.txt
-rw-r--r-- 1 sonarqube sonarqube  1130537 Jan 29 09:24 mutation-analysis-plugin-1.5.jar
-rw-r--r-- 1 sonarqube sonarqube  1443735 Jun 20  2019 sonar-abap-plugin-3.8.0.2034.jar
-rw-r--r-- 1 sonarqube sonarqube  1621216 Jan 29 09:24 sonar-auth-oidc-plugin-1.1.0.jar
-rw-r--r-- 1 sonarqube sonarqube 30239121 Jan 29 09:25 sonar-cfamily-plugin-6.6.0.13759.jar
-rw-r--r-- 1 sonarqube sonarqube  4978023 Jan 29 09:25 sonar-csharp-plugin-8.2.0.14119.jar
-rw-r--r-- 1 sonarqube sonarqube  8787134 Jan 29 09:25 sonar-css-plugin-1.2.0.1325.jar
-rw-r--r-- 1 sonarqube sonarqube  1544789 Jul  3  2019 sonar-flex-plugin-2.5.1.1831.jar
-rw-r--r-- 1 sonarqube sonarqube  6857471 Jan 29 09:25 sonar-go-plugin-1.6.0.719.jar
-rw-r--r-- 1 sonarqube sonarqube   807419 Jan 29 09:25 sonar-html-plugin-3.2.0.2082.jar
-rw-r--r-- 1 sonarqube sonarqube    15098 Jul  3  2019 sonar-jacoco-plugin-1.0.2.475.jar
-rw-r--r-- 1 sonarqube sonarqube 17002816 Jan 29 09:25 sonar-java-plugin-6.0.1.20589.jar
-rw-r--r-- 1 sonarqube sonarqube  9915360 Jan 29 09:25 sonar-javascript-plugin-6.1.0.11503.jar
-rw-r--r-- 1 sonarqube sonarqube  7595999 Mar 20  2019 sonar-kotlin-plugin-1.5.0.315.jar
-rw-r--r-- 1 sonarqube sonarqube   300503 Mar 20  2019 sonar-ldap-plugin-2.2.0.608.jar
-rw-r--r-- 1 sonarqube sonarqube  5114297 Jan 29 09:25 sonar-php-plugin-3.3.0.5166.jar
-rw-r--r-- 1 sonarqube sonarqube  2141963 Mar 20  2019 sonar-plsql-plugin-3.4.1.2576.jar
-rw-r--r-- 1 sonarqube sonarqube  2965234 Jan 29 09:25 sonar-python-plugin-2.4.0.5513.jar
-rw-r--r-- 1 sonarqube sonarqube 10036210 Mar 20  2019 sonar-ruby-plugin-1.5.0.315.jar
-rw-r--r-- 1 sonarqube sonarqube  9202024 Mar 20  2019 sonar-scala-plugin-1.5.0.315.jar
-rw-r--r-- 1 sonarqube sonarqube  3625116 Jan 29 09:24 sonar-scm-git-plugin-1.9.1.1834.jar
-rw-r--r-- 1 sonarqube sonarqube  7229293 Mar 20  2019 sonar-scm-svn-plugin-1.9.0.1295.jar
-rw-r--r-- 1 sonarqube sonarqube  3652312 Mar 20  2019 sonar-security-csharp-frontend-plugin-7.7.0.4011.jar
-rw-r--r-- 1 sonarqube sonarqube  1781589 Mar 20  2019 sonar-security-java-frontend-plugin-7.7.0.4011.jar
-rw-r--r-- 1 sonarqube sonarqube  2012200 Mar 20  2019 sonar-security-php-frontend-plugin-7.7.0.4011.jar
-rw-r--r-- 1 sonarqube sonarqube  2100286 Mar 20  2019 sonar-security-plugin-7.7.0.4011.jar
-rw-r--r-- 1 sonarqube sonarqube  2379969 Jan 29 09:25 sonar-swift-plugin-4.2.2.77.jar
-rw-r--r-- 1 sonarqube sonarqube  2181075 Jun 20  2019 sonar-tsql-plugin-1.4.0.3334.jar
-rw-r--r-- 1 sonarqube sonarqube     5746 Jan 29 09:25 sonar-typescript-plugin-2.1.0.4359.jar
-rw-r--r-- 1 sonarqube sonarqube  3757184 Jan 29 09:25 sonar-vbnet-plugin-8.1.0.13383.jar
-rw-r--r-- 1 sonarqube sonarqube  2242738 Mar 20  2019 sonar-xml-plugin-2.0.1.2020.jar

I reverted manually the sonar-java-plugin from version 6.0.1 to 5.14 and it now works…

For some reason your sonar-security-XX plugins are ending with 7.7.0.4011 while a Developer edition 7.9.1 just unzipped should have

sonarqube-7.9.1/extensions/plugins
ls -l | grep secu
-rw-r–r--@ 1 ericlegoff staff 3656030 Jul 10 2019 sonar-security-csharp-frontend-plugin-7.9.0.5105.jar
-rw-r–r--@ 1 ericlegoff staff 1792257 Jul 10 2019 sonar-security-java-frontend-plugin-7.9.0.5105.jar
-rw-r–r--@ 1 ericlegoff staff 2065324 Jul 10 2019 sonar-security-php-frontend-plugin-7.9.0.5105.jar
-rw-r–r--@ 1 ericlegoff staff 3084060 Jul 10 2019 sonar-security-plugin-7.9.0.5105.jar

We upgraded some time ago from 7.7 to 7.9. Should this list of plugins have been upgraded automatically? We deploy SQDE using a Docker image, with /opt/sonarqube/extensions as a RW volume.

We have the same problem running sonar-java-plugin-6.1.0.20866.jar with Developer 8.2. The latest working plugin version is 5.12.0 for us. Later versions fail with either (5.12.1-5.14)
org.sonar.server.exceptions.BadRequestException: Rule was removed: squid:S2631
or (6.0+)
java.lang.IllegalStateException: Rule with key 'java:S2083' not found
Are there any news on this problem?

I had the same issu, I install a plugin and restart the sonarqube and everything stoped. I delete the image and try to create a new one and I saw the same issu. Sonarqube close with error.


2022.05.13 06:10:02 INFO  web[][o.s.s.p.d.EmbeddedDatabase] Embedded database stopped
2022.05.13 06:10:02 INFO  app[][o.s.a.SchedulerImpl] Process[Web Server] is stopped
2022.05.13 06:10:02 INFO  app[][o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped
2022.05.13 06:10:02 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped

No Luck so far.