Can't start Nextcloud because the version of the data is higher than the docker image version and downgrading is not supported

I managed to get it fixed by restoring /version.php from backup into the container version 19 and then running a manual update via docker-compose exec --user www-data nextcloud php occ -vvv upgrade and then docker-compose exec --user www-data nextcloud php occ maintenance:mode --off.
That got me back to a running v19.
From there I could then pull the v20 docker image and run the upgrade to v20 using the same two commands.

3 Likes