Bonjour,
Après 2 essais de mises à jour échoués, j’ai tenté au terminal. Mais pas mieux. L’erreur survient à la MàJ de MySQL. Il y a bien des cas qui ressemblent dans les archives mais je ne suis pas certains de bien comprendre les solutions (en anglais).
Extrait de la fin de la MàJ jusqu’à l’échec :
Executing ALTER TABLE zcax_log_link_visit_action
CHANGE interaction_position
pageview_position
MEDIUMINT UNSIGNED DEFAULT NULL;… WARNING [2020-12-14 16:15:01] 16307 /home/clients/ff59069ac76c34e632e43086273ba782/web/matomo/libs/Zend/Db/Adapter/Pdo/Abstract.php(263): Warning - PDO::exec(): MySQL server has gone away - Matomo 4.0.4 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
WARNING [2020-12-14 16:15:01] 16307 /home/clients/ff59069ac76c34e632e43086273ba782/web/matomo/libs/Zend/Db/Adapter/Pdo/Abstract.php(263): Warning - PDO::exec(): Error reading result set’s header - Matomo 4.0.4 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
ERROR [2020-12-14 16:15:01] 16307 There was an error while regenerating container releases: /home/clients/ff59069ac76c34e632e43086273ba782/web/matomo/libs/Zend/Db/Statement/Pdo.php(236): SQLSTATE[HY000]: General error: 2006 MySQL server has gone away
SQLSTATE[HY000]: General error: 2006 MySQL server has gone away
[X] Critical Error during the update process:
* /home/clients/ff59069ac76c34e632e43086273ba782/web/matomo/core/Updates/4.0.0-b1.php:
Error trying to execute the migration 'ALTER TABLE `zcax_log_link_visit_action` CHANGE `interaction_position` `pageview_position` MEDIUMINT UNSIGNED DEFAULT NULL;'.
The error was: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away
The above is the core error message. It should help explain the cause, but if you require further help please:
* Check the [ Matomo FAQ ] which explains most common errors during update.
* Ask your system administrator - they may be able to help you with the error which is most likely related to your server or MySQL setup.
If you are an advanced user and encounter an error in the database upgrade:
* identify and correct the source of the problem (e.g., memory_limit or max_execution_time)
* execute the remaining queries in the update that failed
* manually update the `option` table in your Matomo database, setting the value of version_core to the version of the failed update
* re-run the updater (through the browser or command-line) to continue with the remaining updates
* report the problem (and solution) so that Matomo can be improved
ERROR [2020-12-14 16:15:01] 16307 Uncaught exception: /home/clients/ff59069ac76c34e632e43086273ba782/web/matomo/plugins/CoreUpdater/Commands/Update.php(255): Matomo could not be updated! See above for more information.
Matomo could not be updated! See above for more information.
[RuntimeException]
Matomo could not be updated! See above for more information.
core:update [–yes]