Univention Bugzilla – Bug 41229
schoolwizards: noObject tracebacks
Last modified: 2020-08-24 10:58:31 CEST
Version: 4.1-1 errata174 (Vahr) Die Ausführung des Kommandos schoolwizards/classes schoolwizards/users ist fehlgeschlagen: Traceback (most recent call last): File "%PY2.7%/univention/management/console/base.py", line 283, in execute function(self, request) File "%PY2.7%/ucsschool/lib/schoolldap.py", line 140, in wrapper_func return func(*args, **kwargs) File "%PY2.7%/ucsschool/lib/schoolldap.py", line 446, in classes self.finished( request.id, self._groups( ldap_user_read, search_base.school, search_base.classes, request.options.get('pattern') ) ) File "%PY2.7%/ucsschool/lib/schoolldap.py", line 438, in _groups groupresult = udm_modules.lookup('groups/group', None, ldap_connection, scope = scope, base = ldap_base, filter = ldapFilter) File "%PY2.7%/univention/admin/modules.py", line 803, in lookup tmpres=module.lookup(co, lo, filter, base=base, superordinate=superordinate, scope=scope, unique=unique, required=required, timeout=timeout, sizelimit=sizelimit) File "%PY2.7%/univention/admin/handlers/groups/group.py", line 1098, in lookup for dn, attrs in lo.search(unicode(filter), base, scope, [], unique, required, timeout, sizelimit): File "%PY2.7%/univention/admin/uldap.py", line 351, in search raise univention.admin.uexceptions.noObject(_err2str(msg)) noObject: No such object I think cn=classes does not exists in that OU.
Similar traceback has been reported: Version: 4.1-2 errata220 (Vahr) Traceback(2b52a6b1951176ee9de54d8f22a76822): Die Ausführung des Kommandos schoolwizards/users/get schoolwizards/users ist fehlgeschlagen: Traceback (most recent call last): File "%PY2.7%/univention/management/console/base.py", line 283, in execute function(self, request) File "%PY2.7%/ucsschool/lib/schoolldap.py", line 140, in wrapper_func return func(*args, **kwargs) File "%PY2.7%/univention/management/console/modules/schoolwizards/__init__.py", line 121, in _decorated ret = func(self, request, *a, **kw) File "%PY2.7%/univention/management/console/modules/schoolwizards/__init__.py", line 180, in _get_obj obj = obj.from_dn(obj.old_dn, obj.school, ldap_user_read) File "%PY2.7%/ucsschool/lib/models/base.py", line 748, in from_dn udm_obj = udm_modules.lookup(cls._meta.udm_module, None, lo, filter=cls._meta.udm_filter, base=dn, scope='base', superordinate=superordinate)[0] File "%PY2.7%/univention/admin/modules.py", line 710, in lookup tmpres=module.lookup(co, lo, filter, base=base, superordinate=superordinate, scope=scope, unique=unique, required=required, timeout=timeout, sizelimit=sizelimit) File "%PY2.7%/univention/admin/handlers/users/user.py", line 2672, in lookup for dn, attrs in lo.search(unicode(filter), base, scope, [], unique, required, timeout, sizelimit): File "%PY2.7%/univention/admin/uldap.py", line 327, in search raise univention.admin.uexceptions.noObject(_err2str(msg)) noObject: No such object
Reported again, 4.1-3 errata278 (Vahr) Remark: Schule wurde angelegt, aber man kann nicht die erste Klasse oder einen ersten Schüler oder Lehrer erstellen. Keine virtuelle Maschine, sondern physischer Rechner
Reported again, 4.1-3 errata278 (Vahr), different UUID than yesterday
Are we able to reproduce this issue?
(In reply to Sönke Schwardt-Krummrich from comment #4) > Are we able to reproduce this issue? We cannot reproduce the problem but we can trigger the issue/traceback. If you want I can dig into how to trigger this. It happened once to me when I executed "create_ou" and immediately quit the script ^C which will cause many of those similar tracebacks. Maybe there is something hidden going on in some special situations?
*** Bug 35277 has been marked as a duplicate of this bug. ***
*** Bug 36921 has been marked as a duplicate of this bug. ***
*** Bug 42367 has been marked as a duplicate of this bug. ***
There were 3 different cases: * Removing a user object which does not exists * Modifying/Removing/Receiving a object which does not exists * Some base container does not exists (e.g. because the school was removed but the cache contains still the old one). When removing a school the frontend already shows a message that one should relogin into UMC. ucs-school-umc-wizards (8.0.0-13): r74418 | Bug #41229: add error handling for noObject exceptions ucs-school-umc-wizards.yaml: r74419 | YAML Bug #41229
OK: code change OK: manual tests OK: automated test 90_ucsschool/70_users_module OK: advisory
UCS@school 4.1 R2 v9 has been released. http://docs.software-univention.de/changelog-ucsschool-4.1R2v9-de.html
Reported again, 3.3-1 errata44 (Osterholz) Remark: Aufruf des Benutzers "netzwerkberater" ...
Reported again: Version: 3.3-1 errata44 (Osterholz)
Reported again: Version: 3.3-1 errata44 (Osterholz) Remark: Liste der Benutzer --> Netzwerkberater bearbeiten (z.B. um ihm die Rechte an den Tauschordnern diverser Klassen zuzuordnen --> funktioniert nicht, Absturz bereits beim Klick auf Bearbeiten)
Reported again: Version: 3.3-1 errata44 (Osterholz) Die Ausführung des Kommandos schoolwizards/users/get ist fehlgeschlagen: Traceback (most recent call last): File "%PY2.6%/univention/management/console/modules/__init__.py", line 218, in execute func( request ) File "%PY2.6%/ucsschool/lib/schoolldap.py", line 205, in wrapper_func return func( *args, **kwargs ) File "%PY2.6%/univention/management/console/modules/schoolwizards/__init__.py", line 118, in _decorated ret = func(self, request, *a, **kw) File "%PY2.6%/univention/management/console/modules/schoolwizards/__init__.py", line 177, in _get_obj obj = obj.from_dn(obj.old_dn, obj.school, ldap_user_read) File "%PY2.6%/ucsschool/lib/models/base.py", line 748, in from_dn udm_obj = udm_modules.lookup(cls._meta.udm_module, None, lo, filter=cls._meta.udm_filter, base=dn, scope='base', superordinate=superordinate)[0] File "%PY2.6%/univention/admin/modules.py", line 801, in lookup tmpres=module.lookup(co, lo, filter, base=base, superordinate=superordinate, scope=scope, unique=unique, required=required, timeout=timeout, sizelimit=sizelimit) File "%PY2.6%/univention/admin/handlers/users/user.py", line 2722, in lookup for dn, attrs in lo.search(unicode(filter), base, scope, [], unique, required, timeout, sizelimit): File "%PY2.6%/univention/admin/uldap.py", line 347, in search raise univention.admin.uexceptions.noObject, _err2str(msg) noObject: No such object