I have quite old installation dating back to mautic 2, would really like to not loose all the data or be stuck on the old version of mautic. Its the first time i’m having such a hard time with an update.
Tried different php versions, with and without doctrine:migrations:migrate beforehand, but the update always breaks with php error.
The mautic:update:apply works, but the second stage with the --finish throws such error:
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2461696 bytes) in /home/klient.dhosting.pl/thario/test/vendor/symfony/dependency-injection/ContainerBuilder.php on line 1607
I dont see anything relevant in the log regarding this.
I contacted my hosting provider, and they confirmed that they also see 8192M limit.
Is there somewhere in mautic something that might limit it apart from the server configuration?
However when they initiated the update there was a different error before the --finish stage.
[2024-05-10T10:00:06.683577+02:00] console.CRITICAL: Error thrown while running command “mautic:segments:update”. Message: “An exception occurred while executing a query: SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘l0_.last_built_time’ in ‘field list’” {“exception”:“[object] (Doctrine\DBAL\Exception\InvalidFieldNameException(code: 1054): An exception occurred while executing a query: SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘l0_.last_built_time’ in ‘field list’ at /home/klient.dhosting.pl/thario/test/vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php:67)\n[previous exception] [object] (Doctrine\DBAL\Driver\PDO\Exception(code: 1054): SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘l0_.last_built_time’ in ‘field list’ at /home/klient.dhosting.pl/thario/test/vendor/doctrine/dbal/src/Driver/PDO/Exception.php:28)\n[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘l0_.last_built_time’ in ‘field list’ at /home/klient.dhosting.pl/thario/test/vendor/doctrine/dbal/src/Driver/PDO/Connection.php:71)”,“command”:“mautic:segments:update”,“message”:“An exception occurred while executing a query: SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘l0_.last_built_time’ in ‘field list’”} {“hostname”:“web03-s206.ewh.eu1.dhosting.com”,“pid”:884214}
Is there a way to export the database and import it to a new updated instance? Would be probably easier than trying to find the problem.
Unfortunately it shows the value correctly as defined in .htaccess - 8192M, also when I change the value in .htaccess it changes in mautic system info.
I tried a cheesy way to load this database into 5.0.3 instance and do the doctrine:migrate, but cheesy is not the way in IT, it breaks.
I’m quite out of ideas how to trouble shoot this, it would be good to know the problem, but in general the priority is to be able to update to the new versions of mautic.