SOLVED - No previews for external storage

Nextcloud version (eg, 20.0.5): 20.0.4
Operating system and version (eg, Ubuntu 20.04): docker image
Apache or nginx version (eg, Apache 2.4.25): docker image
PHP version (eg, 7.4): docker image

The issue you are facing:

There are no previews generated for files on external storage (mounted from a different folder on the server. So no SMB, FTP, … or other remotely located files).

The photo app is still showing previews for images, but for those same images, the thumbnails are empty in the files app.

Previews on normal folders (e.g. non-external) work just fine.

It seems to have started in v20 because I had previews in v19. As a consequence, there are also no previews in the android app.

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

The output of your Nextcloud log in Admin > Logging:

{"reqId":"EYJfIBHDSHiU3zee1Wnm","level":3,"time":"2021-01-25T10:10:00+00:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":{"Exception":"RedisException","Message":"php_network_getaddresses: getaddrinfo failed: Name or service not known","Code":0,"Trace":[{"file":"/var/www/html/lib/private/RedisFactory.php","line":92,"function":"connect","class":"Redis","type":"->","args":["nextcloud-redis",6379,0]},{"file":"/var/www/html/lib/private/RedisFactory.php","line":108,"function":"create","class":"OC\\RedisFactory","type":"->","args":[]},{"file":"/var/www/html/lib/private/Memcache/Redis.php","line":43,"function":"getInstance","class":"OC\\RedisFactory","type":"->","args":[]},{"file":"/var/www/html/lib/private/Memcache/Factory.php","line":135,"function":"__construct","class":"OC\\Memcache\\Redis","type":"->","args":["c029aea437dd943f93f1417192083928/lock"]},{"file":"/var/www/html/lib/private/Server.php","line":1018,"function":"createLocking","class":"OC\\Memcache\\Factory","type":"->","args":["lock"]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":155,"function":"OC\\{closure}","class":"OC\\Server","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/pimple/pimple/src/Pimple/Container.php","line":118,"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":122,"function":"offsetGet","class":"Pimple\\Container","type":"->","args":["OCP\\Lock\\ILockingProvider"]},{"file":"/var/www/html/lib/private/ServerContainer.php","line":156,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCP\\Lock\\ILockingProvider",true]},{"file":"/var/www/html/lib/private/Server.php","line":1977,"function":"query","class":"OC\\ServerContainer","type":"->","args":["OCP\\Lock\\ILockingProvider"]},{"file":"/var/www/html/lib/private/Files/View.php","line":118,"function":"getLockingProvider","class":"OC\\Server","type":"->","args":[]},{"file":"/var/www/html/lib/private/Server.php","line":395,"function":"__construct","class":"OC\\Files\\View","type":"->","args":[]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":155,"function":"OC\\{closure}","class":"OC\\Server","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/pimple/pimple/src/Pimple/Container.php","line":118,"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":122,"function":"offsetGet","class":"Pimple\\Container","type":"->","args":["OC\\Files\\Node\\HookConnector"]},{"file":"/var/www/html/lib/private/ServerContainer.php","line":156,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OC\\Files\\Node\\HookConnector",true]},{"file":"/var/www/html/lib/private/Server.php","line":1324,"function":"query","class":"OC\\ServerContainer","type":"->","args":["OC\\Files\\Node\\HookConnector"]},{"file":"/var/www/html/lib/base.php","line":595,"function":"boot","class":"OC\\Server","type":"->","args":[]},{"file":"/var/www/html/lib/base.php","line":1091,"function":"init","class":"OC","type":"::","args":[]},{"file":"/var/www/html/cron.php","line":42,"args":["/var/www/html/lib/base.php"],"function":"require_once"}],"File":"/var/www/html/lib/private/RedisFactory.php","Line":92,"CustomMessage":"--"},"userAgent":"--","version":"20.0.4.0"}

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

<?php
$CONFIG = array (
  'htaccess.RewriteBase' => '/',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  '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,
    ),
  ),
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => '--',
    'password' => '--',
    'port' => 6379,
  ),
  'overwriteprotocol' => 'https',
  'trusted_proxies' =>
  array (
    0 => 'caddy',
  ),
  'mail_smtpmode' => 'smtp',
  'mail_smtphost' => 'smtp.--',
  'mail_smtpport' => 25,
  'mail_smtpsecure' => '',
  'mail_smtpauth' => false,
  'mail_smtpauthtype' => '--',
  'mail_smtpname' => '',
  'mail_smtppassword' => '--',
  'mail_from_address' => '--',
  'mail_domain' => '--',
  'passwordsalt' => '--',
  'secret' => '--',
  'trusted_domains' =>
  array (
    0 => 'localhost',
    1 => '--',
  ),
  'datadirectory' => '/data',
  'dbtype' => 'mysql',
  'version' => '20.0.4.0',
  'overwrite.cli.url' => 'https://---',
  'dbname' => 'nextcloud',
  'dbhost' => '--',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => '--',
  'dbpassword' => '--',
  'installed' => true,
  'instanceid' => '--',
  'log_type' => 'file',
  'logfile' => '/var/log/nextcloud/nextcloud.log',
  'log_rotate_size' => 104857600,
  'skeletondirectory' => '',
  'default_locale' => '--',
  'maintenance' => false,
  'loglevel' => 2,
  'preview_max_y' => '1920',
  'preview_max_x' => '1920',
  'jpeg_quality' => '60',
);

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

And update to 20.0.5 still gives the same issues.
I also notice that the PROPFID call from my browser to fetch the file listing returns <nc:has-preview>false</nc:has-preview> for the files. While this property is true for files that are not on external storage.

Hi, did you see this option for external storages?
image

:partying_face:

That did the trick. No idea why it was disabled :thinking: