Nextcloud version (eg, 20.0.5): 21.0.4
Operating system and version (eg, Ubuntu 20.04): Ubuntu 20.04
Apache or nginx version (eg, Apache 2.4.25): 2.4
PHP version (eg, 7.4): 7.4.24
The issue you are facing:
Cannot start Nextcloud.
- When launching version 23, it is in maintenance mode and turning the maintenance mode off offers the web updater (didn’t run it as I am worried the update procedure will surely fail).
- When launching version 21, it fails to start with error saying that data version is already 23.
As I understand the issue, somehow some part of update was run (hopefully only some tag in DB) despite not launching the update itself.
I see two solutions, either try to revert the change (this I tried but failed to find any mention of the version 23…), or YOLO run the update and pray.
(Third is to burn everything and install 23 fresh which I’d love to avoid.)
Any ideas how to proceed from here are very welcome.
Is this the first time you’ve seen this error? (Y/N): Yes
Steps to replicate it:
- Run docker NC 21.0.4 and have it working normally
- Stop the container
- Run docker NC 23.0.5 (current production tag)
- Access your NC via browser to see maintenance mode
- Turn off maintenance mode
- Access your NC via browser to see updater… and realize the mistake
The output of your Nextcloud 21:
nextcloud-app | Can't start Nextcloud because the version of the data (23.0.5.1) is higher than the docker image version (21.0.4.1) and downgrading is not supported. Are you sure you have pulled the newest image version?
nextcloud-app exited with code 1
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'memcache.local' => '\\OC\\Memcache\\APCu',
'apps_paths' =>
array (
0 =>
array (
'path' => '/var/www/html/apps',
'url' => '/apps',
'writable' => false,
),
1 =>
array (
'path' => '/var/www/html/custom_apps',
'url' => '/custom_apps',
'writable' => true,
),
),
'instanceid' => '...',
'passwordsalt' => '...',
'secret' => '...',
'trusted_domains' =>
array (
0 => '...',
),
'datadirectory' => '/var/www/html/data',
'dbtype' => 'mysql',
'version' => '21.0.4.1',
'overwriteprotocol' => 'https',
'dbname' => 'nextcloud',
'dbhost' => 'db',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'nextcloud',
'dbpassword' => '...',
'installed' => true,
'maintenance' => true,
'theme' => '',
'loglevel' => 0,
'mail_from_address' => 'nextcloud',
'mail_smtpmode' => 'smtp',
'mail_domain' => '...',
'mail_smtphost' => '...',
'mail_smtpport' => '465',
'mail_smtptimeout' => 10,
'mail_smtpsecure' => 'ssl',
'mail_smtpauthtype' => 'LOGIN',
'mail_sendmailmode' => 'smtp',
'mail_smtpauth' => 1,
'mail_smtpname' => '...',
'mail_smtppassword' => '...',
'overwrite.cli.url' => 'https://...',
'updater.release.channel' => 'stable',
);