Iâm having a problem upgrading from v22 to v24. The upgrade to v23 is successful, but looks like its crashing on a fulltextsearch bug.
2022-11-30 21:43:28,266: DEBUG - Update app files_fulltextsearch from App Store
2022-11-30 21:43:30,248: DEBUG - Update app fulltextsearch from App Store
2022-11-30 21:43:33,483: DEBUG - An unhandled exception has been thrown:
2022-11-30 21:43:33,484: DEBUG - Error: Undefined constant OCA\FullTextSearch\Service\ConfigService::MIGRATION_24 in /var/www/nextcloud/apps/fulltextsearch/lib/Migration/Version2400Date202201301329.php:159
2022-11-30 21:43:33,484: DEBUG - Stack trace:
2022-11-30 21:43:33,484: DEBUG - #0 /var/www/nextcloud/lib/private/DB/MigrationService.php(547): OCA\FullTextSearch\Migration\Version2400Date202201301329->postSchemaChange()
2022-11-30 21:43:33,484: DEBUG - #1 /var/www/nextcloud/lib/private/DB/MigrationService.php(425): OC\DB\MigrationService->executeStep()
2022-11-30 21:43:33,484: DEBUG - #2 /var/www/nextcloud/lib/private/legacy/OC_App.php(1022): OC\DB\MigrationService->migrate()
2022-11-30 21:43:33,484: DEBUG - #3 /var/www/nextcloud/lib/private/Installer.php(201): OC_App::updateApp()
2022-11-30 21:43:33,485: DEBUG - #4 /var/www/nextcloud/lib/private/Updater.php(415): OC\Installer->updateAppstoreApp()
2022-11-30 21:43:33,485: DEBUG - #5 /var/www/nextcloud/lib/private/Updater.php(277): OC\Updater->upgradeAppStoreApps()
2022-11-30 21:43:33,485: DEBUG - #6 /var/www/nextcloud/lib/private/Updater.php(133): OC\Updater->doUpgrade()
2022-11-30 21:43:33,485: DEBUG - #7 /var/www/nextcloud/core/Command/Upgrade.php(235): OC\Updater->upgrade()
2022-11-30 21:43:33,485: DEBUG - #8 /var/www/nextcloud/3rdparty/symfony/console/Command/Command.php(255): OC\Core\Command\Upgrade->execute()
2022-11-30 21:43:33,485: DEBUG - #9 /var/www/nextcloud/3rdparty/symfony/console/Application.php(1009): Symfony\Component\Console\Command\Command->run()
2022-11-30 21:43:33,485: DEBUG - #10 /var/www/nextcloud/3rdparty/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand()
2022-11-30 21:43:33,485: DEBUG - #11 /var/www/nextcloud/3rdparty/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun()
2022-11-30 21:43:33,485: DEBUG - #12 /var/www/nextcloud/lib/private/Console/Application.php(211): Symfony\Component\Console\Application->run()
2022-11-30 21:43:33,485: DEBUG - #13 /var/www/nextcloud/console.php(99): OC\Console\Application->run()
2022-11-30 21:43:33,486: DEBUG - #14 /var/www/nextcloud/occ(11): require_once('...')
2022-11-30 21:43:33,512: DEBUG - #15 {main}+ '[' 1 -eq 3 ']'
2022-11-30 21:43:33,512: DEBUG - + ynh_die '--message=Unable to upgrade Nextcloud'
2022-11-30 21:43:33,529: DEBUG - + ynh_exit_properly
2022-11-30 21:43:33,529: WARNING - 1/0 [----->----------------------] 0%Unable to upgrade Nextcloud
2022-11-30 21:43:34,045: DEBUG - + ynh_clean_setup
2022-11-30 21:43:34,045: DEBUG - + ynh_restore_upgradebackup
2022-11-30 21:43:34,045: DEBUG - + ynh_print_err '--message=Upgrade failed.'
2022-11-30 21:43:34,063: DEBUG - + ynh_print_log '[Error] Upgrade failed.'
2022-11-30 21:43:34,064: DEBUG - + echo -e '[Error] Upgrade failed.'
2022-11-30 21:43:34,064: DEBUG - + local app_bck=nextcloud
2022-11-30 21:43:34,064: DEBUG - + NO_BACKUP_UPGRADE=0
2022-11-30 21:43:34,064: DEBUG - + ynh_backup_archive_exists nextcloud-pre-upgrade1
2022-11-30 21:43:34,065: WARNING - [Error] Upgrade failed.
Iâm in the process of disabling fulltextsearch and will retry upgrade, but in the meantime, any ideas?
Full log: https://paste.yunohost.org/raw/ilefihirey
Thanks in advance!
Edit: Successfully upgraded to v24 after disabling fulltextsearch on v22 before initiating the upgrade. Issue resolved.