LDAP Users can't login randomly + Access to user files folder not possible

Nextcloud version 18.0.10:
Operating system and version 18.04.5 LTS:
Apache or nginx version 2.4.46:
PHP version 7.2.24:

The issue you are facing:
Users that are Synchronized via LDAP connection are facing the issue, that the files folder randomly dissapears in their home destination. After this occured, they can’t login until the files folder is created manually. But now the users can’t access their foldes. Permission is denied. On the server, permissions are the same for these users as for any other user.

Is this the first time you’ve seen this error? Y:

Steps to replicate it:

Not sure if someone is able to replicate it.
We’ve got around 20 users.
The problem now happened to around 5 users.
Nothing has changed in months config wise.

The output of your Nextcloud log in Admin > Logging:

{"reqId":"JWfULlLMAwimYe4syr5X9","level":3,"time":"2020-10-14T22:31:01+02:00","remoteAddr":"5.63.49.213","user":"group1.lastname.name","app":"index","method":"GET","url":"/apps/files/","message":{"Exception":"OCP\\Files\\NotFoundException","Message":"","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/files/lib/Controller/ViewController.php","line":139,"function":"getStorageInfo","class":"OC_Helper","type":"::","args":["/",false]},{"file":"/var/www/nextcloud/apps/files/lib/Controller/ViewController.php","line":187,"function":"getStorageInfo","class":"OCA\\Files\\Controller\\ViewController","type":"->","args":[]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":170,"function":"index","class":"OCA\\Files\\Controller\\ViewController","type":"->","args":["","",null,false]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":99,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Files\\Controller\\ViewController"},"index"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":125,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Files\\Controller\\ViewController"},"index"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Files\\Controller\\ViewController","index",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"files.view.index"}]},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->","args":[{"_route":"files.view.index"}]},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":299,"function":"call_user_func","args":[{"__class__":"OC\\AppFramework\\Routing\\RouteActionHandler"},{"_route":"files.view.index"}]},{"file":"/var/www/nextcloud/lib/base.php","line":1013,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/files/"]},{"file":"/var/www/nextcloud/index.php","line":38,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/nextcloud/lib/private/legacy/helper.php","Line":490,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Linux; Android 10; SM-G965F Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/86.0.4240.75 Mobile Safari/537.36","version":"18.0.8.2"}

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

<?php
$CONFIG = array (
  'passwordsalt' => '**************',
  'secret' => '********************',
  'trusted_domains' => 
  array (
    0 => 'localhost',
    1 => '*******',
    2 => 'nextcloud',
    3 => '*******.de',
    4 => '********.de',
  ),
  'datadirectory' => '/mnt/ncdata',
  'dbtype' => 'pgsql',
  'version' => '18.0.8.2',
  'overwrite.cli.url' => '***********',
  'dbname' => '***********',
  'dbhost' => '********',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => '***********************',
  'dbpassword' => '***********************',
  'installed' => true,
  'instanceid' => 'oc5a107a3xcz',
  'log_type' => 'file',
  'logfile' => '/var/log/nextcloud/nextcloud.log',
  'loglevel' => '3',
  'mail_smtpmode' => 'smtp',
  'remember_login_cookie_lifetime' => '300',
  'log_rotate_size' => 100 * 100 * 1024,
  'trashbin_retention_obligation' => 'auto, 180',
  'versions_retention_obligation' => 'auto, 365',
  'simpleSignUpLink.shown' => 'false',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'filelocking.enabled' => true,
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => '/var/run/redis/redis-server.sock',
    'port' => 0,
    'timeout' => 0.5,
    'dbindex' => 0,
    'password' => '*************************',
  ),
  'logtimezone' => 'Europe/Berlin',
  'htaccess.RewriteBase' => '/',
  'ldapIgnoreNamingRules' => false,
  'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
  'skeletondirectory' => '',
  'session_lifetime' => '300',
  'session_keepalive' => false,
  'maintenance' => false,
  'app_install_overwrite' => 
  array (
    0 => 'orcid',
  ),
  'theme' => '',
  'updater.release.channel' => 'stable',
  'enable_previews' => false,
  'auth.bruteforce.protection.enabled' => true,
);