Univention Bugzilla – Bug 20604
univention-shares sollte zunächst prüfen, ob der LDAP-Server erreichbar ist
Last modified: 2012-07-20 15:25:08 CEST
Der durch univention-shares angelegte cron-job /etc/univention/templates/files/etc/cron.d/univention-shares führt keine Prüfung aus, ob der LDAP-Server erreichbar ist. Somit wird jedesmal eine Mail verschickt, die wie folgt aussieht Traceback (most recent call last): File "/usr/sbin/univention-share-replication", line 50, in ? lo = univention.uldap.getMachineConnection() File "/usr/lib/python2.4/site-packages/univention/uldap.py", line 91, in getMachineConnection lo=access(host=baseConfig['ldap/master'], base=baseConfig['ldap/base'], binddn=baseConfig['ldap/hostdn'], bindpw=bindpw, start_tls=start_tls, decode_ignorelist=decode_ignorelist) File "/usr/lib/python2.4/site-packages/univention/uldap.py", line 113, in __init__ self.__open() File "/usr/lib/python2.4/site-packages/univention/uldap.py", line 152, in __open self.lo.start_tls_s() File "/usr/lib/python2.4/site-packages/ldap/ldapobject.py", line 532, in start_tls_s return self._ldap_call(self._l.start_tls_s) File "/usr/lib/python2.4/site-packages/ldap/ldapobject.py", line 96, in _ldap_call result = func(*args,**kwargs) ldap.SERVER_DOWN: {'desc': "Can't contact LDAP server"} Besonders im Schulumfeld, wo einige Schulen länger nicht erreichbar sind, häuft sich der Mail-Verkehr leider erheblich.
Created attachment 2803 [details] Patch zur vorherigen Überprüfung, ob LDAP-Server erreichbar ist
Im Produkt sollte das direkt auf Python Ebene per try / except abgefangen werden.
Created attachment 3643 [details] Patch zum Abfangen der Exception auf Python Ebene Der folgende Patch löst das Problem direkt auf Python Ebene indem er das script abbricht wenn eine 'ldap.SERVER_DOWN' exception auftritt.
*** Bug 19500 has been marked as a duplicate of this bug. ***
Der Patch ist OK, vielleicht die Meldung noch in "Can't contact LDAP server" ändern, das ist geläufiger.
Paket ist in UCS 3.0 nicht mehr vorhanden. WONTFIX
(In reply to comment #6) > Paket ist in UCS 3.0 nicht mehr vorhanden. > > WONTFIX Paket "univention-shares" ist in UCS3 nicht mehr vorhanden. # apt-cache policy univention-shares N: Unable to locate package univention-shares
UCS 3.0-2 has been released: http://forum.univention.de/viewtopic.php?f=54&t=1905 If this error occurs again, please use "Clone This Bug".