Unable to install SonarLint plugin from Eclipse marketplace

In Eclipse 2021-09, attempting to retrieve latest version of plugin (6.2) from Eclipse Marketplace (Help > Eclipse Marketplace > SonarLint 6.2)

Receiving error:

!SUBENTRY 1 org.eclipse.equinox.p2.transport.ecf 4 1002 2021-10-05 11:12:33.663
!MESSAGE Unable to connect to repository https://binaries.sonarsource.com/SonarLint-for-Eclipse/releases/6.0.0.34844/artifacts.xml
!STACK 0
org.apache.http.conn.HttpHostConnectException: Connect to binaries.sonarsource.com:443 [binaries.sonarsource.com/91.134.125.245] failed: Connection timed out: no further information
	at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:156)
	at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:376)
	at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:393)
	at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
	at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186)
	at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
	at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
	at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
	at org.eclipse.ecf.provider.filetransfer.httpclient45.HttpClientFileSystemBrowser.runRequest(HttpClientFileSystemBrowser.java:248)
	at org.eclipse.ecf.provider.filetransfer.browse.AbstractFileSystemBrowser$DirectoryJob.run(AbstractFileSystemBrowser.java:71)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: java.net.ConnectException: Connection timed out: no further information
	at java.base/sun.nio.ch.Net.pollConnect(Native Method)
	at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:669)
	at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:549)
	at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:597)
	at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:333)
	at java.base/java.net.Socket.connect(Socket.java:645)
	at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:368)
	at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142)
	... 11 more

Hello @PaulAppAdmin

Eclipse update sites are complex, and they introduced multiple metadata format over time. For backward compatibility reasons, Eclipse should try to get various file names (artifacts.xml, compositeArtifacts.xml, artifacts.jar, artifacts.xml.xz, …) until it found one.
In your case, the request to https://binaries.sonarsource.com/SonarLint-for-Eclipse/releases/6.0.0.34844/artifacts.xml should return with a 404, and then Eclipse should try the next file. Instead, it fails with a timeout, and so Eclipse will stop there.

Maybe there is a misconfigured proxy on your network, because on my side it works fine.

If you can’t fix your network setup, maybe you could try to download manually the latest SonarLint update site archive, and use it for installation.

Thank you for the quick response, the site archive link works for me on a separate network connection. Thanks for confirming it’s a “me” issue :slight_smile:

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.