sonarqubesonarqube-ops

SonarQube - Fail to connect to update center with no proxy


I installed SonarQube 5.6.3 and when I go to Update Center, I can only see "Installed" plugins. But the other tabs don't show anything (0 shown). I'm not using a proxy. The logs show the following:

ERROR web[o.s.s.p.UpdateCenterClient] Fail to connect to update center
org.sonar.api.utils.SonarException: Fail to download: https://update.sonarsource.org/update-center.properties (no proxy)
    at org.sonar.core.util.DefaultHttpDownloader.failToDownload(DefaultHttpDownloader.java:157) ~[sonar-core-5.6.3.jar:na]

I tried downloading manually the file https://update.sonarsource.org/update-center.properties using wget and it worked fine.

Why is not working from UpdateCenter? Do I need to specify anything in sonar.properties file? The only line related to Update Center in sonar.properties is: sonar.updatecenter.activate=true


Solution

  • You are using IBM JDK that does not behave like Oracle JDK with TLS connections. And without setting com.ibm.jsse2.overrideDefaultTLS to true, the application is unable to connect to the Update Center that is using TLS 1.2 (http://www.ibm.com/support/knowledgecenter/en/SSYKE2_8.0.0/com.ibm.java.security.component.80.doc/security-component/jsse2Docs/matchsslcontext_tls.html#matchsslcontext_tls)

    Adding -Dcom.ibm.jsse2.overrideDefaultTLS=true to sonar.web.javaOpts in conf/sonar.properties will solve your issue.

    I highly recommand to add this property (-Dcom.ibm.jsse2.overrideDefaultTLS=true) to sonar.web.javaOpts, sonar.ce.javaOpts and sonar.search.javaOpts

    Cheers,