Update from 22.2.5 > 22.2.10 fails with database exception

Nextcloud version (eg, 20.0.5): 22.2.5
Operating system and version (eg, Ubuntu 20.04): CentOS Linux release 8.1.1911
Apache or nginx version (eg, Apache 2.4.25): httpd-2.4.37
PHP version (eg, 7.4): php-7.4.10-1

The issue you are facing:

Is this the first time you’ve seen this error? (Y/N):Y

Steps to replicate it:

  1. sudo -u apache php occ upgrade -vvv

The output of your Nextcloud log in Admin > Logging:
[root@cnct02 nextcloud]# sudo -u apache php occ upgrade -vvv
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
2023-02-08T10:03:43+00:00 Setting log level to debug
2023-02-08T10:03:43+00:00 Repair step: Repair MySQL collation
2023-02-08T10:03:43+00:00 Repair info: All tables already have the correct collation → nothing to do
2023-02-08T10:03:43+00:00 Repair step: Repair SQLite autoincrement
2023-02-08T10:03:43+00:00 Repair step: Copy data from accounts table when migrating from ownCloud
2023-02-08T10:03:43+00:00 Repair step: Drop account terms table when migrating from ownCloud
2023-02-08T10:03:43+00:00 Updating database schema
2023-02-08T10:03:43+00:00 Updated database
2023-02-08T10:03:43+00:00 Updating <user_saml> …
2023-02-08T10:03:44+00:00 Exception: Database error when running migration latest for app user_saml
2023-02-08T10:03:44+00:00 Update failed
2023-02-08T10:03:44+00:00 Maintenance mode is kept active
2023-02-08T10:03:44+00:00 Resetting log level

I couldnt find any topic which relates to this kind of error.
I have just seen database exceptions reffering to “app core”.

Does someone know about this error and how it is fixed?
Thanks in advance!

Kind regards

Marvin

Maybe you can disable or delete the app user_saml. Do you use SSO & SAML authentication?

documentation occ apps commands