Nextcloud version (eg, 20.0.5): 20.0.7
Operating system and version (eg, Ubuntu 20.04): Debian 10 Buster (current stable)
Apache or nginx version (eg, Apache 2.4.25): 2.4.38
PHP version (eg, 7.4): 7.3
The issue you are facing:
Since last night NC has been asking me to upgrade. Once I try to do that, I get:
Exception: Updates between multiple major versions and downgrades are unsupported.
And the server stays in maintenance mode. If I try from the command line, i get slightly more info:
mdione@neomustang:~$ sudo -u www-data php7.3 /var/www/nextcloud/occ upgrade -vvv
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
2021-02-14T08:28:29+00:00 Setting log level to debug
2021-02-14T08:28:29+00:00 Turned on maintenance mode
2021-02-14T08:28:29+00:00 Exception: Updates between multiple major versions and downgrades are unsupported.
2021-02-14T08:28:29+00:00 Update failed
2021-02-14T08:28:29+00:00 Maintenance mode is kept active
2021-02-14T08:28:29+00:00 Resetting log level
And some more info:
mdione@neomustang:~$ sudo -u www-data php7.3 /var/www/nextcloud/occ --version
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
Nextcloud 20.0.7
Is this the first time you’ve seen this error? (Y/N): Y
The output of your Nextcloud log in Admin > Logging: I can’t login right now
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'trusted_domains' =>
array (
[...]
),
'datadirectory' => '/var/www/nextcloud/data',
'dbtype' => 'sqlite3',
'version' => '17.0.1.1',
'installed' => true,
'maintenance' => false,
'theme' => '',
'loglevel' => 2,
);
I see the issue here, I’ve been provisioning this file with Ansible. I just tried to replace the version with 20.0.7
, and restart apache2
, but I still have the same issue. I also wonder how is this different from the version reported above, and why is it even there? I even commented out that line, nothing.