Error after update to version 22.2.3

Hello,

After upgrading the docker image to 22.2.3, I’m getting:

php occ upgrade
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
Setting log level to debug
Updating database schema
Doctrine\DBAL\Exception\TableExistsException: An exception occurred while executing a query: SQLSTATE[42P07]: Duplicate table: 7 ERROR:  relation "oc_migrations" already exists
Update failed
Maintenance mode is kept active
Resetting log level

Renaming the `oc_migration, so that nextcloud does not see it:

php occ upgrade
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
Setting log level to debug
Updating database schema
Exception: Database error when running migration latest for app core
Update failed
Maintenance mode is kept active
Resetting log level

The database is postgresql 12.

Any ideas to solve this?

Thanks.

I would have suggested to check the bug tracker. But you already posted an issue there, so please follow up there:

1 Like