SonarQube - timeout ERROR: Caused by: Socket closed

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)

sonar-scanner-cli-3.3.0.1492
SonarQube Version 7.6.0.21501
build-wrapper-win-x86-64

  • what are you trying to achieve:
    scan the project, after analyzing, i see at report file but is not transmitted to the server due to an error:
    timeout ERROR: Caused by: Socket closed.
Summary

| Compile

5 error(s), 0 warning(s)

Compile - 5 error(s), 0 warning(s)

ERROR: UTF-16 (LE) byte order mark detected in 'C:/Agent1/_work/4/s/Sources/Common/Infrastructures/GLibs/Projects/GLibs.Gipp/../../Gipp/GippBuffer.cpp', but encoding is not supported

ERROR: UTF-16 (LE) byte order mark detected in 'C:/Agent1/_work/4/s/Sources/Common/Infrastructures/GLibs/Projects/GLibs.Gipp/../../Gipp/GippMath.cpp', but encoding is not supported

ERROR: Failed to delete temp folder java.nio.file.DirectoryNotEmptyException: C:\Agent1\_work\4\s\.scannerwork\.sonartmp at sun.nio.fs.WindowsFileSystemProvider.implDelete(Unknown Source) at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(Unknown Source) at java.nio.file.Files.deleteIfExists(Unknown Source) at org.sonar.api.utils.internal.DefaultTempFolder$DeleteRecursivelyFileVisitor.postVisitDirectory(DefaultTempFolder.java:121) at org.sonar.api.utils.internal.DefaultTempFolder$DeleteRecursivelyFileVisitor.postVisitDirectory(DefaultTempFolder.java:110) at java.nio.file.Files.walkFileTree(Unknown Source) at java.nio.file.Files.walkFileTree(Unknown Source) at org.sonar.api.utils.internal.DefaultTempFolder.clean(DefaultTempFolder.java:97) at org.sonar.api.utils.internal.DefaultTempFolder.stop(DefaultTempFolder.java:106) at org.sonar.scanner.analysis.AnalysisTempFolderProvider.stop(AnalysisTempFolderProvider.java:61) at org.picocontainer.DefaultPicoContainer.stopAdapters(DefaultPicoContainer.java:1048) at org.picocontainer.DefaultPicoContainer.stop(DefaultPicoContainer.java:803) at org.sonar.core.platform.ComponentContainer.stopComponents(ComponentContainer.java:165) at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:124) at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:126) at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:136) at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:122) at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:73) at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:67) at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) 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:185) at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:137) at org.sonarsource.scanner.cli.Main.execute(Main.java:111) at org.sonarsource.scanner.cli.Main.execute(Main.java:75) at org.sonarsource.scanner.cli.Main.main(Main.java:61)

ERROR: Error during SonarQube Scanner execution ERROR: Fail to request [http://tuyokn-svsq:9000/api/ce/submit?projectKey=R94&projectName=R94&characteristic=branch%3Dbranches/Rapid/Rapid_9.4&characteristic=branchType%3DSHORT](https://urldefense.proofpoint.com/v2/url?u=http-3A__tuyokn-2Dsvsq-3A9000_api_ce_submit-3FprojectKey-3DR94-26projectName-3DR94-26characteristic-3Dbranch-253Dbranches_Rapid_Rapid-5F9.4-26characteristic-3DbranchType-253DSHORT&d=DwMFaQ&c=rKcR87XD2bn3vfHr9ZGyMg&r=LagvfkZSidhs-yVMCWG9gTy47hs06V34iEue8L5MoPA&m=6TGKJw9R6FXGYCUKfgvEmb1sq7ASfTSqH3G-tQDpE-w&s=Jiw2ddDqJ0Ap2jb1f-zO0xWPkQemJ5h6UEJCDG8nzCo&e=) ERROR: Caused by: timeout ERROR: Caused by: Socket closed ERROR: ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging.

C:\Agent1\_work\_tasks\SonarQubeAnalyze_6d01813a-9589-4b15-8491-8164aeb38055\4.6.0\sonar-scanner\bin\sonar-scanner.bat failed with return code: 1
  • what have you tried so far to achieve this:

Send report to SonarQube server

Hi,

This is at root a timeout error. Is/was your server still up and responding? Are there any errors in its logs? Do you have a proxy between the analysis agent and the server that might have interfered with a POST?

 
Ann

Hi Ann, yes my server still up and responding and i don’t have proxy between the analysis agent and the server.I do not see any special policy installed on the server

Hi,

Were there any errors in the server logs?

 
Ann

In TFS in code analysis