Shared links display gibberish/symbols

Nextcloud version : Nextcloud 20.0.4
Operating system and version : Linux 5.4.83-v7l+ armv7l (Raspbian/Debian 10.7) on Raspberry Pi 4B rev 1.2 (Yunohost 4.1.6 stable )
Apache or nginx version : nginx/1.14.2
PHP version : 7.3.19

The issue you are facing:

  • opening shared links to directories in external drive display gibberish/symbols

Is this the first time you’ve seen this error? Yes

Steps to replicate it:

  1. create a new share link from a directory in external storage
  2. share link
  3. receiving party opens link and sees this:


Tried monitoring the log in real time but no events appear, last entry in there corresponds to a failed login attempt from my own IP address

The output of your Nextcloud log in Admin > Logging:

no related log entry

The output of your config.php file in /var/www/nextcloud/config:

<?php
$CONFIG = array (
  'passwordsalt' => 'xxxxxxxxxxxxxxxxxxxxx',
  'secret' => 'xxxxxxxxxxxxxxxxxxxxxxxx',
  'trusted_domains' => 
  array (
    0 => 'localhost',
    1 => 'my.domain.tld',
  ),                                                                                          
  'datadirectory' => '/home/yunohost.app/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '20.0.4.0',
  'overwrite.cli.url' => 'https://my.domain.tld,
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => 'xxxxxxxxxxxxxxx',
  'installed' => true,
  'instanceid' => 'occ5r051mleg',
  'ldapIgnoreNamingRules' => false,
  'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
  'updatechecker' => false,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'integrity.check.disabled' => true,
  'filelocking.enabled' => true,
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => 'localhost',
    'port' => '6379',
    'timeout' => '0.0',
    'password' => '',
  ),                                                                                          
  'hashing_default_password' => true,
);

//-YunoHost-
// set logout_url according to main domain
$main_domain = exec('cat /etc/yunohost/current_host');
$CONFIG['logout_url'] = 'https://'.$main_domain.'/yunohost/sso/?action=logout';
//-YunoHost-     

I have both /var/log/nginx/main.domain.tld-access.log and /var/log/nginx/main.domain.tld-error.log but both have more than 2000 lines each, don’t know which one to share

Happy to provide more files, logs and execute commands in a terminal to get this working, thanks for any pointers or direction in advance!