Unable to connect to update center in 5.6.7

122 views
Skip to first unread message

Girish Kg

unread,
May 6, 2018, 5:50:40 AM5/6/18
to SonarQube
Hi,

I am facing an issue connecting to update center in version SonarQube 5.6.7 ( The same settings working in my sonar installation 5.3.3 on the same server). 


 2018.05.06 09:16:08 DEBUG web[o.s.c.u.DefaultHttpDownloader$BaseHttpDownloader$HttpInputSupplier] Download: https://update.sonarsource.org/update-center.properties (HTTP proxy: MY-PROXY:PROXY-PORT)
    123 2018.05.06 09:16:08 ERROR web[o.s.s.p.UpdateCenterClient] Fail to connect to update center
    124 org.sonar.api.utils.SonarException: Fail to download: https://update.sonarsource.org/update-center.properties (HTTP proxy: MY-PROXY:PROXY-PORT)
    125         at org.sonar.core.util.DefaultHttpDownloader.failToDownload(DefaultHttpDownloader.java:157) ~[sonar-core-5.6.7.jar:na]


Sonar.properties
=============

sonar.web.javaAdditionalOpts=-Dhttps.proxyHost=MY-PROXY -Dhttps.proxyPort=PROXY-PORT
http.proxyHost=MY-PROXY
http.proxyPort=PROXY-PORT
https.proxyHost=MY-PROXY
https.proxyPort=PROXY-PORT


My proxy seems to be fine- its working in 5.3 installation and below wget test also.

export https_proxy=http://MY-PROXY:PROXY-PORT


Proxy request sent, awaiting response... 200 OK
Length: 356523 (348K) [text/plain]
Saving to: “update-center.properties.2”

I suspect Sonar is trying to contact https url (https://update.sonarsource.org/update-center.properties) with the HTTP_PROXY not honoring HTTPS_PROXY, that could be the issue? Can you please direct me to solve the issue? Thank you so much.

Girish Kg

unread,
May 7, 2018, 5:58:53 AM5/7/18
to SonarQube
And curl failed with an SSL error but wget worked.


< HTTP/1.1 200 Connection established
<
* Proxy replied OK to CONNECT request
* Initializing NSS with certpath: sql:/etc/pki/nssdb
*   CAfile: /etc/pki/tls/certs/ca-bundle.crt
  CApath: none
* NSS error -5938
* Closing connection #0
* SSL connect error
curl: (35) SSL connect error



Can someone help me please?

Regards
Gireesh
Reply all
Reply to author
Forward
0 new messages