Hi, I need help. After updating matomo as advised via email (attached) Im getting the following error and I dont have a clue of further information to solve it, any ideas please? Thanks!
Error msg:Su código base Matomo está ejecutando una versión añeja 5.3.2 y hemos detectado que su base de datos Matomo ya se ha actualizado a la versión más reciente 5.10.0. Tal vez sus administradores Matomo están actualmente finalizando el proceso de actualización. Por favor vuelva a intentarlo en unos minutos. Si todavía tienes este problema, por favor contacta con tu administrador Matomo en busca de ayuda.
Anyone could help me please?
If you’re self-hosted on PHP-FPM with OPcache on, the new Matomo files can be sitting on disk just fine but FPM keeps serving the old compiled bytecode out of shared memory. The CLI updater has its own separate opcache from FPM, so it can happily run the DB migrations against the new code (DB jumps to 5.10.0) while the web side is still reading VERSION = '5.3.2' from cache. Matomo sees the gap and locks you out with that exact error.
Quick diagnostic before touching anything. SSH into your server and run the following two commands:
grep "const VERSION" /path/to/matomo/core/Version.php
php /path/to/matomo/console core:version
If both report 5.10.0 but the browser still throws the error, it’s opcache. Restart PHP-FPM:
sudo systemctl restart "$(systemctl list-units --type=service --state=running | awk '/fpm/ {print $1; exit}')"
That one-liner finds the running php*-fpm.service and restarts it, so it works whether you’re on 8.1, 8.2, 8.3 etc. Then wipe the contents of tmp/cache/ and tmp/templates_c/ and reload:
sudo find /path/to/matomo/tmp/cache /path/to/matomo/tmp/templates_c -mindepth 1 -delete
If Version.php still says 5.3.2, the file upload during the update never actually finished and you’ll need to drop the 5.10.0 files in place manually before anything else will help.
One thing worth checking either way: are your CLI and FPM running on the same PHP version? Compare php -v against a phpinfo() page. If they differ, FPM could even be pointing at a different Matomo install than you think.