Sonarscan failing with checksum error

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension) - SonarQube version: 8.7.1
  • how is SonarQube deployed: zip, Docker, Helm - zip
  • what are you trying to achieve - sonarqube scanning
  • what have you tried so far to achieve this:

Running sonar using cmd - mvn sonar:sonar -Dsonar.projectName=$ProjName -Dsonar.projectKey=$ProjKey -Dsonar.qualitygate.wait

Error Logs

14:07:05  [INFO] User cache: /root/.sonar/cache
14:07:44  [INFO] SonarQube version: 8.7.1
14:07:44  [INFO] Default locale: "en_US", source code encoding: "UTF-8"
14:07:44  [WARNING] SonarScanner will require Java 11 to run starting in SonarQube 9.x
14:07:44  [INFO] Load global settings
14:07:44  [INFO] Load global settings (done) | time=444ms
14:07:44  [INFO] Server id: 6C5174B3-AXsRCQG3db8ykJaOn40x
14:07:44  [INFO] User cache: /root/.sonar/cache
14:07:44  [INFO] Load/download plugins
14:07:44  [INFO] Load plugins index
14:07:44  [INFO] Load plugins index (done) | time=377ms
14:09:20  [INFO] Load/download plugins (done) | time=97996ms
14:09:20  [INFO] ------------------------------------------------------------------------
14:09:20  [INFO] Reactor Summary:
14:09:20  [INFO] 
14:09:20  [INFO] parent ............................................. FAILURE [02:13 min]
14:09:20  [INFO] ------------------------------------------------------------------------
14:09:20  [INFO] ------------------------------------------------------------------------
14:09:20  [INFO] Total time: 02:17 min
14:09:20  [INFO] Finished at: 2023-03-15T08:43:45+00:00
14:09:20  [INFO] Final Memory: 26M/981M
14:09:20  [INFO] ------------------------------------------------------------------------
14:09:20  [INFO] [jenkins-event-spy] Generated /home/jenkins/agent/workspace/xx@tmp/withMaven8bf4c52a/maven-spy-20230315-084127-803996543525248216272.log
14:09:20  [ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin: (default-cli) on project parent: Fail to download plugin [cssfamily]. File /root/.sonar/_tmp/fileCache8008344976036565895.tmp was expected to have checksum e6794f3bb2ef1c8d01b5f3f4a5668c93 but had 884c653c6b9bc3b1442053151f654321 -> [Help 1]
14:09:20  [ERROR] 
14:09:20  [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.


Your version is past EOL. You should upgrade to either the latest version or the current LTS at your earliest convenience. Your upgrade path is:

8.7.1 → 8.9.10 → 9.9

You may find the Upgrade Guide and the LTS-to-LTS Upgrade Notes for 7.9 to 8.9, as well as the LTS to LTS release upgrade notes for 8.9 to 9.9 helpful. If you have questions about upgrading, feel free to open a new thread for that here.

If your error persists after upgrade, please come back to us.