Error upgrading from NC 23 to NC 24

Nextcloud version: 23.0.2.1
Operating system and version: Debian GNU/Linux 11. 5.15.32-v8+ (aarch64)
NCP Version: 1.50.3

I tried to upgrade from NC 23 to NC 24 via the NCP tools.
However it failed and rolled back. The error is below.

.....
Install Nextcloud 24.0.5...
Fix permissions...
Upgrade...
Nextcloud is not installed - only a limited number of commands are available

Command "upgrade" is not defined.

Abort
Clean up...
....

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

Steps to replicate it:

  1. SSH into the server
  2. Run sudo ncp-config
  3. Go to UPDATES >> nc-update-nextcloud
  4. Put 0 and proceed.

The output of your Nextcloud log in Admin > Logging:

[ nc-update-nextcloud ] (Fri 7 Oct 09:02:37 BST 2022)
Current Nextcloud version 23.0.2.1
Available Nextcloud version 24.0.5
Download Nextcloud 24.0.5...
Back up current instance...
check free space...
Maintenance mode enabled
backup database...
backup files...
backup /var/www//nextcloud-bkp_20221007_1665129808.tar.gz generated
Maintenance mode disabled
Install Nextcloud 24.0.5...
Fix permissions...
Upgrade...
Nextcloud is not installed - only a limited number of commands are available


Command "upgrade" is not defined.


Abort
Clean up...
Rolling back to backup /var/www/nextcloud-bkp_20221007_1665129808-23.0.2.1.tar.gz...
check free space...
extracting backup file /var/www/nextcloud-bkp_20221007_1665129808-23.0.2.1.tar.gz...
restore files...
restore database...
No datadir found in backup
Maintenance mode disabled

ncp-report:

ncp-report.odt (31.3 KB)

I really can’t find the updater.log file but anyway, I reran the upgrade and this time it was successful and so far works well. Thanks.