General error after reenable onlyoffice after update to nextcloud 24

I get this error on one of my docker nextcloud containers after upgrading to nextcloud 24. The error accurs after enabling onlyoffice again:

Database error when running migration 070400Date20220607111111 for app onlyoffice An exception occurred while executing a query: SQLSTATE[HY000]: General error: 1 index share_id_index already exists

Other similar containers at the same migration does work with no problem. How can I fix this?

I have also run

docker exec -it -u 33 nextcloud_netzbesuch /bin/bash
./occ maintenance:repair
./occ upgrade
./occ maintenance:mode --off
./occ db:add-missing-indices

without any error. I use sqlite3 DB and I will try to get access to it an check sql error there…

ok…

docker exec -i -u 33 CONTAINERNAME /bin/bash
./occ db:add-missing-indices
./occ db:add-missing-primary-keys
./occ db:add-missing-columns
./occ db:convert-filecache-bigint

did the job