Recent Files says "No files in here" when clicked

Hello,

I’m having some problem accessing files under “Recent” menu option.

When I click to Recent menu I can see all the photos and files however, when I click any of the files I get “No files in here” message.

Checking apache logs I can clearly see the problem:

"PROPFIND /remote.php/dav/files/user/files/user/InstantUpload/WhatsApp%20Images/ HTTP/1.1" 404 0 

you can see how /user/files/ repeated twice. obviously this path is invalid and the request returns 404.

Unfortunately I couldn’t figure out why this happens. I’m accessing nextcloud through haproxy, potentially the issue is there but I’m not 100% sure. There is no relevant log entries in the Nextcloud’s log. I’m getting a lot of “getimagesizefromstring(): Corrupt JPEG data” errors but I believe they are not related to the issue.

Can anyone please advise?

Thanks

here is the backend config on haproxy:

backend nextcloud
        option httpclose
        option forwardfor
        http-response set-header Strict-Transport-Security "max-age=16000000; includeSubDomains; preload;"
        acl url_discovery path /.well-known/caldav /.well-known/carddav
        http-request redirect location /remote.php/dav/ code 301 if url_discovery
                server nextcloud 192.168.1.xx:80 check

Nextcloud version: Nextcloud Hub 7 (28.0.1)
Operating system and version: Debian 12.4
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.57
PHP version (eg, 7.4): PHP 8.2.7

config:

$CONFIG = array (
  'instanceid' => 'xxxxxxxx',
  'passwordsalt' => 'xxxxxxxxxxxxxxxxx',
  'secret' => 'xxxxxxxxxxxxxxxxx',
  'trusted_domains' =>
  array (
    0 => 'cloud.domain.com',
  ),
  'trusted_proxies' =>
  array (
    0 => '192.168.1.xx',
  ),
  'overwriteprotocol' => 'https',
  'defaultapp' => 'files',
  'datadirectory' => '/cloud-data/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '28.0.1.1',
  'overwrite.cli.url' => 'http://cloud.domain.com',
  'dbname' => 'nextcloud',
  'dbhost' => 'mysql.domain.com',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'xxxxx',
  'dbpassword' => 'xxxxxxxxxxxxx',
  'installed' => true,
  'log_rotate_size' => 2097152,
  'filelocking.enabled' => true,
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => 'redis.domain.com',
    'port' => 6379,
    'timeout' => 0.0,
    'password' => 'xxxxxxxxxxxx',
  ),
  'auth.bruteforce.protection.enabled' => true,
  'blacklisted_files' =>
  array (
    0 => '.htaccess',
    1 => 'Thumbs.db',
    2 => 'thumbs.db',
  ),
  'default_phone_region' => 'GB',
  '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',
  ),
  'mail_from_address' => 'nextcloud',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_domain' => 'domain.com',
  'mail_smtphost' => 'mail.domain.com',
  'mail_smtpauth' => 1,
  'mail_smtpport' => '587',
  'mail_smtpname' => 'nextcloud@domain.com',
  'mail_smtppassword' => 'xxxxxxxxxxxx',
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'data-fingerprint' => 'xxxxxxxxxxxxxxxxx',
);
"PROPFIND /remote.php/dav/files/user/files/user/InstantUpload/WhatsApp%20Images/ HTTP/1.1" 404 0 

Hi!

I have the same issue since I updated Nextcloud to 28.0.1

So far I couldn’t solve it. Did you have any luck to solve that issue?

Hi all,
I have had the same problem since updating to NC 28.

Here is a message as an example:

[PHP] Fehler: getimagesizefromstring(): Corrupt JPEG data: 489 extraneous bytes before marker at /var/www/nextcloud/apps/photos/lib/Listener/SizeMetadataProvider.php#56
	von ? von -- um 23.01.2024, 11:10:41

Hello,

Unfortunately no updates, I couldn’t find a solution. Mine is a fresh install, I have a feeling like this might be a bug on Nextcloud side instead of a config issue. I hope we get some updates soon.

Did you notice any corrupt images? I couldnt find any, I’m not sure why we are getting the error message.

All images present in the NC can be called up without errors. I can download them and upload them again. Everything works, but I still get these error messages (currently over 1000 messages).

Same issue here on a 28.0.1 Nextcloud AIO install without reverse proxy. What i observe is that this only is for 1 user, and all other users don’t experience this issue.

Interesting is that I use the Nextcloud app, and all files get synced without any issues, so the files are certainly there, only the Nextcloud web interface shows “No files in here”

Hey everyone,

I’d like to confirm that the version 28.0.2 update resolves the issue.

Have a good weekend!

Many thanks for your support.

One of our customers still experiences this issue with 28.0.2.

But not only on Recent Files. Last week, some users couldn’t list any of their files for about an hour. Today, everything is back to normal.

Hi I had very similar issue - It went away after removing PhotosphereViewer - I had errors from it in logs