Bug 23345 - Traceback in /etc/apt/sources.list.d/* ausgeben
Traceback in /etc/apt/sources.list.d/* ausgeben
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Update - univention-updater
UCS 2.4
Other Linux
: P5 enhancement (vote)
: UCS 3.0-2
Assigned To: Philipp Hahn
Florian Best
: interim-3
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-08-17 15:26 CEST by Philipp Hahn
Modified: 2012-07-20 15:24 CEST (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): Troubleshooting
Max CVSS v3 score:
hahn: Patch_Available+


Attachments
Print traceback when exception occurs. (3.99 KB, patch)
2011-08-17 15:26 CEST, Philipp Hahn
Details | Diff
Print traceback when exception occurs. (4.42 KB, patch)
2011-08-17 16:00 CEST, Philipp Hahn
Details | Diff
Print traceback when exception occurs [v3] (4.47 KB, patch)
2011-08-17 16:02 CEST, Philipp Hahn
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2011-08-17 15:26:04 CEST
Created attachment 3448 [details]
Print traceback when exception occurs.

Ich habe jetzt schon öfters beobachtet, das in besagten Dateien eine Ausnahme
gemeldet wurde, die anschließende Fehlersuche aber nicht durchgeführt werden
konnte, weil dort kein Traceback mit ausgegeben wird:

# An error occurred during the repository check. The error message:
#   exceptions.TypeError: int() argument must be a string or a number

Zur Verbesserung der Fehlersuche wäre es gut, wenn dort ein Traceback mit
ausgegeben wird.

Der angehängte Patch implementiert das.
Comment 1 Philipp Hahn univentionstaff 2011-08-17 16:00:02 CEST
Created attachment 3449 [details]
Print traceback when exception occurs.

[v2]
keine doppelten Zeilenumbrüche
debian/changelog Eintrag


Damit ließ sich dass übrigens auch der besagte Traceback reproduzieren:
#   Traceback (most recent call last):
#     File "<stdin>", line 11, in ?
#     File "/usr/lib/python2.4/site-packages/univention/updater/tools.py", line 425, in __init__
    self.ucr_reinit()
#     File "/usr/lib/python2.4/site-packages/univention/updater/tools.py", line 461, in ucr_reinit
    self.security_patchlevel = int(self.configRegistry['version/security-patchlevel'])
#   TypeError: int() argument must be a string or a number
Comment 2 Philipp Hahn univentionstaff 2011-08-17 16:02:34 CEST
Created attachment 3450 [details]
Print traceback when exception occurs [v3]

[v3]
Fehlendes .splitlines() ergänzt
Comment 3 Philipp Hahn univentionstaff 2012-07-10 07:05:50 CEST
Patch wurde aktualisiert übernommen.
svn34056, univention-updater_7.0.174-1.1052.201207100702

ChangeLog: svn13842
\item In case of an error a detailed traceback is now printed into the \ucsFile{/etc/apt/sources.list*} files (\ucsBUg{23345}).
Comment 4 Florian Best univentionstaff 2012-07-11 15:56:06 CEST
Tracebacks werden in die jeweiligen Dateien geschrieben.

foglende Dateien getestet:
/etc/apt/mirror.list
/etc/apt/sources.list.d/15_ucs-online-version.list
/etc/apt/sources.list.d/18_ucs-online-errata.list
/etc/apt/sources.list.d/20_ucs-online-component.list

Changelogeintrag vorhanden.
Comment 5 Stefan Gohmann univentionstaff 2012-07-20 15:24:06 CEST
UCS 3.0-2 has been released: 
  http://forum.univention.de/viewtopic.php?f=54&t=1905

If this error occurs again, please use "Clone This Bug".