sonarqube - Sonar throws "fail to execute es search request" -


we upgraded our sonar instance 5.0.1 5.1.2

we getting "fail execute es search request" error popup when click issues link.

error-snapshot

2015.10.27 12:23:35 error web[o.s.s.w.webserviceengine] fail process request http://sonar.pe.int.thomsonreuters.com/api/issues/search?p=1&ps=50&s=file_line&asc=true&extra_fields=actions%2ctransitions%2cassigneename%2creportername%2cactionplanname&facets=severities%2cresolutions%2cresolutions&resolved=false&componentuuids=8858dbaa-94ca-4293-9a81-e432028be3e0 

java.lang.illegalstateexception: fail execute es search request '{"from":0,"size":50,"query":{"filtered":{"query":{"match_all":{}},"filter":{"bool":{"must":[{"missing":{"field":"resolution"}},{"terms":{"project":["8858dbaa-94ca-4293-9a81-e432028be3e0"]}},{"has_parent":{"query":{"filtered":{"query":{"match_all":{}},"filter":{"bool":{"must":{"or":{"filters":[{"term":{"users":"admin"}},{"term":{"groups":"anyone"}},{"term":{"groups":"sonar-users"}},{"term":{"groups":"sonar-administrators"}}]}},"_cache":true}}}},"parent_type":"authorization"}}]}}}},"sort":[{"project":{"order":"asc","missing":"_first"}},{"filepath":{"order":"asc","missing":"_first"}},{"line":{"order":"asc","missing":"_first"}},{"severityvalue":{"order":"desc","missing":"_first"}},{"key":{"order":"asc","missing":"_first"}}],"aggregations":{"severities":{"global":{},"aggregations":{"severities_filter":{"filter":{"bool":{"must":[{"query":{"match_all":{}}},{"missing":{"field":"resolution"}},{"terms":{"project":["8858dbaa-94ca-4293-9a81-e432028be3e0"]}},{"has_parent":{"query":{"filtered":{"query":{"match_all":{}},"filter":{"bool":{"must":{"or":{"filters":[{"term":{"users":"admin"}},{"term":{"groups":"anyone"}},{"term":{"groups":"sonar-users"}},{"term":{"groups":"sonar-administrators"}}]}},"_cache":true}}}},"parent_type":"authorization"}}]}},"aggregations":{"severities":{"terms":{"field":"severity","size":15,"min_doc_count":1,"order":{"_count":"desc"}}},"severities_selected":{"terms":{"field":"severity","include":"info|minor|major|critical|blocker"}}}}}},"resolutions":{"global":{},"aggregations":{"resolutions_filter":{"filter":{"bool":{"must":[{"query":{"match_all":{}}},{"terms":{"project":["8858dbaa-94ca-4293-9a81-e432028be3e0"]}},{"has_parent":{"query":{"filtered":{"query":{"match_all":{}},"filter":{"bool":{"must":{"or":{"filters":[{"term":{"users":"admin"}},{"term":{"groups":"anyone"}},{"term":{"groups":"sonar-users"}},{"term":{"groups":"sonar-administrators"}}]}},"_cache":true}}}},"parent_type":"authorization"}}]}},"aggregations":{"resolutions":{"terms":{"field":"resolution","size":15,"min_doc_count":1,"order":{"_count":"desc"}}},"resolutions_selected":{"terms":{"field":"resolution","include":"false-positive|wontfix|fixed|removed"}},"resolutions_missing":{"missing":{"field":"resolution"}}}}}}}}' on indices '[issues]' on types '[issue]' @ org.sonar.server.es.request.proxysearchrequestbuilder.get(proxysearchrequestbuilder.java:49) ~[sonar-server-5.1.2.jar:na] @ org.sonar.server.es.request.proxysearchrequestbuilder.get(proxysearchrequestbuilder.java:37) ~[sonar-server-5.1.2.jar:na] @ org.sonar.server.issue.index.issueindex.search(issueindex.java:191) ~[sonar-server-5.1.2.jar:na] @ org.sonar.server.issue.issueservice.search(issueservice.java:351) ~[sonar-server-5.1.2.jar:na] @ org.sonar.server.issue.ws.searchaction.execute(searchaction.java:304) ~[sonar-server-5.1.2.jar:na] @ org.sonar.server.issue.ws.searchaction.handle(searchaction.java:279) ~[sonar-server-5.1.2.jar:na] @ org.sonar.server.ws.webserviceengine.execute(webserviceengine.java:84) ~[sonar-server-5.1.2.jar:na] @ sun.reflect.generatedmethodaccessor169.invoke(unknown source) ~[na:na]

thanks,

ravivarman.

deleting content of $sonarqube_home/data/es folder , restarting sonarqube server should fix issue.


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -