Intellij Updates/Marketplace Port

已回答

Is there a setting that allows check for updates & marketplace plugins to use port 443? Our network team said it's trying to use port 5228 that is blocked with a firewall rule currently. So both of these features fail with connection errors. 

0

Hi,

Our network team said it's trying to use port 5228 

Could you please clarify if this port is for inbound or outbound?  We use 443 by default to send HTTPS requests.

In general, it is better to whitelist endpoints, not port numbers. We can recommend whitelisting the following:
 
https://account.jetbrains.com
https://www.jetbrains.com/updates/updates.xml
https://download.jetbrains.com
https://download-cf.jetbrains.com
https://plugins.jetbrains.com

Also, make sure to double-check any HTTP Proxy configurations that you might have.

0

It is when going to either of these 2 options:
1) File - Settings - Plugins - Marketplace (Spinner until giving error:"Marketplace plugins are not loaded. Check the internet connection and refresh"
2) Help - Check For Updates eventually gives error: "Connection failed (Unexpected end of file from server). Please check network connection and try again."
Something in those 2 options is trying to use the port, 5228, that our firewall doesn't currently allow. Was wanting to know if there was a setting to route that to 443 instead?

0

In order to get more details about the current errors could you please enable the following HTTP requests debug logs at  Help | Diagnostic Tools | Debug Log Settings

com.intellij.util.io.HttpRequests
#com.intellij.util.io.HttpRequests
com.intellij.util.proxy.CommonProxy
#com.intellij.util.proxy.CommonProxy

Reproduce both errors and provide us with the IDE logs at Help | Collect Logs and Diagnostic Data by uploading at https://uploads.jetbrains.com/browse and sharing the UploadID.

Also, can you confirm if you have a proxy? If so, make sure that is configured in the IDE in the same way as you have in your web browser.

0

Upload id: 2023_06_23_hhAQ2nW5kuFLs5pyeLBMQ5 (file: idea-logs-20230623-08151013792458531451942312.zip)

0

Do not currently use any proxy. 

0

> Is there a setting that allows check for updates & marketplace plugins to use port 443?

As we can see from the logs 443 port number was used by the IDE for sending requests to our endpoints. For example:

CommonProxy.select returns custom proxy for socket://plugins.jetbrains.com:443, [DIRECT]
CommonProxy.select returns custom proxy for socket://plugins.jetbrains.com:443, [DIRECT]

> Our network team said it's trying to use port 5228 that is blocked with a firewall rule currently. So both of these features fail with connection errors. 

Could you provide some diagnostic details from your side where you see that 5228 port being used by the IDE?

Also, please share a screenshot from Settings/Preferences | Appearance & Behavior | System Settings | HTTP Proxy

Here is a complete error stacktrace returned by the IDE:

2023-06-23 08:14:46,546 [ 135235] SEVERE - #c.i.o.a.i.ApplicationImpl - Unexpected end of file from server
java.net.SocketException: Unexpected end of file from server
at java.base/sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:936)
at java.base/sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:759)
at java.base/sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:933)
at java.base/sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:759)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1688)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1589)
at java.base/java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:529)
at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:308)
at com.intellij.util.io.HttpRequests.openConnection(HttpRequests.java:619)
at com.intellij.util.io.HttpRequests$RequestImpl.getConnection(HttpRequests.java:361)
at com.intellij.ide.plugins.marketplace.MarketplaceRequests$Companion.readOrUpdateFile$lambda$8(MarketplaceRequests.kt:186)
at com.intellij.util.io.HttpRequests.doProcess(HttpRequests.java:524)
at com.intellij.util.io.HttpRequests.process(HttpRequests.java:506)
at com.intellij.util.io.HttpRequests$RequestBuilderImpl.connect(HttpRequests.java:335)
at com.intellij.ide.plugins.marketplace.MarketplaceRequests$Companion.readOrUpdateFile(MarketplaceRequests.kt:183)
at com.intellij.ide.plugins.marketplace.MarketplaceRequests.getMarketplacePlugins(MarketplaceRequests.kt:287)
at com.intellij.openapi.updateSettings.impl.UpdateChecker.findUpdatesInJetBrainsRepository(UpdateChecker.kt:438)
at com.intellij.openapi.updateSettings.impl.UpdateChecker.updateDescriptorsForInstalledPlugins$lambda$13(UpdateChecker.kt:313)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:252)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:702)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:699)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:699)
at java.base/java.lang.Thread.run(Thread.java:833)

Something between the IDE and our server breaks the connection. Please see https://stackoverflow.com/questions/19824339/java-simple-code-java-net-socketexception-unexpected-end-of-file-from-server

0

Network admin was able to do a trace and find the issue and resolve. Thank you for your assistance. 

0

请先登录再写评论。