Versions used:
SonarQube v7.9.2 LTS, sonar-maven-plugin-3.7.0.1746, sonar-scanner-cli- 4.3.0.2102, PostgreSQL-10.x
We upgraded our Sonarqube from v6.7.5 LTS to v7.9.2 LTS.
We were able to access our sonar scan report files using the following URL, but it is not working after upgrade.
http://sonar host/batch/project.protobuf?key=&branch=master
FYI, We tried to access the above URL on our localhost and VIP as well, but both are not reachable.
This URL working on other instances which are v6.7.5
ERROR: Error during SonarScanner execution
java.lang.IllegalStateException: java.lang.IllegalStateException: Fail to request https://host/batch/project.protobuf?key=key&branch=master
at org.sonar.scanner.scan.filesystem.MetadataGenerator.setMetadata(MetadataGenerator.java:72)
at org.sonar.scanner.scan.filesystem.FileIndexer.lambda$indexFile$0(FileIndexer.java:134)
at org.sonar.api.batch.fs.internal.DefaultInputFile.checkMetadata(DefaultInputFile.java:91)
at org.sonar.api.batch.fs.internal.DefaultInputFile.charset(DefaultInputFile.java:230)
On Maven plugin
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.7.0.1746:sonar (default-cli) on project config: Analysis cancelled: java.lang.IllegalStateException: Fail to request https://host/batch/project.protobuf?key=key&branch=master: timeout: Read timed out -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.7.0.1746:sonar (default-cli) on project config: Analysis cancelled
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
Also, I found the following differences in access.log file
SQ 6.7.5 Log:
10.xxx.xxx.xxx - - [03/Apr/2020:23:25:49 +0000] "GET /batch/project.protobuf?key=key&branch=master HTTP/1.1" 200 4068 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36" "AXCnvQFcTs4LUFHzxxxxx"
SQ v7.9.2 Log:
10.xx.xxx.xx - - [03/Apr/2020:23:28:14 +0000] "GET /favicon.ico HTTP/1.1" 200 5430 "https://sonar host/batch/project.protobuf?key=xxxx&branch=master" "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36" "AXEdyuYqleK1Ozxxxxx"
Please suggest us if we have to do any configuration changes to access this on v7.9.2