Slow file listing due to file_sharing module

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, 29.0.5): `29.0.5
Operating system and version (eg, Ubuntu 24.04): Debian 12
Apache or nginx version (eg, Apache 2.4.25): 2.4.61
PHP version (eg, 8.3): 8.2

The issue you are facing:
Slow file listing near to 10 at 15s.

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

Steps to replicate it:

  1. go to file module
  2. navigate in directory
  3. wait
  4. disable file_sharing module all is works fine
  5. activate file_sharing module listing is slow

The output of your Nextcloud log in Admin > Logging:

no specific logs

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

<?php
$CONFIG = array (
  'instanceid' => '****',
  'passwordsalt' => '****',
  'secret' => '****',
  'trusted_domains' => 
  array (
    0 => 'myurl',
  ),
  'datadirectory' => '/var/www/myurl/data',
  'overwrite.cli.url' => 'https://myurl',
  'dbtype' => 'mysql',
  'version' => '29.0.5.1',
  'dbname' => 'database',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'databaseuser',
  'dbpassword' => 'databasepassword',
  'installed' => true,
  'log_type' => 'owncloud',
  'logfile' => '/var/www/myurl/var/log/nextcloud/nextcloud.log',
  'loglevel' => 4,
  'logdateformat' => 'F d, Y H:i:s',
  'logtimezone' => 'Europe/Paris',
  'log_query' => false,
  'cron_log' => true,
  'log_rotate_size' => '104857600',
  'default_language' => 'fr',
  'maintenance' => false,
  'mysql.utf8mb4' => true,
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'default_phone_region' => 'FR',
  'redis' => 
  array (
    'host' => 'localhost',
    'port' => 6379,
    'timeout' => 0,
    'dbindex' => 5,
  ),
  'app_install_overwrite' => 
  array (
    0 => 'files_mindmap',
  ),
  'theme' => '',
);

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

no specific logs

Any ideas ?

  'log_type' => 'owncloud',
  'logfile' => '/var/www/myurl/var/log/nextcloud/nextcloud.log',
  'loglevel' => 4,
  • Your loglevel is so high that it’ll never show you anything useful. I would suggest changing ti to the default (2)
  • Do you have any warnings or errors under Administration settings->Overview?
  • Do you have a lot of shares? A lot of remote shares? etc.
  • When did this problem start?

@jtr

Your loglevel is so high that it’ll never show you anything useful. I would suggest changing ti to the default (2)

Ok i reduce it to 2

Do you have any warnings or errors under Administration settings->Overview?

No specific error :

Failed to get an iterator for log entries: Logreader application only supports "file" log_type
Some files have not passed the integrity check. List of invalid files… Rescan… For more details see the documentation ↗.
Do you have a lot of shares? A lot of remote shares?

Not a lot :
477 share
11 federated

When did this problem start?

2 weeks on v27, I upgrade to v29 but same case

Possibly:

@jtr we found the problem, a remote share with an external server which one respond very slow.
Thanks for you’re help

1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.