Hello all,
SonarQube Enterprise 10.8.1
In couple of my projects the overall tab shows that there are issues. But clicking on those bring no results. I have tried replacing SonarQube image to force reindexing which did not resolved the problem. I also tried using curl POST but for some reason it returns with “301 Moved Permanently”. Do you have any suggestions of what I can do to fix this issue?
Did the reindexing actually take place?
If you’re deploying SonarQube on Docker, you probably have some persistent volumes for directories such as the /data/ directory, which includes the /data/es8 folder that needs to be trashed before starting the SonarQube server.
What’s the exact command you used?
I have checked the logs and all of the project were reindexed. Also before deployment I have removed es8 directory (which is created upon first start of the image I believe).
The command I ran was curl -X POST -H “Authorization: Basic XXX” -H “Content-Type: application/json” -d ‘{“key”: “XXX”}’ “http://sonarqube.XXX/api/issues/reindex”
POST api/issues/reindex uses project
, rather than key
. I’d suggest trying a command like this:
curl -X POST -u TOKEN: "http://sonarqube.xxx/api/issues/reindex?project=PROJECT_KEY" -i
Replace TOKEN
and PROJECT_KEY
with real values, and -i
should tell you whether or not the command was successful or not (based on the HTTP status code)
That did it! Now it shows the issues that were on the overall code tab. Thanks Colin.
PS It would be nice to have a button that does exactly this in each project.