2017-12-12 10:13 UTC

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0013272CentOS-7yumpublic2017-09-27 12:58
ReporterMikeWu 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusnewResolutionopen 
PlatformOSOS Version7
Product Version 
Target VersionFixed in Version 
Summary0013272: [abrt] yum: yumRepo.py:527:dump:UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 1489: ordinal not in ...
DescriptionDescription of problem:
Hi all,

When I use yum updating for my CentOS 7 after first time complete installation,

It occurs this problem! and I don't know what's happened.

Would you tell me why? and what can I do.

Thanks.

            by Mike 5/18/2017

Version-Release number of selected component:
yum-3.4.3-150.el7.centos

Truncated backtrace:
yumRepo.py:527:dump:UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 1489: ordinal not in range(128)

Traceback (most recent call last):
  File "/bin/yum", line 29, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 370, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 276, in main
    return_code = base.doTransaction()
  File "/usr/share/yum-cli/cli.py", line 773, in doTransaction
    resultobject = self.runTransaction(cb=cb)
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1853, in runTransaction
    self._store_config_in_history()
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 6784, in _store_config_in_history
    myrepos += repo.dump()
  File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 527, in dump
    output = output + '%s = %s\n' % (attr, res)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 1489: ordinal not in range(128)

Local variables in innermost frame:
self: <yum.yumRepo.YumRepository object at 0x1603ed0>
res: u'CentOS-7 - Base'
excluded_vars: ('mediafunc', 'sack', 'metalink_data', 'grab', 'grabfunc', 'repoXML', 'cfg', 'retrieved', 'mirrorlistparsed', 'gpg_import_func', 'gpgca_import_func', 'failure_obj', 'callback', 'confirm_func', 'groups_added', 'interrupt_callback', 'id', 'mirror_failure_obj', 'repo_config_age', 'groupsfilename', 'copy_local', 'basecachedir', 'http_headers', 'metadata_cookie', 'metadata_cookie_fn', 'quick_enable_disable', 'repoMDFile', 'timestamp_check', 'urls', 'mirrorurls', 'yumvar', 'repofile', 'multi_callback')
attr: 'name'
output: '[base]\nasync = True\nbandwidth = 0\nbase_persistdir = /var/lib/yum/repos/x86_64/7\nbaseurl = http://ftp.stu.edu.tw/Linux/CentOS/7.3.1611/os/x86_64/,\n http://ftp.isu.edu.tw/pub/Linux/CentOS/7.3.1611/os/x86_64/,\n http://ftp.tc.edu.tw/Linux/CentOS/7.3.1611/os/x86_64/,\n http://centos.cs.nctu.edu.tw/7.3.1611/os/x86_64/,\n http://ftp.yzu.edu.tw/Linux/CentOS/7.3.1611/os/x86_64/,\n http://ftp.ksu.edu.tw/pub/CentOS/7.3.1611/os/x86_64/,\n http://ftp.twaren.net/Linux/CentOS/7.3.1611/os/x86_64/,\n http://mirrors.sohu.com/centos/7.3.1611/os/x86_64/,\n http://mirrors.cn99.com/centos/7.3.1611/os/x86_64/,\n http://mirrors.njupt.edu.cn/centos/7.3.1611/os/x86_64/\ncache = 0\ncachedir = /var/cache/yum/x86_64/7/base\ncheck_config_file_age = True\ncompare_providers_priority = 80\ncost = 1000\ndeltarpm_metadata_percentage = 100\ndeltarpm_percentage = \nenabled = True\nenablegroups = True\nexclude = \nfailovermethod = priority\nftp_disable_epsv = False\ngpgcadir = /var/lib/yum/repos/x86_64/7/base/gpgcadir\ngpgcakey = \ngpgcheck = True\ngpgdir = /var/lib/yum/repos/x86_64/7/base/gpgdir\ngpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7\nhdrdir = /var/cache/yum/x86_64/7/base/headers\nhttp_caching = all\nincludepkgs = \nip_resolve = \nkeepalive = True\nkeepcache = False\nmddownloadpolicy = sqlite\nmdpolicy = group:small\nmediaid = \nmetadata_expire = 21600\nmetadata_expire_filter = read-only:present\nmetalink = \nminrate = 0\nmirrorlist = http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock\xef\xbc\x86cc=tw\nmirrorlist_expire = 86400\nmirrorlist_file = /var/cache/yum/x86_64/7/base/mirrorlist.txt\n'
Additional Informationreporter: libreport-2.1.11.1
cmdline: /usr/bin/python /bin/yum --enablerepo=extras install epel-release
executable: /bin/yum
kernel: 3.10.0-514.16.1.el7.x86_64
pkg_fingerprint: 24C6 A8A7 F4A8 0EB5
pkg_vendor: CentOS
reproducible: Not sure how to reproduce the problem
runlevel: N 5
type: Python
uid: 0
TagsNo tags attached.
abrt_hash21ff28f44979b4274a57f9cbcabbcfd95d2ca3e8
URLhttps://retrace.fedoraproject.org/faf/reports/bthash/6f625cad99414d0de6051cc0b485a419ab6d119a
Attached Files
  • ? file icon backtrace (3,315 bytes) 2017-05-18 08:26 -
    yumRepo.py:527:dump:UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 1489: ordinal not in range(128)
    
    Traceback (most recent call last):
      File "/bin/yum", line 29, in <module>
        yummain.user_main(sys.argv[1:], exit_code=True)
      File "/usr/share/yum-cli/yummain.py", line 370, in user_main
        errcode = main(args)
      File "/usr/share/yum-cli/yummain.py", line 276, in main
        return_code = base.doTransaction()
      File "/usr/share/yum-cli/cli.py", line 773, in doTransaction
        resultobject = self.runTransaction(cb=cb)
      File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1853, in runTransaction
        self._store_config_in_history()
      File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 6784, in _store_config_in_history
        myrepos += repo.dump()
      File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 527, in dump
        output = output + '%s = %s\n' % (attr, res)
    UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 1489: ordinal not in range(128)
    
    Local variables in innermost frame:
    self: <yum.yumRepo.YumRepository object at 0x1603ed0>
    res: u'CentOS-7 - Base'
    excluded_vars: ('mediafunc', 'sack', 'metalink_data', 'grab', 'grabfunc', 'repoXML', 'cfg', 'retrieved', 'mirrorlistparsed', 'gpg_import_func', 'gpgca_import_func', 'failure_obj', 'callback', 'confirm_func', 'groups_added', 'interrupt_callback', 'id', 'mirror_failure_obj', 'repo_config_age', 'groupsfilename', 'copy_local', 'basecachedir', 'http_headers', 'metadata_cookie', 'metadata_cookie_fn', 'quick_enable_disable', 'repoMDFile', 'timestamp_check', 'urls', 'mirrorurls', 'yumvar', 'repofile', 'multi_callback')
    attr: 'name'
    output: '[base]\nasync = True\nbandwidth = 0\nbase_persistdir = /var/lib/yum/repos/x86_64/7\nbaseurl = http://ftp.stu.edu.tw/Linux/CentOS/7.3.1611/os/x86_64/,\n   http://ftp.isu.edu.tw/pub/Linux/CentOS/7.3.1611/os/x86_64/,\n   http://ftp.tc.edu.tw/Linux/CentOS/7.3.1611/os/x86_64/,\n   http://centos.cs.nctu.edu.tw/7.3.1611/os/x86_64/,\n   http://ftp.yzu.edu.tw/Linux/CentOS/7.3.1611/os/x86_64/,\n   http://ftp.ksu.edu.tw/pub/CentOS/7.3.1611/os/x86_64/,\n   http://ftp.twaren.net/Linux/CentOS/7.3.1611/os/x86_64/,\n   http://mirrors.sohu.com/centos/7.3.1611/os/x86_64/,\n   http://mirrors.cn99.com/centos/7.3.1611/os/x86_64/,\n   http://mirrors.njupt.edu.cn/centos/7.3.1611/os/x86_64/\ncache = 0\ncachedir = /var/cache/yum/x86_64/7/base\ncheck_config_file_age = True\ncompare_providers_priority = 80\ncost = 1000\ndeltarpm_metadata_percentage = 100\ndeltarpm_percentage = \nenabled = True\nenablegroups = True\nexclude = \nfailovermethod = priority\nftp_disable_epsv = False\ngpgcadir = /var/lib/yum/repos/x86_64/7/base/gpgcadir\ngpgcakey = \ngpgcheck = True\ngpgdir = /var/lib/yum/repos/x86_64/7/base/gpgdir\ngpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7\nhdrdir = /var/cache/yum/x86_64/7/base/headers\nhttp_caching = all\nincludepkgs = \nip_resolve = \nkeepalive = True\nkeepcache = False\nmddownloadpolicy = sqlite\nmdpolicy = group:small\nmediaid = \nmetadata_expire = 21600\nmetadata_expire_filter = read-only:present\nmetalink = \nminrate = 0\nmirrorlist = http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock\xef\xbc\x86cc=tw\nmirrorlist_expire = 86400\nmirrorlist_file = /var/cache/yum/x86_64/7/base/mirrorlist.txt\n'
    
    ? file icon backtrace (3,315 bytes) 2017-05-18 08:26 +
  • ? file icon environ (2,207 bytes) 2017-05-18 08:26 -
    PERL_MM_OPT=INSTALL_BASE=/root/perl5
    LESSOPEN=||/usr/bin/lesspipe.sh %s
    PERL_LOCAL_LIB_ROOT=:/root/perl5
    LOGNAME=root
    USER=root
    PATH=/usr/lib64/qt-3.3/bin:/root/perl5/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
    XDG_VTNR=2
    HOME=/root
    QT_PLUGIN_PATH=/usr/lib64/kde4/plugins:/usr/lib/kde4/plugins
    LANG=en_US.UTF-8
    QTLIB=/usr/lib64/qt-3.3/lib
    TERM=linux
    SHELL=/bin/bash
    QTINC=/usr/lib64/qt-3.3/include
    HISTSIZE=1000
    XDG_RUNTIME_DIR=/run/user/0
    KDEDIRS=/usr
    QT_GRAPHICSSYSTEM_CHECKED=1
    XDG_SESSION_ID=1
    _=/bin/yum
    PERL5LIB=/root/perl5/lib/perl5:
    OLDPWD=/etc
    HOSTNAME=localhost.localdomain
    HISTCONTROL=ignoredups
    SHLVL=1
    PWD=/etc/yum.repos.d
    PERL_MB_OPT=--install_base /root/perl5
    MAIL=/var/spool/mail/root
    LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=01;36:*.flac=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.axa=01;36:*.oga=01;36:*.spx=01;36:*.xspf=01;36:
    QTDIR=/usr/lib64/qt-3.3
    XDG_SEAT=seat0
    
    ? file icon environ (2,207 bytes) 2017-05-18 08:26 +
  • ? file icon machineid (135 bytes) 2017-05-18 08:26 -
    systemd=90f275f5d0924d1e8d17c60a3dd5aeec
    sosreport_uploader-dmidecode=2d7092b7eab39c86cd68635b6d4b8c751f664c273efbdeec028516267affd2ed
    
    ? file icon machineid (135 bytes) 2017-05-18 08:26 +

-Relationships
+Relationships

-Notes

~0030228

mstolle (reporter)

File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 527, in dump

The following lines should solve the problem. Typical Python-Unicode Problem.

if isinstance(res, unicode):
   res = res.encode("utf-8")
output = output + '%s = %s\n' % (attr, res)
+Notes

-Issue History
Date Modified Username Field Change
2017-05-18 08:26 MikeWu New Issue
2017-05-18 08:26 MikeWu File Added: backtrace
2017-05-18 08:26 MikeWu File Added: environ
2017-05-18 08:26 MikeWu File Added: machineid
2017-09-27 12:58 mstolle Note Added: 0030228
+Issue History