Sonar-scanner frequently reports timeout failure on the GET call to new_code_periods
- versions used: SonarQube server 8.9.2, SonarScanner 18.104.22.1682 running on Java 11.0.11 AdoptOpenJDK (64-bit), Linux 5.8.0-1043-azure amd64
- error observed (’’’
java.lang.IllegalStateException: Fail to request url: https://serverfqdn/sonar/api/new_code_periods/show.protobuf?project=prjname&branch=branchname
Caused by: java.net.SocketTimeoutException: connect timed out
- steps to reproduce:
- call to new_code_periods from Azure DevOps pipeline fails very frequently with the Timeout error as seen above
- sometimes it succeeds ("Load New Code definition (done) time=<various intervals, from 100 msecs to 3200 msecs>
- potential workaround: no workaround found
What can be done on the client to avoid the timeout failure?
If no workarounds on the client - which setting should be adjusted on the server?
Thx in advance