OCP\Files\NotFoundException for resources on nextcloud and github

Hello,

thank you all in advance for all the help you can provide

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • Nextcloud Hub 30.0.4
  • Operating system and version (e.g., Ubuntu 24.04):
    • Red Hat 9
  • Web server and version (e.g, Apache 2.4.25):
    • Server version: Apache/2.4.62
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • NA
  • PHP version (e.g, 8.3):
    • PHP 8.2.13
  • Is this the first time you’ve seen this error? (Yes / No):
    • `yes
  • When did this problem seem to first start?
    • from the begining

Summary of the issue you are facing:

We setup a nextcloud installation on a dedicated VM RHEL, everything seems to be working fine, but the logs on the administration console are plagued with errors.
It seems that when loading the apps page, some content is not being displayed and thrown a 500 Error

Example:

Example of a raw capture if we click on one of those entries.

{"reqId":"Z4Zm6ugPlOPHbVQ9yYE0oQAAAAk","level":3,"time":"2025-01-14T13:30:18+00:00","remoteAddr":"x.x.x.x","user":"93234ADE-4C23-40F4-820B-FDE94A129500","app":"index","method":"GET","url":"/index.php/settings/api/apps/media?fileName=https%3A%2F%2Fnextcloud.com%2Fc%2Fuploads%2F2024%2F09%2FNextcloud-Hub-9-1024x576.jpg","message":"Exception thrown: OCP\\Files\\NotFoundException","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0","version":"30.0.4.1","exception":{"Exception":"OCP\\Files\\NotFoundException","Message":"","Code":0,"Trace":[{"file":"/opt/nextcloud/lib/private/Files/Node/Folder.php","line":81,"function":"getFileInfo","class":"OC\\Files\\Node\\Node","type":"->"},{"file":"/opt/nextcloud/lib/private/Files/SimpleFS/SimpleFolder.php","line":33,"function":"getDirectoryListing","class":"OC\\Files\\Node\\Folder","type":"->"},{"file":"/opt/nextcloud/apps/settings/lib/Controller/AppSettingsController.php","line":149,"function":"getDirectoryListing","class":"OC\\Files\\SimpleFS\\SimpleFolder","type":"->"},{"file":"/opt/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":208,"function":"getAppDiscoverMedia","class":"OCA\\Settings\\Controller\\AppSettingsController","type":"->"},{"file":"/opt/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":114,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/opt/nextcloud/lib/private/AppFramework/App.php","line":161,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/opt/nextcloud/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/opt/nextcloud/lib/base.php","line":1003,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/opt/nextcloud/index.php","line":24,"function":"handleRequest","class":"OC","type":"::"}],"File":"/opt/nextcloud/lib/private/Files/Node/Node.php","Line":90,"message":"","exception":[],"CustomMessage":"Exception thrown: OCP\\Files\\NotFoundException"},"id":"67868401ed03b"}

and the aspect of the page with the resource failing to load:

It is like the resource is not directly loaded from nextcloud website, but our site referring to nextcloud site??
Dunno if this is normal:

https://pre-nextcloud.sanidad.gob.es/index.php/settings/api/apps/media?fileName=https%3A%2F%2Fnextcloud.com%2Fc%2Fuploads%2F2024%2F09%2FNextcloud-Hub-9-1024x576.jpg

Thanks for the help, appreciated

Cheers
Miguel

On the discover page of the app page, I have some calls to: usercontent.apps.nextcloud.com

The remaining calls are just to my domain (network analyser).

I have this image as well, so I suppose it is my server downloading it.

I found this report with a windows compatibility setting:

If it is not that, on the admin page, does it show connection errors? Perhaps you are blocking outgoing connections on your server (and SELinux), check corresponding logs if available.

1 Like

Dear tflidd,

I have to say you nailed it, it was to disable “windows compatibility” and the app menu runs as expected, displaying the images O_o

I was driving insane, and would never relate this.

Thank you very much for you kind support!!!

Cheers

Miguel

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.