Nextcloud 14 upgrade error “Updates between major versions and downgrades are unsupported” fix

I’ve been cursed with this error I think every major upgrade since the migration from ownCloud to Nextcloud a couple of years ago. I have another posting on disabling this check on a previous version. It makes me not want to run the upgrades because they always fail. I’m unsure what check it’s finding that incorrectly flags the existing installed version, no matter what that version is, and halts the upgrade.

But, for version Nextcloud version 14, there is a different area of the Updater.php to comment-out. At around line 211, you can just add comment-out the three lines doing the check and trigger a halt to the upgrade process. 

Commenting the three key lines out of the Updater.php file for Nextcloud 14

The file you need to modify is in this path:


Once you do that, you can complete the upgrade either via the web upgrade or via the ./occ shell commands. 

4 Replies to “Nextcloud 14 upgrade error “Updates between major versions and downgrades are unsupported” fix”

  1. Somewhere there must be a version number set wrongly for your system – I mean, that it happens once, ok, but after that it shouldn’t keep happening… In the config.php or in the database? I’m not sure but this is of course not normal.

    Disabling the check is fine if you are sure you go from, say, 11 to 12 or 14 to 15 but if you try to go from 12 to 14, disabling this check to enforce the migration is very likely to lead to a broken install. Just want to get that warning out 😉

Leave a comment or reply