NethServer Version: 8.current
Module: Nextcloud
Continuing on the migration saga from NS7…
I’m running NS8 on Rocky 9 current, and have migrated Nextcloud from my NS7.9 installation, which is as up-to-date as it could be given that it’s now EOL. The migration proceeded without noted issues in the GUI of either system, so I told it to finish the migration.
But when I browse to my Nextcloud instance, I get a message saying, “Please use the command line updater because updating via browser is disabled in your config.php.”:
A little bit of searching found this post, which in combination with the nextcloud docs, suggested I should run runagent -m nextcloud1 occ upgrade
Unfortunately, that failed, with a message of Exception: Updates between multiple major versions and downgrades are unsupported.
(full output below)
The NS7 system was running whatever version of Nextcloud was most current for it, but as the migration disabled it I’m not sure how to check. Apparently NS8 is more than one major version past what NS7 was using. How should I proceed here?
Full output of that command:
[root@ns8 ~]# runagent -m nextcloud1 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
Turned on maintenance mode
[nextcloud][updater][1] {"reqId":"pPQNCmZPBMYk6c2qdYNX","level":1,"time":"2024-11-22T19:07:16+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::maintenanceEnabled: Turned on maintenance mode","userAgent":"--","version":"","data":{"app":"updater"}}
[nextcloud][core][0] {"reqId":"pPQNCmZPBMYk6c2qdYNX","level":0,"time":"2024-11-22T19:07:16+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"starting upgrade from to 27.1.11.3","userAgent":"--","version":"","data":{"app":"core"}}
[nextcloud][PHP][3] {"reqId":"pPQNCmZPBMYk6c2qdYNX","level":3,"time":"2024-11-22T19:07:16+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"Undefined array key 1 at /var/www/html/lib/private/Updater.php#203","userAgent":"--","version":"","data":{"app":"PHP"}}
[nextcloud][no app in context][3] {"reqId":"pPQNCmZPBMYk6c2qdYNX","level":3,"time":"2024-11-22T19:07:16+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"{\"Exception\":\"Exception\",\"Message\":\"Updates between multiple major versions and downgrades are unsupported.\",\"Code\":0,\"Trace\":[{\"file\":\"/var/www/html/lib/private/Updater.php\",\"line\":139,\"function\":\"doUpgrade\",\"class\":\"OC\\\\Updater\",\"type\":\"->\",\"args\":[\"27.1.11.3\",\"\"]},{\"file\":\"/var/www/html/core/Command/Upgrade.php\",\"line\":225,\"function\":\"upgrade\",\"class\":\"OC\\\\Updater\",\"type\":\"->\",\"args\":[]},{\"file\":\"/var/www/html/3rdparty/symfony/console/Command/Command.php\",\"line\":298,\"function\":\"execute\",\"class\":\"OC\\\\Core\\\\Command\\\\Upgrade\",\"type\":\"->\",\"args\":[[\"Symfony\\\\Component\\\\Console\\\\Input\\\\ArgvInput\"],[\"Symfony\\\\Component\\\\Console\\\\Output\\\\ConsoleOutput\"]]},{\"file\":\"/var/www/html/3rdparty/symfony/console/Application.php\",\"line\":1040,\"function\":\"run\",\"class\":\"Symfony\\\\Component\\\\Console\\\\Command\\\\Command\",\"type\":\"->\",\"args\":[[\"Symfony\\\\Component\\\\Console\\\\Input\\\\ArgvInput\"],[\"Symfony\\\\Component\\\\Console\\\\Output\\\\ConsoleOutput\"]]},{\"file\":\"/var/www/html/3rdparty/symfony/console/Application.php\",\"line\":301,\"function\":\"doRunCommand\",\"class\":\"Symfony\\\\Component\\\\Console\\\\Application\",\"type\":\"->\",\"args\":[[\"OC\\\\Core\\\\Command\\\\Upgrade\"],[\"Symfony\\\\Component\\\\Console\\\\Input\\\\ArgvInput\"],[\"Symfony\\\\Component\\\\Console\\\\Output\\\\ConsoleOutput\"]]},{\"file\":\"/var/www/html/3rdparty/symfony/console/Application.php\",\"line\":171,\"function\":\"doRun\",\"class\":\"Symfony\\\\Component\\\\Console\\\\Application\",\"type\":\"->\",\"args\":[[\"Symfony\\\\Component\\\\Console\\\\Input\\\\ArgvInput\"],[\"Symfony\\\\Component\\\\Console\\\\Output\\\\ConsoleOutput\"]]},{\"file\":\"/var/www/html/lib/private/Console/Application.php\",\"line\":218,\"function\":\"run\",\"class\":\"Symfony\\\\Component\\\\Console\\\\Application\",\"type\":\"->\",\"args\":[[\"Symfony\\\\Component\\\\Console\\\\Input\\\\ArgvInput\"],[\"Symfony\\\\Component\\\\Console\\\\Output\\\\ConsoleOutput\"]]},{\"file\":\"/var/www/html/console.php\",\"line\":100,\"function\":\"run\",\"class\":\"OC\\\\Console\\\\Application\",\"type\":\"->\",\"args\":[]},{\"file\":\"/var/www/html/occ\",\"line\":11,\"args\":[\"/var/www/html/console.php\"],\"function\":\"require_once\"}],\"File\":\"/var/www/html/lib/private/Updater.php\",\"Line\":240,\"message\":\"Updates between multiple major versions and downgrades are unsupported.\",\"exception\":{},\"CustomMessage\":\"Updates between multiple major versions and downgrades are unsupported.\"}","userAgent":"--","version":""}
Exception: Updates between multiple major versions and downgrades are unsupported.
[nextcloud][updater][3] {"reqId":"pPQNCmZPBMYk6c2qdYNX","level":3,"time":"2024-11-22T19:07:16+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::failure: Exception: Updates between multiple major versions and downgrades are unsupported.","userAgent":"--","version":"","data":{"app":"updater"}}
Update failed
[nextcloud][updater][3] {"reqId":"pPQNCmZPBMYk6c2qdYNX","level":3,"time":"2024-11-22T19:07:16+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::updateEnd: Update failed","userAgent":"--","version":"","data":{"app":"updater"}}
Maintenance mode is kept active
[nextcloud][updater][1] {"reqId":"pPQNCmZPBMYk6c2qdYNX","level":1,"time":"2024-11-22T19:07:16+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::maintenanceActive: Maintenance mode is kept active","userAgent":"--","version":"","data":{"app":"updater"}}
Resetting log level
[nextcloud][updater][1] {"reqId":"pPQNCmZPBMYk6c2qdYNX","level":1,"time":"2024-11-22T19:07:16+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::resetLogLevel: Reset log level to Warning(2)","userAgent":"--","version":"","data":{"app":"updater"}}
[root@ns8 ~]#