Update from 4.12 to 4.13 fails with ZIP archive could not be found

Your software
My PHP version is : PHP 8.3.6 (cli)
My MariaDB version is : mariadb Ver 15.1 Distrib 10.6.18-MariaDB

Updating/Installing Errors
I am: Updating
Upgrading via: Command Line

Your problem
My problem is :

I can’t update to Mautic 5 yet as it does not support Postmark yet. So for now I want to update to the latest 4 version, which is currently 4.4.13. So i tried the following:

I downloaded the latest 4.X release:

wget https://github.com/mautic/mautic/releases/download/4.4.13/4.4.13-update.zip

I then tried to apply the update via CLI, using the --update-package flag like so:

sudo -u www-data php /var/www/html/mautic/bin/console mautic:update:apply --update-package=/home/ubuntu/4.4.13-update.zip

Then it prompts: “Are you sure you wish to update Mautic to the latest version?”

I entered: yes

Then it returns: The ZIP archive could not be found.

Even though the path to the ZIP is correct.

Any ideas on how to solve? Thanks!

Hi,

did you get it?

If not, I’ve done this actually.

With this

wget https://github.com/mautic/mautic/releases/download/4.4.13/4.4.13-update.zip

you’ve downloaded it into the Mautic folder directly.

So you’ve to apply the update only with:

php bin/console mautic:update:apply --update-package=4.4.13-update.zip

This worked out two times (separate installations).

The downloaded file will be deleted automatically.

Best,
Georg