[RESOLVED] How to find out current installation and update to latest major version?

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): 24.0.10.1
Operating system and version (eg, Ubuntu 20.04): Unraid 6.9.2
Apache or nginx version (eg, Apache 2.4.25): replace me
PHP version (eg, 7.4): 8.X

The issue you are facing:

I am having troubles getting to NC 25 from 22. I think I have successfully upgraded to 23, and have unpacked version 24 but I cannot seem to get onto that version. I tried reverting back to version 23 but that also throws an error. Now I am in a limbo and unsure of what to do.

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

Steps to replicate it:

  1. Unpack latest-24.tar.bz2
  2. Run occ upgrade
  3. Error (Updates between multiple major versions and downgrades are unsupported)

If this is unfixable, would it be possible to just make a new docker container with the same config.php so as to essentially start fresh without losing any data?

Edit: So updating to 24 throws error (updates between multiple major versions and downgrades are unsupported). Trying to install 23 throws this error

root@Tower:~# docker exec -it nextcloud occ upgrade
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
Setting log level to debug
Updating database schema
An unhandled exception has been thrown:
Error: Undefined constant OCP\DB\Types::JSON in /config/www/nextcloud/core/Migrations/Version24000Date20220404230027.php:55
Stack trace:
#0 /config/www/nextcloud/lib/private/DB/MigrationService.php(532): OC\Core\Migrations\Version24000Date20220404230027->changeSchema()
#1 /config/www/nextcloud/lib/private/DB/MigrationService.php(425): OC\DB\MigrationService->executeStep()
#2 /config/www/nextcloud/lib/private/Updater.php(315): OC\DB\MigrationService->migrate()
#3 /config/www/nextcloud/lib/private/Updater.php(254): OC\Updater->doCoreUpgrade()
#4 /config/www/nextcloud/lib/private/Updater.php(133): OC\Updater->doUpgrade()
#5 /config/www/nextcloud/core/Command/Upgrade.php(235): OC\Updater->upgrade()
#6 /config/www/nextcloud/3rdparty/symfony/console/Command/Command.php(255): OC\Core\Command\Upgrade->execute()
#7 /config/www/nextcloud/3rdparty/symfony/console/Application.php(1009): Symfony\Component\Console\Command\Command->run()
#8 /config/www/nextcloud/3rdparty/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand()
#9 /config/www/nextcloud/3rdparty/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun()
#10 /config/www/nextcloud/lib/private/Console/Application.php(211): Symfony\Component\Console\Application->run()
#11 /config/www/nextcloud/console.php(100): OC\Console\Application->run()
#12 /config/www/nextcloud/occ(11): require_once(‘…’)
#13 {main}

Edit 2: Followed the guide for manual installation and re-installed firstly NC23, followed by upgrading to 24 and finally 25!!