Bitbucket Cloud PR decoration not happening : Error : java.net.ConnectException: Network is unreachable (connect failed)

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    sonarqube Developer edition - 9.2
  • what are you trying to achieve
    PR Decoration in BitBucket Cloud
  • what have you tried so far to achieve this
    Searched in logs and found out that in Compute Engine logs getting below error.
    Caused by: java.net.ConnectException: Network is unreachable (connect failed)

Hi,

Welcome to the community!

In the UI you have the ability to test your DevOps Platform connection: Administration → DevOps Platform Integrations → Bitbucket → Check configuration.

What happens when you do that?

 
Ann

Hi Ann,
Thanks for the reply.

We are seeing Configuration is valid with a green tick mark.
In Compute engine logs I found this error :
Suppressed: javax.net.ssl.SSLException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:133)
at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:349)
at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:292)
at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:287)
at java.base/sun.security.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1609)
at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:465)
at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:421)
at okhttp3.internal.connection.RealConnection.connectTls(RealConnection.kt:379)
at okhttp3.internal.connection.RealConnection.establishProtocol(RealConnection.kt:337)
at okhttp3.internal.connection.RealConnection.connect(RealConnection.kt:209)
Thank you,
Akhilesh.

Hi,

This was a new one on me, so I searched this^ error string and it led me to an answer on SO.

 
HTH,
Ann

Hi Ann,
Correct. But, where do we have to configure this in SonarQube.
Thanks,
Akhil

Hi,

This is about configuration of your trust store and I suppose of your proxy, not of SonarQube.

 
Ann