SonarQube Server Environment details as follows:
• SonarQube Server Version - 5.6.7 (64-Bit).
• Operating System: Ubuntu-16.04 –LTS.
• MYSQL Database Version - 5.7.21
• Database Current Size: 16-GB
Problem:
All our builds getting finished successfully on our Jenkins, However on SonarQube dashboard for each build it shows –Pending.(There is a pending analysis, More details available on the Background tasks page). Whereas if I move to Corresponding project
--> Administration
--> Background tasks
--> Logs
. Location here I don’t say see any errors. This problem started last couple of weeks onwards only. No change on the server side.
I have tried the following.
1) Rebooted the SonarQube Server and then cleared the $SONAR_HOME/data/es folder
2) Also cleared $SONAR_HOME/temp/ folder.
3) Then started the Sonarqube service.
But still same problem. Let me any other around to fix the same.
As resolved in comments, analysis report processing was blocked in your instance by an erroring analysis report. It seems to have gotten hung in an errored-but-still-processing state and by hogging the background task processor, it was blocking all other background tasks, i.e. it was blocking completion of all subsequent analyses.
The way to resolve this error is to remove the blocking task: Global Administration > Projects > Background Tasks & delete the problem task.