我正在努力解決以下問題。閱讀超時/批/項目(SonarQube 4.5)
在詹金斯的聲納運動員執行日誌。
SonarQube Runner 2.4
Java 1.7.0_67 Oracle Corporation (64-bit)
Windows 7 6.1 amd64
SONAR_RUNNER_OPTS=-Xms256m -Xmx512m
INFO: Runner configuration file: D:\CI_BUILD\sonar-runner-2.4\conf\sonar-runner.properties
INFO: Project configuration file: NONE
INFO: Default locale: "ko_KR", source code encoding: "UTF-8"
INFO: Work directory: D:\CI_BUILD\jenkins_home\jobs\CAFE-CLIENT\workspace\.sonar
INFO: SonarQube Server 4.5
05:17:52.119 INFO - Load global referentials...
05:17:53.382 INFO - Load global referentials done: 1263 ms
05:17:53.414 INFO - User cache: C:\Users\pcms_build\.sonar\cache
05:17:53.445 INFO - Install plugins
05:17:54.225 INFO - Install JDBC driver
05:17:54.303 INFO - Create JDBC datasource for jdbc:jtds:sqlserver://10.240.232.145/sonardb;SelectMethod=Cursor
05:17:56.222 INFO - Initializing Hibernate
05:17:59.217 INFO - Load project referentials...
05:18:19.232 INFO - Load project referentials done: 20015 ms
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
Total time: 34.757s
Final Memory: 21M/291M
INFO: ------------------------------------------------------------------------
ERROR: Error during Sonar runner execution
ERROR: Unable to execute Sonar
ERROR: Caused by: Unable to request: /batch/project?key=CAFE-CLIENT&preview=false
ERROR: Caused by: Read timed out
ERROR:
ERROR: To see the full stack trace of the errors, re-run SonarQube Runner with the -e switch.
ERROR: Re-run SonarQube Runner using the -X switch to enable full debug logging.
Build step 'Invoke Standalone Sonar Analysis' marked build as failure
05:18:19.232信息 - 完成加載項目referentials:20015毫秒
當 「加載項目referentials做」 值是20000毫秒較大,
總是「讀超時「發生。
哪個「值」是「大於20,000毫秒」?你可以手動檢索相同的URL嗎? – 2014-10-17 06:47:56
05:18:19.232信息 - 加載項目參照:20015毫秒。錯誤發生條件:加載項目參考> 20,000毫秒 – 2014-10-17 06:58:55
有[SONAR-5849](https://jira.codehaus.org/browse/SONAR-5849)據推測在4.5.x和5中解決了這個問題。 x - 但[原始郵件線程中的最新消息](http://sonarqube.15.x6.nabble.com/SonarQube-4-5-1-Read-time-out-when-analysing-huge-project- td5029770.html#a5031548)以及我個人的經歷講述了一個不同的故事。 – zb226 2015-01-27 13:05:05