Fail to download plugin [ruby]

scanner

(ChatHong Hoo) #1

Anyone can shed some light on this? Scanning php code using sonar-scanner-cli

INFO: Scanner configuration file: C:\Program Files\sonar-scanner-cli-3.2.0.1227-windows\sonar-scanner-3.2.0.1227-windows\bin\..\conf\sonar-scanner.properties
INFO: Project root configuration file: NONE
INFO: SonarQube Scanner 3.2.0.1227
INFO: Java 1.8.0_121 Oracle Corporation (64-bit)
INFO: Windows 10 10.0 amd64
INFO: User cache: C:\Users\xxx\.sonar\cache
INFO: SonarQube server 7.4.0
INFO: Publish mode
INFO: Load global settings
INFO: Load global settings (done) | time=1790ms
INFO: Server id: xxxxxxxxxxxxx
INFO: User cache: C:\Users\xxx\.sonar\cache
INFO: Load/download plugins
INFO: Load plugins index
INFO: Load plugins index (done) | time=474ms
INFO: Load/download plugins (done) | time=332152ms
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 12:25.115s
INFO: Final Memory: 38M/130M
INFO: ------------------------------------------------------------------------
ERROR: Error during SonarQube Scanner execution
ERROR: Fail to download plugin [ruby] into C:\Users\xxxx\.sonar\_tmp\fileCache5056154294165754183.tmp
ERROR: Caused by: timeout
ERROR: Caused by: Read timed out
ERROR:
ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging.

C:\Program Files\sonar-scanner-cli-3.2.0.1227-windows\sonar-scanner-3.2.0.1227-windows\bin>

Error while trying to run sonar scanner
(Nicolas Bontoux) #2

Hi,

I would recommend following this advice from the log:

ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging.

That should let you see a full stack trace. Ultimately though, this error:

Might indicate a network connectivity issue. If so then you’ll have to look into network setup and why does download fail.