Fehler nach Update von 18.0.7 auf 18.0.8

Liebe Community,

leider habe ich ein Problem nach einem Nextcloudupdate von 18.0.7 auf 18.0.8.

Ich bin bei contabo und habe dort einen virtuellen Server mit ubuntu 16.04 unter apache laufen mit php 7.3. Leider weiß ich mir keinen Rat. Wenn ich den Server zurĂŒcksetze via Snapshot, erhalte ich andere Fehlermeldungen, die ich im Anschluss poste.

Fehlermeldung nach update:
{“reqId”:“K7H2OKzXxqEviMbSDZRA”,“level”:3,“time”:“2020-09-01T07:15:25+00:00”,“remoteAddr”:“88.130.49.217”,“user”:“admin”,“app”:“index”,“method”:“GET”,“url”:"/index.php/apps/files/",“message”:{“Exception”:“Exception”,“Message”:“Argument 1 passed to “Symfony\Component\EventDispatcher\EventDispatcherInterface::dispatch()” must be an object, string given.”,“Code”:0,“Trace”:[{“file”:"/home/oszbox/public_html/nextcloud/lib/private/AppFramework/App.php",“line”:125,“function”:“dispatch”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:"->",“args”:[{“class”:“OCA\Files\Controller\ViewController”},“index”]},{“file”:"/home/oszbox/public_html/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php",“line”:47,“function”:“main”,“class”:“OC\AppFramework\App”,“type”:"::",“args”:[“OCA\Files\Controller\ViewController”,“index”,{“class”:“OC\AppFramework\DependencyInjection\DIContainer”},{"_route":“files.view.index”}]},{“function”:"__invoke",“class”:“OC\AppFramework\Routing\RouteActionHandler”,“type”:"->",“args”:[{"_route":“files.view.index”}]},{“file”:"/home/oszbox/public_html/nextcloud/lib/private/Route/Router.php",“line”:299,“function”:“call_user_func”,“args”:[{“class”:“OC\AppFramework\Routing\RouteActionHandler”},{"_route":“files.view.index”}]},{“file”:"/home/oszbox/public_html/nextcloud/lib/base.php",“line”:1013,“function”:“match”,“class”:“OC\Route\Router”,“type”:"->",“args”:["/apps/files/"]},{“file”:"/home/oszbox/public_html/nextcloud/index.php",“line”:38,“function”:“handleRequest”,“class”:“OC”,“type”:"::",“args”:[]}],“File”:"/home/oszbox/public_html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",“Line”:109,“Previous”:{“Exception”:“TypeError”,“Message”:“Argument 1 passed to “Symfony\Component\EventDispatcher\EventDispatcherInterface::dispatch()” must be an object, string given.”,“Code”:0,“Trace”:[{“file”:"/home/oszbox/public_html/nextcloud/lib/private/EventDispatcher/SymfonyAdapter.php",“line”:70,“function”:“dispatch”,“class”:“Symfony\Component\EventDispatcher\EventDispatcher”,“type”:"->",“args”:[“OCA\Files::loadAdditionalScripts”,{“class”:“Symfony\Component\EventDispatcher\GenericEvent”}]},{“file”:"/home/oszbox/public_html/nextcloud/apps/files/lib/Listener/LegacyLoadAdditionalScriptsAdapter.php",“line”:51,“function”:“dispatch”,“class”:“OC\EventDispatcher\SymfonyAdapter”,“type”:"->",“args”:[“OCA\Files::loadAdditionalScripts”,{“class”:“Symfony\Component\EventDispatcher\GenericEvent”}]},{“file”:"/home/oszbox/public_html/nextcloud/lib/private/EventDispatcher/ServiceEventListener.php",“line”:76,“function”:“handle”,“class”:“OCA\Files\Listener\LegacyLoadAdditionalScriptsAdapter”,“type”:"->",“args”:[{“class”:“OCA\Files\Event\LoadAdditionalScriptsEvent”}]},{“file”:"/home/oszbox/public_html/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php",“line”:247,“function”:"__invoke",“class”:“OC\EventDispatcher\ServiceEventListener”,“type”:"->",“args”:[{“class”:“OCA\Files\Event\LoadAdditionalScriptsEvent”},“OCA\Files\Event\LoadAdditionalScriptsEvent”,{“class”:“Symfony\Component\EventDispatcher\EventDispatcher”}]},{“file”:"/home/oszbox/public_html/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php",“line”:73,“function”:“callListeners”,“class”:“Symfony\Component\EventDispatcher\EventDispatcher”,“type”:"->",“args”:[[{“class”:“Closure”},{“class”:“Closure”},{“class”:“Closure”},{“class”:“Closure”},{“class”:“Closure”}],“OCA\Files\Event\LoadAdditionalScriptsEvent”,{“class”:“OCA\Files\Event\LoadAdditionalScriptsEvent”}]},{“file”:"/home/oszbox/public_html/nextcloud/lib/private/EventDispatcher/EventDispatcher.php",“line”:80,“function”:“dispatch”,“class”:“Symfony\Component\EventDispatcher\EventDispatcher”,“type”:"->",“args”:[{“class”:“OCA\Files\Event\LoadAdditionalScriptsEvent”},“OCA\Files\Event\LoadAdditionalScriptsEvent”]},{“file”:"/home/oszbox/public_html/nextcloud/lib/private/EventDispatcher/SymfonyAdapter.php",“line”:63,“function”:“dispatch”,“class”:“OC\EventDispatcher\EventDispatcher”,“type”:"->",“args”:[“OCA\Files\Event\LoadAdditionalScriptsEvent”,{“class”:“OCA\Files\Event\LoadAdditionalScriptsEvent”}]},{“file”:"/home/oszbox/public_html/nextcloud/apps/files_sharing/list.php",“line”:45,“function”:“dispatch”,“class”:“OC\EventDispatcher\SymfonyAdapter”,“type”:"->",“args”:[“OCA\Files\Event\LoadAdditionalScriptsEvent”,{“class”:“OCA\Files\Event\LoadAdditionalScriptsEvent”}]},{“file”:"/home/oszbox/public_html/nextcloud/apps/files/lib/Controller/ViewController.php",“line”:122,“args”:["/home/oszbox/public_html/nextcloud/apps/files_sharing/list.php"],“function”:“include”},{“file”:"/home/oszbox/public_html/nextcloud/apps/files/lib/Controller/ViewController.php",“line”:260,“function”:“renderScript”,“class”:“OCA\Files\Controller\ViewController”,“type”:"->",“args”:[“files_sharing”,“list.php”]},{“file”:"/home/oszbox/public_html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",“line”:170,“function”:“index”,“class”:“OCA\Files\Controller\ViewController”,“type”:"->",“args”:["","",null,false]},{“file”:"/home/oszbox/public_html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",“line”:99,“function”:“executeController”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:"->",“args”:[{“class”:“OCA\Files\Controller\ViewController”},“index”]},{“file”:"/home/oszbox/public_html/nextcloud/lib/private/AppFramework/App.php",“line”:125,“function”:“dispatch”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:"->",“args”:[{“class”:“OCA\Files\Controller\ViewController”},“index”]},{“file”:"/home/oszbox/public_html/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php",“line”:47,“function”:“main”,“class”:“OC\AppFramework\App”,“type”:"::",“args”:[“OCA\Files\Controller\ViewController”,“index”,{“class”:“OC\AppFramework\DependencyInjection\DIContainer”},{"_route":“files.view.index”}]},{“function”:"__invoke",“class”:“OC\AppFramework\Routing\RouteActionHandler”,“type”:"->",“args”:[{"_route":“files.view.index”}]},{“file”:"/home/oszbox/public_html/nextcloud/lib/private/Route/Router.php",“line”:299,“function”:“call_user_func”,“args”:[{“class”:“OC\AppFramework\Routing\RouteActionHandler”},{"_route":“files.view.index”}]},{“file”:"/home/oszbox/public_html/nextcloud/lib/base.php",“line”:1013,“function”:“match”,“class”:“OC\Route\Router”,“type”:"->",“args”:["/apps/files/"]},{“file”:"/home/oszbox/public_html/nextcloud/index.php",“line”:38,“function”:“handleRequest”,“class”:“OC”,“type”:"::",“args”:[]}],“File”:"/home/oszbox/public_html/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php",“Line”:63},“CustomMessage”:"–"},“userAgent”:“Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:78.0) Gecko/20100101 Firefox/78.0”,“version”:“18.0.8.2”}
{“reqId”:“K7H2OKzXxqEviMbSDZRA”,“level”:3,“time”:“2020-09-01T07:15:25+00:00”,“remoteAddr”:“88.130.49.217”,“user”:“admin”,“app”:“PHP”,“method”:“GET”,“url”:"/index.php/apps/files/",“message”:“TypeError: Argument 1 passed to “Symfony\Component\EventDispatcher\EventDispatcherInterface::dispatch()” must be an object, string given. at /home/oszbox/public_html/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php#63”,“userAgent”:“Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:78.0) Gecko/20100101 Firefox/78.0”,“version”:“18.0.8.2”}

Zudem erhalte ich nach dem ZurĂŒckspielen des Snapshots sofort folgende Fehlermeldungen:
[mail] Warning: not enough messages to train a classifier

at 2020-09-01T07:27:18+00:00
und:
[mail] Error: OCA\Mail\Exception\ServiceException: Could not deserialize persisted classifier 20: File /tmp/oc_tmp_bE4ZwA does not contain any data. at <>

  1. /home/oszbox/public_html/nextcloud/apps/mail/lib/Service/Classification/PersistenceService.php line 162
    OCA\Mail\Service\Classification\PersistenceService->load(20)
  2. /home/oszbox/public_html/nextcloud/apps/mail/lib/Service/Classification/ImportanceClassifier.php line 296
    OCA\Mail\Service\Classification\PersistenceService->loadLatest(OCA\Mail\Account {})
  3. /home/oszbox/public_html/nextcloud/apps/mail/lib/Listener/NewMessageClassificationListener.php line 73
    OCA\Mail\Service\Classification\ImportanceClassifier->classifyImportance(OCA\Mail\Account {}, OCA\Mail\Db\Mailbox {id: 94}, [OCA\Mail\Db\Mes 
 }])
  4. /home/oszbox/public_html/nextcloud/lib/private/EventDispatcher/ServiceEventListener.php line 76
    OCA\Mail\Listener\NewMessageClassificationListener->handle(OCA\Mail\Events\ 
 {})
  5. /home/oszbox/public_html/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php line 247
    OC\EventDispatcher\ServiceEventListener->__invoke(OCA\Mail\Events\ 
 {}, “OCA\Mail\Even 
 d”, Symfony\Componen 
 {})
  6. /home/oszbox/public_html/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php line 73
    Symfony\Component\EventDispatcher\EventDispatcher->callListeners([Closure {}], “OCA\Mail\Even 
 d”, OCA\Mail\Events\ 
 {})
  7. /home/oszbox/public_html/nextcloud/lib/private/EventDispatcher/EventDispatcher.php line 80
    Symfony\Component\EventDispatcher\EventDispatcher->dispatch(OCA\Mail\Events\ 
 {}, “OCA\Mail\Even 
 d”)
  8. /home/oszbox/public_html/nextcloud/apps/mail/lib/Service/Sync/ImapToDbSynchronizer.php line 308
    OC\EventDispatcher\EventDispatcher->dispatch(“OCA\Mail\Even 
 d”, OCA\Mail\Events\ 
 {})
  9. /home/oszbox/public_html/nextcloud/apps/mail/lib/Service/Sync/ImapToDbSynchronizer.php line 202
    OCA\Mail\Service\Sync\ImapToDbSynchronizer->runPartialSync(OCA\Mail\Account {}, OCA\Mail\Db\Mailbox {id: 94}, 42, null)
  10. /home/oszbox/public_html/nextcloud/apps/mail/lib/Service/Sync/ImapToDbSynchronizer.php line 114
    OCA\Mail\Service\Sync\ImapToDbSynchronizer->sync(OCA\Mail\Account {}, OCA\Mail\Db\Mailbox {id: 94}, 42, null, false)
  11. /home/oszbox/public_html/nextcloud/apps/mail/lib/BackgroundJob/SyncJob.php line 92
    OCA\Mail\Service\Sync\ImapToDbSynchronizer->syncAccount(OCA\Mail\Account {})
  12. /home/oszbox/public_html/nextcloud/lib/public/BackgroundJob/Job.php line 79
    OCA\Mail\BackgroundJob\SyncJob->run({accountId: 3})
  13. /home/oszbox/public_html/nextcloud/lib/public/BackgroundJob/TimedJob.php line 61
    OCP\BackgroundJob\Job->execute(OC\BackgroundJob\JobList {}, OC\Log {})
  14. /home/oszbox/public_html/nextcloud/cron.php line 125
    OCP\BackgroundJob\TimedJob->execute(OC\BackgroundJob\JobList {}, OC\Log {})

at 2020-09-01T07:25:54+00:00

Leider kann ich mit deiner Fehlermeldung nicht viel anfangen. Aber auch wenn Ubuntu 16.04 LTS noch offiziell supportet wird ( https://wiki.ubuntu.com/Releases ) solltest du darĂŒber nachdenken auf kurz oder lang auf Ubuntu 20.04 LTS oder Debian Buster 10 zu wechseln.

Alleine das PHP-Paket in Ubuntu 16.04 LTS ist ziemlich veraltet ( https://packages.ubuntu.com/xenial/php ) und nur ĂŒber Drittquellen aktualisierbar. Mit Nextcloud 19 (auch lĂ€ngst Stable) oder Nextcloud 20 demnĂ€chst wird das alles nicht besser.

Ich gehe davon aus, dass du neben dem Snapshot bei Contabo auch ein eigenes Backup der Daten und der Datenbank hast. Wenn nicht ist jetzt der richtige Zeitpunkt.

https://docs.nextcloud.com/server/19/admin_manual/maintenance/backup.html
https://docs.nextcloud.com/server/19/admin_manual/maintenance/restore.html

Leider weiß ich nicht ob du bei Contabo bei einen OS-Upgrade irgendwie deine Daten behalten kannst oder aus deinen Snapshot zurĂŒckladen kannst.

Das hat mit dem Mailprogramm zu tun und das kannst du getrost erstmal außer aucht lassen

Vielen Dank fĂŒr Deine Antwort, devnull. Bei contabo gibt es die Möglichkeit eines OS-Upgrades. Leider kann ich das derzeit in der Live-Umgebung nicht vornehmen. Nach dem Upgrade kommt es zu Fehlermeldungen. Ein Backup habe ich vorgenommen.

Danke JimmyKater,
leider kann ich mich danach aber nicht mehr einloggen. Ich werde es nachher nochmal probieren. occ maintenance:repair bricht ebenfalls mit einer Fehlermeldung ab. Ich poste diese nacher mal.
Vielen Dank erstmal fĂŒr Eure UnterstĂŒtzung.

Ich habe das selbe Problem. Allerdings habe ich nur Apps updaten lassen und nicht Nextcloud auf eine neue Version. Ich bin auf NC 18.0.7.1 mit PHP 7.4.9 auf Apache. NC ist jetzt unbenutzbar.

Habe hier das selbe Problem nach einem Update von NC 18.0.4 auf 18.0.8
PHP-Version: 7.3
Apache-Version: 2.4.46
Ubuntu-Version: 18.04.5 LTS

So, konnte es zumindest bei mir jetzt lösen. Es muss an einer App liegen. Nachdem ich alle nicht offiziellen Apps deaktiviert habe, konnte ich reibungslos updaten. Danach habe ich die Apps aktualisiert und wieder aktiviert. Alles hat gut funktioniert. Eventuell hilft es ja auch den anderen.

Danke fĂŒr Eure Hilfe.

Wichtig: Die Apps erst nach dem Upate von NC aktualisieren. Habe außerdem von 18.0.7 auf 19.0.2 aktualisiert.

Bei mir ist die schuldige App suspicious login. Das Problem ist dem Entwickler auch bereits bekannt.