Sonar-scanner timeout on sonar/api/settings/values.protobuf endpoint

Versions

  • SonarQube: Version 9.9.4
  • Scanner: sonarsource/sonar-scanner-cli:11.0

Hello,
we are using the scanner as I mentioned above and it’s running in an extra pod only for that task. This is deployed on an OpenShift Cluster and we need to set up a proxy to connect to the SonarQube Server. I also tested it from my local computer with an identical setup with the same scanner image. So, the project key, token, and endpoint are the same. The only difference is the proxy. Our problem is, that it works perfectly from my local computer but on the OpenShift Cluster, it doesn’t work. We also can’t identify any error in our proxy log, so currently we have no clue why it does not work. The weird thing is, that the initial requests to the SonarQube Server are working well but from that point on, the scanner wants to invoke the “sonar/api/settings/values.protobuf” endpoint, it fails every time. Do you have any idea?

Hey there.

What happens when you browse that URL manually, say, in your browser?

Hey, we got it running with Version 10.0. We set the Proxy variables via SONAR_SCANNER_OPTS and this worked. I also inspected the traffic from the scanner (version 11) and it seems that it is not forwarding the requests to the proxy. Only the first initial requests are going to the proxy as you can see in the screenshot. All other requests are submitted without proxy settings. I assume the scanner does not handle the proxy internally the right way.