Univention Bugzilla – Bug 35686
S4-Connector-Log schreibt Partition voll
Last modified: 2020-07-03 20:55:23 CEST
Release 3.2-2 errata178 ucs@school 3.2 R2 v1 Samba4 Ich betreue mehrere Schulen in einer Master-Slave-Umgebung. In einer Schule werden auf Wunsch des dortigen Ansprechpartners (Lehrer) zu jedem Schuljahreswechsel sämtliche Schüleraccounts (ca. 800) und Klassen gelöscht und anschließend neu angelegt. Im Zuge der diesjährigen Aktion ist mir folgendes aufgefallen: Die Datei /var/log/univention/connector-s4.log auf dem DC-Slave bläht sich größenmäßig (21 GB) soweit auf, dass sie letztendlich sämtlichen freien Platz auf der Root-Partition (diese ist 27 GB groß) belegt und damit auch den Squid3-Prozeß abschießt. Letztlich hilft nur manuelles Löschen des Logfiles und Neustart des S4-Connectors. Gibt es vielleicht eine ucr-Variable, die die Größe von Logfiles beschränkt? Oder bestände die Möglichkeit, im Zuge eines Updates dieses Verhalten zu unterbinden?
*** Bug 33927 has been marked as a duplicate of this bug. ***
This issue has been filed against UCS 3. UCS 3 is out of the normal maintenance and many UCS components have vastly changed in UCS 4. If this issue is still valid, please change the version to a newer UCS version otherwise this issue will be automatically closed in the next weeks.
Created attachment 8933 [details] maxsize.patch Support rotating s4-connector.log depending on maximal size: ucr set lorotate/s4/maxsize=100M I guess we would also want: * set a reasonable default for this * support a general lorotate/maxsize * run logrotate hourly (currently only /etc/cron.daily/logrotate)
This issue has been filed against UCS 4.2. UCS 4.2 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.