Bug 44087 - ucs-school-exam-cleanup fails if there hasn't been an exam yet
ucs-school-exam-cleanup fails if there hasn't been an exam yet
Status: CLOSED WONTFIX
Product: UCS@school
Classification: Unclassified
Component: UMC - Exam mode
UCS@school 4.1 R2
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS@school maintainers
: interim-2
Depends on: 40213
Blocks: 42581 44157
  Show dependency treegraph
 
Reported: 2017-03-27 16:07 CEST by Michael Grandjean
Modified: 2023-06-12 15:39 CEST (History)
4 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 1: Cosmetic issue or missing function but workaround exists
Who will be affected by this bug?: 3: Will affect average number of installed domains
How will those affected feel about the bug?: 1: Nuisance – not a big deal but noticeable
User Pain: 0.017
Enterprise Customer affected?:
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Grandjean univentionstaff 2017-03-27 16:07:34 CEST
> 27.03.17 16:01:02.397  DEBUG_INIT
> 27.03.17 16:01:02.402  MAIN        ( INFO    ) : Opening UMCP connection to sedu011-01 with machine account
> 27.03.17 16:01:02.610  MAIN        ( INFO    ) : Opening LDAP connection
> 27.03.17 16:01:03.857  MAIN        ( INFO    ) : Skipping remove_exam_user: system/role does not match
> Traceback (most recent call last):
>   File "/usr/share/ucs-school-exam/exam-and-room-cleanup", line 279, in <module>
>     main()
>   File "/usr/share/ucs-school-exam/exam-and-room-cleanup", line 275, in main
>     helper.cleanup()
>   File "/usr/share/ucs-school-exam/exam-and-room-cleanup", line 234, in cleanup
>     self.remove_exam_file_debris()
>   File "/usr/share/ucs-school-exam/exam-and-room-cleanup", line 200, in remove_exam_file_debris
>     for entry in os.listdir(self.DIR_EXAMS):
> OSError: [Errno 2] No such file or directory: '/var/lib/ucs-school-umc-schoolexam'

Happens only until the first exam is acutally started ('/var/lib/ucs-school-umc-schoolexam' is created then).


+++ This bug was initially created as a clone of Bug #40213 +++

A customer suggested that it would be great if the exam mode is automatically stopped during the night hours (similar to computer room settings which are also reset during the night).
Comment 1 Sönke Schwardt-Krummrich univentionstaff 2019-02-05 21:43:06 CET
This issue has been filled against UCS@school 4.1 (R2). The maintenance with
bug and security fixes for UCS@school 4.1 (R2) has ended on 5th of April 2018.

Customers still on UCS 4.1 are encouraged to update to UCS 4.3 (or later). 
Please contact your partner or Univention for any questions.

If this issue still occurs in newer UCS versions, please use "Clone this bug"
or simply reopen the issue. In this case please provide detailed information on
how this issue is affecting you.