Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not boot metadata: Call to undefined method #106

Closed
farhills opened this issue Dec 13, 2023 · 3 comments
Closed

Could not boot metadata: Call to undefined method #106

farhills opened this issue Dec 13, 2023 · 3 comments
Assignees

Comments

@farhills
Copy link

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
Copy link
Owner

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

@tjakober
Copy link

tjakober commented Feb 8, 2024

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
Copy link
Owner

gino0631 commented Feb 8, 2024

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants