Unable to reach SonarQube from Azure pipelines

Few Weeks’s back there was server patching where java version was upgraded from 17 to 22 after which we are facing issues. We restored previous server version backup, still we couldn’t connect to SonarQube from our azure pipelines

The error we are seeing in logs is PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
javax.net.ssl.SSLHandshakeException: PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed

We tried below fix PKIX path building failed: SunCertPathBuilderException: unable to find valid certification path to requested target (magicmonster.com) among others but still issue persist

Current SonarQube version: 9.9.1.69595
Current Java version: 17.0.7

This is blocking our planned releases, requesting immediate support.

Hi,

Welcome to the community!

The docs should help.

 
Ann

Hi G Ann Campbell,

Thanks for sharing this document, but still, we have some queries.

can we setup a zoom or teams call?

Regards
Dheeraj Sharma

Hi Dheeraj,

We don’t do calls. What needs clarifying? And feel free to create new threads for new questions. (We try to keep it to one topic per thread. Otherwise it can get messy, fast.)

 
Ann

Hi G Ann,

For Below is the error logs,

PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
javax.net.ssl.SSLHandshakeException: PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed

where we need to check these certs. and which cert its referring?

Regards
Dheeraj Sharma

Hi Dheeraj,

The PKIX error is raised when you’ve configured your SonarQube server with HTTPS with a self-signed certificate. That same self-signed certificate is what you need to make available to analysis. The docs I pointed you to tell you how for each SonarScanner variety.

 
HTH,
Ann