Update error 20.0.11 --> 20.0.12

I get the message that the update to 20.0.12 is available.

When I open the updater:

Top oft he page:

Current version is 20.0.11.
Update to Nextcloud 20.0.12 available. (channel: “stable”)

However all items are alreay checked green, as if the update aready happened. (including “done” at the end).

When i run at the CMD:

sudo -u apache php occ upgrade
Nextcloud is already latest version

When I look in the config file it still says I’m on “20.0.11.1” …

Any thoughts?

Thx!

Same problem.

would be to launch the updater from command line. The occ command just starts the internal upgrade procedure that updates the database structure (it doesn’t get new code etc).

If the new code has been loaded, you can check the version in the file version.php in the main folder.

Thank you for your support.

/usr/bin/php74 updater/updater.phar

Nextcloud Updater - version: v20.0.0beta4-11-g68fa0d4

Current version is 20.0.11.

Update to Nextcloud 20.0.12 available. (channel: “stable”)
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-20.0.12.zip
Open changelog :arrow_upper_right:

Steps that will be executed:
[:heavy_check_mark:] Check for expected files
[:heavy_check_mark:] Check for write permissions
[:heavy_check_mark:] Create backup
[:heavy_check_mark:] Downloading
[:heavy_check_mark:] Verify integrity
[:heavy_check_mark:] Extracting
[:heavy_check_mark:] Enable maintenance mode
[:heavy_check_mark:] Replace entry points
[:heavy_check_mark:] Delete old files
[:heavy_check_mark:] Move new files in place
[:heavy_check_mark:] Done

Continue update? [y/N] y

Info: Pressing Ctrl-C will finish the currently running step and then stops the updater.

[:heavy_check_mark:] Check for expected files
[:heavy_check_mark:] Check for write permissions
[:heavy_check_mark:] Create backup
[:heavy_check_mark:] Downloading
[:heavy_check_mark:] Verify integrity
[:heavy_check_mark:] Extracting
[:heavy_check_mark:] Enable maintenance mode
[:heavy_check_mark:] Replace entry points
[:heavy_check_mark:] Delete old files
[:heavy_check_mark:] Move new files in place
[:heavy_check_mark:] Done

Update of code successful.

Should the “occ upgrade” command be executed? [Y/n] y
Nextcloud is already latest version

Keep maintenance mode active? [y/N] y
Maintenance mode kept active
/usr/bin/php74 occ maintenance:mode --off
Maintenance mode already disabled
~/path/nextcloud$

Nextcloud 20.0.11 a new Version is available … 20.0.12

Thx, for the feedback. When running the update as suggested using sudo -u apache php updater/updater.phar I get the same result.

sudo -u apache php updater/updater.phar
Nextcloud Updater - version: v20.0.0beta4-11-g68fa0d4

Current version is 20.0.11.

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

Steps that will be executed:
[✔] Check for expected files
[✔] Check for write permissions
[✔] Create backup
[✔] Downloading
[✔] Verify integrity
[✔] Extracting
[✔] Enable maintenance mode
[✔] Replace entry points
[✔] Delete old files
[✔] Move new files in place
[✔] Done

Continue update? [y/N] y

Info: Pressing Ctrl-C will finish the currently running step and then stops the updater.

[✔] Check for expected files
[✔] Check for write permissions
[✔] Create backup
[✔] Downloading
[✔] Verify integrity
[✔] Extracting
[✔] Enable maintenance mode
[✔] Replace entry points
[✔] Delete old files
[✔] Move new files in place
[✔] Done

Update of code successful.

Should the "occ upgrade" command be executed? [Y/n] y
Nextcloud is already latest version

Keep maintenance mode active? [y/N] n
Maintenance mode already disabled

When checking version.php it still says:

<?php 
$OC_Version = array(20,0,11,1);
$OC_VersionString = '20.0.11';
$OC_Edition = '';
$OC_Channel = 'stable';
$OC_VersionCanBeUpgradedFrom = array (
  'nextcloud' => 
  array (
    '19.0' => true,
    '20.0' => true,
  ),
  'owncloud' => 
  array (
    '10.5' => true,
  ),
);
$OC_Build = '2021-07-01T10:24:15+00:00 3eb0ce9892933c36672e8ba35e771e48a5309321';
$vendor = 'nextcloud';

A while ago I had to revert from NC21 to NC20 using backups from the DB and installation. Perhaps something went wrong and NC thinks it’s on a different version?

Thx for any tips on how to fix this!
Karel.

I tried to reproduce on a 20.0.11 to 20.0.12. I works without problems.

I have no idea if there was perhaps a first zip file that wasn’t correct and it is always reusing the same, or if perhaps some modules in php are missing that the code is not properly copied (though this should generate an error).

If you want a quick fix, you can just do the manual procedure by deleting just the old code (NOT the data folder and NOT the config folder), then extract all the code from the zip file, fix permissions and run the occ upgrade command.

Thanks very much :slight_smile:

I think i’m waiting for the next update.
As far as i can see, no security updates were affected in 20.0.12.

I experienced that problem the second time now, updating from 21.x to 22.2.3. Last time I replaced the code manually, which cannot be a solution. Today searching for a solution again I stumpled upon the guidance on that site Every step is already checked on the update page · Issue #243 · nextcloud/updater · GitHub

It seems that a .step file in the updater directory is causing that behaviour. I removed the .step file, and loaded the update page again.
It then was complaining about an missing updater secret I shall re-create… I loaded the start page again, went to Settings, Overview, Update… everything worked and the update run smoothly.

So this seems to be a bug to me, as the .step file is supposed to be removed by previous update run.