I am getting below error Execution failed for task ':sonarqube'. > Fail to download plugin [csharp]

Execution failed for task ‘:sonarqube’.

Fail to download plugin [csharp]

Caused by: java.lang.IllegalStateException: Fail to download plugin [csharp] into /Users/Z002KR5/.sonar/_tmp/fileCache7404003248879875221.tmp
at org.sonar.scanner.bootstrap.PluginFiles.downloadBinaryTo(PluginFiles.java:158)
at org.sonar.scanner.bootstrap.PluginFiles.download(PluginFiles.java:114)

i am trying SonarQube with gradle and Language is Kotlin. property “sonar.host.url”,
property " sonar.login",
property “sonar.password” ,
property “sonar.language”,

Hi @rahulmendiratta ,

Welcome to SonarSource Community! :sonarsource:

The error you are encountering seems like a network issue. Can you share some more context about this error:

  • Does it happen for an individual or many projects?
  • Does it happen on some specific SonarQube environment or all of them?
  • Does it happen on some particular build/scanning agent?
  • Can you try running an example scan from your workstation connecting to the same SonarQube server?

Basically, are you able to reproduce problem elsewhere? If so, then this pattern may need to fixed with your network team or network connection.

In order to assist you further, I will need debug logs. Can you add -d to your gradle command to get debug level logs? For example, ./gradlew clean build -d sonarqube

To keep the Gradle logs small, just copy and paste the lines that say org.sonarqube.gradle.SonarQubeTask here.


Thanks, I am able to fix it, its a Network issue with VPN… Once that is fix, i am able to run with ./gradlew clean build.

Thanks a lot for the help.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.