Bug 52718 - univention-translog failes to parse corrupt translog: Traceback ValueError
univention-translog failes to parse corrupt translog: Traceback ValueError
Status: NEW
Product: UCS
Classification: Unclassified
Component: Notifier (univention-directory-notifier)
UCS 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
UCS maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2021-01-29 10:28 CET by Christian Castens
Modified: 2022-08-26 17:58 CEST (History)
3 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.069
Enterprise Customer affected?:
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2020121121000406 Remove UDN/UDL protocol version 1 and 2
Bug group (optional): External feedback
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Castens univentionstaff 2021-01-29 10:28:42 CET
Version: 4.4-7 errata835 (Blumenthal)


Traceback (most recent call last):
  File "/usr/share/univention-directory-notifier/univention-translog", line 1406, in <module>
    exit(main())
  File "/usr/share/univention-directory-notifier/univention-translog", line 420, in main
    return opt.func(opt) or 0
  File "/usr/share/univention-directory-notifier/univention-translog", line 504, in import_all
    for rec in chain(lead, translog):
  File "/usr/share/univention-directory-notifier/univention-translog", line 344, in __iter__
    rec = self.parse_line(line)
  File "/usr/share/univention-directory-notifier/univention-translog", line 266, in parse_line
    dn, command = rest.rsplit(' ', 1)
ValueError: need more than 1 value to unpack

FAILED: failed to setup /var/lib/univention-ldap/translog/data.mdb



The complete log can be found in ticket 2020121121000406
Comment 1 Philipp Hahn univentionstaff 2022-08-26 17:46:03 CEST
Similar ValueError but different:

2022-08-26 14:48:15,791:INFO:Purging/keeping 1..7595344..7605344
Traceback (most recent call last):
  File "/usr/share/univention-directory-notifier/univention-translog", line 1444, in <module>
    exit(main())
  File "/usr/share/univention-directory-notifier/univention-translog", line 424, in main
    return opt.func(opt) or 0
  File "/usr/share/univention-directory-notifier/univention-translog", line 1216, in prune
    prune_file(opt)
  File "/usr/share/univention-directory-notifier/univention-translog", line 1245, in prune_file
    for rec in translog:
  File "/usr/share/univention-directory-notifier/univention-translog", line 348, in __iter__
    rec = self.parse_line(line)
  File "/usr/share/univention-directory-notifier/univention-translog", line 269, in parse_line
    return Transaction(int(tid), dn, command)
ValueError: invalid literal for int() with base 10: '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0