Update from 21 to 22 failed (Exception: Database error when running migration latest for app notifications)

Hello, I have update with web updater my cloud, v21.0.4 => 22.1.1 , but 1 error still appearing :

Database error when running migration latest for app notifications

Nextcloud version : 21.0.4
Operating system and version : debian 10
Apache 2.4.38
PHP 7.4
mariadb version: 10.3.29-MariaDB-0+deb10u1 Debian 10

config.php

‘datadirectory’ => ‘/var/www/nextcloud/data’,
‘dbtype’ => ‘mysql’,
‘version’ => ‘21.0.4.1’,
‘dbname’ => ‘nextcloud’,
‘dbhost’ => ‘localhost’,
‘dbport’ => ‘’,
‘dbtableprefix’ => ‘oc_’,
‘mysql.utf8mb4’ => true,
‘installed’ => true,
‘theme’ => ‘’,
‘loglevel’ => 2,
‘filesystem_check_changes’ => 1,

erreur1aupdatecloud

thanks for your help !

end of error:

erreur2updatecloud

Hi all, I had the same problem. Solved it by deleting all entries in table oc_notifications_pushtokens. After deleting the update process worked.

2 Likes

Thanks ! Your answer solves my issue !