Updater attempts to downgrade

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): 27.1.4
Operating system and version (eg, Ubuntu 20.04): OpenSuSE Tumbleweed' Apache or nginx version _(eg, Apache 2.4.25)_: 2.4.58PHP version _(eg, 7.4)_:8.2.13`

The issue you are facing:

The WebUI is in maintenance mode and refuses to update, stating that update requires multiple major versions.

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. Attempt to log into Nextcloud
  2. Click on the occ updater link.
  3. After 2 fails, run sudo -u wwwrun php updater.phar

The output of your Nextcloud log in Admin > Logging:

No access to the admin log, here is the updater log:

023-12-06T22:09:33+0000 oVz8h1mjDr [info] getUpdateServerResponse response: Array
(
    [version] => 24.0.12.1
    [versionstring] => Nextcloud 24.0.12
    [url] => https://download.nextcloud.com/server/releases/nextcloud-24.0.12.zip
    [web] => https://docs.nextcloud.com/server/24/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=24.0.12
    [autoupdater] => 1
    [eol] => 1
    [signature] => aCQnJpJjf83glgpOxTs1tenmKYhdBK34JyhBtwhikoE4bg1GpfNPe+5OVEDkKPLi
o3tAWWdx8SAR1+PuLYwjkyy6hhr80ojDrhnmjVprB9PZ5Dqqz9Uk5sLjyse2e0FC
L9eCQfFLRMxNYyucp8ihSW2100KbDKPXq5K/GUS/9TuLV99JdwJjAWtPQzsm5KK9
3SMqwkuwWg+39qVS9W1w4zWjAwfP1xyJUFTIBeS35hnmnol2goE0JbSlTMoBYFyQ
PC8WFtnBG8EIA1ncyQ/IDKUZjg79E8cM8zyIY8PYmA/Jf4MpTMwfoGJQ0GtD6nCF
ACWMWE93WNcq+HBa025zsw==
)

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

?php
$CONFIG = array (
  'instanceid' =>
  'passwordsalt' => 
  'secret' => 'CEvqbENodZtz3OPOe+naObPRWqoze0cn2rPRQZmm/3gYkSek',
  'trusted_domains' => 
  array (
    0 => 'localhost',
    1 => '10.0.0.50',
  ),
  'datadirectory' => 
  'dbtype' => 'mysql',
  'version' => '24.0.1.1',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost:3306',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 
  'dbpassword' => 
  'installed' => true,
  'theme' => '',
  'loglevel' => 2,
  'maintenance' => true,
);

The output of your Apache/nginx/system log in /var/log/____:


[Wed Dec 06 15:15:26.148153 2023] [autoindex:error] [pid 3587] [client 51.159.164.227:42942] AH01276: Cannot serve directory /srv/www/htdocs/: No matching DirectoryIndex (index.html,index.html.var,index.php4,index.php5,index.php7,index.php8,index.php) found, and server-generated directory index forbidden by Options directive
[Wed Dec 06 15:15:27.611908 2023] [autoindex:error] [pid 1599] [client 51.159.164.227:43464] AH01276: Cannot serve directory /srv/www/htdocs/: No matching DirectoryIndex (index.html,index.html.var,index.php4,index.php5,index.php7,index.php8,index.php) found, and server-generated directory index forbidden by Options directive
[Wed Dec 06 15:54:23.892096 2023] [autoindex:error] [pid 3587] [client 120.71.59.24:58203] AH01276: Cannot serve directory /srv/www/htdocs/: No matching DirectoryIndex (index.html,index.html.var,index.php4,index.php5,index.php7,index.php8,index.php) found, and server-generated directory index forbidden by Options directive
[Wed Dec 06 15:58:44.625101 2023] [autoindex:error] [pid 1599] [client 31.7.58.42:52848] AH01276: Cannot serve directory /srv/www/htdocs/: No matching DirectoryIndex (index.html,index.html.var,index.php4,index.php5,index.php7,index.php8,index.php) found, and server-generated directory index forbidden by Options directive


Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

Nextcloud Updater - version: v27.1.0rc3-15-gfa7af53

Current version is 27.1.4.

Update to Nextcloud 24.0.12 available. (channel: "stable")
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-24.0.12.zip
Open changelog ↗