Problem
A “Updates between multiple major versions are unsupported” message is shown during an update/upgrade of Nextcloud.
Description
As the message is telling you, you have done an unsupported upgrade path. For example:
Original version: 19.0.52
Upgraded version: 21.0.0
In this case you have skipped the 20.0.x upgrade which is unsupported as stated within the documentation.
Solution:
You need to upgrade first to the latest available version of 20.0.x which is currently 20.0.2. For that specific scenario the following is recommended:
- Remove all files and folders of your Nextcloud installation folder except /data/ and /config/
- Download 19.0.56 from https://nextcloud.com/changelog/
- Extract the content of the archive it into your Nextcloud installation folder
- Run the update via the webui or the command line tool
Afterwards repeat those steps with 20.0.2 and 21.0.0
So what you could do is:
- Remove the version from the config.php you copy all the time
- Copy the config.php to others.config.php instead of config.php
The two configs will then be merged on use. So it would still copy all your configs all the time, while not overwriting the version from the config.php:
https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html#multiple-config-php-file