All photo previews suddenly disappears when scrolling

Nextcloud version: 26.0.1
Operating system and version: OpenMediaVault 6.3.11-2 (Shaitan)
Apache version: Apache 2.4.56
PHP version: 8.1.18

Running on the official docker image, with Nginx proxy manager.

The issue you are facing:
I discovered the issue by looking for a photo I’d taken last autumn. All of the previews suddenly disappears when scrolling through photos. I’ve been scrolling through about 300 photos when the issue occurs.

It’s a bit annoying, since it is preventing me from finding photos in my library.
I’d highly appreciate if anyone know how to solve this.

I have expanded the memory to 4G both in docker and config.php. I’ve also installed the plugin Preview Generator. This hasn’t made any difference on the problem, but I get a lot faster loading of the previews.

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

Steps to replicate it:

  1. Have a lot of photos in the library.
  2. Start scrolling down, to find an old photo.

The output of your Nextcloud log in Admin > Logging:
I have enabled debug. This is what I get:

Debug	cron	CLI cron call has selected job with ID 8	
2023-05-19T14:10:02+0200
Debug	cron	Finished OCA\UserStatus\BackgroundJob\ClearOldStatusesBackgroundJob job with ID 7 in 0 seconds	
2023-05-19T14:10:02+0200
Debug	cron	Run OCA\UserStatus\BackgroundJob\ClearOldStatusesBackgroundJob job with ID 7	
2023-05-19T14:10:02+0200
Debug	cron	CLI cron call has selected job with ID 7	
2023-05-19T14:10:02+0200
Debug	cron	CLI cron call has selected job with ID 6	
2023-05-19T14:10:02+0200
Debug	cron	CLI cron call has selected job with ID 5	
2023-05-19T14:10:02+0200
Debug	cron	CLI cron call has selected job with ID 4

The output of your config.php file in /path/to/nextcloud (identifiable information removed or replaced!):

<?php
$CONFIG = array (
  'htaccess.RewriteBase' => '/',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memory_limit' => '4G',
  'apps_paths' => 
  array (
    0 => 
    array (
      'path' => '/var/www/html/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 => 
    array (
      'path' => '/var/www/html/custom_apps',
      'url' => '/custom_apps',
      'writable' => true,
    ),
  ),
  'instanceid' => 'ockgmzytu3bl',
  'trusted_domains' => 
  array (
    0 => 'my.domain.com',
    1 => '192.168.xx.xx:8080',
  ),
  'passwordsalt' => 'something',
  'secret' => 'something secret',
  'datadirectory' => '/var/www/html/data',
  'dbtype' => 'mysql',
  'version' => '26.0.1.1',
  'maintenance' => false,
  'overwrite.cli.url' => 'https://my.domain.com',
  'overwriteprotocol' => 'https',
  'dbname' => 'nextcloud',
  'dbhost' => 'db',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => 'mypassword',
  'installed' => true,
  'default_phone_region' => 'NO',
  'twofactor_enforced' => 'true',
  'twofactor_enforced_groups' => 
  array (
  ),
  'twofactor_enforced_excluded_groups' => 
  array (
  ),
  'loglevel' => 2,
  'theme' => '',
  'app_install_overwrite' => 
  array (
    0 => 'sharerenamer',
    1 => 'richdocumentscode',
  ),
);

The output of log from docker:

192&x=512&y=512 HTTP/1.1" 200 140922 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/113.0"

82.146.64.12 - - [19/May/2023:12:09:18 +0000] "GET /apps/photos/api/v1/preview/1178402?etag=ef3574f8204941e4b414526f814ee166&x=512&y=512 HTTP/1.1" 200 107929 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/113.0"

82.146.64.12 - - [19/May/2023:12:09:18 +0000] "SEARCH /remote.php/dav/ HTTP/1.1" 207 180599 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/113.0"

82.146.64.12 - - [19/May/2023:12:09:01 +0000] "GET /apps/logreader/poll?lastReqId=SpUeOrp6Rw9pVBm4Ea54 HTTP/1.1" 200 793 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/113.0"

82.146.64.12 - - [19/May/2023:12:09:25 +0000] "GET /apps/photos/api/v1/preview/1178701?etag=365ecb5921c827a75b7ff2e1ee39c07b&x=512&y=512 HTTP/1.1" 200 53222 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/113.0"

82.146.64.12 - - [19/May/2023:12:09:25 +0000] "GET /apps/photos/api/v1/preview/1178760?etag=7f41bc9ea453aca29d24e29029e45670&x=512&y=512 HTTP/1.1" 200 58909 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/113.0"

82.146.64.12 - - [19/May/2023:12:09:30 +0000] "GET /apps/photos/api/v1/preview/1178446?etag=a54b60d143098aea59687e192203f90f&x=512&y=512 HTTP/1.1" 200 74111 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/113.0"

82.146.64.12 - - [19/May/2023:12:09:29 +0000] "SEARCH /remote.php/dav/ HTTP/1.1" 207 173143 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/113.0"

82.146.64.12 - oystein [19/May/2023:12:09:35 +0000] "PROPFIND /remote.php/dav/files/oystein/ HTTP/1.1" 207 1128 "-" "Mozilla/5.0 (Linux) mirall/3.1.1-2+deb11u1 (Nextcloud)"

82.146.64.12 - - [19/May/2023:12:09:39 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 765 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/113.0"

82.146.64.12 - oystein [19/May/2023:12:09:41 +0000] "PROPFIND /remote.php/dav/files/oystein/ HTTP/1.1" 207 1132 "-" "Mozilla/5.0 (Linux) mirall/3.1.1-2+deb11u1 (Nextcloud)"

82.146.64.12 - - [19/May/2023:12:09:21 +0000] "GET /apps/logreader/poll?lastReqId=SpUeOrp6Rw9pVBm4Ea54 HTTP/1.1" 200 793 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/113.0"

82.146.64.12 - - [19/May/2023:12:09:41 +0000] "SEARCH /remote.php/dav/ HTTP/1.1" 207 167151 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/113.0"

82.146.64.12 - - [19/May/2023:12:09:54 +0000] "GET /apps/photos/api/v1/preview/476069?etag=d5ee32767c57049e48088ad3410d9e3f&x=512&y=512 HTTP/1.1" 200 132003 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/113.0"

82.146.64.12 - - [19/May/2023:12:09:54 +0000] "GET /apps/photos/api/v1/preview/476101?etag=993288755c23621a9584d6a0a4d4109e&x=512&y=512 HTTP/1.1" 200 174307 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/113.0"

82.146.64.12 - - [19/May/2023:12:09:53 +0000] "SEARCH /remote.php/dav/ HTTP/1.1" 207 174079 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/113.0"

82.146.64.12 - - [19/May/2023:12:09:41 +0000] "GET /apps/logreader/poll?lastReqId=SpUeOrp6Rw9pVBm4Ea54 HTTP/1.1" 200 793 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/113.0"

82.146.64.12 - - [19/May/2023:12:10:01 +0000] "GET /apps/logreader/poll?lastReqId=SpUeOrp6Rw9pVBm4Ea54 HTTP/1.1" 200 1114 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/113.0"

I’ve just removed a lot of photos. The thumbnails now disappear instantly when loading the photos app.
I’ve reported the issue as a bug on Github.