gino0631 / nextcloud-metadata

A Nextcloud plugin for displaying file metadata.
GNU Affero General Public License v3.0
84 stars 17 forks source link

Could not boot metadata: Call to undefined method #106

Closed farhills closed 7 months ago

farhills commented 9 months ago

Since upgrading to NC 28, my logs are getting hammered with the following issue:

{"reqId":"UUS2ADypakJJOu1kkjhK","level":4,"time":"2023-12-13T17:39:10+00:00","remoteAddr":"<server IP>","user":"--","app":"no app in context","method":"GET","url":"/login","message":"Could not boot metadata: Call to undefined method OC\\Server::getEventDispatcher()","userAgent":"Go-http-client/1.1","version":"28.0.0.11","exception":{"Exception":"Error","Message":"Call to undefined method OC\\Server::getEventDispatcher()","Code":0,"Trace":[{"file":"/app/www/public/lib/private/AppFramework/Bootstrap/Coordinator.php","line":200,"function":"boot","class":"OCA\\Metadata\\AppInfo\\Application","type":"->"},{"file":"/app/www/public/lib/private/App/AppManager.php","line":434,"function":"bootApp","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/app/www/public/lib/private/App/AppManager.php","line":213,"function":"loadApp","class":"OC\\App\\AppManager","type":"->"},{"file":"/app/www/public/lib/private/legacy/OC_App.php","line":125,"function":"loadApps","class":"OC\\App\\AppManager","type":"->"},{"file":"/app/www/public/lib/base.php","line":1067,"function":"loadApps","class":"OC_App","type":"::"},{"file":"/app/www/public/index.php","line":39,"function":"handleRequest","class":"OC","type":"::"}],"File":"/config/www/nextcloud/apps/metadata/lib/AppInfo/Application.php","Line":28,"message":"Could not boot metadata: Call to undefined method OC\\Server::getEventDispatcher()","exception":{},"CustomMessage":"Could not boot metadata: Call to undefined method OC\\Server::getEventDispatcher()"}}

and

{"reqId":"zT2EScIztqWEVRuyXtV6","level":4,"time":"2023-12-13T17:38:44+00:00","remoteAddr":"<myLANIP>","user":"<myusername>","app":"no app in context","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications?format=json","message":"Could not boot metadata: Call to undefined method OC\\Server::getEventDispatcher()","userAgent":"Mozilla/5.0 (Windows) mirall/3.10.1stable-Win64 (build 20231025) (Nextcloud, windows-10.0.19045 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"28.0.0.11","exception":{"Exception":"Error","Message":"Call to undefined method OC\\Server::getEventDispatcher()","Code":0,"Trace":[{"file":"/app/www/public/lib/private/AppFramework/Bootstrap/Coordinator.php","line":200,"function":"boot","class":"OCA\\Metadata\\AppInfo\\Application","type":"->"},{"file":"/app/www/public/lib/private/App/AppManager.php","line":434,"function":"bootApp","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/app/www/public/lib/private/App/AppManager.php","line":213,"function":"loadApp","class":"OC\\App\\AppManager","type":"->"},{"file":"/app/www/public/lib/private/legacy/OC_App.php","line":125,"function":"loadApps","class":"OC\\App\\AppManager","type":"->"},{"file":"/app/www/public/ocs/v1.php","line":59,"function":"loadApps","class":"OC_App","type":"::"},{"file":"/app/www/public/ocs/v2.php","line":23,"args":["/app/www/public/ocs/v1.php"],"function":"require_once"}],"File":"/config/www/nextcloud/apps/metadata/lib/AppInfo/Application.php","Line":28,"message":"Could not boot metadata: Call to undefined method OC\\Server::getEventDispatcher()","exception":{},"CustomMessage":"Could not boot metadata: Call to undefined method OC\\Server::getEventDispatcher()"}}

I'm not convinced this is your issue, but the metadata app is common to all the errors, so I'm starting here. Available to help gather more info to troubleshoot further.

Environment: Docker (LSIO Image) 28.0.0 with MariaDB, hosted on Unraid.

gino0631 commented 9 months ago

Yes, can be a compatibility issue because of nextcloud/server#39595

tjakober commented 8 months ago

Same here: [no app in context] Fatal: Could not boot metadata: Call to undefined method OC\Server::getEventDispatcher() GET /apps/logreader/api/poll?lastReqId=yCKaszSsBIIkgVZXswiD von 172.20.0.1 von Thomas um 08.02.2024, 18:22:48

Metadata does not show up in Nextcloud 28.0.2

gino0631 commented 7 months ago

@tjakober this is a compatibility issue (see #105), and a possible solution is to disable the app until the updated version is released. I'm closing this in favour of the earlier issue.