Hey ich bin grad hart am verzweifeln.
Ich habe versucht eine Nextcloud von einem CentOS7 auf ein Debian13 zu migrieren. Habe dafür folgende Sachen auf der neuen Maschine übernommen die Config.php, die Database und das AppData directory. Es hat soweit auch alles nach der Migration geklappt. Ldap hatte kurz nach der Migration auch noch funktioniert nur nach den Upgrades von NC 30 hoch bis zu 34 ist irgendwas kaputt gegangen. Wenn ich Test-Config mache bekomme ich die folgende Meldung:
Sachen wie LDAPsearch und OpenSSL s_client sind erfolgreich. Ich hab leider kein Plan was genau falsch ist, da auch dieselbe Config auf der alten ohne probleme funktioniert hatte.
Details zur Cloud:
- Server läuft Lokal als VM
- OS: Debian 13
- Nextcloud Version: 34.0.1
- PHP Version: 8.3.32
- DB: MariaDB
- Apache version: 2.4.67
Im Nextcloud Log steht diese Riesen Meldung:
{"reqId":"kumD1InXMFnKiM9vGrEf","level":3,"time":"July 15, 2026 13:40:02","remoteAddr":"","user":"--","app":"core","method":"","url":"--","scriptName":"/var/www/nextcloud/cron.php","message":"Error while running background job OCA\\TwoFactorBackupCodes\\BackgroundJob\\CheckBackupCodes (id: 106680819940118570, arguments: null)","userAgent":"--","version":"34.0.1.2","occ_command":\["/var/www/nextcloud/cron.php"\],"exception":{"Exception":"OC\\ServerNotAvailableException","Message":"Lost connection to LDAP server.","Code":0,"Trace":\[{"file":"/var/www/nextcloud/apps/user_ldap/lib/LDAP.php","line":424,"function":"processLDAPError","class":"OCA\\User_LDAP\\LDAP","type":"->"},{"file":"/var/www/nextcloud/apps/user_ldap/lib/LDAP.php","line":306,"function":"postFunctionCall","class":"OCA\\User_LDAP\\LDAP","type":"->"},{"file":"/var/www/nextcloud/apps/user_ldap/lib/LDAP.php","line":43,"function":"invokeLDAPMethod","class":"OCA\\User_LDAP\\LDAP","type":"->","args":\["\*\*\* sensitive parameters replaced ***"\]},{"file":"/var/www/nextcloud/apps/user_ldap/lib/Connection.php","line":738,"function":"bind","class":"OCA\\User_LDAP\\LDAP","type":"->","args":\["*** sensitive parameters replaced ***"\]},{"file":"/var/www/nextcloud/apps/user_ldap/lib/Connection.php","line":630,"function":"bind","class":"OCA\\User_LDAP\\Connection","type":"->","args":\["*** sensitive parameters replaced ***"\]},{"file":"/var/www/nextcloud/apps/user_ldap/lib/Connection.php","line":234,"function":"establishConnection","class":"OCA\\User_LDAP\\Connection","type":"->"},{"file":"/var/www/nextcloud/apps/user_ldap/lib/Connection.php","line":242,"function":"init","class":"OCA\\User_LDAP\\Connection","type":"->"},{"file":"/var/www/nextcloud/apps/user_ldap/lib/Access.php","line":1074,"function":"getConnectionResource","class":"OCA\\User_LDAP\\Connection","type":"->"},{"file":"/var/www/nextcloud/apps/user_ldap/lib/Access.php","line":245,"function":"invokeLDAPMethod","class":"OCA\\User_LDAP\\Access","type":"->","args":\["*** sensitive parameters replaced \*\*\*"\]},{"file":"/var/www/nextcloud/apps/user_ldap/lib/Access.php","line":196,"function":"executeRead","class":"OCA\\User_LDAP\\Access","type":"->"},{"file":"/var/www/nextcloud/apps/user_ldap/lib/User_LDAP.php","line":292,"function":"readAttribute","class":"OCA\\User_LDAP\\Access","type":"->"},{"function":"userExistsOnLDAP","class":"OCA\\User_LDAP\\User_LDAP","type":"->"},{"file":"/var/www/nextcloud/apps/user_ldap/lib/User_Proxy.php","line":106,"function":"call_user_func_array"},{"file":"/var/www/nextcloud/apps/user_ldap/lib/Proxy.php","line":150,"function":"callOnLastSeenOn","class":"OCA\\User_LDAP\\User_Proxy","type":"->"},{"file":"/var/www/nextcloud/apps/user_ldap/lib/User_Proxy.php","line":214,"function":"handleRequest","class":"OCA\\User_LDAP\\Proxy","type":"->"},{"file":"/var/www/nextcloud/apps/user_ldap/lib/User_Proxy.php","line":191,"function":"userExistsOnLDAP","class":"OCA\\User_LDAP\\User_Proxy","type":"->"},{"file":"/var/www/nextcloud/lib/private/User/Manager.php","line":851,"function":"userExists","class":"OCA\\User_LDAP\\User_Proxy","type":"->"},{"file":"/var/www/nextcloud/lib/private/User/Manager.php","line":635,"function":"getSeenUsers","class":"OC\\User\\Manager","type":"->"},{"file":"/var/www/nextcloud/apps/twofactor_backupcodes/lib/BackgroundJob/CheckBackupCodes.php","line":33,"function":"callForSeenUsers","class":"OC\\User\\Manager","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/Job.php","line":50,"function":"run","class":"OCA\\TwoFactorBackupCodes\\BackgroundJob\\CheckBackupCodes","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/QueuedJob.php","line":31,"function":"start","class":"OCP\\BackgroundJob\\Job","type":"->"},{"file":"/var/www/nextcloud/core/Service/CronService.php","line":204,"function":"start","class":"OCP\\BackgroundJob\\QueuedJob","type":"->"},{"file":"/var/www/nextcloud/core/Service/CronService.php","line":107,"function":"runCli","class":"OC\\Core\\Service\\CronService","type":"->"},{"file":"/var/www/nextcloud/cron.php","line":52,"function":"run","class":"OC\\Core\\Service\\CronService","type":"->"}\],"File":"/var/www/nextcloud/apps/user_ldap/lib/LDAP.php","Line":386,"message":"Error while running background job OCA\\TwoFactorBackupCodes\\BackgroundJob\\CheckBackupCodes (id: 106680819940118570, arguments: null)","exception":"{"class":"OC\\ServerNotAvailableException","message":"Lost connection to LDAP server.","code":0,"file":"/var/www/nextcloud/apps/user_ldap/lib/LDAP.php:386","trace":"#0 /var/www/nextcloud/apps/user_ldap/lib/LDAP.php(424): OCA\\User_LDAP\\LDAP->processLDAPError()\\n#1 /var/www/nextcloud/apps/user_ldap/lib/LDAP.php(306): OCA\\User_LDAP\\LDAP->postFunctionCall()\\n#2 /var/www/nextcloud/apps/user_ldap/lib/LDAP.php(43): OCA\\User_LDAP\\LDAP->invokeLDAPMethod()\\n#3 /var/www/nextcloud/apps/user_ldap/lib/Connection.php(738): OCA\\User_LDAP\\LDAP->bind()\\n#4 /var/www/nextcloud/apps/user_ldap/lib/Connection.php(630): OCA\\User_LDAP\\Connection->bind()\\n#5 /var/www/nextcloud/apps/user_ldap/lib/Connection.php(234): OCA\\User_LDAP\\Connection->establishConnection()\\n#6 /var/www/nextcloud/apps/user_ldap/lib/Connection.php(242): OCA\\User_LDAP\\Connection->init()\\n#7 /var/www/nextcloud/apps/user_ldap/lib/Access.php(1074): OCA\\User_LDAP\\Connection->getConnectionResource()\\n#8 /var/www/nextcloud/apps/user_ldap/lib/Access.php(245): OCA\\User_LDAP\\Access->invokeLDAPMethod()\\n#9 /var/www/nextcloud/apps/user_ldap/lib/Access.php(196): OCA\\User_LDAP\\Access->executeRead()\\n#10 /var/www/nextcloud/apps/user_ldap/lib/User_LDAP.php(292): OCA\\User_LDAP\\Access->readAttribute()\\n#11 \[internal function\]: OCA\\User_LDAP\\User_LDAP->userExistsOnLDAP()\\n#12 /var/www/nextcloud/apps/user_ldap/lib/User_Proxy.php(106): call_user_func_array()\\n#13 /var/www/nextcloud/apps/user_ldap/lib/Proxy.php(150): OCA\\User_LDAP\\User_Proxy->callOnLastSeenOn()\\n#14 /var/www/nextcloud/apps/user_ldap/lib/User_Proxy.php(214): OCA\\User_LDAP\\Proxy->handleRequest()\\n#15 /var/www/nextcloud/apps/user_ldap/lib/User_Proxy.php(191): OCA\\User_LDAP\\User_Proxy->userExistsOnLDAP()\\n#16 /var/www/nextcloud/lib/private/User/Manager.php(851): OCA\\User_LDAP\\User_Proxy->userExists()\\n#17 /var/www/nextcloud/lib/private/User/Manager.php(635): OC\\User\\Manager->getSeenUsers()\\n#18 /var/www/nextcloud/apps/twofactor_backupcodes/lib/BackgroundJob/CheckBackupCodes.php(33): OC\\User\\Manager->callForSeenUsers()\\n#19 /var/www/nextcloud/lib/public/BackgroundJob/Job.php(50): OCA\\TwoFactorBackupCodes\\BackgroundJob\\CheckBackupCodes->run()\\n#20 /var/www/nextcloud/lib/public/BackgroundJob/QueuedJob.php(31): OCP\\BackgroundJob\\Job->start()\\n#21 /var/www/nextcloud/core/Service/CronService.php(204): OCP\\BackgroundJob\\QueuedJob->start()\\n#22 /var/www/nextcloud/core/Service/CronService.php(107): OC\\Core\\Service\\CronService->runCli()\\n#23 /var/www/nextcloud/cron.php(52): OC\\Core\\Service\\CronService->run()\\n#24 {main}"}","CustomMessage":"Error while running background job OCA\\TwoFactorBackupCodes\\BackgroundJob\\CheckBackupCodes (id: 106680819940118570, arguments: null)"}}
