Hi all,
we were running Nextcloud version 18.0.13 until this evening and decided to upgrade to 20.0.7.
So we walked through the updates
18.0.13 => 18.0.14
18.0.14 => 19.0.8
without any problems. Instance was running after every update, everything working, no errors in the logs.
Now trying to update from 19.0.8 => 20.0.7 throws us an exception that updates between multiple major versions and downgrades are unsupported:
# sudo -u www-data php occ upgrade
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
Setting log level to debug
Exception: Updates between multiple major versions and downgrades are unsupported.
Update failed
Maintenance mode is kept active
Resetting log level
nextcloud.log showing the same error:
{“reqId”:“9oVqSEAJmeT0chnpQfiy”,“level”:3,“time”:“2021-02-10T22:11:30+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“updater”,“method”:“”,“url”:“–”,“message”:“\OC\Updater::failure: Exception: Updates between multiple major versions and downgrades are unsupported.”,“userAgent”:“–”,“version”:“18.0.13.1”}
{“reqId”:“9oVqSEAJmeT0chnpQfiy”,“level”:3,“time”:“2021-02-10T22:11:30+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“updater”,“method”:“”,“url”:“–”,“message”:“\OC\Updater::updateEnd: Update failed”,“userAgent”:“–”,“version”:“18.0.13.1”}
{“reqId”:“9oVqSEAJmeT0chnpQfiy”,“level”:1,“time”:“2021-02-10T22:11:30+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“updater”,“method”:“”,“url”:“–”,“message”:“\OC\Updater::maintenanceActive: Maintenance mode is kept active”,“userAgent”:“–”,“version”:“18.0.13.1”}
{“reqId”:“9oVqSEAJmeT0chnpQfiy”,“level”:1,“time”:“2021-02-10T22:11:30+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“updater”,“method”:“”,“url”:“–”,“message”:“\OC\Updater::resetLogLevel: Reset log level to Warning(2)”,“userAgent”:“–”,“version”:“18.0.13.1”}
He obviously thinks we are still on 18.0.13?
We are doing manual upgrades since using Nextcloud.
Our usual steps:
- cd /opt/nextcloud_www
- sudo -u www-data php occ maintenance:mode --on
- /etc/init.d/apache2 stop
- mv /opt/nextcloud_www /opt/nextcloud_www.old
- (Backup MySQL database using mysqldump)
- cd /usr/src
- tar -xvjf nextcloud-.tar.bz2
- chown -R www-data:www-data nextcloud
- find nextcloud/ -type d -exec chmod 750 {} ;
- find nextcloud/ -type f -exec chmod 640 {} ;
- mv nextcloud /opt/nextcloud_www
- cp -a /opt/nextcloud_www.old/config/config.php /opt/nextcloud_www/config
- cd /opt/nextcloud_www.old/apps
- cp -a drawio notes polls gpxpod spreed richdocuments /opt/nextcloud_www/apps
- /etc/init.d/apache2 start
- cd /opt/nextcloud_www
- sudo -u www-data php occ upgrade
- sudo -u www-data php occ maintenance:update:htaccess
- sudo -u www-data php occ db:add-missing-indice
- sudo -u www-data php occ db:add-missing-columns
- sudo -u www-data php occ db:convert-filecache-bigint
- sudo -u www-data php occ maintenance:mode --off
Environment is an Ubuntu Server 16.04.7 LTS with all updates installed. Using Apache 2.4.18 and MySQL 5.7.33 from official Ubuntu repository and PHP 7.4 from ondrej (***** The main PPA for supported PHP versions with many PECL ext... : Ondřej Surý) running as module.
Webfiles installed in /opt/nextcloud_www, data directory is /opt/nextcloud.
We already tried a maintenance:repair with version 19.0.8, but no errors were shown.
Web UI is also showing we were running on 19.0.8 and offers us an update to 20.0.7.
We don’t really know where to look since everyone else getting this error is really trying to jump over major versions
Any hint or help is much appreciated and thank you in advance!
Greetings from Germany
Björn