Handshake failure when connecting to pluginManager

已回答

I can't download/update any plugins, i get get a handshake_failure. I'm running:

IntelliJ IDEA 2017.3.3 (Ultimate Edition)
Build #IU-173.4301.25, built on January 15, 2018
Licensed to XXXXXXXXXXXXXXXXX
Subscription is active until February 18, 2018
JRE: 1.8.0_152-release-1024-b11 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Mac OS X 10.13.2

 

1

Disabling http://i.imgur.com/p037pW2.png may help.

See also https://youtrack.jetbrains.com/v2/issue/IDEA-174054.

The issue can be caused by your proxy configuration.

0

Hello!

Could you please following to Debug Log Settings (Help->Debug Log Settings...):

com.intellij.util.io.HttpRequests
#com.intellij.util.io.HttpRequests

Then try to download a plugin again and attach idea.log.

0

Thanks for helping out, but I still can't get it working. Tried the workaround in https://youtrack.jetbrains.com/v2/issue/IDEA-174054 without luck.

 

Here's the full stack trace:

2018-01-26 13:42:52,117 [ 453173] WARN - Settings.impl.PluginDownloader - Cannot download 'https://plugins.jetbrains.com/pluginManager/?action=download&id=mobi.hsz.idea.gitignore&build=IU-173.4301.25&uuid=ddf12293-efe3-4c1c-b762-7753a32632df': Received fatal alert: handshake_failure
java.io.IOException: Cannot download 'https://plugins.jetbrains.com/pluginManager/?action=download&id=mobi.hsz.idea.gitignore&build=IU-173.4301.25&uuid=ddf12293-efe3-4c1c-b762-7753a32632df': Received fatal alert: handshake_failure
at com.intellij.util.io.HttpRequests$RequestImpl.saveToFile(HttpRequests.java:366)
at com.intellij.openapi.updateSettings.impl.PluginDownloader$1.process(PluginDownloader.java:245)
at com.intellij.openapi.updateSettings.impl.PluginDownloader$1.process(PluginDownloader.java:242)
at com.intellij.util.io.HttpRequests.lambda$doProcess$0(HttpRequests.java:418)
at com.intellij.util.net.ssl.CertificateManager.runWithUntrustedCertificateStrategy(CertificateManager.java:349)
at com.intellij.util.io.HttpRequests.doProcess(HttpRequests.java:418)
at com.intellij.util.io.HttpRequests.process(HttpRequests.java:398)
at com.intellij.util.io.HttpRequests.access$100(HttpRequests.java:63)
at com.intellij.util.io.HttpRequests$RequestBuilderImpl.connect(HttpRequests.java:266)
at com.intellij.openapi.updateSettings.impl.PluginDownloader.a(PluginDownloader.java:242)
at com.intellij.openapi.updateSettings.impl.PluginDownloader.prepareToInstall(PluginDownloader.java:142)
at com.intellij.openapi.updateSettings.impl.UpdateInstaller.installPluginUpdates(UpdateInstaller.kt:73)
at com.intellij.openapi.updateSettings.impl.PluginUpdateInfoDialog$1.run(PluginUpdateInfoDialog.java:81)
at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:713)
at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:157)
at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:543)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:488)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:94)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:144)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:165)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:315)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
at sun.security.ssl.Alerts.getSSLException(Alerts.java:154)
at sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:2033)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1135)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1385)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1413)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1397)
at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:559)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1546)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1474)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:338)
at com.intellij.util.io.HttpRequests.openConnection(HttpRequests.java:513)
at com.intellij.util.io.HttpRequests.access$300(HttpRequests.java:63)
at com.intellij.util.io.HttpRequests$RequestImpl.getConnection(HttpRequests.java:292)
at com.intellij.util.io.HttpRequests$RequestImpl.getInputStream(HttpRequests.java:301)
at com.intellij.util.io.HttpRequests$RequestImpl.saveToFile(HttpRequests.java:362)
... 25 more

1

I have the same problem since a week or so. No changes were made to my connection settings in Intellij or on my system.

0

Same here. Started to notice it when I upgraded to 2018.1 EAP... but I also experience it on my stable 2017.3 instalment!

I have no proxy and the secure connection checkbox is not checked!

0

We would like to diagnose ssl handshake to understand if the problem is with our certificate therefore could you please follow instructions in https://youtrack.jetbrains.com/issue/IDEA-185762#comment=27-2686106.

0

same issue for me, since updating to 2017.3.3, no changes done on my system.

IntelliJ IDEA 2017.3.3 (Ultimate Edition)
Build #IU-173.4301.25, built on January 16, 2018
Licensed to Marc Mielke
Subscription is active until October 23, 2018
JRE: 1.8.0_152-release-1024-b11 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Mac OS X 10.11.6

0

Could you please check if you have "-Djsse.enableSNIExtension=false" in Help | Edit Custom VM Options. If yes then please remove it, restart IDE and try downloading plugins again.

7

Works for me. Thanks.

0

what made it work for me is adding the option AND setting it to true: `-Djsse.enableSNIExtension=true`.

3

Got the same problem today and tried Ivan's suggestion in JVM options, my problem solved.  Thanks.

0

I had IntelliJ IDEA ver. 2019.2.1 and it couldn't connect to the Marketplace repository. All the time it was giving me an error "Check the Internet connection and refresh". Also, it didn't want to update IntelliJ IDEA to the latest version, it was giving an error "Failed to Download". I tried Marc Mielke suggestion with putting`-Djsse.enableSNIExtension=true` into Custom VM Options and now it works. Thanks a lot.

0

jsse.enableSNIExtension should be enabled by default, it could be that you have older options migrated where it was explicitly set to false.

1

请先登录再写评论。