Why do I get "There was an error downloading product files" with "Failed to download .enc, retry # 1" when installing MATLAB R2021b or later?

3.349 views (last 30 days)
Why do I get "There was an error downloading product files" with "Failed to download .enc, retry # 1" when installing MATLAB R2021b or later?
(Sep 29, 2021 21:04:20) Failed to download C:\Users\%USERNAME%\AppData\Local\Temp\a4a0-05cc-315d-7c88\3p\apriltag_win64_1621049007.enc, retry # 1

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 9 Jan 2023 at 5:00
Edited: MathWorks Support Team on 9 Jan 2023 at 20:41
This issue could be caused by few different things:
  • Antivirus software
  • VPNs or Proxy servers
  • Firewalls
  • Poor Network Connectivity

Antivirus Software

To temporarily disable your Antivirus on Windows:
  1. Locate the Antivirus protection program icon on the Windows system tray.
  2. Right-click the icon and select Disable, Stop, etc. to temporarily disable the program. In some cases, you may need to open the program and disable it using the program's menus.
 To temporarily disable your Antivirus on a Mac:
  1. Locate the Antivirus icon found on your Mac menu bar.
  2. Click Shut down or disable temporarily until installation and activation have completed.
To temporarily disable your Antivirus on a Linux:
  1. Locate the Antivirus protection program icon on the Linux system tray.
  2. Click Shut down or disable temporarily until installation and activation have completed.

VPNs or Proxy servers

Some Virtual Private Networks (VPN) or Proxy servers will interfere with the installer working correctly. If you have one, try disabling it and then running the installer again. Disabling it will vary depending on what VPN or Proxy server you are using. Refer to your VPN/Proxy Server's documentation if you are unsure how to do this.

Firewalls

You will need to contact your IT Help Desk if your organization is running a network firewall to configure it to bypass blocked connections to the MathWorks servers.
The MathWorks installer needs to contact MathWorks servers on the following ports and addresses:
  • mathworks.com
  • licensing.mathworks.com
  • login.mathworks.com
  • services.mathworks.com
  • TCP ports 80 and 443
Your firewall needs to bypass blocked connections for both addresses over both ports. These servers do not use a Static IP Address and will resolve to a Dynamic IP Address. This means that users will not be able to white-list MathWorks servers via IP Address and will have to use the domain name. 

Poor Network Connectivity

This issue can occur when attempting to install MATLAB with a poor network connection. When the installer is attempting to download files, a failure to download a file successfully will show as a retry # attempt. The installer will make several attempts to redownload each failed file, but if still unsuccessful, will display an error.
To resolve this, check that your computer has a reliable internet connection or switch to a more reliable network. If the Installer is still unable to successfully connect, perform an offline installation.
How to install MATLAB on an offline machine?
  23 Comments
Michele Giugliano
Michele Giugliano on 25 Nov 2022
Same here. Could it Mathworks problem "today" only? BTW: error messages are not very informative and likewise solutions.

Sign in to comment.

More Answers (14)

Ewen
Ewen on 19 Sep 2022
Edited: Ewen on 19 Sep 2022
In my case this problem happened when I wanted to reinstall Matlab after I uninstalled it. And this was because I did not remove the remaining files in the directory "C:\Program Files\MATLAB\R2022b".
So if you uninstall Matlab, be sure that there is no remaining file in this directory before reinstalling it.
  6 Comments

Sign in to comment.


Edward
Edward on 10 Nov 2022
My download speed reported on the installer is 40Mbps. How much faster should it be? I feel this is more a test of patience than anything else.

Ahmed Ossama Delaa
Ahmed Ossama Delaa on 7 Sep 2022
I'm getting the same error with both offline installation using the full-size desk image 21GB and web installation.
the deplyment not complete and close.

Mateusz Tylec
Mateusz Tylec on 16 Nov 2022
Did anybody solve this?

Martin Murphy
Martin Murphy on 3 Jan 2023 at 17:35
Tried on multiple different networks now. Nothing works. Please resolve..

Alejandra Ventura
Alejandra Ventura on 7 Jan 2023 at 16:57
Having this same issue, not working with online nor offline installation. Please resolve.

Isaac Doe
Isaac Doe on 5 Sep 2022
Please restore the installation
  3 Comments
Christopher Francis
Christopher Francis on 24 Oct 2022
Hi Isaac is there a way to actually restore the installation? such that it proceeds from where it stopped before the connection interruption?

Sign in to comment.


Uriel
Uriel on 8 Sep 2022
I have the same problem, it says that I do not have enough capacity. Delete files along with changing the network, and the error still appears

Marc Lalancette
Marc Lalancette on 7 Oct 2022
Edited: Marc Lalancette on 7 Oct 2022
The source of these errors for me was memory errors. My memory settings (in the BIOS) were wrong. Maybe try running a memory test to see if it's your case as well.

abdullrahman
abdullrahman on 12 Oct 2022
This issue can occur when attempting to install MATLAB with a poor network connection. When the installer is attempting to download files, a failure to download a file successfully will show as a retry # attempt. The installer will make several attempts to redownload each failed file, but if still unsuccessful, will display an error.

Rajieev
Rajieev on 19 Oct 2022
I was facing similar issue (lost the count how many times I tried) when was trying to install either only Matlab or Matlab and Simulink packages. When I selected another random package like System Composer the issue resolved for me. Think the issue is when you choose only Matlab or Matlab and Simulink Packages.
  4 Comments
Reza Khayat
Reza Khayat on 4 Jan 2023 at 11:39
This solution worked for me as well on a Linux headless server (matlab_R2022b). Some packages require additional permissions that the installer lets you know of. Do not reques to install such packages and you should be able to proceed with installation. .

Sign in to comment.


Lilia
Lilia on 9 Nov 2022
This issue can occur when attempting to install MATLAB with a poor network connection. When the installer is attempting to download files, a failure to download a file successfully will show as a retry # attempt. The installer will make several attempts to redownload each failed file, but if still unsuccessful, will display an error.
  1 Comment
JClarcq
JClarcq on 9 Nov 2022
Poor network connection is then on MathWorks side because I had the same issue from different computers with different internet providers. I think more that something has changed in the Downloader since R2021 which causes issue. As an example I could install R2017b without issue during the same period.

Sign in to comment.


Anika
Anika on 24 Dec 2022
ok

berkay
berkay on 30 Dec 2022 at 13:26
berkay

Tags

No tags entered yet.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by