nextcloud / related_resources

GNU Affero General Public License v3.0
7 stars 3 forks source link

[Bug]:"Related Resource Provider NotFound Error". Message after update nextcloud version 28.0.3 from version 27.1.6 #461

Open ectoledo opened 6 months ago

ectoledo commented 6 months ago

⚠️ This issue respects the following points: ⚠️

Bug description

After updating to version 28.0.3, the latest stable one, these messages appear in the log that did not appear in version 27. They appear, at least that I have detected, when we access the contacts app with circles.

Error related_resources RelatedResourceProviderNotFoundException thrown: OCA\RelatedResources\Exceptions\RelatedResourceProviderNotFoundException thrown: OCA\RelatedResources\Exceptions\RelatedResourceProviderNotFound 14 mar 2024, 14:42:03  
Error related_resources RelatedResourceProviderNotFoundException thrown: OCA\RelatedResources\Exceptions\RelatedResourceProviderNotFoundException thrown: OCA\RelatedResources\Exceptions\RelatedResourceProviderNotFound 14 mar 2024, 14:42:03  
-- -- -- -- --
Error related_resources RelatedResourceProviderNotFoundException thrown: OCA\RelatedResources\Exceptions\RelatedResourceProviderNotFoundException thrown: OCA\RelatedResources\Exceptions\RelatedResourceProviderNotFound 14 mar 2024, 14:42:03  
-- -- -- -- --
Error related_resources RelatedResourceProviderNotFoundException thrown: OCA\RelatedResources\Exceptions\RelatedResourceProviderNotFoundException thrown: OCA\RelatedResources\Exceptions\RelatedResourceProviderNotFound 14 mar 2024, 14:42:02  
-- -- -- -- --
Error related_resources RelatedResourceProviderNotFoundException thrown:
OCA\RelatedResources\Exceptions\RelatedResourceProviderNotFoundException thrown: OCA\RelatedResources\Exceptions\RelatedResourceProviderNotFound 14 mar 2024, 14:42:02  
-- -- -- -- -- 
Error related_resources RelatedResourceProviderNotFoundException thrown: OCA\RelatedResources\Exceptions\RelatedResourceProviderNotFoundException thrown: OCA\RelatedResources\Exceptions\RelatedResourceProviderNotFound 14 mar 2024, 14:42:02  
-- -- -- -- --
Error related_resources RelatedResourceProviderNotFoundException thrown: OCA\RelatedResources\Exceptions\RelatedResourceProviderNotFoundException thrown: OCA\RelatedResources\Exceptions\RelatedResourceProviderNotFound 14 mar 2024, 14:41:39  
-- -- -- -- --
Error related_resources RelatedResourceProviderNotFoundException thrown: OCA\RelatedResources\Exceptions\RelatedResourceProviderNotFoundException thrown: OCA\RelatedResources\Exceptions\RelatedResourceProviderNotFound 14 mar 2024, 14:41:39  

Error | related_resources | RelatedResourceProviderNotFoundException thrown: OCA\RelatedResources\Exceptions\RelatedResourceProviderNotFound

More infomation debug log:

{"reqId":"pDqTuvBOQIKyADtLtVGv","level":3,"time":"2024-03-14T14:41:39+01:00","remoteAddr":"10.236.138.4","user":"admin","app":"related_resources","method":"GET","url":"/ocs/v2.php/apps/related_resources/related/account?itemId=admin&resourceType=calendar&limit=5&format=json","message":"Exception thrown: OCA\RelatedResources\Exceptions\RelatedResourceProviderNotFound","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","version":"28.0.3.2","exception":{"Exception":"OCA\RelatedResources\Exceptions\RelatedResourceProviderNotFound","Message":"","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/related_resources/lib/Service/RelatedService.php","line":173,"function":"getRelatedResourceProvider","class":"OCA\RelatedResources\Service\RelatedService","type":"->"},{"file":"/var/www/nextcloud/apps/related_resources/lib/Service/RelatedService.php","line":127,"function":"retrieveRelatedToItem","class":"OCA\RelatedResources\Service\RelatedService","type":"->"},{"file":"/var/www/nextcloud/apps/related_resources/lib/Controller/ApiController.php","line":107,"function":"getRelatedToItem","class":"OCA\RelatedResources\Service\RelatedService","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"getRelatedResources","class":"OCA\RelatedResources\Controller\ApiController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":137,"function":"executeController","class":"OC\AppFramework\Http\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\AppFramework\Http\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\AppFramework\App","type":"::"},{"file":"/var/www/nextcloud/ocs/v1.php","line":65,"function":"match","class":"OC\Route\Router","type":"->"},{"file":"/var/www/nextcloud/ocs/v2.php","line":23,"args":["/var/www/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/related_resources/lib/Service/RelatedService.php","Line":605,"message":"","exception":{},"CustomMessage":"Exception thrown: OCA\RelatedResources\Exceptions\RelatedResourceProviderNotFound"}} {"reqId":"hYQWtUOjhnzOJkKkR0CL","level":3,"time":"2024-03-14T14:41:39+01:00","remoteAddr":"10.236.138.4","user":"admin","app":"related_resources","method":"GET","url":"/ocs/v2.php/apps/related_resources/related/account?itemId=admin&resourceType=talk&limit=5&format=json","message":"Exception thrown: OCA\RelatedResources\Exceptions\RelatedResourceProviderNotFound","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","version":"28.0.3.2","exception":{"Exception":"OCA\RelatedResources\Exceptions\RelatedResourceProviderNotFound","Message":"","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/related_resources/lib/Service/RelatedService.php","line":173,"function":"getRelatedResourceProvider","class":"OCA\RelatedResources\Service\RelatedService","type":"->"},{"file":"/var/www/nextcloud/apps/related_resources/lib/Service/RelatedService.php","line":127,"function":"retrieveRelatedToItem","class":"OCA\RelatedResources\Service\RelatedService","type":"->"},{"file":"/var/www/nextcloud/apps/related_resources/lib/Controller/ApiController.php","line":107,"function":"getRelatedToItem","class":"OCA\RelatedResources\Service\RelatedService","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"getRelatedResources","class":"OCA\RelatedResources\Controller\ApiController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":137,"function":"executeController","class":"OC\AppFramework\Http\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\AppFramework\Http\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\AppFramework\App","type":"::"},{"file":"/var/www/nextcloud/ocs/v1.php","line":65,"function":"match","class":"OC\Route\Router","type":"->"},{"file":"/var/www/nextcloud/ocs/v2.php","line":23,"args":["/var/www/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/related_resources/lib/Service/RelatedService.php","Line":605,"message":"","exception":{},"CustomMessage":"Exception thrown: OCA\RelatedResources\Exceptions\RelatedResourceProviderNotFound"}} {"reqId":"Ue5QuCOzB6pmCQkMNWj9","level":3,"time":"2024-03-14T14:41:39+01:00","remoteAddr":"10.236.138.4","user":"admin","app":"related_resources","method":"GET","url":"/ocs/v2.php/apps/related_resources/related/account?itemId=admin&resourceType=deck&limit=5&format=json","message":"Exception thrown: OCA\RelatedResources\Exceptions\RelatedResourceProviderNotFound","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","version":"28.0.3.2","exception":{"Exception":"OCA\RelatedResources\Exceptions\RelatedResourceProviderNotFound","Message":"","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/related_resources/lib/Service/RelatedService.php","line":173,"function":"getRelatedResourceProvider","class":"OCA\RelatedResources\Service\RelatedService","type":"->"},{"file":"/var/www/nextcloud/apps/related_resources/lib/Service/RelatedService.php","line":127,"function":"retrieveRelatedToItem","class":"OCA\RelatedResources\Service\RelatedService","type":"->"},{"file":"/var/www/nextcloud/apps/related_resources/lib/Controller/ApiController.php","line":107,"function":"getRelatedToItem","class":"OCA\RelatedResources\Service\RelatedService","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"getRelatedResources","class":"OCA\RelatedResources\Controller\ApiController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":137,"function":"executeController","class":"OC\AppFramework\Http\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\AppFramework\Http\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\AppFramework\App","type":"::"},{"file":"/var/www/nextcloud/ocs/v1.php","line":65,"function":"match","class":"OC\Route\Router","type":"->"},{"file":"/var/www/nextcloud/ocs/v2.php","line":23,"args":["/var/www/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/related_resources/lib/Service/RelatedService.php","Line":605,"message":"","exception":{},"CustomMessage":"Exception thrown: OCA\RelatedResources\Exceptions\RelatedResourceProviderNotFound"}} {"reqId":"2zfVPzqIqv3gYZJDu6F0","level":0,"time":"2024-03-14T14:41:39+01:00","remoteAddr":"10.236.138.4","user":"admin","app":"related_resources","method":"GET","url":"/ocs/v2.php/apps/related_resources/related/account?itemId=admin&resourceType=files&limit=5&format=json","message":"get available items to NdY1ybbrFlV3zPMd3zjbjh9bW5eJ7sc from files - []","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","version":"28.0.3.2","data":{"app":"related_resources"}} {"reqId":"2zfVPzqIqv3gYZJDu6F0","level":0,"time":"2024-03-14T14:41:39+01:00","remoteAddr":"10.236.138.4","user":"admin","app":"related_resources","method":"GET","url":"/ocs/v2.php/apps/related_resources/related/account?itemId=admin&resourceType=files&limit=5&format=json","message":"caching available items to NdY1ybbrFlV3zPMd3zjbjh9bW5eJ7sc from files - []","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","version":"28.0.3.2","data":{"app":"related_resources"}} {"reqId":"WzNdLYGXsK8mIHwGu52v","level":3,"time":"2024-03-14T14:41:39+01:00","remoteAddr":"10.236.138.4","user":"admin","app":"webdav","method":"GET","url":"/remote.php/dav/addressbooks/users/admin/z-server-generated--system/Database:admin.vcf?photo","message":"Could not get appdata folder for dav-photocache","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","version":"28.0.3.2","exception":{"Exception":"RuntimeException","Message":"Could not get appdata folder for dav-photocache","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Files/AppData/AppData.php","line":147,"function":"getAppDataFolder","class":"OC\Files\AppData\AppData","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/CardDAV/PhotoCache.php","line":171,"function":"newFolder","class":"OC\Files\AppData\AppData","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/CardDAV/PhotoCache.php","line":69,"function":"getFolder","class":"OCA\DAV\CardDAV\PhotoCache","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/CardDAV/ImageExportPlugin.php","line":103,"function":"get","class":"OCA\DAV\CardDAV\PhotoCache","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpGet","class":"OCA\DAV\CardDAV\ImageExportPlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\DAV\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\DAV\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\DAV\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":373,"function":"exec","class":"Sabre\DAV\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\DAV\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":172,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/Files/AppData/AppData.php","Line":108,"message":"Could not get appdata folder for dav-photocache","exception":{},"CustomMessage":"Could not get appdata folder for dav-photocache"}} {"reqId":"GYMm9svD8grsCQUlzzrk","level":0,"time":"2024-03-14T14:41:39+01:00","remoteAddr":"10.236.138.4","user":"admin","app":"related_resources","method":"GET","url":"/ocs/v2.php/apps/related_resources/related/account?itemId=admin&resourceType=talk&limit=5&format=json","message":"retrieving related to item account.admin","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","version":"28.0.3.2","data":{"app":"related_resources"}} {"reqId":"GYMm9svD8grsCQUlzzrk","level":0,"time":"2024-03-14T14:41:39+01:00","remoteAddr":"10.236.138.4","user":"admin","app":"related_resources","method":"GET","url":"/ocs/v2.php/apps/related_resources/related/account?itemId=admin&resourceType=talk&limit=5&format=json","message":"existing cache on related from account.admin - {\"providerId\":\"account\",\"itemId\":\"admin\",\"title\":\"Account admin\",\"subtitle\":\"\",\"tooltip\":\"\",\"icon\":\"\",\"preview\":\"\",\"url\":\"\",\"score\":1,\"groupShared\":false,\"virtualGroup\":[\"NdY1ybbrFlV3zPMd3zjbjh9bW5eJ7sc\"],\"recipients\":[],\"improvements\":[],\"currentQuality\":[],\"meta\":[]}","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","version":"28.0.3.2","data":{"app":"related_resources"}} {"reqId":"GYMm9svD8grsCQUlzzrk","level":3,"time":"2024-03-14T14:41:39+01:00","remoteAddr":"10.236.138.4","user":"admin","app":"related_resources","method":"GET","url":"/ocs/v2.php/apps/related_resources/related/account?itemId=admin&resourceType=talk&limit=5&format=json","message":"Exception thrown: OCA\RelatedResources\Exceptions\RelatedResourceProviderNotFound","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","version":"28.0.3.2","exception":{"Exception":"OCA\RelatedResources\Exceptions\RelatedResourceProviderNotFound","Message":"","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/related_resources/lib/Service/RelatedService.php","line":173,"function":"getRelatedResourceProvider","class":"OCA\RelatedResources\Service\RelatedService","type":"->"},{"file":"/var/www/nextcloud/apps/related_resources/lib/Service/RelatedService.php","line":127,"function":"retrieveRelatedToItem","class":"OCA\RelatedResources\Service\RelatedService","type":"->"},{"file":"/var/www/nextcloud/apps/related_resources/lib/Controller/ApiController.php","line":107,"function":"getRelatedToItem","class":"OCA\RelatedResources\Service\RelatedService","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"getRelatedResources","class":"OCA\RelatedResources\Controller\ApiController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":137,"function":"executeController","class":"OC\AppFramework\Http\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\AppFramework\Http\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\AppFramework\App","type":"::"},{"file":"/var/www/nextcloud/ocs/v1.php","line":65,"function":"match","class":"OC\Route\Router","type":"->"},{"file":"/var/www/nextcloud/ocs/v2.php","line":23,"args":["/var/www/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/related_resources/lib/Service/RelatedService.php","Line":605,"message":"","exception":{},"CustomMessage":"Exception thrown: OCA\RelatedResources\Exceptions\RelatedResourceProviderNotFound"}} {"reqId":"n9wJRedgs8ZQMp61Jm2r","level":0,"time":"2024-03-14T14:41:39+01:00","remoteAddr":"10.236.138.4","user":"admin","app":"related_resources","method":"GET","url":"/ocs/v2.php/apps/related_resources/related/account?itemId=admin&resourceType=deck&limit=5&format=json","message":"retrieving related to item account.admin","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","version":"28.0.3.2","data":{"app":"related_resources"}} {"reqId":"n9wJRedgs8ZQMp61Jm2r","level":0,"time":"2024-03-14T14:41:39+01:00","remoteAddr":"10.236.138.4","user":"admin","app":"related_resources","method":"GET","url":"/ocs/v2.php/apps/related_resources/related/account?itemId=admin&resourceType=deck&limit=5&format=json","message":"existing cache on related from account.admin - {\"providerId\":\"account\",\"itemId\":\"admin\",\"title\":\"Account admin\",\"subtitle\":\"\",\"tooltip\":\"\",\"icon\":\"\",\"preview\":\"\",\"url\":\"\",\"score\":1,\"groupShared\":false,\"virtualGroup\":[\"NdY1ybbrFlV3zPMd3zjbjh9bW5eJ7sc\"],\"recipients\":[],\"improvements\":[],\"currentQuality\":[],\"meta\":[]}","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","version":"28.0.3.2","data":{"app":"related_resources"}} {"reqId":"597kX88rVDwQfAH0oc4a","level":0,"time":"2024-03-14T14:41:39+01:00","remoteAddr":"10.236.138.4","user":"admin","app":"related_resources","method":"GET","url":"/ocs/v2.php/apps/related_resources/related/account?itemId=admin&resourceType=files&limit=5&format=json","message":"retrieving related to item account.admin","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","version":"28.0.3.2","data":{"app":"related_resources"}} {"reqId":"n9wJRedgs8ZQMp61Jm2r","level":3,"time":"2024-03-14T14:41:39+01:00","remoteAddr":"10.236.138.4","user":"admin","app":"related_resources","method":"GET","url":"/ocs/v2.php/apps/related_resources/related/account?itemId=admin&resourceType=deck&limit=5&format=json","message":"Exception thrown: OCA\RelatedResources\Exceptions\RelatedResourceProviderNotFound","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","version":"28.0.3.2","exception":{"Exception":"OCA\RelatedResources\Exceptions\RelatedResourceProviderNotFound","Message":"","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/related_resources/lib/Service/RelatedService.php","line":173,"function":"getRelatedResourceProvider","class":"OCA\RelatedResources\Service\RelatedService","type":"->"},{"file":"/var/www/nextcloud/apps/related_resources/lib/Service/RelatedService.php","line":127,"function":"retrieveRelatedToItem","class":"OCA\RelatedResources\Service\RelatedService","type":"->"},{"file":"/var/www/nextcloud/apps/related_resources/lib/Controller/ApiController.php","line":107,"function":"getRelatedToItem","class":"OCA\RelatedResources\Service\RelatedService","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"getRelatedResources","class":"OCA\RelatedResources\Controller\ApiController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":137,"function":"executeController","class":"OC\AppFramework\Http\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\AppFramework\Http\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\AppFramework\App","type":"::"},{"file":"/var/www/nextcloud/ocs/v1.php","line":65,"function":"match","class":"OC\Route\Router","type":"->"},{"file":"/var/www/nextcloud/ocs/v2.php","line":23,"args":["/var/www/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/related_resources/lib/Service/RelatedService.php","Line":605,"message":"","exception":{},"CustomMessage":"Exception thrown: OCA\RelatedResources\Exceptions\RelatedResourceProviderNotFound"}} {"reqId":"597kX88rVDwQfAH0oc4a","level":0,"time":"2024-03-14T14:41:39+01:00","remoteAddr":"10.236.138.4","user":"admin","app":"related_resources","method":"GET","url":"/ocs/v2.php/apps/related_resources/related/account?itemId=admin&resourceType=files&limit=5&format=json","message":"existing cache on related from account.admin - {\"providerId\":\"account\",\"itemId\":\"admin\",\"title\":\"Account admin\",\"subtitle\":\"\",\"tooltip\":\"\",\"icon\":\"\",\"preview\":\"\",\"url\":\"\",\"score\":1,\"groupShared\":false,\"virtualGroup\":[\"NdY1ybbrFlV3zPMd3zjbjh9bW5eJ7sc\"],\"recipients\":[],\"improvements\":[],\"currentQuality\":[],\"meta\":[]}","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","version":"28.0.3.2","data":{"app":"related_resources"}} {"reqId":"597kX88rVDwQfAH0oc4a","level":0,"time":"2024-03-14T14:41:39+01:00","remoteAddr":"10.236.138.4","user":"admin","app":"related_resources","method":"GET","url":"/ocs/v2.php/apps/related_resources/related/account?itemId=admin&resourceType=files&limit=5&format=json","message":"existing cache on available items to NdY1ybbrFlV3zPMd3zjbjh9bW5eJ7sc from files - []","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","version":"28.0.3.2","data":{"app":"related_resources"}} {"reqId":"TNqW179UBEDKstmfM1bJ","level":0,"time":"2024-03-14T14:41:39+01:00","remoteAddr":"10.236.138.4","user":"admin","app":"related_resources","method":"GET","url":"/ocs/v2.php/apps/related_resources/related/account?itemId=admin&resourceType=calendar&limit=5&format=json","message":"retrieving related to item account.admin","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","version":"28.0.3.2","data":{"app":"related_resources"}} {"reqId":"TNqW179UBEDKstmfM1bJ","level":0,"time":"2024-03-14T14:41:39+01:00","remoteAddr":"10.236.138.4","user":"admin","app":"related_resources","method":"GET","url":"/ocs/v2.php/apps/related_resources/related/account?itemId=admin&resourceType=calendar&limit=5&format=json","message":"existing cache on related from account.admin - {\"providerId\":\"account\",\"itemId\":\"admin\",\"title\":\"Account admin\",\"subtitle\":\"\",\"tooltip\":\"\",\"icon\":\"\",\"preview\":\"\",\"url\":\"\",\"score\":1,\"groupShared\":false,\"virtualGroup\":[\"NdY1ybbrFlV3zPMd3zjbjh9bW5eJ7sc\"],\"recipients\":[],\"improvements\":[],\"currentQuality\":[],\"meta\":[]}","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","version":"28.0.3.2","data":{"app":"related_resources"}} {"reqId":"TNqW179UBEDKstmfM1bJ","level":3,"time":"2024-03-14T14:41:39+01:00","remoteAddr":"10.236.138.4","user":"admin","app":"related_resources","method":"GET","url":"/ocs/v2.php/apps/related_resources/related/account?itemId=admin&resourceType=calendar&limit=5&format=json","message":"Exception thrown: OCA\RelatedResources\Exceptions\RelatedResourceProviderNotFound","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","version":"28.0.3.2","exception":{"Exception":"OCA\RelatedResources\Exceptions\RelatedResourceProviderNotFound","Message":"","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/related_resources/lib/Service/RelatedService.php","line":173,"function":"getRelatedResourceProvider","class":"OCA\RelatedResources\Service\RelatedService","type":"->"},{"file":"/var/www/nextcloud/apps/related_resources/lib/Service/RelatedService.php","line":127,"function":"retrieveRelatedToItem","class":"OCA\RelatedResources\Service\RelatedService","type":"->"},{"file":"/var/www/nextcloud/apps/related_resources/lib/Controller/ApiController.php","line":107,"function":"getRelatedToItem","class":"OCA\RelatedResources\Service\RelatedService","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"getRelatedResources","class":"OCA\RelatedResources\Controller\ApiController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":137,"function":"executeController","class":"OC\AppFramework\Http\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\AppFramework\Http\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\AppFramework\App","type":"::"},{"file":"/var/www/nextcloud/ocs/v1.php","line":65,"function":"match","class":"OC\Route\Router","type":"->"},{"file":"/var/www/nextcloud/ocs/v2.php","line":23,"args":["/var/www/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/related_resources/lib/Service/RelatedService.php","Line":605,"message":"","exception":{},"CustomMessage":"Exception thrown: OCA\RelatedResources\Exceptions\RelatedResourceProviderNotFound"}} {"reqId":"eh8TSrhsIpmWXNE2TgtQ","level":0,"time":"2024-03-14T14:41:40+01:00","remoteAddr":"10.236.138.4","user":"admin","app":"related_resources","method":"GET","url":"/ocs/v2.php/apps/related_resources/related/account?itemId=rchacon&resourceType=files&limit=5&format=json","message":"retrieving related to item account.rchacon","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","version":"28.0.3.2","data":{"app":"related_resources"}}

Steps to reproduce

  1. Access to contacts. 2.Messages appear in logs.

Expected behavior

No error messages should appear in log.

Installation method

Community Manual installation with Archive

Nextcloud Server version

28

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.2

Web server

Apache (supported)

Database engine version

MariaDB

Is this bug present after an update or on a fresh install?

Upgraded to a MAJOR version (ex. 22 to 23)

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

Configuration report

# sudo -u www-data php -f /var/www/nextcloud/occ  config:list system
{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "localhost",
            "dcsur-d.rtva.es"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "28.0.3.2",
        "overwrite.cli.url": "https:\/\/dcsur-d.rtva.es\/",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "filelocking.enabled": "true",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0,
            "dbindex": 0,
            "password": "***REMOVED SENSITIVE VALUE***",
            "timeout": 1.5
        },
        "htaccess.RewriteBase": "\/",
        "default_phone_region": "ES",
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "587",
        "mail_smtpdebug": true,
        "mail_smtpauth": 1,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpstreamoptions": {
            "ssl": {
                "verify_peer": false,
                "verify_peer_name": false
            }
        },
        "logtimezone": "Europe\/Madrid",
        "log.condition": {
            "apps": [
                "admin_audit"
            ]
        },
        "logfile_audit": "\/var\/log\/nextcloud\/nextcloud.log",
        "logfile": "\/var\/log\/nextcloud\/nextcloud.log",
        "tempdirectory": "\/nextcloud-datos\/tmp\/",
        "maintenance": false,
        "loglevel": 0,
        "skeletondirectory": "",
        "force_language": "es",
        "force_locale": "es_ES",
        "allow_user_to_change_display_name": false,
        "account_manager.default_property_scope": {
            "displayname": "v2-local",
            "email": "v2-local",
            "avatar": "v2-local"
        },
        "profile.enabled": false,
        "auth.webauthn.enabled": false,
        "trashbin_retention_obligation": "auto, 7",
        "activity_expire_days": 7,
        "ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory",
        "ldapUserCleanupInterval": 60,
        "theme": "",
        "simpleSignUpLink.shown": false,
        "allow_local_remote_servers": true,
        "session_lifetime": 86400,
        "remember_login_cookie_lifetime": "0",
        "session_keepalive": "false",
        "preview_max_x": 1024,
        "preview_max_y": 768,
        "preview_max_scale_factor": 1,
        "maintenance_window_start": 17,
        "allow_local_address": true,
        "lost_password_link": "disabled"
    }
}

List of activated Apps

# sudo -u www-data php -f /var/www/nextcloud/occ app:list
Enabled:
  - activity: 2.20.0
  - admin_audit: 1.18.0
  - auto_groups: 1.5.2
  - circles: 28.0.0-dev
  - cloud_federation_api: 1.11.0
  - comments: 1.18.0
  - contacts: 5.5.3
  - contactsinteraction: 1.9.0
  - dashboard: 7.8.0
  - dav: 1.29.1
  - federatedfilesharing: 1.18.0
  - files: 2.0.0
  - files_accesscontrol: 1.18.0
  - files_automatedtagging: 1.18.0
  - files_fulltextsearch: 28.0.0
  - files_pdfviewer: 2.9.0
  - files_reminders: 1.1.0
  - files_sharing: 1.20.0
  - files_trashbin: 1.18.0
  - files_versions: 1.21.0
  - fulltextsearch: 28.0.1
  - fulltextsearch_elasticsearch: 28.0.0
  - group_default_quota: 0.1.8
  - groupfolders: 16.0.4
  - impersonate: 1.15.0
  - logreader: 2.13.0
  - lookup_server_connector: 1.16.0
  - nextcloud_announcements: 1.17.0
  - notifications: 2.16.0
  - oauth2: 1.16.3
  - onlyoffice: 9.0.0
  - password_policy: 1.18.0
  - photos: 2.4.0
  - privacy: 1.12.0
  - provisioning_api: 1.18.0
  - recommendations: 2.0.0
  - related_resources: 1.3.0
  - serverinfo: 1.18.0
  - settings: 1.10.1
  - sharebymail: 1.18.0
  - support: 1.11.0
  - survey_client: 1.16.0
  - systemtags: 1.18.0
  - text: 3.9.1
  - theming: 2.3.0
  - theming_customcss: 1.15.0
  - twofactor_backupcodes: 1.17.0
  - updatenotification: 1.18.0
  - user_ldap: 1.19.0
  - user_status: 1.8.1
  - viewer: 2.2.0
  - workflowengine: 2.10.0
Disabled:
  - bruteforcesettings: 2.8.0
  - encryption: 2.16.0
  - federation: 1.18.0 (installed 1.17.0)
  - files_external: 1.20.0
  - files_rightclick: 0.15.1 (installed 1.6.0)
  - firstrunwizard: 2.17.0 (installed 2.16.0)
  - suspicious_login: 6.0.0
  - twofactor_totp: 10.0.0-beta.2
  - weather_status: 1.8.0 (installed 1.7.0)

Nextcloud Signing status

No errors have been found.

Nextcloud Logs

Error   related_resources   
RelatedResourceProviderNotFound
Exception thrown: OCA\RelatedResources\Exceptions\RelatedResourceProviderNotFound
Exception thrown: OCA\RelatedResources\Exceptions\RelatedResourceProviderNotFound

14 mar 2024, 14:53:28   

Error   related_resources   
RelatedResourceProviderNotFound
Exception thrown: OCA\RelatedResources\Exceptions\RelatedResourceProviderNotFound
Exception thrown: OCA\RelatedResources\Exceptions\RelatedResourceProviderNotFound

14 mar 2024, 14:53:28   

Error   related_resources   
RelatedResourceProviderNotFound
Exception thrown: OCA\RelatedResources\Exceptions\RelatedResourceProviderNotFound
Exception thrown: OCA\RelatedResources\Exceptions\RelatedResourceProviderNotFound

14 mar 2024, 14:53:28   

Error   related_resources   
RelatedResourceProviderNotFound
Exception thrown: OCA\RelatedResources\Exceptions\RelatedResourceProviderNotFound
Exception thrown: OCA\RelatedResources\Exceptions\RelatedResourceProviderNotFound

14 mar 2024, 14:53:28   

Error   related_resources   
RelatedResourceProviderNotFound
Exception thrown: OCA\RelatedResources\Exceptions\RelatedResourceProviderNotFound
Exception thrown: OCA\RelatedResources\Exceptions\RelatedResourceProviderNotFound

14 mar 2024, 14:53:28   

Error   related_resources   
RelatedResourceProviderNotFound
Exception thrown: OCA\RelatedResources\Exceptions\RelatedResourceProviderNotFound
Exception thrown: OCA\RelatedResources\Exceptions\RelatedResourceProviderNotFound

14 mar 2024, 14:53:28

Additional info

No response

rchaconmolero commented 6 months ago

We have had the same problem for several weeks. Since version 28.X (28.0.1, 28.0.2 and now in 28.0.3) the same problem continues that did not appear in any of the 27.X versions.

ectoledo commented 6 months ago

We have the same problem after update to v29.0.0beta5

ectoledo commented 5 months ago

After update to 28.0.4 the problem persist. Any solution?. Can we do anything?.

50P15 commented 5 months ago

Getting the same error on 28.0.4 Did you guys found a wayto fix it?

50P15 commented 5 months ago

Are you guys using Hestia CP ?

daniel-lerch commented 4 months ago

I can reproduce this exception being thrown by opening the contacts app in the browser on two Nextcloud 28.0.5 instances.

The request URL from @ectoledo looks interesting: /ocs/v2.php/apps/related_resources/related/account?itemId=rchacon&resourceType=files&limit=5&format=json

According to nextcloud/related_resources the URL schema is: /ocs/v2.php/apps/related_resources/related/<providerId>/<itemId>?format=json

Where <providerId> can be files, deck, talk, calendar. The provider account is not mentioned. Maybe the contacts app requests related resources from the wrong provider 🤔

shushyu commented 4 months ago

I'm currently working on this problem. It's definitely the Contact app, but I can't tell exactly what the app does yet.

antaran-hub commented 1 month ago

The issue has disappeared after adding a missing app 'Deck', which apparently is required now, as well. I was able to spawn this error on demand, simply by browsing through Contacts. I'm on Nextcloud Hub 8 (29.0.4). In my case, the clue was **resourceType=deck**.

{"reqId":"ZqgP9Qrqo1nox2qSsGLLvgAAANE","level":3,"time":"2024-07-29T21:56:05+00:00","remoteAddr":"XXX.XX.XX.XX","user":"admin","app":"related_resources","method":"GET","url":"/nextcloud/ocs/v2.php/apps/related_resources/related/account?itemId=admin&**resourceType=deck**&limit=5&format=json","message":"Exception thrown: OCA\\RelatedResources\\Exceptions\\RelatedResourceProviderNotFound","userAgent":"Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/26.0 Chrome/122.0.0.0 Mobile Safari/537.36","version":"29.0.4.1","exception":{"Exception":"OCA\\RelatedResources\\Exceptions\\RelatedResourceProviderNotFound","Message":"","Code":0,"Trace":[{"file":"/var/www/html/nextcloud/apps/related_resources/lib/Service/RelatedService.php","line":173,"function":"getRelatedResourceProvider","class":"OCA\\RelatedResources\\Service\\RelatedService","type":"->"},{"file":"/var/www/html/nextcloud/apps/related_resources/lib/Service/RelatedService.php","line":127,"function":"retrieveRelatedToItem","class":"OCA\\RelatedResources\\Service\\RelatedService","type":"->"},{"file":"/var/www/html/nextcloud/apps/related_resources/lib/Controller/ApiController.php","line":107,"function":"getRelatedToItem","class":"OCA\\RelatedResources\\Service\\RelatedService","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":232,"function":"getRelatedResources","class":"OCA\\RelatedResources\\Controller\\ApiController","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":138,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Route/Router.php","line":338,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/html/nextcloud/ocs/v1.php","line":66,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/html/nextcloud/ocs/v2.php","line":23,"args":["/var/www/html/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/html/nextcloud/apps/related_resources/lib/Service/RelatedService.php","Line":605,"message":"","exception":{},"CustomMessage":"Exception thrown: OCA\\RelatedResources\\Exceptions\\RelatedResourceProviderNotFound"}}