Univention Bugzilla – Bug 35348
noObject: UDM init fails when cn=default containers is missing
Last modified: 2015-01-13 11:29:57 CET
We received the following Traceback: The init function of the module has failed: noObject: No such object Traceback (most recent call last): File "/usr/lib/pymodules/python2.6/univention/management/console/protocol/modserver.py", line 228, in handle self.__handler.init() File "/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/__init__.py", line 85, in init self.settings = UDM_Settings() File "/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/udm_ldap.py", line 842, in __init__ self.read() File "/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/udm_ldap.py", line 845, in read self._read_directories() File "/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/udm_ldap.py", line 148, in wrapper_func raise e noObject: No such object The traceback occurs due to some missing container/object (probably cn=default containers,$ldap_base) 888 » @LDAP_Connection 889 » def _read_directories( self, ldap_connection = None, ldap_position = None ): 890 » » try: 891 » » » directories = udm_modules.lookup( 'settings/directory', None, ldap_connection, scope = 'sub' ) 892 » » except ( LDAPError, udm_errors.ldapError ), e: 893 » » » raise e 894 » » except udm_errors.noObject: 895 » » » directories = None Somehow the exception is not caught there / The LDAP_Connection decorator handles the exception. Traceback again masked (Bug #32979).
A very similar problem exists in UVMM (Bug #34542), too.
Probably also because of missing execution of join scripts? Or objects were removed by hand?
(In reply to Florian Best from comment #2) > Probably also because of missing execution of join scripts? Or objects were > removed by hand? Hmm, I guess that is not the reason (or not always). Often a noObject traceback is also raised when the user don't have enough permission.
Reproducible in 3.2-4: create user without posix option, give him udm/self, login into UMC → traceback directly pops up.
*** This bug has been marked as a duplicate of bug 37178 ***
attachment 6513 [details]
Reported again, 4.0-0 errata10 (Walle)
Reported again, 4.0-0 errata16 (Walle)
Reported again, 4.0-0 errata17 (Walle)
OK, works now.
http://errata.univention.de/ucs/4.0/18.html