Update Mautic manually

Hi guys,



Is it possible to upgrade Mautic 1.0.2 tot 1.0.3 manually?



Regards,



Wim

Hi guys,

Is it possible to upgrade Mautic 1.0.2 tot 1.0.3 manually?

Regards,

Wim

Hi Wim,

Do you have access to the command line (via ssh)? If so, that’s the better option than a manual overriding of files. To upgrade from the command line you would run the commands:

Use this to find the available updates

php /path/to/mautic/app/console mautic:update:find -e prod

Then this to apply it

php /path/to/mautic/app/console mautic:update:apply -e prod

Thanks!
Alan

Hey Alan,

I’ve got SSH access. Found the cause.

PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 10924085 bytes) in /var/www/vhosts/example.com/httpdocs/marketing.example.com/vendor/joomla/http/src/Transport/Curl.php on line 221 example.com@web01roc:~/httpdocs/example.com/app
The PHP memory_limit of the server should be 128M. I’ve asked the provider to check if the server settings are correct.

Wim

Command line memory slimit was still set at 64M. They changed it and now the process runs a bit further before throwing an exhausted memory error.

Extracting zip... Clearing the cache... Clearing the cache for the prod environment with debug false Clearing the cache for the prod environment with debug false PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 10 bytes) in /var/www/vhosts/example.com/httpdocs/example.com/app/bootstrap.php.cache on line 2659

Still, the update seemed to be finished when checking for an update through the command line. Also, the frontend says it’s updated.

I would manually delete app/cache/prod just to be sure (it’ll auto rebuild on your first browse to Mautic). It seems that the system is having a hard time maybe deleting all the files. We do have a change coming with 1.1 that should decrease the cache files by hundreds which will likely help that. In the mean time, you may have to manually delete app/cache/prod to keep it from hitting the resource limit errors.

Thanks,
Alan

(That’s only after updates though. You shouldn’t have to do that regularly.)

Do i have to do anything with the databse or do I have to update only the files itself?