Pop-up warning "Failed to execute ES search query" in SonarQube web interface after upgrading from 4.5.1 to 5.1

when I click on an issue in the SonarQube web interface to see details, I get this red popup:

Failed to execute ES request ES "{" Size ": 1000," request ": {" BOOL ": {" should ": [{" Term ": {" fileUuid ":" 9c1ae181-f5c3-47da-8fad-3716aca54b6d " }}, {"Range": {"string": {"from": 1, "to": 1000, "include_lower": true, "include_upper": true}}}]}}, "sort of": [ {"string": {"order": "ascending"}}]} "by indices [sourcelines] 'by types [sourceline]'

and source code or release information is not displayed. we started getting this after upgrading from Sonar 4.5.1 to 5.1

I stopped the sonar server, deleted the SONAR_QUBE / data / es folder, restarted the process and I see these messages in the log:

es [oecradecider] [sonar-1431655214631] low disk watermark [15%] exceeded by [1rprlr2pTS2zotdYv71GkQ] [sonar-1431655214631] free: 534.3mb [13.2%], replicas will not be attached to this node

I suppose it might be related, but not sure if these "cues" have anything to do with "indices" ...

+3


source to share


1 answer


I solved it by rebuilding the elastic search indexes:

  • Stop SonarQube server.
  • Delete the contents of the $ SQ_HOME / data / es directory
  • Start the server


SonarQube recreates indexes on startup.

+10


source







All Articles