Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1178830 - DNF tracebacks during update with ascii decode error
Summary: DNF tracebacks during update with ascii decode error
Keywords:
Status: CLOSED DUPLICATE of bug 1175839
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: rawhide
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-01-05 14:22 UTC by Martin Kolman
Modified: 2015-01-13 22:50 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-01-13 22:50:40 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Martin Kolman 2015-01-05 14:22:11 UTC
Description of problem:
When running dnf update -y, dnf crashes with the following traceback:

[MIRROR] python3-setuptools-8.2.1-1.fc22.noarch.rpm: Downloading successfull, but checksum doesn't match. Expected: 878396225f11c5fb78123e655fdef3c6d53e44154fc3c6a0c48c4004dc0c8cc6(sha256)
[MIRROR] evolution-3.13.9-1.fc22.x86_64.rpm: Downloading successfull, but checksum doesn't match. Expected: 58ad942827ab53a434ffed55a5f216f4b29b3b37909b827bc5f4bf0b7400b6f3(sha256)
[MIRROR] evolution-3.13.9-1.fc22.x86_64.rpm: Downloading successfull, but checksum doesn't match. Expected: 58ad942827ab53a434ffed55a5f216f4b29b3b37909b827bc5f4bf0b7400b6f3(sha256)
[MIRROR] gnome-desktop3-3.15.3-1.fc22.x86_64.rpm: Downloading successfull, but checksum doesn't match. Expected: 3dc68216eaf1c95b6c4fb663838f0cc557a912ab14d6ec1fc4ef4710a1fee34e(sha256)
[MIRROR] python3-setuptools-8.2.1-1.fc22.noarch.rpm: Downloading successfull, but checksum doesn't match. Expected: 878396225f11c5fb78123e655fdef3c6d53e44154fc3c6a0c48c4004dc0c8cc6(sha256)
[MIRROR] python3-setuptools-8.2.1-1.fc22.noarch.rpm: Downloading successfull, but checksum doesn't match. Expected: 878396225f11c5fb78123e655fdef3c6d53e44154fc3c6a0c48c4004dc0c8cc6(sha256)
[MIRROR] gnome-desktop3-3.15.3-1.fc22.x86_64.rpm: Downloading successfull, but checksum doesn't match. Expected: 3dc68216eaf1c95b6c4fb663838f0cc557a912ab14d6ec1fc4ef4710a1fee34e(sha256)
[MIRROR] evolution-3.13.9-1.fc22.x86_64.rpm: Downloading successfull, but checksum doesn't match. Expected: 58ad942827ab53a434ffed55a5f216f4b29b3b37909b827bc5f4bf0b7400b6f3(sha256)
[MIRROR] evolution-3.13.9-1.fc22.x86_64.rpm: Downloading successfull, but checksum doesn't match. Expected: 58ad942827ab53a434ffed55a5f216f4b29b3b37909b827bc5f4bf0b7400b6f3(sha256)
Traceback (most recent call last):.x86_64.rpm                                0% [                                                                          ] 7.7 kB/s | 1.1 kB    241:18 ETA
  File "/usr/bin/dnf", line 36, in <module>
    main.user_main(sys.argv[1:], exit_code=True)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 182, in user_main
    errcode = main(args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 84, in main
    return _main(base, args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 141, in _main
    ret = resolving(cli, base)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 160, in resolving
    base.do_transaction()
  File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 208, in do_transaction
    total_cb)
  File "/usr/lib/python2.7/site-packages/dnf/base.py", line 846, in download_packages
    errors = dnf.repo.download_payloads(payloads, drpm)
  File "/usr/lib/python2.7/site-packages/dnf/repo.py", line 125, in download_payloads
    librepo.download_packages(targets, failfast=True)
  File "/usr/lib64/python2.7/site-packages/librepo/__init__.py", line 1489, in download_packages
    return _librepo.download_packages(list, failfast)
  File "/usr/lib/python2.7/site-packages/dnf/util.py", line 144, in new_func
    name = '%s.%s' % (args[0].__class__.__name__, fn.__name__)
  File "/usr/lib/python2.7/site-packages/dnf/repo.py", line 318, in _progress_cb
    self.progress.progress(self, done)
  File "/usr/lib/python2.7/site-packages/dnf/cli/progress.py", line 69, in progress
    text = unicode(payload)
  File "/usr/lib/python2.7/site-packages/dnf/util.py", line 144, in new_func
    name = '%s.%s' % (args[0].__class__.__name__, fn.__name__)
  File "/usr/lib/python2.7/site-packages/dnf/repo.py", line 318, in _progress_cb
    self.progress.progress(self, done)
  File "/usr/lib/python2.7/site-packages/dnf/cli/progress.py", line 69, in progress
    text = unicode(payload)
  File "/usr/lib/python2.7/site-packages/dnf/util.py", line 144, in new_func
    name = '%s.%s' % (args[0].__class__.__name__, fn.__name__)
  File "/usr/lib/python2.7/site-packages/dnf/util.py", line 146, in new_func
    return fn(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/dnf/repo.py", line 315, in _mirrorfail_cb
    self.progress.end(self, dnf.callback.STATUS_MIRROR, err)
  File "/usr/lib/python2.7/site-packages/dnf/cli/progress.py", line 148, in end
    msg = '%s%-*s\n' % (msg, left, err_msg)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 197: ordinal not in range(128)


Version-Release number of selected component (if applicable):
# dnf --version
0.6.3
  Nainstalováno: dnf-0:0.6.3-2.fc22.noarch na 2014-12-16 18:55
  Sestaveno    : Fedora Project na 2014-12-09 14:04

  Nainstalováno: rpm-0:4.12.0.1-5.fc22.x86_64 na 2014-12-16 18:40
  Sestaveno    : Fedora Project na 2014-12-12 16:21



How reproducible:
Dos not happen every update attempt, so it is either caused by some specific repository (meta)data state or caused by a race condition.


Steps to Reproduce:
1. dnf clean all
2. dnf update -y

Actual results:
dnf racebacks

Expected results:
dnf finishes the update

Additional info:
# locale
LANG=cs_CZ.utf8
LC_CTYPE="cs_CZ.utf8"
LC_NUMERIC="cs_CZ.utf8"
LC_TIME="cs_CZ.utf8"
LC_COLLATE="cs_CZ.utf8"
LC_MONETARY="cs_CZ.utf8"
LC_MESSAGES="cs_CZ.utf8"
LC_PAPER="cs_CZ.utf8"
LC_NAME="cs_CZ.utf8"
LC_ADDRESS="cs_CZ.utf8"
LC_TELEPHONE="cs_CZ.utf8"
LC_MEASUREMENT="cs_CZ.utf8"
LC_IDENTIFICATION="cs_CZ.utf8"
LC_ALL=

Comment 1 Honza Silhan 2015-01-13 22:50:40 UTC

*** This bug has been marked as a duplicate of bug 1175839 ***


Note You need to log in before you can comment on or make changes to this bug.