Bug 40051

Summary: no update possible if logfiles are removed
Product: UCS Reporter: Florian Best <best>
Component: UMC - Software updateAssignee: Florian Best <best>
Status: CLOSED FIXED QA Contact: Stefan Gohmann <gohmann>
Severity: normal    
Priority: P5 CC: gohmann, walkenhorst
Version: UCS 4.1   
Target Milestone: UCS 4.1-0-errata   
Hardware: Other   
OS: Linux   
See Also: https://forge.univention.org/bugzilla/show_bug.cgi?id=26544
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:

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
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
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
<http://errata.software-univention.de/ucs/4.1/58.html>