Nextcloud not regenerating previews when uploading changed file with the same name

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version: 20.0.8
Operating system and version: Docker on unRaid 6.9.1
Apache or nginx version: 1.18.0
PHP version: 7.4.15

The issue you are facing:
Lightbox preview for image files is not regenerating after file was changed and synced using Desktop app. Thumbnails are correctly regenerated and show changed files.

Is this the first time you’ve seen this error? : Y

Steps to replicate it:

  1. Create file
  2. Modify the file on other computer
  3. Sync using Nextcloud desktop app

The output of your Nextcloud log in Admin > Logging:

no error

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

<?php
$CONFIG = array (
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'datadirectory' => '/data',
  'instanceid' => '',
  'passwordsalt' => '',
  'secret' => '',
  'trusted_domains' => 
  array (
    0 => '192.168.1.5',
    1 => '',
  ),
  'overwrite.cli.url' => '',
  'overwritehost' => '',
  'overwriteprotocol' => 'https',
  'dbtype' => 'mysql',
  'version' => '20.0.8.1',
  'dbname' => 'nextcloud',
  'dbhost' => '192.168.1.4:3306',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => '',
  'dbpassword' => '',
  'installed' => true,
  'mail_from_address' => '',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_domain' => 'gmail.com',
  'mail_smtpsecure' => 'tls',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'smtp.gmail.com',
  'mail_smtpport' => '587',
  'mail_smtpname' => '@gmail.com',
  'mail_smtppassword' => '',
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'enable_previews' => true,
  'enabledPreviewProviders' =>
  array (
  'OC\Preview\PNG',
  'OC\Preview\JPEG',
  'OC\Preview\GIF',
  'OC\Preview\BMP',
  'OC\Preview\XBitmap',
  'OC\Preview\MP3',
  'OC\Preview\TXT',
  'OC\Preview\MarkDown',
  'OC\Preview\Illustrator',
  'OC\Preview\Photoshop',
  'OC\Preview\PDF',
  'OC\Preview\TIFF',
  'OC\Preview\SVG',
  'OC\Preview\Movie',
  'OC\Preview\MSOffice2007',
  'OC\Preview\MSOffice'),
);

The output of your Apache/nginx/system log in /var/log/____:

no error