Upgrade from 22 to 23 error

Hya,

by trying to upgrade nextcloud from 22 to 23, it stops.

root@wolke:/var/www/html/nextcloud# sudo -u www-data php occ upgrade -vvvv
PHP Warning:  Module "gmp" is already loaded in Unknown on line 0
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
2022-03-03T15:01:20+01:00 Setting log level to debug
2022-03-03T15:01:20+01:00 Turned on maintenance mode
2022-03-03T15:01:20+01:00 Repair step: Repair MySQL collation
2022-03-03T15:01:20+01:00 Repair info: All tables already have the correct collation -> nothing to do
2022-03-03T15:01:20+01:00 Repair step: Repair SQLite autoincrement
2022-03-03T15:01:20+01:00 Repair step: Copy data from accounts table when migrating from ownCloud
2022-03-03T15:01:20+01:00 Repair step: Drop account terms table when migrating from ownCloud
2022-03-03T15:01:20+01:00 Updating database schema
2022-03-03T15:01:20+01:00 Updated database
2022-03-03T15:01:20+01:00 Disabled incompatible app: ocsms
2022-03-03T15:01:20+01:00 Repair step: Migrate legacy conversation reading states
2022-03-03T15:01:20+01:00 Migrate legacy conversation reading states
2022-03-03T15:01:20+01:00 
 Done
    1/1 [============================] 100%2022-03-03T15:01:20+01:00 
2022-03-03T15:01:20+01:00 Repair step: Repair MySQL collation
2022-03-03T15:01:20+01:00 Repair info: All tables already have the correct collation -> nothing to do
2022-03-03T15:01:20+01:00 Repair step: Repair mime types


it simply does not goes further, halting at this point.

Any clue, please?

Please use this command:

sudo -u www-data php updater/updater.phar

Please post errors again.

Thank for helping out.

root@wolke:/var/www/html/nextcloud# sudo -u www-data php updater/updater.phar -vvvvvvv
PHP Warning:  Module "gmp" is already loaded in Unknown on line 0
Nextcloud Updater - version: v20.0.0beta4-11-g68fa0d4

Current version is 21.0.9.

Update to Nextcloud 22.2.5 available. (channel: "stable")
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-22.2.5.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 ...PHP Warning:  unlink(/var/www/html/nextcloud/apps/password_policy/css/settings-admin.css): Permission denied in phar:///var/www/html/nextcloud/updater/updater.phar/lib/Updater.php on line 769
PHP Warning:  rmdir(/var/www/html/nextcloud/apps/password_policy/css): Directory not empty in phar:///var/www/html/nextcloud/updater/updater.phar/lib/Updater.php on line 772
PHP Warning:  rmdir(/var/www/html/nextcloud/updater/../apps/password_policy): Directory not empty in phar:///var/www/html/nextcloud/updater/updater.phar/lib/Updater.php on line 775
[✘] Delete old files failed
Could not rmdir /var/www/html/nextcloud/updater/../apps/password_policy

Update failed. To resume or retry just execute the updater again.
root@wolke:/var/www/html/nextcloud#