Univention Bugzilla – Bug 56562
UMC error message during long time operations
Last modified: 2023-09-20 17:56:52 CEST
Created attachment 11115 [details] management-console-module-appcenter.log There are several support tickets about UMC error messages during long time operations. I was able to reproduce it during the OX App Suite installation. The german error message during the installation is: > Ein Fehler trat während des Verbindungsaufbaus zum Server auf. Bitte versuchen > Sie es später noch einmal. UCS version: UCS: 5.0-4 errata794 I've attached the log files with UMC debug level 4. The error message appeared a little bit before 08:27:50.
Created attachment 11116 [details] management-console-server.log
We see in the server log: > 09.09.23 08:27:45.722 MAIN ( ALL ) : reset_timeout(): new session expiration in 28799 seconds > 09.09.23 08:27:45.723 RESOURCES ( INFO ) : Searching for module providing command appcenter/progress … > 09.09.23 08:28:59.823 MAIN ( INFO ) : The module appcenter is inactive for too long. Sending shutdown request to module And inside of the appcenter log: > 09.09.23 08:28:59.823 MODULE ( INFO ) : Received SIGALARM > 09.09.23 08:28:59.823 MODULE ( INFO ) : Received SIGALARM > 09.09.23 08:28:59.824 MODULE ( PROCESS ) : Committing suicide Looks like the reset of the inactivity timer is broken? From a first look the logic look good: https://github.com/univention/univention-corporate-server/blob/5.0-4/management/univention-management-console/src/univention/management/console/resources.py#L316-L345 @Marius: can you have a look?
Created attachment 11118 [details] appcenter.log
Created attachment 11119 [details] ucr_dump.txt
MR: https://git.knut.univention.de/univention/ucs/-/merge_requests/899#64103873da9cdd49b2d4d198def836936b7c7082
During the installation of an app apache2 is sometimes restarted. This leads to the appcenter/progress request being aborted and an error shown to the user. However the installation continues in the background without any issue. With this commit now there is a way to retry progress commands when they have been aborted (aka HTTP status 0). A progress request will be retried 6 times before an error is shown. This problem also occurs on UCS 5.0-3, prior to the UMC server unification. Since git:329db0c5b700b {en,dis}able-apache2-umc does not prevent Apache 2 from being restarted during app installations. The OX-Appsuite installation restarts apache in its joinscript, causing some progress bar requests to be aborted. univention-web.yaml 3fbdb03be80d | fix(web): retry aborted progress requests univention-web (4.0.5-2) 3fbdb03be80d | fix(web): retry aborted progress requests
OK: AppSuite installation doesn't fail anymore OK: frontend-only fix: we could not re-activate the behavior of {en,dis}able-apache2-umc because then the OX joinscript fails OK: stopping apache for multiple seconds doesn't break an app installation OK: retrying of requests is delayed exponential OK: progressbar breaks up when the server is not reachable for 3 minutes OK: YAML
<https://errata.software-univention.de/#/?erratum=5.0x813>