Fail when i update oc9 -> ox10

I updating own cloud from ver 9.0 -> 10.0 and i get error when i upgradig:

    2018-10-17T15:03:14+00:00 Repair info: App was not updated: updatenotification
2018-10-17T15:03:14+00:00 Updating database schema
2018-10-17T15:03:14+00:00 Updated database
2018-10-17T15:03:14+00:00 Updating <federation> ...
PHP Fatal error:  Call to undefined method OCA\Federation\AppInfo\Application::setupCron() in /var/www/owncloud/new/owncloud/apps/federation/appinfo/update.php on line 23

How fix it?

Debian 7, PHP 5.6

Thanks for help


i did the following search at the ownCloud bugtracker:"Application%3A%3AsetupCron()"&type=Issues and found an issue below.

If i understand it correctly it seems to tell us that you might have some old files left behind which you should have deleted before doing the upgrade.