Univention Bugzilla – Bug 27962
Leere /etc/logrotate.d/univention-config-registry-replog nach der Installation
Last modified: 2012-12-12 21:10:58 CET
Die /etc/logrotate.d/univention-config-registry-replog ist nach der Installation von 3.0-2 Master/Backup/Slave/Member/Basissystemen leer: $ less /etc/logrotate.d/univention-config-registry-replog # [UCR Warnung entfernt] # /etc/univention/templates/files/etc/logrotate.d/univention-config-registry-replog # Nach einem UCR commit jedoch nicht: $ ucr commit /etc/logrotate.d/univention-config-registry-replog File: /etc/logrotate.d/univention-config-registry-replog $ less /etc/logrotate.d/univention-config-registry-replog # [UCR Warnung entfernt] # /etc/univention/templates/files/etc/logrotate.d/univention-config-registry-replog # /var/log/univention/config-registry.replog { weekly rotate 12 create 640 root adm compress missingok notifempty } /var/log/univention/dpkg-divert.log { weekly rotate 12 create 640 root adm compress missingok notifempty } In der installation.log findet sich: File: /etc/logrotate.d/univention-config-registry-replog Traceback (most recent call last): File "<stdin>", line 7, in <module> ImportError: No module named lib.ucrLogrotate Hier scheint eine Abhängigkeit auf python-univention-lib zu fehlen.
(In reply to comment #0) > File: /etc/logrotate.d/univention-config-registry-replog > Traceback (most recent call last): > File "<stdin>", line 7, in <module> > ImportError: No module named lib.ucrLogrotate > > > Hier scheint eine Abhängigkeit auf python-univention-lib zu fehlen. Es darf nicht ohne Weiteres eine Abhängigkeit von univention-base-files auf python-univention-lib hinzugefügt werden, weil ansonsten univention-base-files wegen der vielen Abhängigkeiten auf andere Pakete viel zu spät konfiguriert wird; siehe entsprechender Kommentar in univention-base-files/debian/control. Das wurde erxtra für UCS-3.0 so umgebaut, weil es davor massive Probleme gab. Insbesondere muß man auf Zyklen zwischen univention-config, univention-base-files, python-univention* aufpassen. Als Work-Around sollte ein ucr commit auf die Datei durchgeführt werden.
Da dies ja nur bei Installationen auftreten kann, wird python-univention-lib nun im Installer vor univention-base-files und univention-config-registry installiert. Nach der Installation gibt es dann eine vollständige /etc/logrotate.d/univention-config-registry-replog und keine entsprechenden Tracebacks in der installation.log. Changelog nicht notwendig, da es bei früheren Installationen wohl geklappt hat.
Doch noch ein Eintrag im Changelog erstellt.
(In reply to comment #2) > Da dies ja nur bei Installationen auftreten kann, wird python-univention-lib > nun im Installer vor univention-base-files und univention-config-registry > installiert. → OK, Installationsreihenfolge wurde geändert > Nach der Installation gibt es dann eine vollständige > /etc/logrotate.d/univention-config-registry-replog und keine entsprechenden > Tracebacks in der installation.log. → Datei ist nach der Installation nicht leer; Tracebacks treten nicht auf > Changelog nicht notwendig, da es bei früheren Installationen wohl geklappt hat. → OK → VERIFIED
UCS 3.1-0 has been released: http://forum.univention.de/viewtopic.php?f=54&t=2125 If this error occurs again, please use "Clone This Bug".