Nextcloud in maintenance mode after upgrade from 23 to 24

Hello everybody,

i have problem after upgrade nextcloud on UCS. Now nextcloud is in maintenence mode and still need upgrade to 24.0.4 but when i try to do this with ./occ upgrade i still get this:

Exception: Database error when running migration 24000Date20220202150027 for app core

An exception occurred while executing a query: SQLSTATE[23505]: Unique violation: 7 Error: can not be created un ique index “mounts_user_root_index”

DETAIL: Key (user_id, root_id)=(user, 34314) is duplicated.

Update failed

Can anybody tell me whay sould i do with this, i am not a advanced linux user :frowning:

Mastodon