我们有 Jenkins 1.509.2 + Sonar 3.6.1。并收到以下错误,我们升级后的 Sonar 3.4.1 没有相同的错误。你能建议我们如何解决这个问题吗?
Exception in thread "main" org.sonar.runner.RunnerException: org.sonar.api.utils.SonarException: Unable to request: /batch_bootstrap/properties
at org.sonar.runner.Runner.delegateExecution(Runner.java:288)
at org.sonar.runner.Runner.execute(Runner.java:151)
at org.sonar.runner.Main.execute(Main.java:84)
at org.sonar.runner.Main.main(Main.java:56)
Caused by: org.sonar.api.utils.SonarException: Unable to request: /batch_bootstrap/properties
at org.sonar.batch.bootstrap.ServerClient.request(ServerClient.java:82)
at org.sonar.batch.bootstrap.ServerClient.request(ServerClient.java:72)
at org.sonar.batch.bootstrap.BatchSettings.downloadSettings(BatchSettings.java:96)
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:150)
at java.net.SocketInputStream.read(SocketInputStream.java:121)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:275)
at java.io.BufferedInputStream.read(BufferedInputStream.java:334)
每次都没有收到错误 - 更像是 90%。在我升级了所有已安装的插件后,错误消失了,第二天 - 它又出现了。它出现在所有项目中,无论大小。Jenkins 服务器与大多数项目的 Sonar 服务器相距甚远(网络方面),但我们也有与 Sonar 位于同一位置的项目 - 并且仍然收到此问题。是否有至少增加超时的解决方法?