Bug 57661 - UCS@school exam-mode creates error - PermissionError: [Errno 1] Die Operation ist nicht erlaubt
Summary: UCS@school exam-mode creates error - PermissionError: [Errno 1] Die Operation...
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: 57708
  Show dependency treegraph
 
Reported: 2024-10-08 12:56 CEST by Mirac Erdemiroglu
Modified: 2025-01-14 12:58 CET (History)
3 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 5: Major Usability: Impairs usability in key scenarios
Who will be affected by this bug?: 3: Will affect average number of installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.171
Enterprise Customer affected?:
School Customer affected?: Yes
ISV affected?:
Waiting Support: Yes
Flags outvoted (downgraded) after PO Review:
Ticket number: 2024041721000145, 2024092721000082
Bug group (optional):
Customer ID:
Max CVSS v3 score:


Attachments
Klassenarbeiten vom Lehrer (57.05 KB, image/png)
2024-10-08 13:05 CEST, Mirac Erdemiroglu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mirac Erdemiroglu univentionstaff 2024-10-08 12:56:45 CEST
UCS: 5.0-9 errata1133
Installed: cups=2.2.1 dhcp-server=12.0 samba4=4.16 self-service=5.0 squid=3.5 ucsschool=5.0 v6 ucsschool-veyon-proxy=4.9.0.8-ucs1
Upgradable:

Settings:

veyon/WebAPI/ConnectionLimit: 5000 (Maximum number of connections for the veyon WebAPI)
veyon/WebAPI/ConnectionIdleTimeout: 60 (Sets timeout for idling connections, in seconds. Reducing this value can help to avoid unnecessary VNC connections between the proxy and the Windows clients.)
veyon/Core/ComputerStatePollingInterval: 1000 (Polling interval for state changes in milliseconds)
veyon/Master/ComputerMonitoringUpdateInterval: 1000 (Update interval for the created thumbnail in milliseconds.)
veyon/Master/ComputerMonitoringImageQuality: 4 (Sets the image quality value 0 (highest) to 4 (lowest).)

ucsschool/umc/computerroom/screenshot/interval: 5
ucsschool/umc/computerroom/update-interval: 1


I could reproduce an issue from the customer.

During the exam-mode if i collect the exam-documents, i get the following error in the /var/log/univention/management-console-module-schoolexam.log

08.10.24 12:34:46.882  MODULE      ( PROCESS ) : info:75  Vorbereiten der Raumeinstellungen - beendet...
08.10.24 12:34:46.915  MODULE      ( PROCESS ) : _cleanTmpDir:180  Clean up temporary directory: /tmp/ucsschool-exam-upload-1e5jcg1k
08.10.24 12:34:47.070  MODULE      ( PROCESS ) : Received request 'schoolexam/progress': ('s.gohmann', None, None, 'de_DE.UTF-8')
08.10.24 12:39:16.057  MODULE      ( PROCESS ) : Received request 'schoolexam/exam/collect': ('s.gohmann', None, None, 'de_DE.UTF-8')
08.10.24 12:39:16.058  MODULE      ( PROCESS ) : collect_exam:862  exam='Informatik-Test'
08.10.24 12:39:16.059  MODULE      ( PROCESS ) : collect_exam:866  loaded project=Project(name='Informatik-Test') dict={'name': 'Informatik-Test', 'description': 'Informatik-Test', 'files': ['Tux.svg.png', 'basi
strainingtextvers.pdf', 'Linux_kernel.txt'], 'starttime': '2024-10-08 12:34', 'deadline': '13:15', 'atJobNumDistribute': None, 'atJobNumCollect': None, 'sender': {'unixhome': '/home/mejneschool2/lehrer/s.gohmann
', 'username': 's.gohmann', 'uidNumber': '2728', 'gidNumber': '5305', 'firstname': 'Stefan', 'lastname': 'Gohmann', 'dn': 'uid=s.gohmann,cn=lehrer,cn=users,ou=mejneschool2,dc=ucs5schoolhejne,dc=intranet', '__typ
e__': 'USER'}, 'recipients': [{'unixhome': '/home/mejneschool2/schueler/exam-homes/exam-esra.erde.20241008-123429', 'username': 'exam-esra.erde', 'uidNumber': '2787', 'gidNumber': '5305', 'firstname': 'Esra', 'l
astname': 'Erde', 'dn': 'uid=exam-esra.erde,cn=examusers,ou=mejneschool2,dc=ucs5schoolhejne,dc=intranet', '__type__': 'USER'}, {'unixhome': '/home/mejneschool2/schueler/exam-homes/exam-mirac.erde.20241008-123430
', 'username': 'exam-mirac.erde', 'uidNumber': '2788', 'gidNumber': '5305', 'firstname': 'Mirac', 'lastname': 'Erde', 'dn': 'uid=exam-mirac.erde,cn=examusers,ou=mejneschool2,dc=ucs5schoolhejne,dc=intranet', '__t
ype__': 'USER'}, {'unixhome': '/home/mejneschool2/schueler/exam-homes/exam-emel.erde.20241008-123429', 'username': 'exam-emel.erde', 'uidNumber': '2786', 'gidNumber': '5305', 'firstname': 'Emel', 'lastname': 'Er
de', 'dn': 'uid=exam-emel.erde,cn=examusers,ou=mejneschool2,dc=ucs5schoolhejne,dc=intranet', '__type__': 'USER'}], 'isDistributed': True, 'room': 'cn=mejneschool2-Raum-Mejne2,cn=raeume,cn=groups,ou=mejneschool2,
dc=ucs5schoolhejne,dc=intranet', '__type__': 'PROJECT'}
08.10.24 12:39:16.060  MODULE      ( ERROR   ) : Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/univention/management/console/modules/distribution/util.py", line 523, in _create_project_dir
    os.chown(startdir, owner, group)
PermissionError: [Errno 1] Die Operation ist nicht erlaubt: '/home/mejneschool2/lehrer/s.gohmann/Klassenarbeiten'

08.10.24 12:39:16.061  MODULE      ( ERROR   ) : failed to create/chown '/home/mejneschool2/lehrer/s.gohmann/Klassenarbeiten/Informatik-Test-Ergebnisse': [Errno 1] Die Operation ist nicht erlaubt: '/home/mejnesc
hool2/lehrer/s.gohmann/Klassenarbeiten'
Comment 1 Mirac Erdemiroglu univentionstaff 2024-10-08 13:01:59 CEST
Customer effected 2024041721000145
Comment 2 Mirac Erdemiroglu univentionstaff 2024-10-08 13:05:00 CEST
Even if the error occurs in the log, this is not displayed in the UMC. The UMC shows that the class work has been successfully collected.
These can then be found again under the teacher's shares ‘My shares/classwork’ 

I attached a screenshot from my test-system.
Comment 3 Mirac Erdemiroglu univentionstaff 2024-10-08 13:05:18 CEST
Created attachment 11243 [details]
Klassenarbeiten vom Lehrer
Comment 4 Mirac Erdemiroglu univentionstaff 2024-10-08 19:27:54 CEST
Another customer effected 2024092721000082

24.09.24 11:29:27.982  MODULE      ( PROCESS ) : component:72  Einsammeln der Klassenarbeitsdateien...
24.09.24 11:29:27.983  MODULE      ( ERROR   ) : Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/univention/management/console/modules/distribution/util.py", line 523, in _create_project_dir
    os.chown(startdir, owner, group)
PermissionError: [Errno 1] Die Operation ist nicht erlaubt: '/home/Schule/lehrer/a.mustermann/Klassenarbeiten'

I guess this bug is created since the update from 19.09, because the customer installed the latest UCS@school updates today.
So this could not be from the performance Updates etc.
https://docs.software-univention.de/ucsschool-changelog/5.0v5/de/changelog.html#released-on-2024-09-19
Comment 7 Ole Schwiegert univentionstaff 2024-10-14 11:14:30 CEST
Reproduce traceback: OK
Install changes: OK
Reproduce traceback: OK; Did not occur anymore.
Tests: OK; I ran some tests that call the check_results. They fail before the update and pass after.
Comment 8 Johannes Königer univentionstaff 2024-10-14 11:33:46 CEST
Built packages:

Package: ucs-school-umc-distribution
Version: 18.0.10
Branch: 5.0-0
Scope: ucs-school-5.0

Package: ucs-test-ucsschool
Version: 7.3.195
Branch: 5.0-0
Scope: ucs-school-5.0
Comment 9 Ole Schwiegert univentionstaff 2024-10-17 11:57:01 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.