Error while running background job - Lost connection to LDAP server

hi,

in my log I see regulary the error entry below. I can’t figure out what causes it. All my LDAP Users can login and also all LDAP groups und group memberships are shown. So nobody has a problem, just this annoying message. I found it just after uprgading to V12, but i was there before the upgade. I just never look at the look due to no problems. The error messages comes round about once per hour, sometime more often.

All test as admin in the section “LDAP/AD Integrations” works without errors. The ldap used ist an openldap. The base system is a debian jessie with apache webserver.

Some an idea what could cause this error message?

Error while running background job (OC\ServerNotAvailableException): Lost connection to LDAP server.

OCA\User_LDAP\Jobs\CleanUp ):

/var/www/nextcloud/nextcloud-12.0.0/apps/user_ldap/lib/LDAP.php - line 368: OCA\User_LDAP\LDAP->processLDAPError(Resource id #514)
/var/www/nextcloud/nextcloud-12.0.0/apps/user_ldap/lib/LDAP.php - line 295: OCA\User_LDAP\LDAP->postFunctionCall()
/var/www/nextcloud/nextcloud-12.0.0/apps/user_ldap/lib/LDAP.php - line 181: OCA\User_LDAP\LDAP->invokeLDAPMethod('read', Resource id #514, 'uid=myuser,ou=u...', '(&(objectclass=...', Array)
/var/www/nextcloud/nextcloud-12.0.0/apps/user_ldap/lib/Access.php - line 247: OCA\User_LDAP\LDAP->read(Resource id #514, 'uid=myuser,ou=u...', '(&(objectclass=...', Array)
/var/www/nextcloud/nextcloud-12.0.0/apps/user_ldap/lib/Access.php - line 193: OCA\User_LDAP\Access->executeRead(Resource id #514, 'uid=myuser,ou=u...', '', '(&(objectclass=...', 500)
/var/www/nextcloud/nextcloud-12.0.0/apps/user_ldap/lib/User_LDAP.php - line 280: OCA\User_LDAP\Access->readAttribute('uid=myuser,ou=u...', '', '(&(objectclass=...')
[internal function] OCA\User_LDAP\User_LDAP->userExistsOnLDAP('myuser')
/var/www/nextcloud/nextcloud-12.0.0/apps/user_ldap/lib/User_Proxy.php - line 98: call_user_func_array(Array, Array)
/var/www/nextcloud/nextcloud-12.0.0/apps/user_ldap/lib/Proxy.php - line 148: OCA\User_LDAP\User_Proxy->callOnLastSeenOn('myuser', 'userExistsOnLDA...', Array, false)
/var/www/nextcloud/nextcloud-12.0.0/apps/user_ldap/lib/User_Proxy.php - line 174: OCA\User_LDAP\Proxy->handleRequest('myuser', 'userExistsOnLDA...', Array)
/var/www/nextcloud/nextcloud-12.0.0/apps/user_ldap/lib/Jobs/CleanUp.php - line 199: OCA\User_LDAP\User_Proxy->userExistsOnLDAP('myuser')
/var/www/nextcloud/nextcloud-12.0.0/apps/user_ldap/lib/Jobs/CleanUp.php - line 190: OCA\User_LDAP\Jobs\CleanUp->checkUser(Array)
/var/www/nextcloud/nextcloud-12.0.0/apps/user_ldap/lib/Jobs/CleanUp.php - line 144: OCA\User_LDAP\Jobs\CleanUp->checkUsers(Array)
/var/www/nextcloud/nextcloud-12.0.0/lib/private/BackgroundJob/Job.php - line 59: OCA\User_LDAP\Jobs\CleanUp->run(NULL)
/var/www/nextcloud/nextcloud-12.0.0/lib/private/BackgroundJob/TimedJob.php - line 54: OC\BackgroundJob\Job->execute(Object(OC\BackgroundJob\JobList), Object(OC\Log))
/var/www/nextcloud/nextcloud-12.0.0/cron.php - line 124: OC\BackgroundJob\TimedJob->execute(Object(OC\BackgroundJob\JobList), Object(OC\Log))
{main}

Greetings Carsten

Likely https://github.com/nextcloud/server/issues/4831, you could try out the fix at https://github.com/nextcloud/server/pull/5104

thx, i used the Access.php from the pull. Since yesterday evening no more error message and no complaints for Login problerms.