After update, all thumbnails are recreated

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 32.0.6
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • After update from 32.0.3
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • Bare Metal

Summary of the issue you are facing:

I just upgraded from 32.0.3 to 32.0.6 and apparently, all thumbnails are being recreated. I was wondering why after the upgrade the hdd was so busy, so I checked with fatraceand found out, all the thumbnails are being recreated. This puts a lot of stress on the hdd.

Log example from fatrace:

22:31:31.512474 nfsd(1016): O   /hdd/nextcloud_share/nextcloud_data/appdata_ocgtqc2hc396/preview/c/b/1/b/a/2/a/994196/1024-683-max.jpg
22:31:31.514430 nfsd(1016): R   /hdd/nextcloud_share/nextcloud_data/appdata_ocgtqc2hc396/preview/c/b/1/b/a/2/a/994196/1024-683-max.jpg
22:31:31.545085 nfsd(1016): +   /hdd/nextcloud_share/nextcloud_data/appdata_ocgtqc2hc396/preview/c/b/1/b/a/2/a/994196
22:31:31.547250 nfsd(1016): O   /hdd/nextcloud_share/nextcloud_data/appdata_ocgtqc2hc396/preview/c/b/1/b/a/2/a/994196/256-256-crop.jpg
22:31:31.547734 nfsd(1016): W   /hdd/nextcloud_share/nextcloud_data/appdata_ocgtqc2hc396/preview/c/b/1/b/a/2/a/994196/256-256-crop.jpg
22:31:31.585934 nfsd(1017): +   /hdd/nextcloud_share/nextcloud_data/appdata_ocgtqc2hc396/preview/c/b/1/b/a/2/a/994196
22:31:31.588087 nfsd(1017): O   /hdd/nextcloud_share/nextcloud_data/appdata_ocgtqc2hc396/preview/c/b/1/b/a/2/a/994196/683-683-crop.jpg
22:31:31.588873 nfsd(1017): W   /hdd/nextcloud_share/nextcloud_data/appdata_ocgtqc2hc396/preview/c/b/1/b/a/2/a/994196/683-683-crop.jpg
22:31:31.606456 nfsd(1017): +   /hdd/nextcloud_share/nextcloud_data/appdata_ocgtqc2hc396/preview/c/b/1/b/a/2/a/994196
22:31:31.608611 nfsd(1017): O   /hdd/nextcloud_share/nextcloud_data/appdata_ocgtqc2hc396/preview/c/b/1/b/a/2/a/994196/64-43.jpg
22:31:31.608955 nfsd(1017): W   /hdd/nextcloud_share/nextcloud_data/appdata_ocgtqc2hc396/preview/c/b/1/b/a/2/a/994196/64-43.jpg
22:31:31.630312 nfsd(1016): +   /hdd/nextcloud_share/nextcloud_data/appdata_ocgtqc2hc396/preview/c/b/1/b/a/2/a/994196
22:31:31.632561 nfsd(1016): O   /hdd/nextcloud_share/nextcloud_data/appdata_ocgtqc2hc396/preview/c/b/1/b/a/2/a/994196/256-171.jpg
22:31:31.632970 nfsd(1016): W   /hdd/nextcloud_share/nextcloud_data/appdata_ocgtqc2hc396/preview/c/b/1/b/a/2/a/994196/256-171.jpg
22:31:31.651825 nfsd(1017): +   /hdd/nextcloud_share/nextcloud_data/appdata_ocgtqc2hc396/preview/c/b/1/b/a/2/a/994196
22:31:31.654029 nfsd(1017): O   /hdd/nextcloud_share/nextcloud_data/appdata_ocgtqc2hc396/preview/c/b/1/b/a/2/a/994196/96-64.jpg
22:31:31.654367 nfsd(1017): W   /hdd/nextcloud_share/nextcloud_data/appdata_ocgtqc2hc396/preview/c/b/1/b/a/2/a/994196/96-64.jpg

Configuration

Nextcloud

{
    "system": {
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "nextcloud",
            "192.168.0.52"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "32.0.6.1",
        "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***",
        "activity_expire_days": 14,
        "allow_local_remote_servers": true,
        "auth.bruteforce.protection.enabled": true,
        "forbidden_filenames": [
            ".htaccess",
            "Thumbs.db",
            "thumbs.db"
        ],
        "cron_log": true,
        "default_phone_region": "DE",
        "enable_previews": true,
        "enabledPreviewProviders": [
            "OC\\Preview\\PNG",
            "OC\\Preview\\JPEG",
            "OC\\Preview\\GIF",
            "OC\\Preview\\BMP",
            "OC\\Preview\\XBitmap",
            "OC\\Preview\\Movie",
            "OC\\Preview\\PDF",
            "OC\\Preview\\MP3",
            "OC\\Preview\\TXT",
            "OC\\Preview\\MarkDown",
            "OC\\Preview\\Image"
        ],
        "filesystem_check_changes": 0,
        "filelocking.enabled": "true",
        "htaccess.RewriteBase": "\/",
        "integrity.check.disabled": false,
        "knowledgebaseenabled": false,
        "log_rotate_size": "104857600",
        "log_type": "file",
        "logfile": "\/var\/log\/nextcloud\/nextcloud.log",
        "loglevel": 2,
        "debug": false,
        "logtimezone": "Europe\/Berlin",
        "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": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "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",
        "memories.exiftool": "\/var\/www\/nextcloud\/apps\/memories\/bin-ext\/exiftool-amd64-glibc",
        "memories.vod.path": "\/var\/www\/nextcloud\/apps\/memories\/bin-ext\/go-vod-amd64",
        "memories.vod.ffmpeg": "\/usr\/bin\/ffmpeg",
        "memories.vod.ffprobe": "\/usr\/bin\/ffprobe",
        "memories.viewer.high_res_cond_default": "always",
        "preview_max_memory": 512,
        "maintenance_window_start": 100,
        "maintenance": false,
        "theme": "",
        "memories.gis_type": 1,
        "memories.db.triggers.fcu": true,
        "updatechecker": false,
        "has_internet_connection": false,
        "updater.release.channel": "stable",
        "updater.secret": "***REMOVED SENSITIVE VALUE***"
    }
}

Apps



Enabled:

activity: 5.0.0

admin_audit: 1.22.0

bruteforcesettings: 5.0.0

calendar: 6.2.0

circles: 32.0.0

cloud_federation_api: 1.16.0

comments: 1.22.0

contacts: 8.3.2

contactsinteraction: 1.13.1

dashboard: 7.12.0

dav: 1.34.2

federatedfilesharing: 1.22.0

files: 2.4.0

files_downloadlimit: 5.0.0-dev.0

files_external: 1.24.1

files_pdfviewer: 5.0.0

files_reminders: 1.5.0

files_sharing: 1.24.1

files_trashbin: 1.22.0

groupfolders: 20.1.11

impersonate: 3.0.1

logreader: 5.0.0

lookup_server_connector: 1.20.0

memories: 7.8.2

nextcloud_announcements: 4.0.0

notifications: 5.0.0

oauth2: 1.20.0

password_policy: 4.0.0

photos: 5.0.0

previewgenerator: 5.12.1

privacy: 4.0.0

profile: 1.1.0

provisioning_api: 1.22.0

recognize: 10.0.7

recommendations: 5.0.0

related_resources: 3.0.0

serverinfo: 4.0.0

settings: 1.15.1

sharebymail: 1.22.0

systemtags: 1.22.0

text: 6.0.1

theming: 2.7.0

twofactor_backupcodes: 1.21.0

updatenotification: 1.22.0

user_status: 1.12.0

viewer: 5.0.0

weather_status: 1.12.0

webhook_listeners: 1.3.0

workflowengine: 2.14.0
Disabled:

app_api: 32.0.0 (installed 32.0.0)

encryption: 2.20.0

federation: 1.22.0 (installed 1.18.0)

files_versions: 1.25.0 (installed 1.22.0)

firstrunwizard: 5.0.0 (installed 2.17.0)

support: 4.0.0 (installed 1.11.0)

survey_client: 4.0.0 (installed 1.16.0)

suspicious_login: 10.0.0

twofactor_nextcloud_notification: 6.0.0

twofactor_totp: 14.0.0

user_ldap: 1.23.0

Could this be caused by previewgenerator, memories or something else? Was there a change in nextcloud server that made this necessary?

1 Like

I just realized, it’s not recreating the thumbnails, but creating a ton more. There were three per image before, now it’s eight. Example;

-rw-r--r-- 1 www-data www-data 127694 29. Sep 2024  1024-683-max.jpg
-rw-r--r-- 1 www-data www-data  10623 16. Feb 22:31 256-171.jpg
-rw-r--r-- 1 www-data www-data  14258 16. Feb 22:31 256-256-crop.jpg
-rw-r--r-- 1 www-data www-data  20939 29. Sep 2024  384-256.jpg
-rw-r--r-- 1 www-data www-data   1507 16. Feb 22:31 64-43.jpg
-rw-r--r-- 1 www-data www-data   1802 29. Sep 2024  64-64-crop.jpg
-rw-r--r-- 1 www-data www-data  89182 16. Feb 22:31 683-683-crop.jpg
-rw-r--r-- 1 www-data www-data   2363 16. Feb 22:31 96-64.jpg