Nextcloud 12.0.2 became very slow

Hello

Since some time my nextcloud installation is VERY slow.
It appears that the problem is less visible with some other users.
it’s an ancient one, running since owncloud 5 and upgraded from it.

I have tried :

  • Restarting apache
  • Restarting database
  • Rebooting the server (when you’re desperate… :slight_smile: )
  • Cleaning unused user settings (sudo -u www-data php occ user:setting --delete)
  • I found a Memcache \\OC\\Memcache\\APCu not available for local cache in the log, I replaced memcache with a “Redis” and have no message anymore, but no speed improvement.

To be honnest, I’m a bit puzzled…

If anyone can help…

Thanks
Nicolas


Nextcloud version (eg, 10.0.2): -

  • version: 12.0.4.3
  • versionstring: 12.0.4

Operating system and version : Ubuntu 14.04.5 LTS
Apache or nginx version : apache2 2.4.29-0.1+ubuntu14.04.1+deb.sury.org+2
PHP version : libapache2-mod-php7.0 : 7.0.26-2+ubuntu14.04.1+deb.sury.org+2
Is this the first time you’ve seen this error?: yes
database : postgresql-9.1 : 9.1.14-0ubuntu0.12.04

Can you reliably replicate it? (If so, please outline steps): Not applicable

The issue you are facing: very slow for my user. login and navigating between apps.

The output of your Nextcloud log in Admin > Logging:

Nothing relevant, even in debug mode.

The output of your config.php file in /path/to/nextcloud:

<?php
$CONFIG = array (
  'instanceid' => 'xxx',
  'passwordsalt' => 'xxx',
  'datadirectory' => '/path/data',
  'dbtype' => 'pgsql',
  'version' => '12.0.4.3',
  'dbname' => 'xxx',
  'dbhost' => 'xxx',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'xxx',
  'dbpassword' => 'xxx',
  'installed' => true,
  'maintenance' => false,
  'loglevel' => 0,
  'theme' => '',
  'trusted_domains' => 
  array (
    0 => 'my_domain',
  ),
  'mail_smtpmode' => 'php',
  'mail_smtpname' => 'xxx',
  'mail_smtppassword' => 'xxx',
  'secret' => 'xxx',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcached_servers' => 
  array (
    0 => 
    array (
      0 => 'localhost',
      1 => 11211,
    ),
  ),
  'redis' => 
  array (
    'host' => 'localhost',
    'port' => 6379,
  ),
  'appcodechecker' => true,
  'updatechecker' => true,
  'updater.server.url' => 'https://updates.nextcloud.com/updater_server/',
  'has_internet_connection' => true,
  'check_for_working_webdav' => true,
  'appstoreenabled' => true,
  'appstoreurl' => 'https://api.nextcloud.com/v1',
  'apps_paths' => 
  array (
    0 => 
    array (
      'path' => '/path/www/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 => 
    array (
      'path' => '/path/www/apps2',
      'url' => '/apps2',
      'writable' => true,
    ),
  ),
  'customclient_desktop' => 'https://nextcloud.com/install/#install-clients',
  'customclient_android' => 'https://play.google.com/store/apps/details?id=com.nextcloud.client',
  'customclient_ios' => 'https://itunes.apple.com/us/app/nextcloud/id1125420102?mt=8',
  'overwrite.cli.url' => 'https://my_domain',
);

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

Nothing relevant, even in debug mode.


Did you check the logfiles? I could imagine that there are some old shares or external storages which don’t exist anymore and Nextcloud is looking for. If you use a slow user, can you see a process consuming all resources?