SonarScanner for .NET: SonarScanner for MSBuild 5.13
Connected to self-hosted SonarQube 10.1 on https
When setting ‘sonar.host.url’ in SonarQube.Analysis.xml file, if url is https then scanner fails in fetching server version, because unexpected character (') is at the end of request:
It sounds like whatever is serving your SonarQube over HTTPS is returning the 401 (you can confirm this by checking if the 401 appears in your SonarQube server’s access.log file).
The next step would be consulting the logs of whatever is serving your SonarQube over HTTPS (typically for a Windows server that would be something like IIS)
Hi Colin,s
the address is malformed in the very beginning, the request gets to the SonarQube server (you can see the access.log entry in my first message), but it can not be served:
If it’s only happening over HTTPS, it sounds like that “in the middle” thing (IIS?) could be adding the ' to the end of the request. I would review your configuration.
sonarqube server is on ubuntu with nginx as reverse proxy, the scanner is on windows.
“sonar.host.url” has been tested with the same address, one time with ‘https’ and the other time with ‘http’.
I don’t think this is caused by nginx, because I see the scanner trying to connect when the begin command is launched (by gitlab runner), and in the logs the address is already malformed.