Bug 47337 - System diagnostic module throws internal server error, if a check takes too long
System diagnostic module throws internal server error, if a check takes too long
Status: RESOLVED WONTFIX
Product: UCS
Classification: Unclassified
Component: UMC - System diagnostic
UCS 4.3
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-07-11 11:24 CEST by Valentin Heidelberger
Modified: 2021-05-14 16:34 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 2: Will only affect a few 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.069
Enterprise Customer affected?: Yes
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2018101521000229
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 Valentin Heidelberger univentionstaff 2018-07-11 11:24:43 CEST
The system diagnostic module throws an empty internal server error message, when a check takes too long. 
This can be reproduced reliably by putting a time.sleep(500) in one of the checks below /usr/share/pyshared/univention/management/console/modules/diagnostic/plugins/, restarting the UMC server and opening the module.

The loading bar pauses at 

96% Diagnose von "Gateway ist nicht erreichbar" erfolgreich

regardless of which check contains the sleep, so one can not immediately pin down which check is causing the delay.

I'd expect the module to show a more descriptive error pop-up, like "Timeout: check %s took too long" or just skip the check after a certain amount of time and list it as a "Problem" similar to the behaviour when a traceback happens in one of the checks itself.
Comment 1 Ingo Steuwer univentionstaff 2021-05-14 15:42:15 CEST
This issue has been filed against UCS 4.3.

UCS 4.3 is out of maintenance and many UCS components have changed in later releases. Thus, this issue is now being closed.

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