Sonarqube - 无法执行ES搜索请求错误

时间:2018-04-05 12:42:48

标签: sonarqube

我们的SonarQube服务器版本 - 5.6.7(64位)。 Sonarqube Server OS是Ubuntu 16.04 LTS。 MySQL版本-5.7 目前的MySQL-DB大小为 - 18GB。

问题:过去几周以后。在Sonarqube仪表板问题标签上我们的几个sonarqube项目很少显示所有零问题。

对于同样的我累了删除 SONARQUBE_HOME / data / es 文件夹并重新启动服务器。但它只能用几分钟。然后所有问题再次显示为零。

Sonarqube日志显示以下错误,因此对此问题的任何建议/帮助都会有所帮助。

错误:

2018.04.05 16:52:09 ERROR web[o.s.s.w.WebServiceEngine] Fail to process request http://101.102.103.104:9000/api/issues/search?facets=createdAt&ps=1&additionalFields=_all&componentUuids=AV3BEKw6erBW4ICFn1Oe
java.lang.IllegalStateException: Fail to execute ES search request '{"query":{"filtered":{"query":{"match_all":{}},"filter":{"bool":{"must":[{"terms":{"project":["AV3BEKw6erBW4ICFn1Oe"]}},{"has_parent":{"query":{"filtered":{"query":{"match_all":{}},"filter":{"bool":{"must":{"or":{"filters":[{"term":{"users":"a.sunil"}},{"term":{"groups":"Anyone"}},{"term":{"groups":"sonar-users"}}]}},"_cache":true}}}},"parent_type":"authorization"}}]}}}},"aggregations":{"issueCreatedAt":{"min":{"field":"issueCreatedAt"}}}}' on indices '[issues]' on types '[issue]'
    at org.sonar.server.es.request.ProxySearchRequestBuilder.get(ProxySearchRequestBuilder.java:47) ~[sonar-server-5.6.7.jar:na]
    at org.sonar.server.es.request.ProxySearchRequestBuilder.get(ProxySearchRequestBuilder.java:35) ~[sonar-server-5.6.7.jar:na]
    at org.sonar.server.issue.index.IssueIndex.getMinCreatedAt(IssueIndex.java:514) ~[sonar-server-5.6.7.jar:na]
    at org.sonar.server.issue.index.IssueIndex.getCreatedAtFacet(IssueIndex.java:466) ~[sonar-server-5.6.7.jar:na]
    at org.sonar.server.issue.index.IssueIndex.configureStickyFacets(IssueIndex.java:427) ~[sonar-server-5.6.7.jar:na]
    at org.sonar.server.issue.index.IssueIndex.search(IssueIndex.java:234) ~[sonar-server-5.6.7.jar:na]
    at org.sonar.server.issue.ws.SearchAction.doHandle(SearchAction.java:301) ~[sonar-server-5.6.7.jar:na]
    at org.sonar.server.issue.ws.SearchAction.handle(SearchAction.java:288) ~[sonar-server-5.6.7.jar:na]
    at org.sonar.server.ws.WebServiceEngine.execute(WebServiceEngine.java:107) ~[sonar-server-5.6.7.jar:na]
    at sun.reflect.GeneratedMethodAccessor384.invoke(Unknown Source) ~[na:na]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_162]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_162]
    at org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(JavaMethod.java:425) [jruby-complete-1.7.9.jar:na]
    at org.jruby.javasupport.JavaMethod.invokeDirect(JavaMethod.java:292) [jruby-complete-1.7.9.jar:na]
    at org.jruby.java.invokers.InstanceMethodInvoker.call(InstanceMethodInvoker.java:44) [jruby-complete-1.7.9.jar:na]
    at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:70) [jruby-complete-1.7.9.jar:na]
    at rubyjit.Api::JavaWsController$$index_E9F115BCB78D2E226E3015CDA52C1912485D30D07277985.__file__(/opt/sonarqube-5.6.7/web/WEB-INF/app/controllers/api/java_ws_controller.rb:34) [jruby-complete-1.7.9.jar:na]

0 个答案:

没有答案