Something went wrong after update

attempted update from 18.0.6 to 18.0.12. Now it says current version is 20.0.3 but upgrader wants to install 18.0.12. It wont let me update. The webconsole says “Update in progress” when I attempt to log in.

root@96c0c60ca8b2:/# sudo -u abc php /config/www/nextcloud/updater/updater.phar
Nextcloud Updater - version: v16.0.3-3-ga0c2b25 dirty

Current version is 20.0.3.

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

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

Start 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
[✘] Extracting failed
Downloaded version is lower than installed version

Update failed. To resume or retry just execute the updater again.
root@96c0c60ca8b2:/#`

I guess my question is I am unable to identify what version of NC I have. I cant start the website at all so users can log in.

What is the version in config.php ?

/config/www/nextcloud/config/config.php has no version listed in it. /config/www/nextcloud/version.php lists 18.0.12 as current version.

I restored an old backup to NC 17 and upgraded to 18.0.12. the upgrade to 18.0.12 broke it. But I have more CLI options now:

root@3496f0ee303e:/config/www/nextcloud# sudo -u abc php console.php files:scan --all
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

                                                       
  There are no commands defined in the "files" namespace.  
                                                       

root@3496f0ee303e:/config/www/nextcloud# sudo -u abc php occ maintenance:repair
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
PHP Fatal error:  Interface 'OCP\AppFramework\Bootstrap\IBootstrap' not found in /config/www/nextcloud/apps/printer/lib/AppInfo/Application.php on line 33

I also have an updater.log I can share but I think it may need to be scrubbed.