Bug 55041 - App-Update UnicodeDecodeError: 'utf8' codec can't decode byte in position x : invalid start byte
App-Update UnicodeDecodeError: 'utf8' codec can't decode byte in position x :...
Status: NEW
Product: UCS
Classification: Unclassified
Component: Update - univention-updater
UCS 5.0
amd64 Linux
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
UCS maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2022-07-28 20:29 CEST by Erich
Modified: 2022-07-28 20:34 CEST (History)
1 user (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):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erich 2022-07-28 20:29:48 CEST
Similar to Bug 51290, only this exists in 5.1 versus 4.4.

When running univention-upgrade from shell, error is thrown when 'Checking for app updates:' is invoked.

This OS instance has been upgraded from 4.4-9.

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/univention/updater/scripts/upgrade.py", line 436, in do_update
    update_available = performUpdate(options, checkForUpdates=options.check, silent=False)
  File "/usr/lib/python3/dist-packages/univention/updater/scripts/upgrade.py", line 139, in performUpdate
    if func(options, checkForUpdates, silent):
  File "/usr/lib/python3/dist-packages/univention/updater/scripts/upgrade.py", line 271, in do_app_updates
    app_upgrade_search.call()
  File "/usr/lib/python3/dist-packages/univention/appcenter/actions/__init__.py", line 186, in call
    return obj.call_with_namespace(namespace)
  File "/usr/lib/python3/dist-packages/univention/appcenter/actions/__init__.py", line 193, in call_with_namespace
    result = self.main(namespace)
  File "/usr/lib/python3/dist-packages/univention/appcenter/actions/upgrade_search.py", line 52, in main
    get_action('update').call()
  File "/usr/lib/python3/dist-packages/univention/appcenter/actions/__init__.py", line 186, in call
    return obj.call_with_namespace(namespace)
  File "/usr/lib/python3/dist-packages/univention/appcenter/actions/__init__.py", line 193, in call_with_namespace
    result = self.main(namespace)
  File "/usr/lib/python3/dist-packages/univention/appcenter/actions/update.py", line 81, in main
    if self._download_supra_files(appcenter_cache):
  File "/usr/lib/python3/dist-packages/univention/appcenter/actions/update.py", line 150, in _download_supra_files
    return self._download_files(appcenter_cache, ['app-categories.ini', 'rating.ini', 'license_types.ini', 'ucs.ini', 'suggestions.json'])
  File "/usr/lib/python3/dist-packages/univention/appcenter/actions/update.py", line 158, in _download_files
    present_etags = self._get_etags(etags_file)
  File "/usr/lib/python3/dist-packages/univention/appcenter/actions/update.py", line 130, in _get_etags
    for line in f:
  File "/usr/lib/python3.7/codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8f in position 150: invalid start byte
Comment 1 Erich 2022-07-28 20:33:39 CEST
Update: version of 5.1 is incorrect.

Occurring in version 5.0-1.
Comment 2 Erich 2022-07-28 20:34:48 CEST
Update: version of 5.1 is incorrect.

Occurring in version 5.0-1.