Problem: During a start of an Exam ateacher gets 'Unable to load default file'

Problem:

During a start of an Exam ateacher gets ‘Unable to load default file’

An error occurred during the preparation of the exam. The following information will show more details about the exact error. Please retry to start the exam.
An unexpected error occurred.


The error in the logfile:
03.05.21 15:27:22.130  MODULE      ( ERROR   ) : _finished:814  Error in start_exam()->_thread(): Unable to load default file
  File "/usr/lib/python2.7/dist-packages/notifier/threads.py", line 80, in _run
    result = self._function()
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/schoolexam/__init__.py", line 805, in _thread
    Instance.set_nt_acls_on_exam_folders(my.project.getRecipients())
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/schoolexam/__init__.py", line 258, in set_nt_acls_on_exam_folders
    deny_owner_change_permissions(root)
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/schoolexam/__init__.py", line 120, in deny_owner_change_permissions
    lp.load_default()
RuntimeError: Unable to load default file

Investigation

There are workgroups defined, with consecutive whitespaces in the name. Therefore the share also has these whitespaces. As described in Bug 45338 the samba config parser reduces consecutive whitespaces to one.

Solution:

Remove the shares and workgroups with consecutive whitespaces in the name.
You can find them via
udm shares/share list |grep ^DN

1 Like
Mastodon