Skip to content

Nextcloud 35.0.0 beta 3, TypeError: OCA\Mail\Migration\Version5007Date20260108124422::addMailboxKey() #13512

Description

@snetAT

Steps to reproduce

Upgrade form beta 1 or 2 to Nextcloud 35.0.0 beta 3 from the command line.

sudo -u www-data /usr/bin/php8.5 /var/www/html/updater/updater.phar

This results in the following error:

An unhandled exception has been thrown:
TypeError: OCA\Mail\Migration\Version5007Date20260108124422::addMailboxKey(): Argument #1 ($accountsTable) must be of type Doctrine\DBAL\Schema\Table, OC\DB\Schema\Table given, called in /var/www/html/apps/mail/lib/Migration/Version5007Date20260108124422.php on line 130 and defined in /var/www/html/apps/mail/lib/Migration/Version5007Date20260108124422.php:90
Stack trace:
#0 /var/www/html/apps/mail/lib/Migration/Version5007Date20260108124422.php(130): OCA\Mail\Migration\Version5007Date20260108124422->addMailboxKey()
#1 /var/www/html/lib/private/DB/SchemaChecker.php(77): OCA\Mail\Migration\Version5007Date20260108124422->changeSchema()
#2 /var/www/html/lib/private/DB/SchemaChecker.php(38): OC\DB\SchemaChecker->applyMigrations()
#3 /var/www/html/core/Command/Upgrade.php(249): OC\DB\SchemaChecker->getFindings()
#4 /var/www/html/core/Command/Upgrade.php(240): OC\Core\Command\Upgrade->checkSchema()
#5 /var/www/html/core/Command/Upgrade.php(199): OC\Core\Command\Upgrade->postUpgradeCheck()
#6 /var/www/html/3rdparty/symfony/console/Command/Command.php(341): OC\Core\Command\Upgrade->execute()
#7 /var/www/html/3rdparty/symfony/console/Application.php(1094): Symfony\Component\Console\Command\Command->run()
#8 /var/www/html/3rdparty/symfony/console/Application.php(356): Symfony\Component\Console\Application->doRunCommand()
#9 /var/www/html/3rdparty/symfony/console/Application.php(195): Symfony\Component\Console\Application->doRun()
#10 /var/www/html/lib/private/Console/Application.php(211): Symfony\Component\Console\Application->run()
#11 /var/www/html/console.php(92): OC\Console\Application->run()
#12 /var/www/html/occ(15): require_once('...')
#13 {main}
"occ upgrade" failed - return code: 1

Expected behavior

The upgrade will end with rc 0

Actual behavior

"occ upgrade" failed - return code: 1

Mail app version

5.11.0-rc.1 and Mail 5.11.0-beta.3

Nextcloud version

35

Mailserver or service

Operating system

PHP engine version

Other

Nextcloud memory caching

No response

Web server

Apache (supported)

Database

MariaDB

Additional info

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions