Bug 38634 - LDAP_ConnectionError in UVMM
LDAP_ConnectionError in UVMM
Product: UCS
Classification: Unclassified
Component: UMC - Virtual machines (UVMM)
UCS 4.0
Other Linux
: P5 normal (vote)
: UCS 4.2
Assigned To: Florian Best
Philipp Hahn
: interim-2
: 34679 (view as bug list)
Depends on:
  Show dependency treegraph
Reported: 2015-06-01 16:33 CEST by Florian Best
Modified: 2017-10-23 16:44 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 3: Will affect average number of installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.103
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2016102421000724, 2017101821000163
Bug group (optional): Error handling, External feedback
Max CVSS v3 score:
best: Patch_Available+

patch (6.79 KB, patch)
2015-11-18 00:42 CET, Florian Best
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2015-06-01 16:33:57 CEST
We received the following traceback, 4.0-2 errata194 (Walle).

If the LDAP-Server is down UVMM shows the traceback.

Dieser Fehler tritt unter anderem auf, seitdem OX App Suite deinstalliert wurde.

Weitere Fehler nach der Deinstallation von OX App Suite:
Mail heißt immer noch OX Mail, Resourcen heißt immer noch OX Resources, slapd lässt sich nicht mehr starten, uvmm lässt sich nicht mehr starten, dhcp lässt sich nicht mehr starten

Traceback (3995ffb4080fcbcc810f81fef38dac47):
Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/protocol/modserver.py", line 266, in handle
  File "%PY2.7%/univention/management/console/modules/uvmm/__init__.py", line 65, in init
  File "%PY2.7%/univention/management/console/modules/uvmm/udm.py", line 79, in wrapper_func
    raise LDAP_ConnectionError('Opening LDAP connection failed: %s' % (ex,))
LDAP_ConnectionError: Opening LDAP connection failed: {'desc': "Can't contact LDAP server"}

Maybe we can merge the new error handling from UDM to UVMM. Some errors are also better handled by the UMC-Server directly since errata199.
Comment 1 Florian Best univentionstaff 2015-11-18 00:31:50 CET
*** Bug 34679 has been marked as a duplicate of this bug. ***
Comment 2 Florian Best univentionstaff 2015-11-18 00:42:55 CET
Created attachment 7312 [details]

Reported again, 4.0-4 errata363 (Walle)

Patch which replaces the LDAP_Connection class (which is only used once) by the UMC ldap decorators and replaces therefore the error handling by the one by UMC which will show a friendly error message that the LDAP server is currently not running.
Comment 3 Florian Best univentionstaff 2016-04-08 11:53:37 CEST
Reported again, 4.1-1 errata136 (Vahr)

Remark: erneutes installieren von tine2.0
Comment 4 Florian Best univentionstaff 2016-05-26 11:13:36 CEST
Reported again, 4.1-2 errata183 (Vahr)
Comment 5 Florian Best univentionstaff 2016-06-13 07:51:35 CEST
Reported again, 4.0-2 errata216 (Walle)
Comment 6 Florian Best univentionstaff 2016-09-13 11:41:53 CEST
Reported again, 4.1-3 errata262 (Vahr)

Remark: Wir können auch nicht mehr auf das LDAP zugreifen! Der Fehler trat nach einer Paketaktualisierung auf.
Comment 7 Florian Best univentionstaff 2016-09-29 17:57:43 CEST
Patch applied.
Error contacting the LDAP Server now show the generic message from the UMC-Server.
Every other error passes also the error-handling function of the UMC-Server.
Errors in thread-callbacks doesn't cause the whole process to crash but will respond with the traceback.

r72908 | Changelog Bug #38634

univention-virtual-machine-manager-daemon (6.0.0-4):
r72907 | Bug #38634: use generic error handling from UMC
Comment 8 Florian Best univentionstaff 2016-10-25 15:55:48 CEST
Reported again, 4.1-3 errata313 (Vahr)
Comment 9 Philipp Hahn univentionstaff 2017-02-06 13:37:56 CET
OK: r72908 r72907
OK: umc-command uvmm/profile/query -U Administrator -P univention
 1. login to UMC
 2. stop slapd
 3. open UVMM UMC module
   old: said traceback
>Internal server error: The service is temporarily not available.
>Server error message:
>Konnte nicht zum LDAP-Dienst verbinden.
>Die folgenden Schritte können helfen, das Problem zu beheben:
>* Überprüfen Sie, ob auf diesem Server genügend Festplattenspeicher und Arbeitsspeicher (RAM) verfügbar sind
>* Starten Sie den LDAP-Dienst entweder über "service slapd restart" per Kommandozeile oder mit dem UMC Modul "Systemdienste" auf dem Domänencontroller Master neu
>* Installieren Sie alle Softwareaktualisierungen

TODO: Cannot do a complete QA, as UMC-UVMM is currently very broken for me - probably caused by dgrid (Bug #32027 et al.)
Comment 10 Stefan Gohmann univentionstaff 2017-04-04 18:30:08 CEST
UCS 4.2 has been released:

If this error occurs again, please use "Clone This Bug".
Comment 11 Florian Best univentionstaff 2017-10-23 16:44:01 CEST
Reported again, 4.1-4 errata478 (Vahr)