Skip to content

Error on upgrade from NC v27 to v28 when updating KeeWeb app #241

Description

@bcutter

During running occ upgrade when keeweb updates, this happens:

                 Update app keeweb from App Store
                 Repair step: Register MIME type for "application/x-kdbx"
                 Repair info: Registering the mimetype...
                 An unhandled exception has been thrown:
                 Error: Undefined constant OCA\Keeweb\Migration\RegisterMimeType::CUSTOM_MIMETYPEALIASES in /var/www/nextcloud/apps/keeweb/lib/Migration/RegisterMimeType.php:25
                 Stack trace:
                 #0 /var/www/nextcloud/apps/keeweb/lib/Migration/RegisterMimeType.php(41): OCA\Keeweb\Migration\RegisterMimeType->registerForNewFiles()
                 #1 /var/www/nextcloud/lib/private/Repair.php(127): OCA\Keeweb\Migration\RegisterMimeType->run()
                 #2 /var/www/nextcloud/lib/private/legacy/OC_App.php(836): OC\Repair->run()
                 #3 /var/www/nextcloud/lib/private/Installer.php(166): OC_App::executeRepairSteps()
                 #4 /var/www/nextcloud/lib/private/legacy/OC_App.php(264): OC\Installer->installApp()
                 #5 /var/www/nextcloud/lib/private/Updater.php(431): OC_App->enable()
                 #6 /var/www/nextcloud/lib/private/Updater.php(284): OC\Updater->upgradeAppStoreApps()
                 #7 /var/www/nextcloud/lib/private/Updater.php(140): OC\Updater->doUpgrade()
                 #8 /var/www/nextcloud/core/Command/Upgrade.php(222): OC\Updater->upgrade()
                 #9 /var/www/nextcloud/3rdparty/symfony/console/Command/Command.php(298): OC\Core\Command\Upgrade->execute()
                 #10 /var/www/nextcloud/3rdparty/symfony/console/Application.php(1040): Symfony\Component\Console\Command\Command->run()
                 #11 /var/www/nextcloud/3rdparty/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand()
                 #12 /var/www/nextcloud/3rdparty/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun()
                 #13 /var/www/nextcloud/lib/private/Console/Application.php(213): Symfony\Component\Console\Application->run()
                 #14 /var/www/nextcloud/console.php(100): OC\Console\Application->run()
                 #15 /var/www/nextcloud/occ(11): require_once('...')
                 #16 {main}

I wonder why that happens as the app was/is listed as compatible with NC v28.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions