We recently upgraded to version SonarQube 6.2. For all the projects (16) the statistics for:
Bugs, Vulnerabilities, Debt, Smells, Duplications, Duplicated Blocks
are all zero (0). Only the Coverage measures show positive coverage values and is present as expected.
As an independent test we created a simple Java project with a few tech debt issues. This project, like the other projects all use Gradle and the Gradle plugin: id 'org.sonarqube' version '2.2.1'. When the SonarQube task published the data to SonarQube it appears again as still zero. We then changed the sonar host url to a local Docker instance:
systemProp.sonar.host.url = http:/192.168.99.100:9000
The Docker instance was successfully started with:
docker run -d --name sonarqube -p 9000:9000 -p 9092:9092 sonarqube
With the same, simple project when the Gradle task SonarQube posts the results to the Docker url then this same version 6.2 of SonarQube shows all the correct data and nothing is zero or missing.
Both of our SonarQube version 6.2 servers are running the same plugins yet present different results. The main difference is the Docker instance is starting with a fresh database where the older network node that presents the zero data has been upgraded from previous SonarQube versions over the last 2 years.
We suspect something with the upgrades has introduced a defect that is causing all these zeros (0). It appears the problem would be resolved by starting with a new database, but sadly the history will be lost.
Does anyone have experience with these zeroed measures?
How might one fix the problem (database?) without loosing the history?
rm $SONARQUBE_HOME/data/es
? That has to be in the middle of a restart, of course. – G. Ann - SonarSource Team