Univention Bugzilla – Bug 40051
no update possible if logfiles are removed
Last modified: 2016-01-20 13:24:45 CET
We received the following traceback. It happens when (trying to) start a update. UCS Version: 4.0-4 errata0 (Vahr) Die Ausführung des Kommandos updater/installer/execute ist fehlgeschlagen: Traceback (most recent call last): File "/usr/lib/pymodules/python2.7/univention/management/console/base.py", line 283, in execute function(self, request) File "/usr/lib/pymodules/python2.7/univention/management/console/modules/updater/__init__.py", line 833, in run_installer if file is not None: UnboundLocalError: local variable 'file' referenced before assignment
This happens because the logfile doesn't exists.
Reproduce: rm /var/lib/univention-updater/*.status /var/log/univention/updater.log → + install some package update univention-updater (11.0.7-8): r66394 | Bug #40051: don't fail if logfails doesn't exist
YAML: OK (minor adjustments r66892) Code review: OK Tests: OK, I was able to reproduce the problem with the old updater version. It works with the new version.
<http://errata.software-univention.de/ucs/4.1/58.html>