Upgrade to 10 RC 1 failed, call to setupCron

I just tried to upgrade, but it didn’t work.

Updated database
Updating …
An unhandled exception has been thrown:
Error: Call to undefined method OCA\Federation\AppInfo\Application::setupCron() in /var/www/nextcloud/apps/federation/appinfo/update.php:23
Stack trace:
#0 /var/www/nextcloud/lib/private/legacy/app.php(1214): include()
#1 /var/www/nextcloud/lib/private/Updater.php(375): OC_App::updateApp(‘federation’)
#2 /var/www/nextcloud/lib/private/Updater.php(252): OC\Updater->doAppUpgrade()
#3 /var/www/nextcloud/lib/private/Updater.php(151): OC\Updater->doUpgrade(‘9.1.0.15’, ‘9.0.53.0’)
#4 /var/www/nextcloud/core/Command/Upgrade.php(292): OC\Updater->upgrade()
#5 /var/www/nextcloud/3rdparty/symfony/console/Command/Command.php(259): OC\Core\Command\Upgrade->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#6 /var/www/nextcloud/3rdparty/symfony/console/Application.php(844): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#7 /var/www/nextcloud/3rdparty/symfony/console/Application.php(192): Symfony\Component\Console\Application->doRunCommand(Object(OC\Core\Command\Upgrade), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#8 /var/www/nextcloud/3rdparty/symfony/console/Application.php(123): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#9 /var/www/nextcloud/lib/private/Console/Application.php(146): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 /var/www/nextcloud/console.php(90): OC\Console\Application->run()
#11 /var/www/nextcloud/occ(11): require_once(’/var/www/nextcl…’)
#12 {main}

This file does not exist in 10 anymore. Please make sure to delete all code files (apart from config and data) before uploading the new files.

See https://docs.nextcloud.com/server/9/admin_manual/maintenance/manual_upgrade.html, especially step 4 and 5