Univention Bugzilla – Bug 26477
Add warning when stopping apache or UMC through UMC services module
Last modified: 2018-03-14 14:38:29 CET
Für Anwender, die das System-Dienste Modul in der UMC2 benutzen wäre es von Vorteil wenn beim Stoppen von apache2 eine Warnung angezeigt werden würde. Es ist unter Umständen im Anschluss bedingt durch die Web 2.0 Technologie nicht direkt erkennbar, was das Problem ist. Direkt im Anschluss an das Stoppen meldet die UMC per Popup "Ein unbekannter Fehler mit Status-Code 0 trat während des Verbindungsaufbaus zum Server auf. Bitte versuchen Sie es später noch einmal." Selbige Meldung erscheint daraufhin bei jeder Aktion, es werden aber neue Tabs, Grids, etc gestartet (man kann neue Module, etc. starten).
Stimmt, unter bestimmten Voraussetzungen kann es durch den Neustart des UMC-Servers sein, dass der UMC-Web-Server keine Verbindung mehr zu ihm aufbauen kann. Damit schlagen alle Request gegen das Backend fehl. Der Neustart des UMC-Web-Servers wäre dann notwendig, allerdings ist auch nicht in der Liste der Systemdienste eingetragen.
(In reply to comment #0) > Für Anwender, die das System-Dienste Modul in der UMC2 benutzen wäre es von > Vorteil wenn beim Stoppen von apache2 eine Warnung angezeigt werden würde. Gleiches gilt imho für univention-management-console-web-server
Added a warning for: -Apache2 -univention-management-console-server -univention-management-console-web-server see branch jahlers/26477-services-stop-warning
Maybe the warning looks much more nice, if it occurs after the list of services instead of after every listed service?
It looked nice as it was with a shorter warning. The warning message you sent me (Warning: Stopping this service will interrupt all current connections to the Univention Management Console) produces a line break, which, indeed, looks bad. A message after the list of services gives less (or at least less organized) information as you cannot see which service is required for umc. In my opinion the warnings should stay in the list, but with a shorter warning message (maybe something like "required for UMC"), and maybe in red to implicate warning.
And what if we name the services in the error message explicit and put it underneath of the list. This would also solve that the message is not shown multiple times.
Created attachment 9342 [details] Screenshot I made a screenshot to compare both versions. The warning underneath is far too long imo, and easily overlooked. I don't think it is a problem to show the warning multiple times if it is so short. Anyway, if I still haven't convinced you, your solution is implemented and ready to go.
I think a hardcoded message is enough. It doesn't need to be in brackets. There don't have to be red text after each service: Warning: Stopping apache or UMC services will interrupt all current connections to the Univention Management Console. It might be necessary for all users to login again.
Please make sure that the message is not displayed when starting services.
Added a warning for: -Apache2 -univention-management-console-server -univention-management-console-web-server The warning will appear when stopping or restarting the services or when setting them to never start or start manually. changelog-4.3-0.xml e059c9b953d0 | Bug #26477: changelog univention-management-console-module-services (7.0.0-3) f20a46e69c29 | Bug #26477: services UMC module warns when stopping of service breaks UMC univention-directory-manager-modules (7.0.63-1) r26477 | univention-directory-manager-modules (7.0.63-1) unstable; urgency=low Successful build Package: univention-management-console-module-services Version: 7.0.0-3A~4.3.0.201801241026 Branch: ucs_4.3-0 Scope: User: jahlers
OK: warnings are shown when stopping, restarting, manually, deactivate UMC services. OK: changelog entry
UCS 4.3 has been released: https://docs.software-univention.de/release-notes-4.3-0-en.html https://docs.software-univention.de/release-notes-4.3-0-de.html If this error occurs again, please use "Clone This Bug".