General error: 2006 MySQL lors de mise a jour MySQL (vers Matomo 4.04)

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]

Pardon, parti un peu vite…

Si quelqu’un a une piste pour résoudre le problème, merci d’avance :slight_smile:

Bonjour à tous,
Je me permet de faire un up de ce post car j’ai ce même problème. A chaque fois que j’essaie de faire une mise à jour automatique, j’ai ce message “General error: 2006 MySQL server has gone away”.
Les paramètres de la base de données n’ont pas changés, le dossier Matomo est bien en 0777, la version de PHP est bien 7.3. J’ai beau fouiller dans la Faq je ne trouve pas de solution.
La mise à jour “manuelle” par transfert FTP fonctionne, mais c’est fastidieux et long. Surtout j’aimerais comprendre pourquoi cela ne fonctionne pas en automatique ?
Merci d’avance à ceux qui voudront bien m’aider.

Bonjour,
Up Up !
Et plusieurs mises à jour plus tard, toujours pareil. Et toujours pas de solution à ce problème ? N’y a-t-il que moi qui suit dans ce cas ?
Ce n’est quand même pas normal que la mise à jour en automatique ne fonctionne pas, au moment ou de plus en plus de gens migrent vers Matomo. Est-on obligé de souscrire à une version payante pour un fonctionnement correct ?
Si la réponse existe quelque part en anglais, je suis désolée mais je ne maitrise pas bien moi non plus.
Je répète le message d’erreur :
SQLSTATE[HY000]: General error: 2006 MySQL server has gone away
Merci pour toute piste.

Ceci peut-être ?
https://matomo.org/faq/troubleshooting/#faq_183