# An error occured while downloading the update package for Mautic 2.16

**URL:** <https://forum.mautic.org/t/an-error-occured-while-downloading-the-update-package-for-mautic-2-16/12810>\
**Category:** Product Support\
**Created:** [February 13, 2020, 10:29pm UTC](https://forum.mautic.org/t/an-error-occured-while-downloading-the-update-package-for-mautic-2-16/12810 "2020-02-13T22:29:25Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![samo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/samo/32/556_2.png) [@samo](https://forum.mautic.org/u/samo)\
**Post date:** [February 13, 2020, 10:29pm UTC](https://forum.mautic.org/t/an-error-occured-while-downloading-the-update-package-for-mautic-2-16/12810/1 "2020-02-13T22:29:25Z")

</div>

**Your software**  
My Mautic version is: 2.15.3  
My PHP version is: 7.2.27

**Your problem**  
My problem is:  
I can’t update Mautic 2.15.3 to 2.16

These errors are showing in the log:  
[2020-02-13 17:01:50] mautic.ERROR: An error occurred while attempting to fetch the package: OpenSSL SSL\_read: SSL\_ERROR\_SYSCALL, errno 104

Steps I have tried to fix the problem:  
I first tried to Update through the dashboard, which didn’t work and resulted in the above mentioned error in the log. Then I installed Putty for Windows in order to update it through SSH CLI. There I always  
got the following error “An error occured while downloading the update package.”

 ![Mautic-CLI-Update-Error](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/5/5ba7d2e81b096bac72a90472b5409cfa6d1c451e.jpeg)

As I don’t have a php.ini inside the root directory of my Mautic installation, I tried to increase everything to the MAX inside the cPanel PHP Options settings, as you can see in the following Screenshot:

 ![cPanel - PHP Selector Options](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/5/5209b5e799f2e7df38f7b497a7a12f359549c93e.png)

The error “An error occured while downloading the update package.” remained the same!

 ![Mautic-CLI-Update-Error](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/5/5ba7d2e81b096bac72a90472b5409cfa6d1c451e.jpeg)

1. What am I doing wrong?
2. Is there a php.ini template with optimal setting for Mautic on Shared Hosting Environment?

---

<div class="post-metadata">

**Author:** ![dennisameling](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dennisameling/32/958_2.png) [@dennisameling](https://forum.mautic.org/u/dennisameling)\
**Post date:** [February 14, 2020, 9:24am UTC](https://forum.mautic.org/t/an-error-occured-while-downloading-the-update-package-for-mautic-2-16/12810/2 "2020-02-14T09:24:05Z")

</div>

@samo  
I’m not sure whether your problem is related to your PHP settings, because you’re getting an OpenSSL error.

Could you try the following:

- `curl -L https://github.com/mautic/mautic/releases/download/2.16.0/2.16.0-update.zip > 2.16.0-update.zip` --\> this command attempts to download the update package. If you’re getting the same error here, something is wrong with your local installation (e.g. your system libraries like OpenSSL are out of date). If this does work though, the problem might indeed be in your PHP installation/configuration, we can then dive deeper into that.
- `openssl version` --\> this gives you the version of openssl installed. Could you post that here?

---

<div class="post-metadata">

**Author:** ![samo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/samo/32/556_2.png) [@samo](https://forum.mautic.org/u/samo)\
**Post date:** [February 14, 2020, 10:18am UTC](https://forum.mautic.org/t/an-error-occured-while-downloading-the-update-package-for-mautic-2-16/12810/3 "2020-02-14T10:18:57Z")

</div>

@dennisameling Thank you for your suggestions and your help!

- The attempt to download it from GitHub didn’t result in the exact same error, but a similar one to the log when I first tried to update within the Dashboard. Actually I’m not sure if it’s really an error, but after a failed attempt it returns: “curl: (56) SSL read: errno -5961”  

- The Open SSL version command returns: OpenSSL 1.0.1e-fips 11 Feb 2013

---

<div class="post-metadata">

**Author:** ![aerendir](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/aerendir/32/1050_2.png) [@aerendir](https://forum.mautic.org/u/aerendir)\
**Post date:** [February 14, 2020, 1:37pm UTC](https://forum.mautic.org/t/an-error-occured-while-downloading-the-update-package-for-mautic-2-16/12810/4 "2020-02-14T13:37:05Z")

</div>

You have to update OpenSSL first:

> The **latest stable version is the 1.1.1 series**.  
> This is also our Long Term Support (LTS) version, supported until 11th September 2023.  
> All other versions (including 1.1.0, 1.0.2, **1.0.0** and 0.9.8) **are now out of support and _should not be used_**.  
> **Users of these older versions are encourage to upgrade to 1.1.1 as soon as possible**.  
> Extended support for 1.0.2 to gain access to security fixes for that version is [available](https://www.openssl.org/support/contracts.html).
> 
> Source: [/source/index.html](https://www.openssl.org/source/)

---

<div class="post-metadata">

**Author:** ![samo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/samo/32/556_2.png) [@samo](https://forum.mautic.org/u/samo)\
**Post date:** [February 14, 2020, 10:30pm UTC](https://forum.mautic.org/t/an-error-occured-while-downloading-the-update-package-for-mautic-2-16/12810/5 "2020-02-14T22:30:07Z")

</div>

@aerendir Thank you for your suggestions and your help!

Unfortunately I can’t update OpenSSL myself. So I asked the Hosting Company they should update it. However they said, they wouldn’t update it, I quote:

> We would like to let you know that the update of components like OpenSSL depend on cPanel. Also, cPanel itself ensures that all the latest security patches are available for all systems.  
> At the same time, the version of the package may not correspond to some security check-list and may not be the last available by the version number.  
> Thus, we would like to assure you that there are no security-related issues regardless of the version specified in phpinfo output.

I’m not sure if there is no other way around that?

---

<div class="post-metadata">

**Author:** ![samo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/samo/32/556_2.png) [@samo](https://forum.mautic.org/u/samo)\
**Post date:** [February 14, 2020, 10:38pm UTC](https://forum.mautic.org/t/an-error-occured-while-downloading-the-update-package-for-mautic-2-16/12810/6 "2020-02-14T22:38:12Z")

</div>

Actually there might be an alternative and especially for Non-Techies a much simpler one! 😊

Yesterday I wrote Softaculous Support and asked them to push the updated Mautic version, so that every Softaculous+Mautic user is able to easly update Mautic within Softaculous. Today they confirmed that their Script Team is now testing everything & shall release it on monday. I hope they will & it’ll work!

---

<div class="post-metadata">

**Author:** ![samo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/samo/32/556_2.png) [@samo](https://forum.mautic.org/u/samo)\
**Post date:** [February 27, 2020, 12:36pm UTC](https://forum.mautic.org/t/an-error-occured-while-downloading-the-update-package-for-mautic-2-16/12810/7 "2020-02-27T12:36:11Z")

</div>

Softaculous pushed the [Mautic 2.16 update on the 17th february](https://www.softaculous.com/news/scripts/updated-mautic-to-2-16-0-20003.html). Unfortunately my assumptions to upgrade via Softaculous was no luck! I asked the Softaculous Team why they don’t provide an easy update wizard like they do for WordPress and many other Scripts, and they answered:

> The reason being this is not possible since the vendor himself is not recommending us to do it via CURL as it may not complete the upgrade process and corrupt the installation. Hence they insist on to use CLI or the internal upgrade.

So, I wonder is there no way to improve the Update process of Mautic in order to easily update Mautic on almost every Hosting environment - including shared hosting?
