Your software
My PHP version is : 7.4 (FPM with OPCache)
*My MySQL: MySQL 5
Updating/Installing Errors
I am (delete as applicable): Upgrading to the latest Mautic Version
Upgrading/installing via (delete as applicable) : Command Line
These errors are showing in the installer :
These errors are showing in the Mautic log :
[2022-11-15 17:55:53] console.CRITICAL: Error thrown while running command “doctrine:migrations:migrate --quiet --no-interaction”. Message: “An exception occurred while executing ‘ALTER TABLE email_stats
CHANGE COLUMN tokens
tokens
LONGTEXT CHARACTER SET ‘utf8mb4’ COLLATE ‘utf8mb4_unicode_ci’ NULL DEFAULT NULL COMMENT ‘(DC2Type:array)’;’: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away” {“exception”:“[object] (Doctrine\DBAL\Exception\ConnectionLost(code: 0): An exception occurred while executing ‘ALTER TABLE email_stats
CHANGE COLUMN tokens
tokens
LONGTEXT CHARACTER SET ‘utf8mb4’ COLLATE ‘utf8mb4_unicode_ci’ NULL DEFAULT NULL COMMENT ‘(DC2Type:array)’;’:\n\nSQLSTATE[HY000]: General error: 2006 MySQL server has gone away at /home/smartspeech/www/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:115, Doctrine\DBAL\Driver\PDO\Exception(code: HY000): SQLSTATE[HY000]: General error: 2006 MySQL server has gone away at /home/smartspeech/www/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php:18, PDOException(code: HY000): SQLSTATE[HY000]: General error: 2006 MySQL server has gone away at /home/smartspeech/www/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:141)”,“command”:“doctrine:migrations:migrate --quiet --no-interaction”,“message”:“An exception occurred while executing ‘ALTER TABLE email_stats
CHANGE COLUMN tokens
tokens
LONGTEXT CHARACTER SET ‘utf8mb4’ COLLATE ‘utf8mb4_unicode_ci’ NULL DEFAULT NULL COMMENT ‘(DC2Type:array)’;’:\n\nSQLSTATE[HY000]: General error: 2006 MySQL server has gone away”} {“hostname”:“server268.com”,“pid”:57731}
Your problem
My problem is : I haven’t been able to upgrade Mautic during the last few releases. Upgrading from 4.1.2
After the upgrades fail I revert to a pre-upgrade backup. Thank you
Steps I have tried to fix the problem : Searched for solutions on this forum and other spaces but none seemed directly applicable.
Thank you in advance for any advice you can offer.