LDAP getting slower with bigger disk usage?

Nextcloud version: 18.0.0.10
Operating system and version: Ubuntu 18.04
Apache or nginx version: Apache/2.4.29
PHP version: PHP7.3

The issue you are facing:
I don’t know how to describe my problem but I will try too…

At my company that I work for do we use Nextcloud as a Fileserver. This server was created 3 years ago and have been updated and maintained. We login in to the WebGUI with LDAP from our AD server. Lately have we noticed that it takes ages for us to login to the server. Before you are saying it’s something with the AD server. Continue reading. :slight_smile:

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

Steps to replicate it:

  1. Super slow live nextcloud, installing another.

  2. Install Apache, PHP and MariaDB on a Ubuntu 18.04

  3. Configure LDAP to the AD

  4. Instant login… Continuing with troubleshooting…

  5. Clone our old Nextcloud (VM)… Check if it’s still slow (Yes it it)

  6. SCP /data from old Nextcloud to the new installed one. (LDAP getting REALLY slow on this one aswell (8 min and 45 sec to login and 16 min to logout))

  7. Deleting /data on the cloned server… LDAP is instant again. (Conclusion: Something in /data is making the nextcloud slow (Nope))

  8. Generete big files (Made a file that were 184GB (Old /data is only on 94GB)

  9. Still instant login

  10. Copying the big file so it’s now at 368GB… Super slow again.

NOTE:
The file just need to be ON the server and not in /data for LDAP to get slow again… When I did copy /data and the new file, I did everything on my servers home directory and not in nextcloud/data.

The output of your Nextcloud log in Admin > Logging:
This is the only thing that I can see in the log for nextcloud

{"reqId":"2oVwSxuUjW7CI7uqplOq","level":3,"time":"2020-02-11T14:44:58+00:00","remoteAddr":"","user":"--","app":"user_ldap","method":"","url":"--","message":"Could not autodetect the UUID attribute","userAgent":"--","version":"18.0.0.10"}
{"reqId":"2oVwSxuUjW7CI7uqplOq","level":3,"time":"2020-02-11T14:44:58+00:00","remoteAddr":"","user":"--","app":"user_ldap","method":"","url":"--","message":"Could not autodetect the UUID attribute","userAgent":"--","version":"18.0.0.10"}
{"reqId":"2oVwSxuUjW7CI7uqplOq","level":3,"time":"2020-02-11T14:44:58+00:00","remoteAddr":"","user":"--","app":"user_ldap","method":"","url":"--","message":"Could not autodetect the UUID attribute","userAgent":"--","version":"18.0.0.10"}
{"reqId":"2oVwSxuUjW7CI7uqplOq","level":3,"time":"2020-02-11T14:44:58+00:00","remoteAddr":"","user":"--","app":"user_ldap","method":"","url":"--","message":"Could not autodetect the UUID attribute","userAgent":"--","version":"18.0.0.10"}

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

<?php
$CONFIG = array (
  'instanceid' => '***instance_id***',
  'passwordsalt' => '***salt***',
  'secret' => '***secret***',
  'maintenance' => false,
  'trusted_domains' =>
  array (
    0 => '***ip***',
  ),
  'datadirectory' => '/var/www/html/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '18.0.0.10',
  'overwrite.cli.url' => '***url***',
  'dbname' => 'nxtc_db',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'nxtc',
  'dbpassword' => '***pw***',
  'installed' => true,
  'ldapIgnoreNamingRules' => false,
  'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'remember_login_cookie_lifetime' => 1296000,
  'session_lifetime' => 600,
  'session_keepalive' => true,
  'mysql.utf8mb4' => true,
  'twofactor_enforced' => 'true',
  'twofactor_enforced_groups' =>
  array (
  ),
  'twofactor_enforced_excluded_groups' =>
  array (
    0 => 'admin',
  ),
);

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

***ip*** - - [11/Feb/2020:15:02:41 +0000] "GET /nextcloud/index.php/apps/logreader/poll?lastReqId=sEKWrHqoO4GmdLngpFHU HTTP/1.1" 200 806 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36"
***ip*** - - [11/Feb/2020:15:03:01 +0000] "GET /nextcloud/index.php/apps/logreader/poll?lastReqId=sEKWrHqoO4GmdLngpFHU HTTP/1.1" 200 806 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36"
***ip*** - - [11/Feb/2020:15:03:28 +0000] "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 4344 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36"
***ip*** - - [11/Feb/2020:15:03:21 +0000] "GET /nextcloud/index.php/apps/logreader/poll?lastReqId=sEKWrHqoO4GmdLngpFHU HTTP/1.1" 200 806 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36"
***ip*** - - [11/Feb/2020:15:03:58 +0000] "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 4344 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36"

Thanks in advance!

Anyone that have any idea’s what I can continue to troubleshoot or know what could be wrong?