Univention Bugzilla – Bug 52318
Add HTTP reason phrase to different kind of 503 Service unavailable
Last modified: 2020-11-25 12:08:00 CET
We have multiple situation where we respond with 503 Service Unavailable: * LDAP server down * UMC-Server down * UMC-Server connection broke up (crash, restart, etc.) * UMC-Web-Server down * SAML misconfiguration We should add different HTTP reason phrases for this to debug this faster.
Patch in git:d93366f286ad2d6c27825f6f56e242827c62ec70.
The common errors now set the HTTP reason phrase. For the case the UMC-Web-Server is not running, I could not find a solution in Apache httpd to set it. univention-management-console.yaml d9def1d931df | YAML Bug #52318 univention-management-console (11.0.5-12) 4c3367f6195a | Bug #52318: add HTTP reason phrase for 503 Service Unavailable errors
(In reply to Florian Best from comment #2) > For the case the UMC-Web-Server is not running, I could not find a solution > in Apache httpd to set it. A simple WSGI handler is able to set it. So I enabled one, which is also active for unavilable /univention/portal/portal.json and /univention/udm/ service. Prior always the wrong error message for UMC-Webserver is not available was shown. univention-management-console (11.0.5-14) 1eb0ce960cfb | Bug #52318: add HTTP reason phrase for 502+503 errors if UMC-Web-Server is unreachable
Since the phrase was changed, 60_umc.103_test_umc_server_down.master090 fails on all roles. http://jenkins.knut.univention.de:8080/job/UCS-4.4/job/UCS-4.4-6/job/AutotestJoin/lastCompletedBuild/testReport/
(In reply to Julia Bremer from comment #4) > Since the phrase was changed, 60_umc.103_test_umc_server_down.master090 > fails on all roles. > > http://jenkins.knut.univention.de:8080/job/UCS-4.4/job/UCS-4.4-6/job/ > AutotestJoin/lastCompletedBuild/testReport/ Thanks, adjusted the test case to test for the new error message and the reason phrase. ucs-test (9.0.5-22) db8d587dc1b7 | Bug #52318: test reason phrase is set
Script: OK UMC down: OK Web server down: OK Rest API down: ~OK (now sometimes returns JSON where it used to return HTML) YAML: OK Seems a much better approach now. The script gives us more freedom to react. Although strictly speaking, UMC now answers problems for UDM Rest. I guess it is overkill, but being able to extend it would have been nice.
<https://errata.software-univention.de/#/?erratum=4.4x822>