Univention Bugzilla – Bug 44290
sa-compile fails if time is not synchronized, for example in KVM after suspend-to-disk
Last modified: 2018-03-14 14:37:42 CET
If the time of a virtual machine is way behind and the package "sa-compile" is updated, it tries to compile a new rule set using "make": if the time of the host is not synchronized to wall-clock time, it fails or get stuck in an endless loop: >sa-compile (3.4.0-6) wird eingerichtet ... >Running sa-compile (may take a long time) >make: Warning: File '/usr/lib/x86_64-linux-gnu/perl/5.20/Config.pm' has modification time 5294396 s in the future >make: *** [Makefile] Error 1 >command 'make >>/tmp/.spamassassin16826NwEno2tmp/log' failed: exit 2 >dpkg: Fehler beim Bearbeiten des Paketes sa-compile (--configure): > Unterprozess installiertes post-installation-Skript gab den Fehlerwert 25 zurück If this happens during the upgrade, the upgrade aborts with an exit status <>0
*** Bug 46562 has been marked as a duplicate of this bug. ***
(In reply to Stefan Gohmann from bug 46562 comment #1) > Maybe we should abort the upgrade in preup.sh if the time is before 2018-03-01? As discussed, I implemented a short check in preup.sh to see if the system date is at least 2018. ---[cut]--- WARNING: The system date (2018-03-09) does not seem to be correct. Please set a current system time before the update, otherwise the update will fail if Spamassassin is installed. This check can be disabled by setting the UCR variable update43/ignore_system_date to yes. ---[cut]--- Package: univention-updater Version: 13.0.1-33A~4.3.0.201803091023 Branch: ucs_4.3-0 univention-updater (13.0.1-33) 70124b03b9bf | Bug #44290: check in preup.sh if system date is up to date
Test with an old date: OK (aborts) Test with an old date and update43/ignore_system_date=yes: OK Test with current date: OK I've added the bug number to an existing entry: [4.3-0 5f78765f3c] Added Bug #44290 to changelog
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".