App Related Resources - error Related Resource Provider NotFound

Nextcloud version: 28.0.2
Operating system and version: Debian 12
Apache or nginx version: 1.25.3
PHP version: 8.2.15

The issue you are facing:
NC shows the following error in Admin logging. No malfunction recognized so far.

{“reqId”:“………”,“level”:3,“time”:“2024-02-15T21:23:16+01:00”,“remoteAddr”:“xx.xxx.xx.xxx”,“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 (X11; Ubuntu; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0”,“version”:“28.0.2.5”,“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”},“id”:“………”}

Is this the first time you’ve seen this error? (Y/N):Y

Steps to replicate it:

  1. Unfortunately, at the moment I have no idea, how to replicate it.

The output of your Nextcloud log in Admin > Logging:
see above

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'passwordsalt' => '***REMOVED SENSITIVE VALUE***',
  'secret' => '***REMOVED SENSITIVE VALUE***',
  'trusted_domains' => 
  array (
    0 => '***REMOVED SENSITIVE VALUE***',
    1 => '***REMOVED SENSITIVE VALUE***',
    2 => '***REMOVED SENSITIVE VALUE***',
  ),
  'datadirectory' => '/var/nc_data',
  'dbtype' => 'mysql',
  'version' => '28.0.2.5',
  'overwrite.cli.url' => '***REMOVED SENSITIVE VALUE***',
  'dbname' => '***REMOVED SENSITIVE VALUE***',
  'dbhost' => '***REMOVED SENSITIVE VALUE***',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => '***REMOVED SENSITIVE VALUE***',
  'dbpassword' => '***REMOVED SENSITIVE VALUE***',
  'installed' => true,
  'instanceid' => '***REMOVED SENSITIVE VALUE***',
  'overwritehost' => '***REMOVED SENSITIVE VALUE***',
  'activity_expire_days' => 14,
  'allow_local_remote_servers' => true,
  'auth.bruteforce.protection.enabled' => true,
  'blacklisted_files' => 
  array (
    0 => '.htaccess',
    1 => 'Thumbs.db',
    2 => 'thumbs.db',
  ),
  'cron_log' => true,
  'default_phone_region' => 'xx'<,
  'enable_previews' => true,
  'enabledPreviewProviders' => 
  array (
    0 => 'OC\\Preview\\PNG',
    1 => 'OC\\Preview\\JPEG',
    2 => 'OC\\Preview\\GIF',
    3 => 'OC\\Preview\\BMP',
    4 => 'OC\\Preview\\XBitmap',
    5 => 'OC\\Preview\\Movie',
    6 => 'OC\\Preview\\PDF',
    7 => 'OC\\Preview\\MP3',
    8 => 'OC\\Preview\\TXT',
    9 => 'OC\\Preview\\MarkDown',
  ),
  'filesystem_check_changes' => 0,
  'filelocking.enabled' => 'true',
  'htaccess.RewriteBase' => '/',
  'integrity.check.disabled' => false,
  'knowledgebaseenabled' => false,
'log_rotate_size' => '104857600',
  'logfile' => '/var/log/nextcloud/nextcloud.log',
  'loglevel' => 2,
  'logtimezone' => '***REMOVED SENSITIVE VALUE***',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'overwriteprotocol' => 'https',
  'preview_max_x' => 1024,
  'preview_max_y' => 768,
  'preview_max_scale_factor' => 1,
  'profile.enabled' => false,
  'redis' => 
  array (
    'host' => '/var/run/redis/redis-server.sock',
    'port' => 0,
    'password' => '***REMOVED SENSITIVE VALUE***',
    'timeout' => 0.5,
    'dbindex' => 1,
  ),
  'quota_include_external_storage' => false,
  'share_folder' => '/Freigaben',
  'skeletondirectory' => '',
  'trashbin_retention_obligation' => 'auto, 7',
  'maintenance_window_start' => 1,
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => '***REMOVED SENSITIVE VALUE***',
  'mail_domain' => '***REMOVED SENSITIVE VALUE***',
  'mail_smtphost' => '***REMOVED SENSITIVE VALUE***',
  'mail_smtpport' => '465',
  'mail_smtpauth' => 1,
  'mail_smtpname' => '***REMOVED SENSITIVE VALUE***',
  'mail_smtppassword' => '***REMOVED SENSITIVE VALUE***',
  'remember_login_cookie_lifetime' => '1800',
  'versions_retention_obligation' => 'auto, 365',
  'simpleSignUpLink.shown' => false,
  'upgrade.disable-web' => true,
  'log.condition' => 
  array (
    'apps' => 
    array (
      0 => 'admin_audit',
    ),
  ),
  'maintenance' => false,
);
(END)

Has someone an idea, where to look for the root cause? Thank you

1 Like

I have the same problem after update yo 28.0.1 anda 28.0.2.

After several tests and reviewing the code, I think the problem is checking to see if the deck, contacts and calendar app are installed. If they are not installed and enabled, it gives that error that did not appear before.

1 Like

I can confirm that. Once the calendar, deck and contacts are installed, the error is gone.

That’s a bad behavior that didn’t happen before in 27.X versions. Those apps - calendar, Deck, Talk - aren’t required apps and shouldn’t need to be installed. I’ve created a post about this issue on hithub.

https://github.com/nextcloud/related_resources/issues/362
oud/related_resources/issues/362)

2 Likes

I’m not sure if I have the same issue, but I get a similar error message when trying to import contacts from a .vcf file. No such issue occurred when importing .ics files.

What would help the devs best? Opening a new issue in the issue tracker, or post things in here?

Edit 1: This is on a fresh Debian 12 install with Apache2, PHP 8.2 & MariaDB.

Edit 2 (Work Around):
Successfully imported it by

  1. Backing up contacts on the phone
  2. Deleting Contacts on Phone (Android-derivative in my case)
  3. Import Contacts to the DAV account on the Phone
  4. Sync with server

(Importing .vcf via Nextcloud Files sync didn’t work either)

Any news about this problem?.
After updating to the new version 28.0.3 and 28.0.4 , the problem persists.
Thank you.

I have the same problem.

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

Has someone an idea?

Somebody?? This is still happening and not good.