Error SonarQube server can not be reached and PKIX path building failed

we have sonar for multiple services however the below issue is happening only for one service ,please do the needful.

ERROR: SonarQube server [] can not be reached
INFO: ------------------------------------------------------------------------
INFO: ------------------------------------------------------------------------
INFO: Total time: 0.447s
INFO: Final Memory: 4M/24M
INFO: ------------------------------------------------------------------------
ERROR: Error during SonarQube Scanner execution
ERROR: Unable to execute SonarQube
ERROR: Caused by: Fail to get bootstrap index from server
ERROR: Caused by: PKIX path building failed: unable to find valid certification path

Hey there.

It looks like the scanner isn’t able to trust the certificate installed on your SonarQube server (which allows your SonarQube server to be served over HTTPS).

Is there anything different about this environment than the ones in which your other analyses are running? Different built agents, different versions of Java installed…

Specifically, you might start by comparing the environment information provided by the start of the scanner logs (in debug mode, sonar-scanner -X

08:59:43.128 INFO: SonarScanner
08:59:43.128 INFO: Java Eclipse Adoptium (64-bit)
08:59:43.128 INFO: Mac OS X 13.1 x86_64
08:59:43.357 DEBUG: keyStore is : 
08:59:43.358 DEBUG: keyStore type is : pkcs12
08:59:43.358 DEBUG: keyStore provider is : 
08:59:43.358 DEBUG: init keystore
08:59:43.358 DEBUG: init keymanager of type SunX509
08:59:43.588 DEBUG: Create: /Users/colin/.sonar/cache
08:59:43.590 INFO: User cache: /Users/colin/.sonar/cache
08:59:43.590 DEBUG: Create: /Users/colin/.sonar/cache/_tmp
08:59:43.595 DEBUG: Extract sonar-scanner-api-batch in temp...
08:59:43.602 DEBUG: Get bootstrap index...
08:59:43.602 DEBUG: Download: http://localhost:9000/batch/index

And please remember to include the information asked for in the template post

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)