Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin Read timed out


We use bamboo sonar plugin and it failed with the following Read time out, any idea what went wrong?
I have increased the HTTP socket timeout on bamboo to 3 mins, however still experiencing the READ time out.
Here is an excerpt from the bamboo log.


--build	01-Feb-2020 13:43:40	[INFO] CPD calculation finished
build	01-Feb-2020 13:44:26	[INFO] Analysis report generated in 43405ms, dir size=483 MB
build	01-Feb-2020 13:45:32	[INFO] Analysis reports compressed in 65295ms, zip size=157 MB
build	01-Feb-2020 13:46:53	[INFO] ------------------------------------------------------------------------
build	01-Feb-2020 13:46:53	[INFO] BUILD FAILURE
build	01-Feb-2020 13:46:53	[INFO] ------------------------------------------------------------------------
build	01-Feb-2020 13:46:53	[INFO] Total time: 01:38 h
build	01-Feb-2020 13:46:53	[INFO] Finished at: 2020-02-01T19:46:53Z
build	01-Feb-2020 13:46:53	[INFO] Final Memory: 92M/3077M
build	01-Feb-2020 13:46:53	[INFO] ------------------------------------------------------------------------
build	01-Feb-2020 13:46:53	[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin: (default-cli) on project insite-web-app: Fail to request https://<URL>/api/ce/submit?projectKey=com.fg.insite:insite-web-app&projectName=insite-web-app&characteristic=branch%3Drelease/2020.02.0.0&characteristic=branchType%3DLONG: Read timed out -> [Help 1]
build	01-Feb-2020 13:46:53	[ERROR] 
build	01-Feb-2020 13:46:53	[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
build	01-Feb-2020 13:46:53	[ERROR] Re-run Maven using the -X switch to enable full debug logging.
build	01-Feb-2020 13:46:53	[ERROR] 
build	01-Feb-2020 13:46:53	[ERROR] For more information about the errors and possible solutions, please read the following articles:
build	01-Feb-2020 13:46:53	[ERROR] [Help 1]
simple	01-Feb-2020 13:46:54	Failing task since return code of [C:\apache-maven-3.5.2\bin\mvn.cmd\<FOLDER>\Temp\IN-SQ113-JOB1 sonar:sonar -Dsonar.sources=pom.xml,src\main\webapp\scripts,src\main\java<URL> -Dsonar.login=**** -Dsonar.password=****] was 1 while expected 0

Hi Allan,

Do you have something on your network between Bamboo and SonarQube that could be interfering?


yes, there is firewall between Bamboo & SonarQube.
However other Sonar Builds were okay, only this particular build was having an issue.

Also I have increased the http socket timeout at the bamboo master side, still having the same issue.

Does anyone have the same issue? is it because our source code base is too large? >2M


This probably is related to the size of your code base. More LOC -> bigger analysis report. And I still come back to your firewall. You should double-check whether there’s a size limit imposed there. That’s typically the problem in these cases.