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.
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] 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
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?
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.
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.