Univention Bugzilla – Bug 44670
UDM module initialization: SERVER_DOWN: {'desc': "Can't contact LDAP server"}
Last modified: 2017-07-17 13:20:46 CEST
Version: 4.1-4 errata0 (Lesum) The initialization of the module failed: Traceback (most recent call last): File "%PY2.7%/univention/management/console/protocol/modserver.py", line 178, in _recv self.handle(msg) File "%PY2.7%/univention/management/console/protocol/modserver.py", line 290, in handle self.__handler.init() File "%PY2.7%/univention/management/console/modules/udm/__init__.py", line 157, in init self.settings = UDM_Settings() File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 886, in __init__ self.read() File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 889, in read self._read_directories() File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 88, in _decorated return method(*args, **kwargs) File "%PY2.7%/univention/management/console/ldap.py", line 140, in _decorated kwargs[loarg], kwargs[poarg] = lo, po = getter() File "%PY2.7%/univention/management/console/ldap.py", line 130, in getter conn = connection() File "%PY2.7%/univention/management/console/ldap.py", line 51, in connection lo = _access(host=host, port=port, base=base, **kwargs) File "%PY2.7%/univention/admin/uldap.py", line 330, in __init__ self.lo = univention.uldap.access(host, port, base, binddn, bindpw, start_tls, follow_referral=follow_referral) File "%PY2.7%/univention/uldap.py", line 152, in __init__ self.__open(ca_certfile) File "%PY2.7%/univention/uldap.py", line 202, in __open self.lo.start_tls_s() File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 884, in start_tls_s res = self._apply_method_s(SimpleLDAPObject.start_tls_s,*args,**kwargs) File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 865, in _apply_method_s self.reconnect(self._uri,retry_max=self._retry_max,retry_delay=self._retry_delay) File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 839, in reconnect raise e SERVER_DOWN: {'desc': "Can't contact LDAP server"}
I guess I fixed this in UCS 4.2, not sure though.
Version: 4.1-4 errata0 Errata 0 seems unlikely with UCS 4.1-4
Reported again, 4.2-0 errata45 (Lesum)
Created attachment 8937 [details] patch
Created attachment 8940 [details] patch
The patch has been applied. univention-management-console.yaml: r80366 | YAML Bug #39963, Bug #44670, Bug #40998 univention-management-console (9.0.80-47): r80359 | Bug #44670: fix error handling during module initialization
Tested with: Login to UMC # pkill -f console-module # service slapd stop Open a UDM module ---- Before patch: shows traceback After patch: shows human readable error message YAML: OK -> Verified
Reported again, 4.2-1 errata52 (Lesum)
<http://errata.software-univention.de/ucs/4.2/64.html>