We are trying to run sonarqube (msbuild) to scan the source code.using MSBuild.SonarQube.Runner.exe. After the end command it shows execution failure with no obvious reason why. Below is the log:
SONAR_SCANNER_OPTS is not configured. Setting it to the default value of -Xmx1024m
Calling the SonarQube Scanner...
Setting environment variable 'SONAR_SCANNER_OPTS'. Value: -Xmx1024m
Executing file C:\ProgramData\chocolatey\lib\msbuild-sonarqube-runner\tools\sonar-scanner-3.0.3.778\bin\sonar-scanner.bat
Args: -Dsonar.scanAllFiles=true -Dproject.settings=C:\projects\build\.sonarqube\out\sonar-project.properties <sensitive data removed>
Working directory: C:\projects\build
Timeout (ms):-1
Process id: 3432
INFO: Scanner configuration file: C:\ProgramData\chocolatey\lib\msbuild-sonarqube-runner\tools\sonar-scanner-3.0.3.778\bin\..\conf\sonar-scanner.properties
INFO: Project root configuration file: C:\projects\build\.sonarqube\out\sonar-project.properties
10:29:07.840 INFO: SonarQube Scanner 3.0.3.778
10:29:07.856 INFO: Java 19.0.1 Oracle Corporation (64-bit)
10:29:07.856 INFO: Windows Server 2016 10.0 amd64
10:29:07.856 INFO: SONAR_SCANNER_OPTS=-Xmx1024m
10:29:08.809 DEBUG: keyStore is :
10:29:08.809 DEBUG: keyStore type is : pkcs12
10:29:08.809 DEBUG: keyStore provider is :
10:29:08.809 DEBUG: init keystore
10:29:08.809 DEBUG: init keymanager of type SunX509
10:29:09.246 INFO: User cache: C:\Users\Administrator\.sonar\cache
10:29:09.246 DEBUG: Extract sonar-scanner-api-batch in temp...
10:29:09.264 DEBUG: Get bootstrap index...
10:29:09.264 DEBUG: Download: http://xx.xxx.xxx.57/batch/index
10:29:09.935 DEBUG: Get bootstrap completed
10:29:09.935 DEBUG: Create isolated classloader...
10:29:10.090 DEBUG: Start temp cleaning...
10:29:10.106 DEBUG: Temp cleaning done
10:29:10.106 DEBUG: Execution getVersion
10:29:10.187 DEBUG: Execution start
10:29:11.512 INFO: Issues mode
Run Step - End: Ends SonarQube analysis
Your version is very much past EOL. You should upgrade to either the latest version or the current LTS at your earliest convenience. Your upgrade path is:
6.7.1 → 7.9.6 → 8.9.10 → 9.8 (last step optional)
(Note that the release of a new LTS, 9.9, is expected on 7 Feb 2023.)