- upload test results - timeout


(David Podhola) #1

Analysis runs fine, unable to upload the test result to

  • versions used: sonarqube-gradle-plugin:2.6.2
  • error observed Execution failed for task ':sonarqube' - Fail to request - timeout at okio.Okio$4.newTimeoutException(
  • steps to reproduce: clone, run gradle sonarqube with the correct sona.organizetion setup for
  • potential workaround

(Mark Grebler) #2

I’m also experiencing a similar issue, but I’m using the linux sonar scanner described at

INFO: SonarQube Scanner
INFO: Java 1.8.0_121 Oracle Corporation (64-bit)
INFO: Linux 4.15.0-30-generic amd64

The error that I get is as follows:

11:40:56.725 ERROR: Error during SonarQube Scanner execution
java.lang.IllegalStateException: Fail to request<org_id>&projectKey=<project_key>

Caused by: timeout
    at okio.Okio$4.newTimeoutException(
    at okio.AsyncTimeout.exit(
    at okio.AsyncTimeout$1.write(

Caused by: Connection closed by remote host
    at okio.Okio$1.write(

(Xavier Bourguignon) #3

Hi Mark,

What’s the timezone of 11:40:56.725 ? Will be easier to investigate in our logs.

(Xavier Bourguignon) #4

Hi David,

Could you specify the time when it happens ?

(Mark Grebler) #5

Australian Eastern Standard Time (GMT+10)

(Xavier Bourguignon) #6

After investigation, I cannot find any incident on our side.
I suspect a network issue between your CI environment and SonarCloud.

Is it systematic ?

(Hamza) #7

I’m experiencing the same issue on an android project

Fail to request

Caused be a timeout

@xbourguignon yes it’s systematic.


(Xavier Bourguignon) #8

Could you share the logs ?

(Hamza) #9


my issue was fixed by using a VPN (France VPN), the git repository is accessible only via this VPN, so, either sonarcloud was not working from my network or it needs access to git to retrieve commits data.