title: SonarQube Sanner for MSBuild error: Fail to get bootstrap index from server
body: <p>I'm running <code>SonarScanner.MSBuild.exe v4.2</code> from a build system to build my <code>.NET 4.6.1</code> project, and the server is <code>SonarQube server v6.7</code>. Both the systems are on <code>Windows Server 2012</code> with a secure connection between them. </p>
  
  <p>The connection between the 2 systems is fine, and from the scanner machine I can browse the uri <code>https://mysonarqubeserver.com/batch/index</code> without any issues. </p>
  
  <p>When I run the scanner with <code>NAnt</code> script from the build machine, the <code>begin</code> step works without any issue. But it always fails at <code>SonarQube-end</code> step saying the connection timed out! Below is the error message</p>
  
  <blockquote>
    <p>Fail to get bootstrap index from server</p>
  </blockquote>
  
  <p>The console log is given below. Can anyone help fix the problem? (the whole setup works fine when run from a local dev machine)</p>
  
  <pre><code> [exec] 22:35:05.546 INFO: SonarQube Scanner 3.1.0.1141
   [exec] 22:35:05.562 INFO: Java 1.8.0_102 Oracle Corporation (64-bit)
   [exec] 22:35:05.562 INFO: Windows Server 2012 R2 6.3 amd64
   [exec] 22:35:05.562 INFO: SONAR_SCANNER_OPTS=-Xmx1024m
   [exec] 22:35:06.531 DEBUG: keyStore is : 
   [exec] 22:35:06.531 DEBUG: keyStore type is : jks
   [exec] 22:35:06.531 DEBUG: keyStore provider is : 
   [exec] 22:35:06.531 DEBUG: init keystore
   [exec] 22:35:06.531 DEBUG: init keymanager of type SunX509
   [exec] 22:35:06.906 DEBUG: Create: C:\Users\xxxx\.sonar\cache
   [exec] 22:35:07.000 INFO: User cache: C:\Users\xxxx\.sonar\cache
   [exec] 22:35:07.000 DEBUG: Create: C:\Users\xxxx\.sonar\cache\_tmp
   [exec] 22:35:07.000 DEBUG: Extract sonar-scanner-api-batch in temp...
   [exec] 22:35:07.249 DEBUG: Get bootstrap index...
   [exec] 22:35:07.249 DEBUG: Download: https://mysonarqubeserver.com/batch/index
   [exec] 22:35:12.578 INFO: ------------------------------------------------------------------------
   [exec] 22:35:12.578 INFO: EXECUTION FAILURE
   [exec] 22:35:12.578 INFO: ------------------------------------------------------------------------
   [exec] 22:35:12.578 INFO: Total time: 7.735s
   [exec] 22:35:12.578 ERROR: SonarQube server [https://mysonarqubeserver.com] can not be reached
   [exec] 22:35:12.593 INFO: Final Memory: 5M/245M
   [exec] 22:35:12.593 INFO: ------------------------------------------------------------------------
   [exec] 22:35:12.593 ERROR: Error during SonarQube Scanner execution
   [exec] 22:35:12.593 ERROR: Unable to execute SonarQube
   [exec] 22:35:12.593 ERROR: Caused by: Fail to get bootstrap index from server
   [exec] 22:35:12.593 ERROR: Caused by: connect timed out
   [exec] 22:35:12.593 ERROR: 
   [exec] 22:35:12.593 ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging.
   [exec] Process returned exit code 1
   [exec] The SonarQube Scanner did not complete successfully
  </code></pre>