Hi guys,
I have an issue with SonarQube.When sonar scanner finish analysis code,we found the following errors:
Fail to process request http://***.***.***.***:9000/api/ce/submit
I saw the web.log in the sonarqube server, I found the following errors:
[2019-02-27 19:09:50.350] 11:09:50.199 INFO: CPD calculation finished
[2019-02-27 19:09:52.248] 11:09:52.143 INFO: Analysis report generated in 1598ms, dir size=30 MB
[2019-02-27 19:10:02.179] 11:10:00.441 INFO: Analysis reports compressed in 8298ms, zip size=15 MB
[2019-02-27 19:10:02.179] 11:10:00.441 INFO: Analysis report generated in /devcloud/slavespace/slave1/workspace/job_d401afa6-e93453b3-811e-424a-aa17-cb9081fd1eb1_227190711/code/.scannerwork/scanner-report
[2019-02-27 19:10:02.179] 11:10:00.441 DEBUG: Upload report
[2019-02-27 19:10:12.104] 11:10:10.550 INFO: ------------------------------------------------------------------------
[2019-02-27 19:10:12.104] 11:10:10.550 INFO: EXECUTION FAILURE
[2019-02-27 19:10:12.104] 11:10:10.550 INFO: ------------------------------------------------------------------------
[2019-02-27 19:10:12.104] 11:10:10.551 INFO: Total time: 2:48.913s
[2019-02-27 19:10:12.104] 11:10:10.678 INFO: Final Memory: 31M/846M
[2019-02-27 19:10:12.104] 11:10:10.678 INFO: ------------------------------------------------------------------------
[2019-02-27 19:10:12.104] 11:10:10.678 ERROR: Error during SonarQube Scanner execution
[2019-02-27 19:10:12.104] java.lang.IllegalStateException: Fail to request http://10.10.20.91:9000/api/ce/submit?projectKey=d401afa6434e453e8445690f85fe0350&projectName=d401afa6434e453e8445690f85fe0350
[2019-02-27 19:10:12.104] at org.sonarqube.ws.client.HttpConnector.doCall(HttpConnector.java:190)
[2019-02-27 19:10:12.104] at org.sonarqube.ws.client.HttpConnector.post(HttpConnector.java:155)
[2019-02-27 19:10:12.104] at org.sonarqube.ws.client.HttpConnector.call(HttpConnector.java:114)
[2019-02-27 19:10:12.104] at org.sonar.scanner.bootstrap.ScannerWsClient.call(ScannerWsClient.java:73)
[2019-02-27 19:10:12.104] at org.sonar.scanner.report.ReportPublisher.upload(ReportPublisher.java:194)
[2019-02-27 19:10:12.104] at org.sonar.scanner.report.ReportPublisher.execute(ReportPublisher.java:140)
[2019-02-27 19:10:12.104] at org.sonar.scanner.phases.PublishPhaseExecutor.executeOnRoot(PublishPhaseExecutor.java:49)
[2019-02-27 19:10:12.104] at org.sonar.scanner.phases.AbstractPhaseExecutor.execute(AbstractPhaseExecutor.java:79)
[2019-02-27 19:10:12.104] at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:166)
[2019-02-27 19:10:12.104] at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:136)
[2019-02-27 19:10:12.104] at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:122)
[2019-02-27 19:10:12.104] at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:300)
[2019-02-27 19:10:12.104] at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:295)
[2019-02-27 19:10:12.104] at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:269)
[2019-02-27 19:10:12.104] at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:136)
[2019-02-27 19:10:12.104] at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:122)
[2019-02-27 19:10:12.104] at org.sonar.scanner.task.ScanTask.execute(ScanTask.java:48)
[2019-02-27 19:10:12.104] at org.sonar.scanner.task.TaskContainer.doAfterStart(TaskContainer.java:82)
[2019-02-27 19:10:12.104] at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:136)
[2019-02-27 19:10:12.104] at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:122)
[2019-02-27 19:10:12.104] at org.sonar.scanner.bootstrap.GlobalContainer.executeTask(GlobalContainer.java:131)
[2019-02-27 19:10:12.104] at org.sonar.batch.bootstrapper.Batch.doExecuteTask(Batch.java:116)
[2019-02-27 19:10:12.104] at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:71)
[2019-02-27 19:10:12.104] at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
[2019-02-27 19:10:12.104] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2019-02-27 19:10:12.104] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[2019-02-27 19:10:12.105] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[2019-02-27 19:10:12.105] at java.lang.reflect.Method.invoke(Method.java:498)
[2019-02-27 19:10:12.105] at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
[2019-02-27 19:10:12.105] at com.sun.proxy.$Proxy0.execute(Unknown Source)
[2019-02-27 19:10:12.105] at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:171)
[2019-02-27 19:10:12.105] at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:128)
[2019-02-27 19:10:12.105] at org.sonarsource.scanner.cli.Main.execute(Main.java:111)
[2019-02-27 19:10:12.105] at org.sonarsource.scanner.cli.Main.execute(Main.java:75)
[2019-02-27 19:10:12.105] at org.sonarsource.scanner.cli.Main.main(Main.java:61)
[2019-02-27 19:10:12.105] Caused by: java.net.SocketTimeoutException: timeout
[2019-02-27 19:10:12.105] at okio.Okio$4.newTimeoutException(Okio.java:227)
[2019-02-27 19:10:12.105] at okio.AsyncTimeout.exit(AsyncTimeout.java:284)
[2019-02-27 19:10:12.105] at okio.AsyncTimeout$1.write(AsyncTimeout.java:183)
[2019-02-27 19:10:12.105] at okio.RealBufferedSink.emitCompleteSegments(RealBufferedSink.java:171)
[2019-02-27 19:10:12.105] at okio.RealBufferedSink.write(RealBufferedSink.java:41)
[2019-02-27 19:10:12.105] at okhttp3.internal.http1.Http1Codec$FixedLengthSink.write(Http1Codec.java:286)
[2019-02-27 19:10:12.105] at okio.RealBufferedSink.emitCompleteSegments(RealBufferedSink.java:171)
[2019-02-27 19:10:12.105] at okio.RealBufferedSink.writeAll(RealBufferedSink.java:99)
[2019-02-27 19:10:12.105] at okhttp3.RequestBody$3.writeTo(RequestBody.java:118)
[2019-02-27 19:10:12.105] at okhttp3.MultipartBody.writeOrCountBytes(MultipartBody.java:171)
[2019-02-27 19:10:12.105] at okhttp3.MultipartBody.writeTo(MultipartBody.java:113)
[2019-02-27 19:10:12.105] at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:62)
[2019-02-27 19:10:12.105] at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
[2019-02-27 19:10:12.105] at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
[2019-02-27 19:10:12.105] at org.sonarqube.ws.client.OkHttpClientBuilder.addHeaders(OkHttpClientBuilder.java:207)
[2019-02-27 19:10:12.105] at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
[2019-02-27 19:10:12.105] at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45)
[2019-02-27 19:10:12.105] at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
[2019-02-27 19:10:12.105] at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
[2019-02-27 19:10:12.105] at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93)
[2019-02-27 19:10:12.105] at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
[2019-02-27 19:10:12.105] at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
[2019-02-27 19:10:12.105] at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
[2019-02-27 19:10:12.105] at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
[2019-02-27 19:10:12.105] at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:120)
[2019-02-27 19:10:12.105] at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
[2019-02-27 19:10:12.105] at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
[2019-02-27 19:10:12.105] at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:185)
[2019-02-27 19:10:12.105] at okhttp3.RealCall.execute(RealCall.java:69)
[2019-02-27 19:10:12.105] at org.sonarqube.ws.client.HttpConnector.doCall(HttpConnector.java:188)
[2019-02-27 19:10:12.105] ... 34 more
[2019-02-27 19:10:12.105] Caused by: java.net.SocketException: Socket closed
[2019-02-27 19:10:12.105] at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:118)
[2019-02-27 19:10:12.105] at java.net.SocketOutputStream.write(SocketOutputStream.java:155)
[2019-02-27 19:10:12.105] at okio.Okio$1.write(Okio.java:78)
[2019-02-27 19:10:12.105] at okio.AsyncTimeout$1.write(AsyncTimeout.java:179)
[2019-02-27 19:10:12.105] ... 61 more