Bug 40051 - no update possible if logfiles are removed
no update possible if logfiles are removed
Product: UCS
Classification: Unclassified
Component: UMC - Software update
UCS 4.1
Other Linux
: P5 normal (vote)
: UCS 4.1-0-errata
Assigned To: Florian Best
Stefan Gohmann
Depends on:
  Show dependency treegraph
Reported: 2015-11-20 11:58 CET by Florian Best
Modified: 2016-01-20 13:24 CET (History)
2 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): Error handling, External feedback
Max CVSS v3 score:


Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2015-11-20 11:58:28 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
Comment 1 Florian Best univentionstaff 2015-11-20 12:05:07 CET
This happens because the logfile doesn't exists.
Comment 2 Florian Best univentionstaff 2015-12-16 14:13:34 CET
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
Comment 3 Stefan Gohmann univentionstaff 2016-01-20 06:45:15 CET
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.
Comment 4 Janek Walkenhorst univentionstaff 2016-01-20 13:24:45 CET