I’m currently in the following dead-end. I tried to upgrade from v19 to v21, which obviously was a mistake.
The upgrade fails with the following error: Exception: Updates between multiple major versions and downgrades are unsupported.
When recreating the container with a v20 image I get the following error and the container is not starting: Can’t start Nextcloud because the version of the data (126.96.36.199) is higher than the docker image version (188.8.131.52) and downgrading is not supported. Are you sure you have pulled the newest image version?
The same error occurs when using the original v19 image.
How can I escape from this situation? Any trick? I didn’t found a solution in this forum. Unfortunately, I don’t have a DB backup.
I hope you have a backup just before an upgrade (it’s always a good idea to perform backup before doing something potentially disruptive). In this case the most easiest way would be to restore you old system and upgrade to your desired option going through all major versions.
Hey. Thank you for the reply and the links. That helped a lot. I fixed my issue finally, quite simple. Just had to change the version in config.php to 184.108.40.206 (same as in version.php) and now it works fine with the latest docker image.
Lessons learned: not to backup only the data folder but also the config and DB. Not to skip a major Nextcloud version.