SonarQube后台任务因NoNodeAvailableException而失败

时间:2016-03-09 19:03:17

标签: c# .net sonarqube sonarqube5.3

构建服务器上的项目分析成功,但SonarQube服务器上的后台任务因NoNodeAvailableException而失败

2016.03.09 19:25:43 ERROR [o.s.s.c.t.CeWorkerCallableImpl] Failed to execute task AVNcfU8up676eFKtj1O2
java.lang.RuntimeException: java.util.concurrent.ExecutionException: org.elasticsearch.client.transport.NoNodeAvailableException: None of the configured nodes are available: []
    at com.google.common.base.Throwables.propagate(Throwables.java:160) ~[guava-17.0.jar:na]
    at org.sonar.server.es.BaseIndexer.index(BaseIndexer.java:83) ~[sonar-server-5.3.jar:na]
    at org.sonar.server.issue.index.IssueIndexer.index(IssueIndexer.java:53) ~[sonar-server-5.3.jar:na]
    at org.sonar.server.computation.step.IndexIssuesStep.execute(IndexIssuesStep.java:38) ~[sonar-server-5.3.jar:na]
    at org.sonar.server.computation.step.ComputationStepExecutor.execute(ComputationStepExecutor.java:39) ~[sonar-server-5.3.jar:na]
    at org.sonar.server.computation.taskprocessor.report.ReportTaskProcessor.process(ReportTaskProcessor.java:72) ~[sonar-server-5.3.jar:na]
    at org.sonar.server.computation.taskprocessor.CeWorkerCallableImpl.executeTask(CeWorkerCallableImpl.java:81) [sonar-server-5.3.jar:na]
    at org.sonar.server.computation.taskprocessor.CeWorkerCallableImpl.call(CeWorkerCallableImpl.java:56) [sonar-server-5.3.jar:na]
    at org.sonar.server.computation.taskprocessor.CeWorkerCallableImpl.call(CeWorkerCallableImpl.java:35) [sonar-server-5.3.jar:na]
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_66]
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_66]
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_66]
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_66]
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [na:1.8.0_66]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_66]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_66]
    at java.lang.Thread.run(Thread.java:745) [na:1.8.0_66]
Caused by: java.util.concurrent.ExecutionException: org.elasticsearch.client.transport.NoNodeAvailableException: None of the configured nodes are available: []
    at java.util.concurrent.FutureTask.report(FutureTask.java:122) [na:1.8.0_66]
    at java.util.concurrent.FutureTask.get(FutureTask.java:192) [na:1.8.0_66]
    at com.google.common.util.concurrent.Uninterruptibles.getUninterruptibly(Uninterruptibles.java:135) ~[guava-17.0.jar:na]
    at org.sonar.server.es.BaseIndexer.index(BaseIndexer.java:81) ~[sonar-server-5.3.jar:na]
    ... 15 common frames omitted
Caused by: org.elasticsearch.client.transport.NoNodeAvailableException: None of the configured nodes are available: []
    at org.elasticsearch.client.transport.TransportClientNodesService.ensureNodesAreAvailable(TransportClientNodesService.java:305) ~[elasticsearch-1.7.2.jar:na]
    at org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:200) ~[elasticsearch-1.7.2.jar:na]
    at org.elasticsearch.client.transport.support.InternalTransportClient.execute(InternalTransportClient.java:106) ~[elasticsearch-1.7.2.jar:na]
    at org.elasticsearch.client.support.AbstractClient.bulk(AbstractClient.java:167) ~[elasticsearch-1.7.2.jar:na]
    at org.elasticsearch.client.transport.TransportClient.bulk(TransportClient.java:370) ~[elasticsearch-1.7.2.jar:na]
    at org.elasticsearch.action.bulk.BulkRequestBuilder.doExecute(BulkRequestBuilder.java:166) ~[elasticsearch-1.7.2.jar:na]
    at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:91) ~[elasticsearch-1.7.2.jar:na]
    at org.sonar.server.es.BulkIndexer.executeBulk(BulkIndexer.java:223) ~[sonar-server-5.3.jar:na]
    at org.sonar.server.es.BulkIndexer.add(BulkIndexer.java:142) ~[sonar-server-5.3.jar:na]
    at org.sonar.server.issue.index.IssueIndexer.doIndex(IssueIndexer.java:86) ~[sonar-server-5.3.jar:na]
    at org.sonar.server.issue.index.IssueIndexer.doIndex(IssueIndexer.java:73) ~[sonar-server-5.3.jar:na]
    at org.sonar.server.issue.index.IssueIndexer.access$000(IssueIndexer.java:34) ~[sonar-server-5.3.jar:na]
    at org.sonar.server.issue.index.IssueIndexer$1.index(IssueIndexer.java:56) ~[sonar-server-5.3.jar:na]
    at org.sonar.server.es.BaseIndexer$1.run(BaseIndexer.java:74) ~[sonar-server-5.3.jar:na]
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_66]
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_66]
    ... 3 common frames omitted
2016.03.09 19:25:43 ERROR [o.s.s.c.t.CeWorkerCallableImpl] Executed task | project=mycompany:myproduct | id=AVNcfU8up676eFKtj1O2 | time=2312294ms

这是什么错误,我该如何解决?

而且:根据我的理解,构建服务器端的数据收集已经完成,它将所有内容都推送到SonarQube服务器。是否可以再次触发后台任务(对于已传输的数据)并查看它是否可以完成此时间?这将是非常好的,因为构建服务器需要3:30h完成,后台任务在39分钟后失败。因此,再次尝试整个事情有点乏味。

0 个答案:

没有答案