We have an installation of SonarQube Developer Editionv9.9.6 (build 92038).
And is using latest version of sonar-scanner for npm 4.2.5 and sonar-scanner CLI 6.2.1.4610.
When starting sonar-scanner and it’s doing the initial call to the version API, it fails with these messages
[INFO] Bootstrapper: Platform: linux x64
[DEBUG] Bootstrapper: Detecting proxy: No proxy detected
[DEBUG] Bootstrapper: Using truststore at truststore2.p12
[DEBUG] Bootstrapper: 108 CA certificates found in truststore
[INFO] Bootstrapper: Server URL: https://hostname.domain.no
[INFO] Bootstrapper: Version: 4.2.5
[DEBUG] Bootstrapper: Check if Server supports JRE provisioning
[DEBUG] Bootstrapper: Detecting SonarQube server version
[DEBUG] Bootstrapper: Fetching API V2 /analysis/version
[DEBUG] Bootstrapper: Unable to fetch API V2 /analysis/version: AxiosError: Request failed with status code 400. Falling back on /api/server/version
[DEBUG] Bootstrapper: Not using axios instance for https://hostname.domain.no/api/server/version
[ERROR] Bootstrapper: Failed to fetch server version: AxiosError: Request failed with status code 400
[ERROR] Bootstrapper: Verify that https://hostname.domain.no is a valid SonarQube server
[ERROR] Bootstrapper: An error occurred: AxiosError: Request failed with status code 400
We have tracked it down to be because of the proxy-settings.
We have these environment-variables set:
HTTP_PROXY = http://proxy.domain.no:8080
HTTPS_PROXY = http://proxy.domain.no:8080
NO_PROXY = domain.no
If we remove them, it works. We suspect that the NO_PROXY is not respected.