richdocuments
richdocuments copied to clipboard
Lots of error messages in log since last update of richdocuments
Describe the bug After the last upgrade I get a lot of "ClassNotFound" Exceptions in the log. Found "Richdocuments" in the log messages, but I don't know if this is the real error source (or the server).
To Reproduce Steps to reproduce the behavior:
- Disable all Federation options within sharing in admin panel and the federation plugin
- Use current version of richdocuments
Expected behavior No messages in Log
Temporary solution Enabling the Federation App solves the problem, but because Federation is not wanted on this system, I don't want to do this permanently.
Screenshots
Client details: N/A
Server details
Operating system: Debian 11
Web server: Apache
Database: MariaDB
PHP version: 7.4
Nextcloud version: 22.2.7
Version of the richdocuments app 4.2.6
Version of Collabora Online 4.2.4 / 6.2-14
Logs
Nextcloud log (data/nextcloud.log)
{"reqId":"CNJthiGsc3crFr9O7VPI","level":3,"time":"2022-05-09T07:54:10+00:00","remoteAddr":"XXX","user":"fleischer","app":"no app in context","method":"GET","url":"/apps/logreader/poll?lastReqId=Fc9txIUP3gAc8QU5rnTv","message":"Could not boot richdocuments: Could not resolve OCA\\Federation\\TrustedServers! Class OCA\\Federation\\TrustedServers does not exist","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:99.0) Gecko/20100101 Firefox/99.0","version":"22.2.7.1","exception":{"Exception":"OCP\\AppFramework\\QueryException","Message":"Could not resolve OCA\\Federation\\TrustedServers! Class OCA\\Federation\\TrustedServers does not exist","Code":0,"Trace":[{"file":"/data/nextcloud_21/lib/private/AppFramework/Utility/SimpleContainer.php","line":131,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/data/nextcloud_21/lib/private/ServerContainer.php","line":161,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/data/nextcloud_21/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":435,"function":"query","class":"OC\\ServerContainer","type":"->"},{"file":"/data/nextcloud_21/apps/richdocuments/lib/AppInfo/Application.php","line":227,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/data/nextcloud_21/apps/richdocuments/lib/AppInfo/Application.php","line":155,"function":"updateCSP","class":"OCA\\Richdocuments\\AppInfo\\Application","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/data/nextcloud_21/lib/private/AppFramework/Bootstrap/FunctionInjector.php","line":67,"function":"OCA\\Richdocuments\\AppInfo\\{closure}","class":"OCA\\Richdocuments\\AppInfo\\Application","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/data/nextcloud_21/lib/private/AppFramework/Bootstrap/BootContext.php","line":51,"function":"injectFn","class":"OC\\AppFramework\\Bootstrap\\FunctionInjector","type":"->"},{"file":"/data/nextcloud_21/apps/richdocuments/lib/AppInfo/Application.php","line":157,"function":"injectFn","class":"OC\\AppFramework\\Bootstrap\\BootContext","type":"->"},{"file":"/data/nextcloud_21/lib/private/AppFramework/Bootstrap/Coordinator.php","line":178,"function":"boot","class":"OCA\\Richdocuments\\AppInfo\\Application","type":"->"},{"file":"/data/nextcloud_21/lib/private/legacy/OC_App.php","line":205,"function":"bootApp","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/data/nextcloud_21/lib/private/legacy/OC_App.php","line":139,"function":"loadApp","class":"OC_App","type":"::"},{"file":"/data/nextcloud_21/lib/base.php","line":988,"function":"loadApps","class":"OC_App","type":"::"},{"file":"/data/nextcloud_21/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/data/nextcloud_21/lib/private/AppFramework/Utility/SimpleContainer.php","Line":120,"CustomMessage":"Could not boot richdocuments: Could not resolve OCA\\Federation\\TrustedServers! Class OCA\\Federation\\TrustedServers does not exist"},"id":"6278cd00b7841"}
Browser log
N/A
Confirming. Richdocuments is spamming the log file with the same message over and over again (like 10 messages per second(!)):
"Could not boot richdocuments: Could not resolve OCA\\Federation\\TrustedServers! Class OCA\\Federation\\TrustedServers does not exist"
Enabling the federation app solves the problem, but apps should not depend on one another like this.
Seems to happen on stable4 (Nextcloud 20-22) only, related to https://github.com/nextcloud/richdocuments/pull/2105 which we might want to adjust to be part of the below check for the federation app
Closing because NC 22 is EOL.
Feel free to reopen if its still an issue in a supported version https://github.com/nextcloud/server/wiki/Maintenance-and-Release-Schedule