Since several weeks, I am no longer able to update or reinstall SonarLint on my Eclipse IDE.
Is this a known issue?
Since several weeks, I am no longer able to update or reinstall SonarLint on my Eclipse IDE.
Is this a known issue?
Hello, welcome to the community! And thanks for reporting this.
It looks like Eclipse’s P2 client is having trouble performing the request to SonarLint’s update site.
I see you are using macOS, what is the output of the following command?
curl -I -v https://binaries.sonarsource.com/SonarLint-for-Eclipse/releases/5.8.1.28988/plugins/org.sonarlint.eclipse.ui_5.8.1.28988.jar
On my (Linux) box, I get the following:
* Trying 91.134.125.245:443...
* TCP_NODELAY set
* Connected to binaries.sonarsource.com (91.134.125.245) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: /etc/ssl/certs
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* ALPN, server did not agree to a protocol
* Server certificate:
* subject: CN=*.sonarsource.com
* start date: Mar 22 00:00:00 2021 GMT
* expire date: Apr 8 23:59:59 2022 GMT
* subjectAltName: host "binaries.sonarsource.com" matched cert's "*.sonarsource.com"
* issuer: C=FR; ST=Paris; L=Paris; O=Gandi; CN=Gandi Standard SSL CA 2
* SSL certificate verify ok.
> HEAD /SonarLint-for-Eclipse/releases/5.8.1.28988/plugins/org.sonarlint.eclipse.ui_5.8.1.28988.jar HTTP/1.1
> Host: binaries.sonarsource.com
> User-Agent: curl/7.68.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
HTTP/1.1 200 OK
< Date: Mon, 19 Apr 2021 06:42:03 GMT
Date: Mon, 19 Apr 2021 06:42:03 GMT
< Server: Apache
Server: Apache
< Strict-Transport-Security: max-age=63072000; preload
Strict-Transport-Security: max-age=63072000; preload
< Last-Modified: Thu, 18 Mar 2021 08:26:16 GMT
Last-Modified: Thu, 18 Mar 2021 08:26:16 GMT
< Accept-Ranges: bytes
Accept-Ranges: bytes
< Content-Length: 1345244
Content-Length: 1345244
< Content-Type: application/x-java-archive
Content-Type: application/x-java-archive
<
* Connection #0 to host binaries.sonarsource.com left intact
So it seems to me that, at least at the time of writing this message, the update site is available.
Are you using a HTTP proxy? Maybe a VPN?
Hello Jean-Baptiste
This is strange. I can do the curl without problems, but within Eclipe, the download fails:
Last login: Sun Apr 18 09:51:15 on ttys000
AndyBrunner@AB-MacBook-Pro ~ % curl -I -v https://binaries.sonarsource.com/SonarLint-for-Eclipse/releases/5.8.1.28988/plugins/org.sonarlint.eclipse.ui_5.8.1.28988.jar
* Trying 91.134.125.245...
* TCP_NODELAY set
* Connected to binaries.sonarsource.com (91.134.125.245) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/ssl/cert.pem
CApath: none
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* ALPN, server did not agree to a protocol
* Server certificate:
* subject: CN=*.sonarsource.com
* start date: Mar 22 00:00:00 2021 GMT
* expire date: Apr 8 23:59:59 2022 GMT
* subjectAltName: host "binaries.sonarsource.com" matched cert's "*.sonarsource.com"
* issuer: C=FR; ST=Paris; L=Paris; O=Gandi; CN=Gandi Standard SSL CA 2
* SSL certificate verify ok.
> HEAD /SonarLint-for-Eclipse/releases/5.8.1.28988/plugins/org.sonarlint.eclipse.ui_5.8.1.28988.jar HTTP/1.1
> Host: binaries.sonarsource.com
> User-Agent: curl/7.64.1
> Accept: */*
>
< HTTP/1.1 200 OK
HTTP/1.1 200 OK
< Date: Mon, 19 Apr 2021 09:24:17 GMT
**Date** : Mon, 19 Apr 2021 09:24:17 GMT
< Server: Apache
**Server** : Apache
< Strict-Transport-Security: max-age=63072000; preload
**Strict-Transport-Security** : max-age=63072000; preload
< Last-Modified: Thu, 18 Mar 2021 08:26:16 GMT
**Last-Modified** : Thu, 18 Mar 2021 08:26:16 GMT
< Accept-Ranges: bytes
**Accept-Ranges** : bytes
< Content-Length: 1345244
**Content-Length** : 1345244
< Content-Type: application/x-java-archive
**Content-Type** : application/x-java-archive
<
* Connection #0 to host binaries.sonarsource.com left intact
* Closing connection 0
AndyBrunner@AB-MacBook-Pro ~ %
There is no VPN, no HTTP proxy and no firwall active.
Hi,
Could it be the same problem as javax.net.ssl.SSLHandshakeException for https://eclipse-uc.sonarlint.org/compositeContent.xml? Are you using the Eclipse installer? What is your version of Eclipse?
Hello Julien
I am using Eclipse 2021-03:
running on macOS 11.2.3 (Big Sur).
Is there a way to locally install SonarLint (without downloading it from Eclipse)?
Hey Andy,
Sure, you can download the P2 update site ZIP for an offline install.
Hello Jean-Baptiste
Thanks a lot. I could download the ZIP file and installed it offline without any problem.
Great support!
Andy Brunner
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.