Bug 56766 - Traceback in master exam log
Summary: Traceback in master exam log
Status: CLOSED FIXED
Alias: None
Product: UCS@school
Classification: Unclassified
Component: UMC - Computer room
Version: UCS@school 5.0
Hardware: Other Linux
: P5 normal
Target Milestone: UCS@school 5.0 v6-errata
Assignee: Johannes Königer
QA Contact: Ole Schwiegert
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-24 09:25 CEST by Christina Scheinig
Modified: 2024-10-17 11:56 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2023031621000374, 2024053121000198
Bug group (optional):
Customer ID:
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christina Scheinig univentionstaff 2023-10-24 09:25:54 CEST
Masterexam.log

Interner Server-Fehler in "schoolexam-master/remove-users-from-non-primary-groups".
Request: schoolexam-master/remove-users-from-non-primary-groups


Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/univention/management/console/base.py", line 383, in __error_handling
    six.reraise(etype, exc, etraceback)
  File "/usr/lib/python3/dist-packages/six.py", line 693, in reraise
    raise value
  File "/usr/lib/python3/dist-packages/univention/management/console/base.py", line 281, in execute
    function.__func__(self, request, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/univention/management/console/modules/decorators.py", line 186, in _response
    return function(self, request)
  File "/usr/lib/python3/dist-packages/ucsschool/lib/school_umc_ldap_connection.py", line 156, in wrapper_func
    return func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/univention/management/console/modules/schoolexam-master/__init__.py", line 614, in remove_users_from_non_primary_groups
    user_name = user_ldap_obj["uid"][0].decode("UTF-8")
KeyError: 'uid'

09.10.23 09:33:19.794  MODULE      ( WARN    ) : error:79  Entfernen der Klassenarbeitskonten - Ein unerwarteter Fehler trat währende der Vorbereitung auf: 591 on ucs01.edukl.net (command/schoolexam-master/remove-users-from-non-primary-groups): {'status': 591, 'message': 'Interner Server-Fehler in "schoolexam-master/remove-users-from-non-primary-groups".', 'location': 'https://ucs01.edukl.net/univention/command/schoolexam-master'}

Interner Server-Fehler in "schoolexam-master/remove-users-from-non-primary-groups".
Request: schoolexam-master/remove-users-from-non-primary-groups

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/univention/management/console/base.py", line 383, in __error_handling
    six.reraise(etype, exc, etraceback)
  File "/usr/lib/python3/dist-packages/six.py", line 693, in reraise
    raise value
  File "/usr/lib/python3/dist-packages/univention/management/console/base.py", line 281, in execute
    function.__func__(self, request, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/univention/management/console/modules/decorators.py", line 186, in _response
    return function(self, request)
  File "/usr/lib/python3/dist-packages/ucsschool/lib/school_umc_ldap_connection.py", line 156, in wrapper_func
    return func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/univention/management/console/modules/schoolexam-master/__init__.py", line 614, in remove_users_from_non_primary_groups
    user_name = user_ldap_obj["uid"][0].decode("UTF-8")

KeyError: 'uid'

09.10.23 09:33:19.801  MODULE      ( PROCESS ) : Received request 'schoolexam/progress': ('sun.teacher', None, None, 'de_DE.UTF-8')
Comment 2 Ole Schwiegert univentionstaff 2024-10-15 11:28:02 CEST
Package: ucs-school-umc-exam
Version: 10.0.14
Branch: 5.0-0
Scope: ucs-school-5.0
Comment 3 Ole Schwiegert univentionstaff 2024-10-17 11:56:31 CEST
Errata updates for UCS@school 5.0 v6 have been released.

https://docs.software-univention.de/ucsschool-changelog/5.0v6/en/changelog.html
https://docs.software-univention.de/ucsschool-changelog/5.0v6/de/changelog.html

If this error occurs again, please clone this bug.