SonarQube: Fail to load Load metrics repository

Hi

I am getting the below error while running sonarqube in TFS pipeline (on prem).
I would appreciate any advice to get this running. Thanks for the help.

SonarQube version: 6.4.0

2021-12-16T07:16:38.8323554Z INFO: Load metrics repository
2021-12-16T07:17:38.9116245Z INFO: ------------------------------------------------------------------------
2021-12-16T07:17:38.9117149Z INFO: EXECUTION FAILURE
2021-12-16T07:17:38.9117364Z INFO: ------------------------------------------------------------------------
2021-12-16T07:17:38.9117512Z INFO: Total time: 1:02.733s
2021-12-16T07:17:38.9586181Z INFO: Final Memory: 11M/233M
2021-12-16T07:17:38.9615553Z INFO: ------------------------------------------------------------------------
2021-12-16T07:17:38.9620342Z ##[error]ERROR: Error during SonarQube Scanner execution
java.lang.IllegalStateException: Unable to load component class org.sonar.scanner.report.MeasuresPublisher

Caused by: java.lang.IllegalStateException: Fail to request http://sonarserver/api/metrics/search?f=name,description,direction,qualitative,custom&ps=500&p=1

Running curl http://sonarserver/api/metrics/search?f=name,description,direction,qualitative,custom&ps=500&p=1 works fine.
log_sonarqube.txt (37.0 KB)

Hi,

Welcome to the community!

Your version is past EOL. You should upgrade to either the latest version or the current LTS at your earliest convenience. Your upgrade path is:

6.4 → 6.7.7 → 7.9.6 → 8.9.5 → 9.2.3 (last step optional)

You may find the Upgrade Guide and the LTS-to-LTS Upgrade Notes helpful. If you have questions about upgrading, feel free to open a new thread for that here.

If your error persists after upgrade, please come back to us.

 
Ann