I am preparing a server migration and while at it, I need to upgrade the software. I have all the data on the new server and I would really like to migrate from ownCloud 10.9.1 (stable) to a recent NextCloud version in advance.
The new server isn’t hooked up yet so it needs to be done in CLI mode. I am used to ugrading NextCloud with CLI alone. But I can’t get it to work in combination with the OwnCloud migration.
Downloaded and extracted latest Version of NextCloud 11
Copied config/config.php from OwnCloud 10
Run php occ upgrade (as the www user)
Expected result: I was hoping for a successful upgrade to NextCloud 11
Actual result:
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
Set log level to debug
Exception: Updates between multiple major versions and downgrades are unsupported.
Update failed
Maintenance mode is kept active
Reset log level
I am a bit disappointed in the output “Exception: Updates between multiple major versions and downgrades are unsupported.”. Maybe the problem could easily be solved, if I just knew what NextCloud-version-equivalent the upgrade is detecting.
See the table below for a version map, where migrating is easily possible:
ownCloud |Nextcloud
10.13.x | 25.0.x (but at least 25.0.2)
10.5.x | 20.0.x (but at least 20.0.5)
What does that mean for ownCloud 10.9.1? Do I have to upgrade ownCloud to 10.13 first?
edit: “However this does only work with versions that are close enough database and code-wise.” Seems I have to get to a close ownCloud Version first.