Lost connection to LDAP server - NextcloudPi

Support intro

Nextcloud version : Nextcloudpi v1.38.5
Operating system and version : Linux nextcloud 5.10.17-v8+ #1421 SMP PREEMPT Thu May 27 14:01:37 BST 2021 aarch64 GNU/Linux
Apache or nginx version (eg, Apache 2.4.25): ???
PHP version (eg, 7.4): ???

Hi All !
Since a few days, i cannot access netcloud from my clients. The LDAP Connection worked since initial install. DNS works, both LDAP (AD) Servers are up and running.

The error in the subject is the output of “ncp-scan”.
[OC\ServerNotAvailableException] “Lost connection to LDAP server.”

Any Idea how to fix/troubleshoot this ?

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

Steps to replicate it:

  1. Try to login
  2. “Internal Server error”

The output of your Nextcloud log in Admin > Logging:

Where do i find this ? - cannot login ?

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

$CONFIG = array (
  'passwordsalt' => 'oldpw',
  'secret' => 'somesecret',
  'trusted_domains' =>
  array (
    0 => 'localhost',
    5 => 'nextcloudpi.local',
    7 => 'nextcloudpi',
  ),
  'datadirectory' => '/var/www/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '21.0.3.1',
  'overwrite.cli.url' => 'https://mydomain.nn/',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'ncadmin',
  'dbpassword' => 'someDBPW',
  'installed' => true,
  'instanceid' => 'ocwn0g3teaag',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => '/var/run/redis/redis.sock',
    'port' => 0,
    'timeout' => 0.0,
    'password' => 'somePW',
  ),
  'tempdirectory' => '/var/www/nextcloud/data/tmp',
  'mail_smtpmode' => 'smtp',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_from_address' => 'nextcloud',
  'mail_domain' => 'mydomain.net',
  'preview_max_x' => '2048',
  'preview_max_y' => '2048',
  'jpeg_quality' => '60',
  'overwriteprotocol' => 'https',
  'loglevel' => '2',
  'log_type' => 'file',
  'ldapIgnoreNamingRules' => false,
  'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
  'maintenance' => false,
  'logfile' => '/var/www/nextcloud/data/nextcloud.log',
  'mail_sendmailmode' => 'smtp',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'SomeSrv',
  'mail_smtpport' => '587',
  'mail_smtpsecure' => 'tls',
  'mail_smtpname' => 'nextcloud@somedomain.net',
  'mail_smtppassword' => 'SomePW',
  'theme' => '',
);