# Error updating Mautic from 3.2.1 to 3.2.2

**URL:** https://forum.mautic.org/t/error-updating-mautic-from-3-2-1-to-3-2-2/17561
**Category:** Mautic 3 - Install/Upgrade Support
**Created:** [December 26, 2020, 12:01am UTC](https://forum.mautic.org/t/error-updating-mautic-from-3-2-1-to-3-2-2/17561 "2020-12-26T00:01:40Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![wiltrovira](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/wiltrovira/32/4155_2.png) [@wiltrovira](https://forum.mautic.org/u/wiltrovira)
#### Post date: [December 26, 2020, 12:01am UTC](https://forum.mautic.org/t/error-updating-mautic-from-3-2-1-to-3-2-2/17561/1 "2020-12-26T00:01:40Z")

</div>

Hello there.  
I hope you can help me to solve this issue.

My Mautic version  
Mautic 3.2.1 - app/prod (kernel: app, env: prod, debug: false)

I cannot update Mautic from 3.2.1 to 3.2.2

My PHP version is : PHP 7.4.3 (cli) (built: Oct 6 2020 15:47:56) ( NTS )  
My MySQL version is: Ver 8.0.22-0ubuntu0.20.04.3 for Linux on x86\_64 ((Ubuntu))

I am Updating via Command Line  
php bin/console mautic:update:apply

_These errors are showing in the installer_ :  
Step 2 [–\>-------------------------] Downloading update package… PHP Notice: Undefined index: message in /var/www/mautic/app/bundles/CoreBundle/Update/Step/InstallNewFilesStep.php on line 131

These are the lines that generates throw the error  
if (isset($package[‘error’])) {  
throw new UpdateFailedException($this-\>translator-\>trans($package[‘message’]));  
}

_These errors are showing in the Mautic log_ :  
[2020-12-25 18:22:38] mautic.WARNING: Command `mautic:update:apply` exited with status code 1

_Steps I have tried to fix the problem_ :  
I cleared the cache  
php bin/console cache:clear

Regards,  
Wilt

---

<div class="post-metadata">

### Author: ![Shaz3e](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/shaz3e/32/236_2.png) [@Shaz3e](https://forum.mautic.org/u/Shaz3e)
#### Post date: [December 26, 2020, 9:46am UTC](https://forum.mautic.org/t/error-updating-mautic-from-3-2-1-to-3-2-2/17561/2 "2020-12-26T09:46:34Z")

</div>

Please also provide information on how can we upgrade to the latest version 3.2.2 from the browser itself.

**Edit:** the first time it worked for me I have just updated Mautic with the latest version 3.2.1 to 3.2.2

---

<div class="post-metadata">

### Author: ![frankofno](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/frankofno/32/3455_2.png) [@frankofno](https://forum.mautic.org/u/frankofno)
#### Post date: [December 28, 2020, 12:34pm UTC](https://forum.mautic.org/t/error-updating-mautic-from-3-2-1-to-3-2-2/17561/3 "2020-12-28T12:34:24Z")

</div>

getting the same message.

System:  
PHP 7.3.25 (cli) (built: Nov 24 2020 11:10:55) ( NTS )  
mysql Ver 15.1 Distrib 10.3.17-MariaDB, for Linux (x86\_64) using readline 5.1

mautic: 3.1.1

---

<div class="post-metadata">

### Author: ![bs1](https://avatars.discourse-cdn.com/v4/letter/b/ce73a5/32.png) [@bs1](https://forum.mautic.org/u/bs1)
#### Post date: [December 28, 2020, 11:24pm UTC](https://forum.mautic.org/t/error-updating-mautic-from-3-2-1-to-3-2-2/17561/4 "2020-12-28T23:24:41Z")

</div>

Me too. The same message.

---

<div class="post-metadata">

### Author: ![EJL](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ejl/32/12155_2.png) [@EJL](https://forum.mautic.org/u/EJL)
#### Post date: [December 28, 2020, 11:50pm UTC](https://forum.mautic.org/t/error-updating-mautic-from-3-2-1-to-3-2-2/17561/5 "2020-12-28T23:50:25Z")

</div>

Download the update zip file. Upload it to your mautic directory, unzip overwriting the existing files. Then run **doctrine:schema:update --env=prod --force**

I upgraded from 3.2.1-rc to 3.2.1 and then 3.2.2 with that method on a half dozen of my installs

> [@Error Updating from Mautic 3.2.0-rc --\>3.2.1](https://forum.mautic.org/t/error-updating-from-mautic-3-2-0-rc-3-2-1/17283/5):
>
> I tried your method again @dirk_s and ran doctrine:schema:update --env=prod --force and it worked. I upgraded to 3.2.1 and now 3.2.2 using this method. No issues so far

---

<div class="post-metadata">

### Author: ![wiltrovira](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/wiltrovira/32/4155_2.png) [@wiltrovira](https://forum.mautic.org/u/wiltrovira)
#### Post date: [December 29, 2020, 1:31am UTC](https://forum.mautic.org/t/error-updating-mautic-from-3-2-1-to-3-2-2/17561/6 "2020-12-29T01:31:54Z")

</div>

Thanks for your reply.

I downloaded the update zip and and renamed it “mautic-3.2.2-update.zip”

# Overwrite the existing files with 3.2.2 version

cd /var/www  
sudo unzip ~/mautic-3.2.2-update.zip -d ./mautic

#check for any outstanding database migrations  
php bin/console doctrine:migration:status

#migrate database  
php bin/console doctrine:migration:migrate

It seems it worked.

---

<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: [January 14, 2021, 5:13pm UTC](https://forum.mautic.org/t/error-updating-mautic-from-3-2-1-to-3-2-2/17561/7 "2021-01-14T17:13:24Z")

</div>

Thanks for reporting this issue. We introduced a bug in 3.2.0 that was causing this problem for updates done through the CLI.

TL;DR here’s the official workaround:

```auto
wget https://github.com/mautic/mautic/releases/download/3.2.4/3.2.4-update.zip
php bin/console mautic:update:apply --update-package=3.2.4-update.zip
php bin/console mautic:update:apply --finish

```

### A bit of background

We introduced a bug in 3.2.0 in the **download** step of the CLI update. Hence the workaround above, where you download the update package manually, mitigates this issue.

The bug has been fixed in 3.2.4. Users who have updated to that version won’t be affected by this issue anymore.

We deeply apologize for the inconvenience and will investigate potential improvements to our CI (Continuous Integration) pipeline to prevent issues like this one from occurring in the future.

---

<div class="post-metadata">

### Author: ![EJL](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ejl/32/12155_2.png) [@EJL](https://forum.mautic.org/u/EJL)
#### Post date: [January 14, 2021, 6:36pm UTC](https://forum.mautic.org/t/error-updating-mautic-from-3-2-1-to-3-2-2/17561/8 "2021-01-14T18:36:03Z")

</div>

> [@dennisameling](#):
>
> TL;DR here’s the official workaround:
> 
> ```auto
> wget https://github.com/mautic/mautic/releases/download/3.2.4/3.2.4-update.zip
> php bin/console mautic:update:apply --update-package=3.2.4-update.zip
> php bin/console mautic:update:apply --finish
> 
> ```

For clarity sake, this 3.2.4-update.zip file goes in the root of your mautic directory.

@dennisameling can confirm, but you can [download the file](https://github.com/mautic/mautic/releases/download/3.2.4/3.2.4-update.zip) and upload manually or you can use cd command to change directory to the root of your mautic directory and then use the wget command.

Thanks a bunch @dennisameling
