nextcloud / nextcloud/fulltextsearch
Upgrade of fulltextsearch to NC 24 fails
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 234
- Forks
- 64
- Avg merge
- 6h 18m
- Merged PRs (30d)
- 10
Description
I tried to upgrade my Nextcloud 23 server on Ubuntu 20.04 to Nextcloud 24
Note that I use Postgres as the DB backend (which I think is the issue)
The stage where fulltextsearch is upgrade breaks with this error:
Update app fulltextsearch from App Store
An unhandled exception has been thrown:
Error: Undefined class constant 'MIGRATION_24' in /var/www/nextcloud/apps/fulltextsearch/lib/Migration/Version2400Date202201301329.php:159
Stack trace:
#0 /var/www/nextcloud/lib/private/DB/MigrationService.php(547): OCA\FullTextSearch\Migration\Version2400Date202201301329->postSchemaChange()
#1 /var/www/nextcloud/lib/private/DB/MigrationService.php(425): OC\DB\MigrationService->executeStep()
#2 /var/www/nextcloud/lib/private/legacy/OC_App.php(1022): OC\DB\MigrationService->migrate()
#3 /var/www/nextcloud/lib/private/Installer.php(201): OC_App::updateApp()
#4 /var/www/nextcloud/lib/private/Updater.php(415): OC\Installer->updateAppstoreApp()
#5 /var/www/nextcloud/lib/private/Updater.php(277): OC\Updater->upgradeAppStoreApps()
#6 /var/www/nextcloud/lib/private/Updater.php(133): OC\Updater->doUpgrade()
#7 /var/www/nextcloud/core/Command/Upgrade.php(235): OC\Updater->upgrade()
#8 /var/www/nextcloud/3rdparty/symfony/console/Command/Command.php(255): OC\Core\Command\Upgrade->execute()
#9 /var/www/nextcloud/3rdparty/symfony/console/Application.php(1009): Symfony\Component\Console\Command\Command->run()
#10 /var/www/nextcloud/3rdparty/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand()
#11 /var/www/nextcloud/3rdparty/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun()
#12 /var/www/nextcloud/lib/private/Console/Application.php(211): Symfony\Component\Console\Application->run()
#13 /var/www/nextcloud/console.php(100): OC\Console\Application->run()
#14 /var/www/nextcloud/occ(11): require_once('/var/www/nextcl...')
#15 {main}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with apps/fulltextsearch/lib/Migration/Version2400Date202201301329.php at line 159, then trace the migration call from lib/private/DB/MigrationService.php. Reproduce the Nextcloud 23 to 24 upgrade with PostgreSQL and verify that the fulltextsearch migration completes without the undefined MIGRATION_24 error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, postgresql
- Domain
- backend, databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100