Bug 41252 - Work around "Failed to create cachedir"
Summary: Work around "Failed to create cachedir"
Status: CLOSED FIXED
Alias: None
Product: UCS@school
Classification: Unclassified
Component: UMC - Exam mode
Version: UCS@school 4.0 R2
Hardware: Other Linux
: P5 normal
Target Milestone: UCS@school 4.1 R2 vXXX
Assignee: Daniel Tröder
QA Contact: Florian Best
URL:
Keywords: interim-3
Depends on:
Blocks:
 
Reported: 2016-05-11 11:13 CEST by Michael Grandjean
Modified: 2016-12-12 13:10 CET (History)
2 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?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.034
Enterprise Customer affected?:
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2016040821000294
Bug group (optional): External feedback
Customer ID: 09711
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 2016-05-11 11:13:37 CEST
A teacher reported that they are not able to upload the exam documents. The progress bar gets stuck at 0%. In the management-console-module-schoolexam.log we found the following error for the relevant time frame:

> 06.04.16 07:45:48.826  MODULE      ( ERROR   ) : Failed to create cachedir: [Errno 17] Die Datei existiert bereits: '/var/lib/ucs-school-umc-schoolexam/inf_0604.data'

I think we should catch this and work around it automatically.

Ticket#2016040821000294
Comment 1 Florian Best univentionstaff 2016-07-05 13:32:24 CEST
@Michael
Which UCS@school version was used?
How is it reproducible?
Is there the full logfile available (with debug infos)?

The error message is unrelevant as the error is catched. We should hide the false positive error message nevertheless.
Comment 2 Michael Grandjean univentionstaff 2016-07-05 14:20:11 CEST
(In reply to Florian Best from comment #1)
> @Michael
> Which UCS@school version was used?

ucsschool_20160115
(UCS 4.0-4 or 4.0-5)

> How is it reproducible?

Unfortunately, I was not able to reproduce it myself. It only happened at this very school when the teacher tried to upload the exam documents.
There were also some lingering files underneath /var/lib/ucs-school-umc-schoolexam/ that belonged to old, already finished exams. Maybe that's related?

> Is there the full logfile available (with debug infos)?

I added the full log (without debug infos) at the mentioned Ticket (last note).
Comment 3 Daniel Tröder univentionstaff 2016-07-28 16:33:03 CEST
Fixed in r71280: _createCacheDir() was called twice when creating am exam.
Comment 4 Florian Best univentionstaff 2016-09-29 15:39:09 CEST
It is nicer to use "errno.EEXIST" instead of "17"!
Comment 5 Daniel Tröder univentionstaff 2016-11-16 15:08:16 CET
74483: updated source code to use symbol instead of number
74484: changed wording in advisory
Comment 6 Florian Best univentionstaff 2016-11-16 15:13:21 CET
We couldn't reproduce the original problem but we fixed the error message. If you have more concrete information on how to reproduce this (e.g. the browser, what kind of files) please create a new bug.

OK: the error message is not shown anymore
OK: YAML
Comment 7 Sönke Schwardt-Krummrich univentionstaff 2016-12-12 13:10:25 CET
UCS@school 4.1 R2 v9 has been released.

http://docs.software-univention.de/changelog-ucsschool-4.1R2v9-de.html