which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
SonarQube - 6.7.5 - Community Edition.
Sonar Scanner - 3.0.3.778
what are you trying to achieve
I ran the sonar scanner for a project having 10 java source code files . The sonar scanner completed the analysis and uploaded the report to sonar qube successfully. The reports were also generated successfully in SonarQube.
When i try to execute sonar analysis on bigger project having more than 260 java source code files. the Sonar scanner completed the analysis and during the upload of report to Sonar qube, the sonar scanner throws SocketTimeOutException is thrown.
what have you tried so far to achieve this
add property to sonar-project.properties
sonar.ws.timeout to increase the timeout
Hi Ann,
Thanks for the response.
Please find the below stack trace. i also tried using sonar.ws.timeout parameter in sonar-project.properties file.
java.lang.IllegalStateException: Fail to request http://localhost:9000/api/ce/submit?projectKey=myproject&projectName=test
at org.sonarqube.ws.client.HttpConnector.doCall(HttpConnector.java:190)
at org.sonarqube.ws.client.HttpConnector.post(HttpConnector.java:155)
at org.sonarqube.ws.client.HttpConnector.call(HttpConnector.java:114)
at org.sonar.scanner.bootstrap.ScannerWsClient.call(ScannerWsClient.java:73)
at org.sonar.scanner.report.ReportPublisher.upload(ReportPublisher.java:189)
at org.sonar.scanner.report.ReportPublisher.execute(ReportPublisher.java:135)
at org.sonar.scanner.phases.PublishPhaseExecutor.publishReportJob(PublishPhaseExecutor.java:73)
at org.sonar.scanner.phases.PublishPhaseExecutor.executeOnRoot(PublishPhaseExecutor.java:55)
at org.sonar.scanner.phases.AbstractPhaseExecutor.execute(AbstractPhaseExecutor.java:93)
at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:180)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:135)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:121)
at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:288)
at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:283)
at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:261)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:135)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:121)
at org.sonar.scanner.task.ScanTask.execute(ScanTask.java:48)
at org.sonar.scanner.task.TaskContainer.doAfterStart(TaskContainer.java:84)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:135)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:121)
at org.sonar.scanner.bootstrap.GlobalContainer.executeTask(GlobalContainer.java:121)
at org.sonar.batch.bootstrapper.Batch.doExecuteTask(Batch.java:116)
at org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:111)
at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:63)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
at com.sun.proxy.$Proxy0.execute(Unknown Source)
at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:233)
at org.sonarsource.scanner.api.EmbeddedScanner.runAnalysis(EmbeddedScanner.java:151)
at org.sonarsource.scanner.cli.Main.runAnalysis(Main.java:123)
at org.sonarsource.scanner.cli.Main.execute(Main.java:77)
at org.sonarsource.scanner.cli.Main.main(Main.java:61)
Caused by: java.net.SocketTimeoutException: timeout
at okio.Okio$4.newTimeoutException(Okio.java:227)
at okio.AsyncTimeout.exit(AsyncTimeout.java:284)
at okio.AsyncTimeout$2.read(AsyncTimeout.java:240)
at okio.RealBufferedSource.indexOf(RealBufferedSource.java:344)
at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:216)
at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:210)
at okhttp3.internal.http1.Http1Codec.readResponseHeaders(Http1Codec.java:189)
at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:75)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
at org.sonarqube.ws.client.OkHttpClientBuilder.addHeaders(OkHttpClientBuilder.java:207)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:120)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:185)
at okhttp3.RealCall.execute(RealCall.java:69)
at org.sonarqube.ws.client.HttpConnector.doCall(HttpConnector.java:188)
... 35 more
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
at java.net.SocketInputStream.read(SocketInputStream.java:171)
at java.net.SocketInputStream.read(SocketInputStream.java:141)
at okio.Okio$2.read(Okio.java:138)
at okio.AsyncTimeout$2.read(AsyncTimeout.java:236)
This is a wild guess, but maybe one of both processes (scanner or the compute engine) doesnāt have enough memory to process the bigger report.
Could you please try increasing heap size of both processes?
WARN web[AWVXE187nt9Be4C0AACa][o.s.s.w.ServletRequest] Can't read file part for parameter report
java.io.IOException: org.apache.tomcat.util.http.fileupload.FileUploadException: Unexpected EOF read on the socket
at org.apache.catalina.connector.Request.parseParts(Request.java:2911)
at org.apache.catalina.connector.Request.parseParameters(Request.java:3211)
at org.apache.catalina.connector.Request.getParameter(Request.java:1137)
at org.apache.catalina.connector.RequestFacade.getParameter(RequestFacade.java:381)
at javax.servlet.ServletRequestWrapper.getParameter(ServletRequestWrapper.java:153)
at org.sonar.server.ws.ServletRequest.readParam(ServletRequest.java:76)
at org.sonar.api.server.ws.internal.ValidatingRequest.readParamOrDefaultValue(ValidatingRequest.java:132)
at org.sonar.api.server.ws.internal.ValidatingRequest.param(ValidatingRequest.java:95)
at org.sonar.api.server.ws.internal.ValidatingRequest.param(ValidatingRequest.java:70)
at org.sonar.api.server.ws.Request.getParam(Request.java:297)
at org.sonar.server.ce.ws.SubmitAction.handle(SubmitAction.java:104)
at org.sonar.server.ws.WebServiceEngine.execute(WebServiceEngine.java:103)
at org.sonar.server.ws.WebServiceFilter.doFilter(WebServiceFilter.java:86)
at org.sonar.server.platform.web.MasterServletFilter$GodFilterChain.doFilter(MasterServletFilter.java:126)
at org.sonar.server.platform.web.MasterServletFilter.doFilter(MasterServletFilter.java:95)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.sonar.server.user.UserSessionFilter.doFilter(UserSessionFilter.java:87)
at org.sonar.server.user.UserSessionFilter.doFilter(UserSessionFilter.java:71)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.sonar.server.platform.web.SecurityServletFilter.doHttpFilter(SecurityServletFilter.java:72)
at org.sonar.server.platform.web.SecurityServletFilter.doFilter(SecurityServletFilter.java:48)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.sonar.server.platform.web.RedirectFilter.doFilter(RedirectFilter.java:61)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.sonar.server.platform.web.requestid.RequestIdFilter.doFilter(RequestIdFilter.java:63)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.sonar.server.platform.web.RootFilter.doFilter(RootFilter.java:62)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
at ch.qos.logback.access.tomcat.LogbackValve.invoke(LogbackValve.java:256)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.tomcat.util.http.fileupload.FileUploadException: Processing of multipart/form-data request failed. Unexpected EOF read on the socket
at org.apache.tomcat.util.http.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:297)
at org.apache.catalina.connector.Request.parseParts(Request.java:2864)
... 52 common frames omitted
Caused by: java.io.EOFException: Unexpected EOF read on the socket
at org.apache.coyote.http11.Http11InputBuffer.fill(Http11InputBuffer.java:722)
at org.apache.coyote.http11.Http11InputBuffer.access$300(Http11InputBuffer.java:40)
at org.apache.coyote.http11.Http11InputBuffer$SocketInputBuffer.doRead(Http11InputBuffer.java:1072)
at org.apache.coyote.http11.filters.IdentityInputFilter.doRead(IdentityInputFilter.java:140)
at org.apache.coyote.http11.Http11InputBuffer.doRead(Http11InputBuffer.java:261)
at org.apache.coyote.Request.doRead(Request.java:581)
at org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:326)
at org.apache.catalina.connector.InputBuffer.checkByteBufferEof(InputBuffer.java:642)
at org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:349)
at org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:183)
at org.apache.tomcat.util.http.fileupload.MultipartStream$ItemInputStream.makeAvailable(MultipartStream.java:977)
at org.apache.tomcat.util.http.fileupload.MultipartStream$ItemInputStream.read(MultipartStream.java:881)
at java.io.InputStream.read(Unknown Source)
at org.apache.tomcat.util.http.fileupload.util.Streams.copy(Streams.java:98)
at org.apache.tomcat.util.http.fileupload.util.Streams.copy(Streams.java:68)
at org.apache.tomcat.util.http.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:293)
... 53 common frames omitted
Youāve got a timeout on the client side and an interrupted transmission on the server sideā¦ do you have a proxy in the middle that could be interfering?
Hi Ann,
There is no proxy between the client side and server. Both Scanner and Server are on the same machine. do i need to use any different version of sonar scanner?
SonarQube - 6.7.5 - Community Edition.
Sonar Scanner - 3.0.3.778
It had something to do with the our network policy setting on our windows machine, where network connection was always timing out consistently after 20 seconds.
When I ran the same sonar scanner from one of the Linux servers, the sonar reports were uploaded successfully.
I am new to sonar and we are using sonar maven plugin for scanning and we seeing below issue, can someone please help me out in resolving the issue.
We are using sonar 7.4 (build 18908) version.
Note: Out sonar server & sonar maven scan running on two different linux server
|27-Apr-2020 03:40:16|[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.7.0.1746:sonar (default-cli) on project v3-product: Fail to request http://x.x.x.x:5555/sonarv310uc/api/ce/submit?projectKey=com.vitechinc:v3-product&projectName=%22V3%20Product: timeout: Read timed out -> [Help 1]|
|---|---|
|27-Apr-2020 03:40:16|org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.7.0.1746:sonar (default-cli) on project v3-product: Fail to request http://x.x.x.x:5555/sonarv310uc/api/ce/submit?projectKey=com.vitechinc:v3-product&projectName=%22V3%20Product|
|27-Apr-2020 03:40:16| at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)|
|27-Apr-2020 03:40:16| at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)|
|27-Apr-2020 03:40:16| at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)|
|27-Apr-2020 03:40:16| at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)|
|27-Apr-2020 03:40:16| at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)|
|27-Apr-2020 03:40:16| at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)|
|27-Apr-2020 03:40:16| at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)|
|27-Apr-2020 03:40:16| at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)|
|27-Apr-2020 03:40:16| at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)|
|27-Apr-2020 03:40:16| at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)|
|27-Apr-2020 03:40:16| at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)|
|27-Apr-2020 03:40:16| at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)|
|27-Apr-2020 03:40:16| at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)|
|27-Apr-2020 03:40:16| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)|
|27-Apr-2020 03:40:16| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)|
|27-Apr-2020 03:40:16| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)|
|27-Apr-2020 03:40:16| at java.lang.reflect.Method.invoke(Method.java:498)|
|27-Apr-2020 03:40:16| at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)|
|27-Apr-2020 03:40:16| at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)|
|27-Apr-2020 03:40:16| at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)|
|27-Apr-2020 03:40:16| at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)|
|27-Apr-2020 03:40:16|Caused by: org.apache.maven.plugin.MojoExecutionException: Fail to request http://x.x.x.x:5555/sonarv310uc/api/ce/submit?projectKey=com.vitechinc:v3-product&projectName=%22V3%20Product|
|27-Apr-2020 03:40:16| at org.sonarsource.scanner.maven.bootstrap.ScannerBootstrapper.execute(ScannerBootstrapper.java:67)|
|27-Apr-2020 03:40:16| at org.sonarsource.scanner.maven.SonarQubeMojo.execute(SonarQubeMojo.java:104)|
|27-Apr-2020 03:40:16| at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)|
|27-Apr-2020 03:40:16| at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)|
|27-Apr-2020 03:40:16| ... 20 more|
|27-Apr-2020 03:40:16|Caused by: java.lang.IllegalStateException: Fail to request http://x.x.x.x.:5555/sonarv310uc/api/ce/submit?projectKey=com.vitechinc:v3-product&projectName=%22V3%20Product|
|27-Apr-2020 03:40:16| at org.sonarqube.ws.client.HttpConnector.doCall(HttpConnector.java:201)|
|27-Apr-2020 03:40:16| at org.sonarqube.ws.client.HttpConnector.post(HttpConnector.java:156)|
|27-Apr-2020 03:40:16| at org.sonarqube.ws.client.HttpConnector.call(HttpConnector.java:115)|
|27-Apr-2020 03:40:16| at org.sonar.scanner.bootstrap.ScannerWsClient.call(ScannerWsClient.java:75)|
|27-Apr-2020 03:40:16| at org.sonar.scanner.report.ReportPublisher.upload(ReportPublisher.java:194)|
|27-Apr-2020 03:40:16| at org.sonar.scanner.report.ReportPublisher.execute(ReportPublisher.java:140)|
|27-Apr-2020 03:40:16| at org.sonar.scanner.phases.PublishPhaseExecutor.executeOnRoot(PublishPhaseExecutor.java:49)|
|27-Apr-2020 03:40:16| at org.sonar.scanner.phases.AbstractPhaseExecutor.execute(AbstractPhaseExecutor.java:79)|
|27-Apr-2020 03:40:16| at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:164)|
|27-Apr-2020 03:40:16| at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:136)|
|27-Apr-2020 03:40:16| at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:122)|
|27-Apr-2020 03:40:16| at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:319)|
|27-Apr-2020 03:40:16| at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:314)|
|27-Apr-2020 03:40:16| at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:288)|
|27-Apr-2020 03:40:16| at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:136)|
|27-Apr-2020 03:40:16| at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:122)|
|27-Apr-2020 03:40:16| at org.sonar.scanner.task.ScanTask.execute(ScanTask.java:48)|
|27-Apr-2020 03:40:16| at org.sonar.scanner.task.TaskContainer.doAfterStart(TaskContainer.java:82)|
|27-Apr-2020 03:40:16| at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:136)|
|27-Apr-2020 03:40:16| at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:122)|
|27-Apr-2020 03:40:16| at org.sonar.scanner.bootstrap.GlobalContainer.executeTask(GlobalContainer.java:131)|
|27-Apr-2020 03:40:16| at org.sonar.batch.bootstrapper.Batch.doExecuteTask(Batch.java:116)|
|27-Apr-2020 03:40:16| at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:71)|
|27-Apr-2020 03:40:16| at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)|
|27-Apr-2020 03:40:16| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)|
|27-Apr-2020 03:40:16| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)|
|27-Apr-2020 03:40:16| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)|
|27-Apr-2020 03:40:16| at java.lang.reflect.Method.invoke(Method.java:498)|
|27-Apr-2020 03:40:16| at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)|
|27-Apr-2020 03:40:16| at com.sun.proxy.$Proxy66.execute(Unknown Source)|
|27-Apr-2020 03:40:16| at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)|
|27-Apr-2020 03:40:16| at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)|
|27-Apr-2020 03:40:16| at org.sonarsource.scanner.maven.bootstrap.ScannerBootstrapper.execute(ScannerBootstrapper.java:65)|
|27-Apr-2020 03:40:16| ... 23 more|
|27-Apr-2020 03:40:16|Caused by: java.net.SocketTimeoutException: timeout|
|27-Apr-2020 03:40:16| at okio.Okio$4.newTimeoutException(Okio.java:227)|
|27-Apr-2020 03:40:16| at okio.AsyncTimeout.exit(AsyncTimeout.java:284)|
|27-Apr-2020 03:40:16| at okio.AsyncTimeout$2.read(AsyncTimeout.java:240)|
|27-Apr-2020 03:40:16| at okio.RealBufferedSource.indexOf(RealBufferedSource.java:344)|
|27-Apr-2020 03:40:16| at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:216)|
|27-Apr-2020 03:40:16| at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:210)|
|27-Apr-2020 03:40:16| at okhttp3.internal.http1.Http1Codec.readResponseHeaders(Http1Codec.java:189)|
|27-Apr-2020 03:40:16| at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:75)|
|27-Apr-2020 03:40:16| at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)|
|27-Apr-2020 03:40:16| at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)|
|27-Apr-2020 03:40:16| at org.sonarqube.ws.client.OkHttpClientBuilder.addHeaders(OkHttpClientBuilder.java:207)|
|27-Apr-2020 03:40:16| at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)|
|27-Apr-2020 03:40:16| at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45)|
|27-Apr-2020 03:40:16| at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)|
|27-Apr-2020 03:40:16| at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)|
|27-Apr-2020 03:40:16| at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93)|
|27-Apr-2020 03:40:16| at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)|
|27-Apr-2020 03:40:16| at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)|
|27-Apr-2020 03:40:16| at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)|
|27-Apr-2020 03:40:16| at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)|
|27-Apr-2020 03:40:16| at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:120)|
|27-Apr-2020 03:40:16| at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)|
|27-Apr-2020 03:40:16| at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)|
|27-Apr-2020 03:40:16| at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:185)|
|27-Apr-2020 03:40:16| at okhttp3.RealCall.execute(RealCall.java:69)|
|27-Apr-2020 03:40:16| at org.sonarqube.ws.client.HttpConnector.doCall(HttpConnector.java:199)|
|27-Apr-2020 03:40:16| ... 55 more|
|27-Apr-2020 03:40:16|Caused by: java.net.SocketTimeoutException: Read timed out|
|27-Apr-2020 03:40:16| at java.net.SocketInputStream.socketRead0(Native Method)|
|27-Apr-2020 03:40:16| at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)|
|27-Apr-2020 03:40:16| at java.net.SocketInputStream.read(SocketInputStream.java:170)|
|27-Apr-2020 03:40:16| at java.net.SocketInputStream.read(SocketInputStream.java:141)|
|27-Apr-2020 03:40:16| at okio.Okio$2.read(Okio.java:138)|
|27-Apr-2020 03:40:16| at okio.AsyncTimeout$2.read(AsyncTimeout.java:236)|
Any time you get a network error at the end of analysis when the analysis report is being submitted to the server, it is going to be something to do with your network. Maybe itās your proxy, maybe itās a network policy, maybe itās something else. But itās on or in your network, and has very little to do with SonarQube or the analysis itself.