Download failed read econnreset

Hello everyone, today I encountered an error again. Is there anyone who can help me fix the error?

Hello!

ECONNRESET is a known issue and there are a few solutions that might help:

  • Whitelisting Unity and Unity Hub in your system’s Anti-Virus settings
  • Allowing Unity and Unity Hub through the network proxy settings
  • Whitelisting Unity and Unity Hub in your firewall’s settings
  • Disabling any VPN or other IP-altering services when you’re using Unity

If none of these help, please create a bug report Unity QA: Building quality with passion

Your Hub logs might have some useful information that we could use to help you, or maybe even find a duplicate issue (The same issue that was filled out as a bug and is currently waiting for developers).
With your logs CQA might be able to provide solutions that might help, but the solutions are not guaranteed to help.

Please make sure to write the exact steps needed to be taken so that the reproduction would be visually seen. Also make sure to attach any visual material so that when testing our CQA team can verify that they got the same results. If you can, please use this template:

How to reproduce:

  1. Open the attached project
  2. Do this
  3. Do that
  4. Select this
  5. Observe that

Expected result: Something is visible, something is shown or something happens
Actual result: The opposite of what I expect happens

Reproducible with: Hub version I’m using (e.g: 3.5.0)

Reproduced on: The OS I am on (e.g: Windows 11, macOS Ventura 13.1 (Intel/Silicon))

Hello,
We have started encountering this issue not a long time ago, after upgrading the Unity Hub version to 3.5.1.

In June we have successfully downloaded the Unity 2021.3.27 version through the Hub.
Now when we try to download the 2021.3.30 version or any other Editor version, we get this error (“Download failed: read ECONNRESET”).
The only difference is that we updated to the latest version of the Unity Hub : v3.5.1.
Unfortunately I don’t remember what version of the Hub I had before.
However, my colleague still has the Unity Hub v3.3.0 and he does not have the error, he can download Unity Editor just fine.
We have the same configuration on our computers, same proxy, system variables etc.
We also checked with the guys managing the proxy and they don’t see any request being denied by the proxy.
So it looks like it is not an issue from our proxy config.
However, if I disable the proxy from my computer and use my smartphone Wifi, the Unity Hub is able to download Editor versions.
Would it be possible that the new Hub version is failing to correctly pick-up the proxy setting for one of the download requests ?

Here are some of the Unity Hub logs when trying to download a Unity version :

{"timestamp":"2023-09-01T14:08:33.355Z","level":"info","moduleName":"ProxyHelper","message":"[ 'Proxy configurations found for protocol http: http://<MyCompanyProxy>:8080' ]"}
{"timestamp":"2023-09-01T14:08:33.356Z","level":"info","moduleName":"ProxyHelper","message":"[ 'Proxy configurations found for protocol https: http://<MyCompanyProxy>:8080' ]"}
{"timestamp":"2023-09-01T14:08:48.384Z","level":"info","moduleName":"Download Manager","message":"[ 'Item: 2021.3.30f1-x86_64 added to Download Queue.' ]"}
{"timestamp":"2023-09-01T14:08:48.384Z","level":"info","moduleName":"Download Manager","message":"[ 'Removed 2021.3.30f1-x86_64 from Download Queue.' ]"}
{"timestamp":"2023-09-01T14:08:48.384Z","level":"info","moduleName":"Download Manager","message":"[ 'Starting download of 2021.3.30f1-x86_64' ]"}
{"timestamp":"2023-09-01T14:08:48.387Z","level":"info","moduleName":"Download Item","message":"[ 'Download: 2021.3.30f1-x86_64, Current State: Validation, Event: xstate.init' ]"}
{"timestamp":"2023-09-01T14:08:48.387Z","level":"info","moduleName":"LicensingSdkService","message":"[ 'Get all entitlement groups' ]"}
{"timestamp":"2023-09-01T14:08:48.387Z","level":"info","moduleName":"Download Item 2021.3.30f1-x86_64","message":"[ 'Transition to state download_validation' ]"}
{"timestamp":"2023-09-01T14:08:48.388Z","level":"info","moduleName":"Disk Validation Strategy","message":"[ 'Executing the Download Validation Strategy...' ]"}
{"timestamp":"2023-09-01T14:08:48.389Z","level":"info","moduleName":"Disk Validation Strategy","message":"[ 'Validating destination path permission for access...' ]"}
{"timestamp":"2023-09-01T14:08:48.391Z","level":"info","moduleName":"Disk Validation Strategy","message":"[ 'Destination Path check: Passed' ]"}
{"timestamp":"2023-09-01T14:08:48.391Z","level":"info","moduleName":"Disk Validation Strategy","message":"[ 'Validating source path (https://download.unity3d.com/download_unity/b4360d7cdac4/Windows64EditorInstaller/UnitySetup64-2021.3.30f1.exe) availability...' ]"}
{"timestamp":"2023-09-01T14:08:48.410Z","level":"info","moduleName":"LicensingSdkService","message":"[ 'Successfully received all entitlement groups details' ]"}
{"timestamp":"2023-09-01T14:08:48.411Z","level":"info","moduleName":"LicensingSdkService","message":"[ 'Received 1 entitlement groups' ]"}
{"timestamp":"2023-09-01T14:08:48.411Z","level":"info","moduleName":"LicensingSdkService","message":"[ 'Get all entitlement groups' ]"}
{"timestamp":"2023-09-01T14:08:48.432Z","level":"info","moduleName":"LicensingSdkService","message":"[ 'Successfully received all entitlement groups details' ]"}
{"timestamp":"2023-09-01T14:08:48.432Z","level":"info","moduleName":"LicensingSdkService","message":"[ 'Received 1 entitlement groups' ]"}
{"timestamp":"2023-09-01T14:08:48.703Z","level":"info","moduleName":"Disk Validation Strategy","message":"[ 'Source Availability check: Passed' ]"}
{"timestamp":"2023-09-01T14:08:48.704Z","level":"info","moduleName":"Disk Validation Strategy","message":"[ 'Validating available disk space on the partition.' ]"}
{"timestamp":"2023-09-01T14:08:48.704Z","level":"info","moduleName":"Disk Validation Strategy","message":"[ 'Required space: 2454365184 bytes / 2.29 GB...' ]"}
{"timestamp":"2023-09-01T14:08:48.704Z","level":"info","moduleName":"Disk Validation Strategy","message":"[ 'Available disk space check: Passed' ]"}
{"timestamp":"2023-09-01T14:08:48.704Z","level":"info","moduleName":"Disk Validation Strategy","message":"[ 'Validating file integrity (checksum)..' ]"}
{"timestamp":"2023-09-01T14:08:48.704Z","level":"info","moduleName":"Disk Validation Strategy","message":"[ 'Checksum value not supplied. Skipping Checksum' ]"}
{"timestamp":"2023-09-01T14:08:48.704Z","level":"info","moduleName":"Disk Validation Strategy","message":"[ 'Checksum check: Passed' ]"}
{"timestamp":"2023-09-01T14:08:48.705Z","level":"info","moduleName":"Download Item","message":"[ 'Download: 2021.3.30f1-x86_64, Exiting from State: Validation, Event: VALIDATION_PASSED' ]"}
{"timestamp":"2023-09-01T14:08:48.705Z","level":"info","moduleName":"Download Item","message":"[ 'Download: 2021.3.30f1-x86_64, Current State: Downloading, Event: VALIDATION_PASSED' ]"}
{"timestamp":"2023-09-01T14:08:48.705Z","level":"info","moduleName":"Download Item 2021.3.30f1-x86_64","message":"[ 'Transition to state downloading' ]"}
{"timestamp":"2023-09-01T14:08:48.707Z","level":"info","moduleName":"Node Downloader for 2021.3.30f1-x86_64","message":"[ 'Download started' ]"}
{"timestamp":"2023-09-01T14:09:07.981Z","level":"info","moduleName":"Node Downloader for 2021.3.30f1-x86_64","message":"[ 'Download paused at 0 bytes / 0 bytes' ]"}
{"timestamp":"2023-09-01T14:09:07.981Z","level":"info","moduleName":"Download Item 2021.3.30f1-x86_64","message":"[ 'Error while downloading: read ECONNRESET' ]"}
{"timestamp":"2023-09-01T14:09:07.983Z","level":"info","moduleName":"Download Item","message":"[ 'Download: 2021.3.30f1-x86_64, Exiting from State: Downloading, Event: ERROR' ]"}
{"timestamp":"2023-09-01T14:09:07.983Z","level":"info","moduleName":"Download Item","message":"[ 'Download: 2021.3.30f1-x86_64, Current State: Failed, Event: ERROR' ]"}
{"timestamp":"2023-09-01T14:09:07.983Z","level":"info","moduleName":"LicensingSdkService","message":"[ 'Get all entitlement groups' ]"}
{"timestamp":"2023-09-01T14:09:07.983Z","level":"info","moduleName":"Download Item 2021.3.30f1-x86_64","message":"[ 'Transition to state download_failed' ]"}
{"timestamp":"2023-09-01T14:09:07.984Z","level":"warn","moduleName":"Node Downloader for 2021.3.30f1-x86_64","message":"[\n  'Download failed',\n  Error: read ECONNRESET\n      at TLSWrap.onStreamRead (node:internal/stream_base_commons:217:20) {\n    errno: -4077,\n    code: 'ECONNRESET',\n    syscall: 'read'\n  }\n]"}
{"timestamp":"2023-09-01T14:09:08.012Z","level":"info","moduleName":"LicensingSdkService","message":"[ 'Successfully received all entitlement groups details' ]"}
{"timestamp":"2023-09-01T14:09:08.012Z","level":"info","moduleName":"LicensingSdkService","message":"[ 'Received 1 entitlement groups' ]"}
{"timestamp":"2023-09-01T14:09:08.012Z","level":"info","moduleName":"LicensingSdkService","message":"[ 'Get all entitlement groups' ]"}
{"timestamp":"2023-09-01T14:09:08.032Z","level":"info","moduleName":"LicensingSdkService","message":"[ 'Successfully received all entitlement groups details' ]"}
{"timestamp":"2023-09-01T14:09:08.032Z","level":"info","moduleName":"LicensingSdkService","message":"[ 'Received 1 entitlement groups' ]"}

Everything else in the Hub is working fine (license activation, account authentication, access to “Learn” and “Community” tabs resources)…

Any help appreciated.

Best regards

We just confirmed that by uninstalling Unity Hub 3.5.1 from my computer and copying the Unity Hub folder from my colleague’s computer into mine (v3.3.0), I am now able to download Unity Editor versions.

Definitely a Unity Hub bug.

guys why dont anyone put likns for those hubs we are all alone at home You guys had a comunity

@GediminasR

Like I already posted here:

The v3.5.1 is not respecting anymore the proxy environment variables for some requests especially towards the address download.unity3d.com and many more.

The Vars are:
HTTP_PROXY
HTTPS_PROXY
ALL_PROXY
UNITY_PROXYSERVER
NO_PROXY
UNITY_NOPROXY

@ThalesRARV
I checked our proxy and the requests are not going there anymore therefor can not be denied.

Additional tip: Use WebArchive to download the latest working 3.5 Version. Take some snapshot from juli.
@ a download archive for the Hub would be great. Because like you see things can go wrong.

Second Addition:
@ would be nice if Proxy-Settings would be included in the Hub itself like Epic does or any other Application. Maybe then it would be more integrated into the process and be tested.

Third Addition:
For those as lazy as I am: Starte deine kreativen Projekte und lade den Unity Hub herunter | Unity

Deleting C:\Users\User\AppData\Local\Unity fixed the problem for me

I only wanted to add for completion:

At some newer Unity Hub version (don’t know which it was, currently we are at 3.10.0) the issue not longer existed and was working like before.

So guess the initial issue was fixed by Unity.

Nope, the issue still persists. I think it’s a Unity Hub bug because I had this issue with different computers, different accounts, different locations, several years apart. This is ridiculous. Hub randomly decides not to install particular modules. And every time it gives random errors.

I disabled my antivirus and firewall, tried running as administrator but no avail.

I can’t even install new editor applications because… why
I have several editor applications already installed, hub was working brilliantly. I didn’t change anything on my side. You guys need to fix your doodoo app

So f-_-ing shameful…

Hey everybody. I had the ECONNRESET until I downloaded with VPN on (v2rayN in TUN mode). All JDK stuff successfully downloaded and installed a day or two after I tried unsuccessfully installing it. GL yall