Some files are not shown on publicly shared links

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 (eg, 12.0.2): 17.0.0
Operating system and version (eg, Ubuntu 17.04): Ubuntu 16.04…6 LTS
Apache or nginx version (eg, Apache 2.4.25): nginx 1.17.3-8.6.0.4~xenial1
PHP version (eg, 7.1): 7.3.11-1+ubuntu16.04.1+deb.sury.org+1

The issue you are facing:
I want to share a folder with 237 files. If I am logged in, all the files are shown as expected in my NC account. Once I create a shared link, only 21 of the files are visible in browser, but if I select all the files, the correct number of files is shown.

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

Steps to replicate it:

  1. Create a folder with a lot of files (>200)
  2. Share the folder by public link
  3. Check if all the files are shown after accessing the shared link

The output of your Nextcloud log in Admin > Logging:

No additional entries after accessing a public link

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

 1 <?php
  2 $CONFIG = array (
  3   'onlyoffice' =>
  4   array (
  5     'verify_peer_off' => true,
  6   ),
  7   'activity_expire_days' => 14,
  8   'auth.bruteforce.protection.enabled' => true,
  9   'blacklisted_files' =>
 10   array (
 11     0 => '.htaccess',
 12     1 => 'Thumbs.db',
 13     2 => 'thumbs.db',
 14   ),
 15   'instanceid' => 'removedInfo',
 16   'passwordsalt' => 'removedInfo',
 17   'secret' => 'removedInfo',
 18   'trusted_domains' =>
 19   array (
 20     0 => 'cloud.example.com',
 21   ),
 22   'datadirectory' => '/var/www/nextcloud_data',
 23   'overwrite.cli.url' => 'https://cloud.example.com',
 24   'dbtype' => 'mysql',
 25   'version' => '17.0.0.9',
 26   'dbname' => 'removedInfo',
 27   'dbhost' => 'localhost',
 28   'dbport' => '',
 29   'dbtableprefix' => 'oc_',
 30   'dbuser' => 'removedInfo',
 31   'dbpassword' => 'removedInfo',
 32   'htaccess.RewriteBase' => '/',
 33   'overwriteprotocol' => 'https',
 34   'loglevel' => 1,
 35   'logtimezone' => 'Europe/Berlin',
 36   'logfile' => '/var/www/nextcloud_data/nextcloud.log',
 37   'log_rotate_size' => 104857600,
 38   'cron_log' => true,
 39   'installed' => true,
 40   'filesystem_check_changes' => 0,
 41   'quota_include_external_storage' => false,
 42   'knowledgebaseenabled' => false,
 43   'memcache.local' => '\\OC\\Memcache\\APCu',
 44   'filelocking.enabled' => 'true',
 45   'memcache.locking' => '\\OC\\Memcache\\Redis',
 46   'redis' =>
 47   array (
 48     'host' => '/var/run/redis/redis.sock',
 49     'port' => 0,
 50     'timeout' => 0.0,
 51   ),
 52   'maintenance' => false,
 53   'theme' => '',
 54   'integrity.check.disabled' => false,
 55   'updater.release.channel' => 'stable',
 56   'enable_previews' => true,
 57   'enabledPreviewProviders' =>
 58   array (
 59     0 => 'OC\\Preview\\PNG',
 60     1 => 'OC\\Preview\\JPEG',
 61     2 => 'OC\\Preview\\GIF',
 62     3 => 'OC\\Preview\\BMP',
 63     4 => 'OC\\Preview\\XBitmap',
 64     5 => 'OC\\Preview\\Movie',
 65     6 => 'OC\\Preview\\PDF',
 66     7 => 'OC\\Preview\\MP3',
 67     8 => 'OC\\Preview\\TXT',
 68     9 => 'OC\\Preview\\MarkDown',
 69   ),
 70   'preview_max_x' => 1024,
 71   'preview_max_y' => 768,
 72   'preview_max_scale_factor' => 1,
 73   'mail_smtpmode' => 'smtp',
 74   'mail_smtpauthtype' => 'LOGIN',
 75   'mail_from_address' => 'removedInfo',
 76   'mail_domain' => 'removedInfo',
 77   'mail_smtphost' => 'removedInfo',
 78   'mail_smtpport' => 'removedInfo',
 79   'mail_smtpauth' => 1,
 80   'mail_smtpname' => 'removedInfo',
 81   'mail_smtppassword' => 'removedInfo',
 82   'mysql.utf8mb4' => true,
 83   'app_install_overwrite' =>
 84   array (
 85     0 => 'calendar',
 86     1 => 'apporder',
 87   ),
 88   'ldapIgnoreNamingRules' => false,
 89   'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
 90   'mail_sendmailmode' => 'smtp',
 91 );

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

ngxin/nextcloud.error.log is empty

nginx/error.log:

2019/11/03 18:08:56 [warn] 12480#12480: *1194952 an upstream response is buffered to a temporary file /var/lib/nginx/proxy/0/30/0000003300 while reading upstream, client: *xxx.xxx.xxx.xxx* server: cloud.example.com, request: "PROPFIND /public.php/webdav/ HTTP/1.1", upstream: "http://127.0.0.1:82/public.php/webdav/", host: "cloud.example.com"

Although many images seem to be missing from the directory, I can still view them one by one in the Galery.

Server configuration detail

Operating system: Linux 4.9.0-11-amd64 #1 SMP Debian 4.9.189-3+deb9u1 (2019-09-20) x86_64

Webserver: Apache/2.4.38 (Debian) (apache2handler)

Database: mysql 10.4.8

PHP version: 7.3.11

Modules loaded: Core, date, libxml, openssl, pcre, sqlite3, zlib, ctype, curl, dom, fileinfo, filter, ftp, hash, iconv, json, mbstring, SPL, PDO, session, posix, Reflection, standard, SimpleXML, pdo_sqlite, Phar, tokenizer, xml, xmlreader, xmlwriter, mysqlnd, apache2handler, apcu, exif, gd, gmp, imagick, intl, ldap, memcached, pcntl, pdo_mysql, pdo_pgsql, redis, sodium, zip, Zend OPcache

Nextcloud version: 17.0.1 RC1 - 17.0.1.0

Updated from an older Nextcloud/ownCloud or fresh install:

Where did you install Nextcloud from: unknown

Signing status

Array ( )

List of activated apps
Enabled:
 - accessibility: 1.3.0
 - activity: 2.10.1
 - admin_audit: 1.7.0
 - apporder: 0.8.0
 - bruteforcesettings: 1.4.0
 - calendar: 1.7.1
 - cloud_federation_api: 1.0.0
 - comments: 1.7.0
 - contacts: 3.1.6
 - dav: 1.13.0
 - deck: 0.7.0
 - drawio: 0.9.4
 - federatedfilesharing: 1.7.0
 - federation: 1.7.0
 - files: 1.12.0
 - files_downloadactivity: 1.6.0
 - files_mindmap: 0.0.15
 - files_pdfviewer: 1.6.0
 - files_rightclick: 0.15.1
 - files_sharing: 1.9.0
 - files_trashbin: 1.7.0
 - files_versions: 1.10.0
 - files_videoplayer: 1.6.0
 - firstrunwizard: 2.6.0
 - gallery: 18.4.0
 - logreader: 2.2.0
 - lookup_server_connector: 1.5.0
 - mail: 0.18.1
 - nextcloud_announcements: 1.6.0
 - notes: 3.0.3
 - notifications: 2.5.0
 - oauth2: 1.5.0
 - password_policy: 1.7.0
 - passwords: 2019.11.0
 - provisioning_api: 1.7.0
 - rainloop: 6.0.4
 - richdocuments: 3.4.3
 - serverinfo: 1.7.0
 - sharebymail: 1.7.0
 - social: 0.2.101
 - spreed: 7.0.1
 - support: 1.0.1
 - survey_client: 1.5.0
 - systemtags: 1.7.0
 - tasks: 0.11.3
 - text: 1.1.1
 - theming: 1.8.0
 - twofactor_backupcodes: 1.6.0
 - twofactor_totp: 4.0.0
 - updatenotification: 1.7.0
 - viewer: 1.2.0
 - workflowengine: 1.7.0
Disabled:
 - encryption
 - external
 - files_external
 - keeweb
 - news
 - ojsxc
 - privacy
 - recommendations
 - user_ldap

Configuration (config/config.php)
{
    "htaccess.RewriteBase": "\/",
    "memcache.local": "\\OC\\Memcache\\APCu",
    "apps_paths": [
        {
            "path": "\/var\/www\/html\/apps",
            "url": "\/apps",
            "writable": false
        },
        {
            "path": "\/var\/www\/html\/custom_apps",
            "url": "\/custom_apps",
            "writable": true
        }
    ],
    "passwordsalt": "***REMOVED SENSITIVE VALUE***",
    "secret": "***REMOVED SENSITIVE VALUE***",
    "trusted_domains": [
        "cloud.privatewolke.com:443"
    ],
    "datadirectory": "***REMOVED SENSITIVE VALUE***",
    "dbtype": "mysql",
    "version": "17.0.1.0",
    "overwrite.cli.url": "http:\/\/localhost",
    "dbname": "***REMOVED SENSITIVE VALUE***",
    "dbhost": "***REMOVED SENSITIVE VALUE***",
    "dbport": "",
    "dbtableprefix": "",
    "mysql.utf8mb4": true,
    "dbuser": "***REMOVED SENSITIVE VALUE***",
    "dbpassword": "***REMOVED SENSITIVE VALUE***",
    "instanceid": "***REMOVED SENSITIVE VALUE***",
    "installed": true,
    "maintenance": false,
    "overwriteprotocol": "https",
    "mail_smtpmode": "smtp",
    "mail_smtpsecure": "tls",
    "mail_sendmailmode": "smtp",
    "mail_from_address": "***REMOVED SENSITIVE VALUE***",
    "mail_domain": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpauthtype": "PLAIN",
    "mail_smtpauth": 1,
    "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpport": "587",
    "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
    "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
    "loglevel": 0,
    "theme": "",
    "app_install_overwrite": [
        "files_downloadactivity",
        "keeweb"
    ],
    "updater.release.channel": "stable"
}

External storages: files_external is disabled

Encryption: no

User-backends:

  • OC\User\Database

Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_1) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Safari/605.1.15

Same thing here. Bugfix was not added to 17.0.1 RC. Please go for it. This is a real nasty one.

This seems to be the cause of this issue.

As a workaround you can disable Talk if you don’t really need it.

Well, we use talk everyday. Please list it as a bug in order to get it solved. It was not addressed in RC1 of 17 which is a bit annoying.

You could try the changes mentioned in this issue.

Others have reported this bug and it seems to be known by the community. I’m sure they are working on a solution.