Could not load lazy dashboard

Hallo liebe Leute,

ich habe zwei Fehlermeldungen in meiner Nextcloud-Installation, die sich teils minütlich im Log niederschlagen. Vielleicht könnt ihr mir etwas Hilfe geben, wie ich der Ursache auf die Schliche kommen und sie im besten Falle abstellen kann.

Fehlermeldung 1

InvalidArgumentException: Dashboard widget with this id has already been registered
/www/htdocs/gekürzt/lib/private/Dashboard/Manager.php - line 94:

OC\Dashboard\Manager->registerWidget([ "OCA\\Reco ... "])

/www/htdocs/gekürzt/lib/private/Dashboard/Manager.php - line 131:

OC\Dashboard\Manager->loadLazyPanels()

/www/htdocs/gekürzt/apps/dashboard/lib/Controller/DashboardController.php - line 101:

OC\Dashboard\Manager->getWidgets()

/www/htdocs/gekürzt/lib/private/AppFramework/Http/Dispatcher.php - line 225:

OCA\Dashboard\Controller\DashboardController->index()

/www/htdocs/gekürzt/lib/private/AppFramework/Http/Dispatcher.php - line 133:

OC\AppFramework\Http\Dispatcher->executeController([ "OCA\\Dash ... "], "index")

/www/htdocs/gekürzt/lib/private/AppFramework/App.php - line 172:

OC\AppFramework\Http\Dispatcher->dispatch([ "OCA\\Dash ... "], "index")

/www/htdocs/gekürzt/lib/private/Route/Router.php - line 298:

OC\AppFramework\App::main("OCA\\Dashbo ... r", "index", [ "OC\\AppFr ... "], [ "dashboard.dashboard.index"])

/www/htdocs/gekürzt/lib/base.php - line 1047:

OC\Route\Router->match("/apps/dashboard/")

/www/htdocs/gekürzt/index.php - line 36:

OC::handleRequest()

Fehlermeldung 2

Could not load lazy dashboard widget: Could not resolve l10n! Class "l10n" does not exist

Hier noch ein paar Daten zu meiner Installation

  • Bei welchen Anbieter? all-inkl.com hosting (kein Server)
  • Nextcloud Version: 25.0.5 - 25.0.5.1
  • PHP Version: 8.0.28
  • Welche Datenbank? mysql 10.5.19

Viele Grüße,
Jankete

I’m experiencing this too. I am following part 1 of this documentation: Nextcloud

Können wir die Meldung bitte mal ungekürzt bekommen? Sieht so aus als ob ein Widget mehrfach registriert wird.

Evtl mal versuchen unterschiedliche Widgets aus zu schalten und zu gucken wann die Meldung verschwindet ?

Check what ID you are registering and if there is already an app with that ID

Mein user hat gar keine Widgets aktiv (alle ohne Häkchen).

Hier die beiden vollständigen Fehlerzeilen aus dem Log.

Dashboard widget with this id has already been registered
{"reqId":"ZCpqnTohaPL_JDSd9AsxyQAAJw8","level":3,"time":"2023-04-03T05:56:45+00:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"yyyyyy","app":"no app in context","method":"GET","url":"/cloud/index.php/apps/dashboard/","message":"Could not register lazy dashboard widget: Dashboard widget with this id has already been registered","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36","version":"25.0.5.1","exception":{"Exception":"InvalidArgumentException","Message":"Dashboard widget with this id has already been registered","Code":0,"Trace":[{"file":"/pfad/cloud/lib/private/Dashboard/Manager.php","line":94,"function":"registerWidget","class":"OC\\Dashboard\\Manager","type":"->","args":[["OCA\\Recommendations\\Dashboard\\RecommendationWidget"]]},{"file":"/pfad/cloud/lib/private/Dashboard/Manager.php","line":131,"function":"loadLazyPanels","class":"OC\\Dashboard\\Manager","type":"->","args":[]},{"file":"/pfad/cloud/apps/dashboard/lib/Controller/DashboardController.php","line":101,"function":"getWidgets","class":"OC\\Dashboard\\Manager","type":"->","args":[]},{"file":"/pfad/cloud/lib/private/AppFramework/Http/Dispatcher.php","line":225,"function":"index","class":"OCA\\Dashboard\\Controller\\DashboardController","type":"->","args":[]},{"file":"/pfad/cloud/lib/private/AppFramework/Http/Dispatcher.php","line":133,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\Dashboard\\Controller\\DashboardController"],"index"]},{"file":"/pfad/cloud/lib/private/AppFramework/App.php","line":172,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\Dashboard\\Controller\\DashboardController"],"index"]},{"file":"/pfad/cloud/lib/private/Route/Router.php","line":298,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Dashboard\\Controller\\DashboardController","index",["OC\\AppFramework\\DependencyInjection\\DIContainer"],["dashboard.dashboard.index"]]},{"file":"/pfad/cloud/lib/base.php","line":1047,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/dashboard/"]},{"file":"/pfad/cloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/pfad/cloud/lib/private/Dashboard/Manager.php","Line":55,"message":"Could not register lazy dashboard widget: Dashboard widget with this id has already been registered","exception":{},"CustomMessage":"Could not register lazy dashboard widget: Dashboard widget with this id has already been registered"}}
Could not resolve l10n!
{"reqId":"ZCprsyRAmLA_UQfFbkx5tgAABQA","level":3,"time":"2023-04-03T06:01:23+00:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"yyyyyy","app":"no app in context","method":"GET","url":"/cloud/index.php/apps/dashboard/","message":"Could not load lazy dashboard widget: Could not resolve l10n! Class \"l10n\" does not exist","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36","version":"25.0.5.1","data":{"excepiton":"{\"class\":\"OCP\\AppFramework\\QueryException\",\"message\":\"Could not resolve l10n! Class \\\"l10n\\\" does not exist\",\"code\":0,\"file\":\"/pfad/cloud/lib/private/AppFramework/Utility/SimpleContainer.php:102\",\"trace\":\"#0 [internal function]: OC\\AppFramework\\Utility\\SimpleContainer->OC\\AppFramework\\Utility\\{closure}(Object(ReflectionParameter))\\n#1 /pfad/cloud/lib/private/AppFramework/Utility/SimpleContainer.php(108): array_map(Object(Closure), Array)\\n#2 /pfad/cloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): OC\\AppFramework\\Utility\\SimpleContainer->buildClass(Object(ReflectionClass))\\n#3 /pfad/cloud/lib/private/AppFramework/Utility/SimpleContainer.php(133): OC\\AppFramework\\Utility\\SimpleContainer->resolve('OCA\\\\Talk\\\\Dashbo...')\\n#4 /pfad/cloud/lib/private/ServerContainer.php(161): OC\\AppFramework\\Utility\\SimpleContainer->query('OCA\\\\Talk\\\\Dashbo...', true)\\n#5 /pfad/cloud/lib/private/AppFramework/Utility/SimpleContainer.php(57): OC\\ServerContainer->query('OCA\\\\Talk\\\\Dashbo...')\\n#6 /pfad/cloud/lib/private/Dashboard/Manager.php(78): OC\\AppFramework\\Utility\\SimpleContainer->get('OCA\\\\Talk\\\\Dashbo...')\\n#7 /pfad/cloud/lib/private/Dashboard/Manager.php(131): OC\\Dashboard\\Manager->loadLazyPanels()\\n#8 /pfad/cloud/apps/dashboard/lib/Controller/DashboardController.php(101): OC\\Dashboard\\Manager->getWidgets()\\n#9 /pfad/cloud/lib/private/AppFramework/Http/Dispatcher.php(225): OCA\\Dashboard\\Controller\\DashboardController->index()\\n#10 /pfad/cloud/lib/private/AppFramework/Http/Dispatcher.php(133): OC\\AppFramework\\Http\\Dispatcher->executeController(Object(OCA\\Dashboard\\Controller\\DashboardController), 'index')\\n#11 /pfad/cloud/lib/private/AppFramework/App.php(172): OC\\AppFramework\\Http\\Dispatcher->dispatch(Object(OCA\\Dashboard\\Controller\\DashboardController), 'index')\\n#12 /pfad/cloud/lib/private/Route/Router.php(298): OC\\AppFramework\\App::main('OCA\\\\Dashboard\\\\C...', 'index', Object(OC\\AppFramework\\DependencyInjection\\DIContainer), Array)\\n#13 /pfad/cloud/lib/base.php(1047): OC\\Route\\Router->match('/apps/dashboard...')\\n#14 /pfad/cloud/index.php(36): OC::handleRequest()\\n#15 {main}\",\"previous\":{\"class\":\"OCP\\AppFramework\\QueryException\",\"message\":\"Could not resolve OCP\\IL10N! Class can not be instantiated\",\"code\":0,\"file\":\"/pfad/cloud/lib/private/AppFramework/Utility/SimpleContainer.php:118\",\"trace\":\"#0 /pfad/cloud/lib/private/AppFramework/Utility/SimpleContainer.php(133): OC\\AppFramework\\Utility\\SimpleContainer->resolve('OCP\\\\IL10N')\\n#1 /pfad/cloud/lib/private/ServerContainer.php(161): OC\\AppFramework\\Utility\\SimpleContainer->query('OCP\\\\IL10N', true)\\n#2 /pfad/cloud/lib/private/AppFramework/Utility/SimpleContainer.php(89): OC\\ServerContainer->query('OCP\\\\IL10N', true)\\n#3 [internal function]: OC\\AppFramework\\Utility\\SimpleContainer->OC\\AppFramework\\Utility\\{closure}(Object(ReflectionParameter))\\n#4 /pfad/cloud/lib/private/AppFramework/Utility/SimpleContainer.php(108): array_map(Object(Closure), Array)\\n#5 /pfad/cloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): OC\\AppFramework\\Utility\\SimpleContainer->buildClass(Object(ReflectionClass))\\n#6 /pfad/cloud/lib/private/AppFramework/Utility/SimpleContainer.php(133): OC\\AppFramework\\Utility\\SimpleContainer->resolve('OCA\\\\Talk\\\\Dashbo...')\\n#7 /pfad/cloud/lib/private/ServerContainer.php(161): OC\\AppFramework\\Utility\\SimpleContainer->query('OCA\\\\Talk\\\\Dashbo...', true)\\n#8 /pfad/cloud/lib/private/AppFramework/Utility/SimpleContainer.php(57): OC\\ServerContainer->query('OCA\\\\Talk\\\\Dashbo...')\\n#9 /pfad/cloud/lib/private/Dashboard/Manager.php(78): OC\\AppFramework\\Utility\\SimpleContainer->get('OCA\\\\Talk\\\\Dashbo...')\\n#10 /pfad/cloud/lib/private/Dashboard/Manager.php(131): OC\\Dashboard\\Manager->loadLazyPanels()\\n#11 /pfad/cloud/apps/dashboard/lib/Controller/DashboardController.php(101): OC\\Dashboard\\Manager->getWidgets()\\n#12 /pfad/cloud/lib/private/AppFramework/Http/Dispatcher.php(225): OCA\\Dashboard\\Controller\\DashboardController->index()\\n#13 /pfad/cloud/lib/private/AppFramework/Http/Dispatcher.php(133): OC\\AppFramework\\Http\\Dispatcher->executeController(Object(OCA\\Dashboard\\Controller\\DashboardController), 'index')\\n#14 /pfad/cloud/lib/private/AppFramework/App.php(172): OC\\AppFramework\\Http\\Dispatcher->dispatch(Object(OCA\\Dashboard\\Controller\\DashboardController), 'index')\\n#15 /pfad/cloud/lib/private/Route/Router.php(298): OC\\AppFramework\\App::main('OCA\\\\Dashboard\\\\C...', 'index', Object(OC\\AppFramework\\DependencyInjection\\DIContainer), Array)\\n#16 /pfad/cloud/lib/base.php(1047): OC\\Route\\Router->match('/apps/dashboard...')\\n#17 /pfad/cloud/index.php(36): OC::handleRequest()\\n#18 {main}\"}}"}}

Hello SysKeeper,

I just grepped through the apps folder and I don’t see any other apps with the same ID

Keine Chance, dem Übeltäter auf die Spur zu kommen und diese beiden Fehler abzustellen?