Why does yum fail with python traceback KeyError '\x00' ?

Solution Verified - Updated -

Issue

  • Running any yum command fails with the traceback as follows.
abrt_version:   2.0.8
cmdline:        /usr/bin/python /usr/bin/yum -y update
event_log:      
executable:     /usr/bin/yum
kernel:         2.6.32-642.4.2.el6.x86_64
last_occurrence: 1472589843
pkg_arch:       noarch
pkg_epoch:      0
pkg_fingerprint: 199E 2F91 FD43 1D51
pkg_name:       yum
pkg_release:    75.el6_8
pkg_vendor:     Red Hat, Inc.
pkg_version:    3.2.29
time:           Fri 26 Aug 2016 11:37:45 AM PDT
uid:            0
username:       root

sosreport.tar.xz: Binary file, 1424660 bytes

backtrace:
:pickle.py:858:load:KeyError: '\x00'
:
:Traceback (most recent call last):
:  File "/usr/bin/yum", line 29, in <module>
:    yummain.user_main(sys.argv[1:], exit_code=True)
:  File "/usr/share/yum-cli/yummain.py", line 298, in user_main
:    errcode = main(args)
:  File "/usr/share/yum-cli/yummain.py", line 115, in main
:    base.getOptionsConfig(args)
:  File "/usr/share/yum-cli/cli.py", line 229, in getOptionsConfig
:    self.conf
:  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 911, in <lambda>
:    conf = property(fget=lambda self: self._getConfig(),
:  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 363, in _getConfig
:    self.plugins.run('init')
:  File "/usr/lib/python2.6/site-packages/yum/plugins.py", line 184, in run
:    func(conduitcls(self, self.base, conf, **kwargs))
:  File "/usr/share/yum-plugins/rhnplugin.py", line 118, in init_hook
:    login_info = up2dateAuth.getLoginInfo(timeout=timeout)
:  File "/usr/share/rhn/up2date_client/up2dateAuth.py", line 219, in getLoginInfo
:    login(timeout=timeout)
:  File "/usr/share/rhn/up2date_client/up2dateAuth.py", line 167, in login
:    if readCachedLogin():
:  File "/usr/share/rhn/up2date_client/up2dateAuth.py", line 123, in readCachedLogin
:    data = pickle.load(pcklAuth)
:  File "/usr/lib64/python2.6/pickle.py", line 1370, in load
:    return Unpickler(file).load()
:  File "/usr/lib64/python2.6/pickle.py", line 858, in load
:    dispatch[key](self)
:KeyError: '\x00'
:
:Local variables in innermost frame:
:read: <built-in method read of file object at 0x1072930>
:self: <pickle.Unpickler instance at 0x10b7998>
:dispatch: {'': <function load_eof at 0x7f65cbeb8b18>, '\x80': <function load_proto at 0x7f65cbeb8b90>, '\x83': <function load_ext2 at 0x7f65cbeb9c80>, '\x82': <function load_ext1 at 0x7f65cbeb9c08>, '\x85': <function load_tuple1 at 0x7f65cbeb9668>, '\x84': <function load_ext4 at 0x7f65cbeb9cf8>, '\x87': <function load_tuple3 at 0x7f65cbeb9758>, '\x86': <function load_tuple2 at 0x7f65cbeb96e0>, '\x89': <function load_false at 0x7f65cbeb8d70>, '\x88': <function load_true at 0x7f65cbeb8de8>, '\x8b': <function load_long4 at 0x7f65cbeb91b8>, '\x8a': <function load_long1 at 0x7f65cbeb9140>, '\x81': <function load_newobj at 0x7f65cbeb9b18>, ')': <function load_empty_tuple at 0x7f65cbeb95f0>, '(': <function load_mark at 0x7f65cbeba5f0>, '.': <function load_stop at 0x7f65cbeba668>, '1': <function load_pop_mark at 0x7f65cbeb9f50>, '0': <function load_pop at 0x7f65cbeb9ed8>, '2': <function load_dup at 0x7f65cbeba050>, 'G': <function load_binfloat at 0x7f65cbeb92a8>, 'F': <function load_float at 0x7f65cbeb9230>, 'I': <function load_int at 0x7f65cbeb8e60>, 'K': <function load_binint1 at 0x7f65cbeb8f50>, 'J': <function load_binint at 0x7f65cbeb8ed8>, 'M': <function load_binint2 at 0x7f65cbeb9050>, 'L': <function load_long at 0x7f65cbeb90c8>, 'N': <function load_none at 0x7f65cbeb8cf8>, 'Q': <function load_binpersid at 0x7f65cbeb8c80>, 'P': <function load_persid at 0x7f65cbeb8c08>, 'S': <function load_string at 0x7f65cbeb9320>, 'R': <function load_reduce at 0x7f65cbeb9e60>, 'U': <function load_short_binstring at 0x7f65cbeb9500>, 'T': <function load_binstring at 0x7f65cbeb9398>, 'V': <function load_unicode at 0x7f65cbeb9410>, 'X': <function load_binunicode at 0x7f65cbeb9488>, ']': <function load_empty_list at 0x7f65cbeb97d0>, 'a': <function load_append at 0x7f65cbeba398>, 'c': <function load_global at 0x7f65cbeb9b90>, 'b': <function load_build at 0x7f65cbeba578>, 'e': <function load_appends at 0x7f65cbeba410>, 'd': <function load_dict at 0x7f65cbeb9938>, 'g': <function load_get at 0x7f65cbeba0c8>, 'i': <function load_inst at 0x7f65cbeb9a28>, 'h': <function load_binget at 0x7f65cbeba140>, 'j': <function load_long_binget at 0x7f65cbeba1b8>, 'l': <function load_list at 0x7f65cbeb98c0>, 'o': <function load_obj at 0x7f65cbeb9aa0>, 'q': <function load_binput at 0x7f65cbeba2a8>, 'p': <function load_put at 0x7f65cbeba230>, 's': <function load_setitem at 0x7f65cbeba488>, 'r': <function load_long_binput at 0x7f65cbeba320>, 'u': <function load_setitems at 0x7f65cbeba500>, 't': <function load_tuple at 0x7f65cbeb9578>, '}': <function load_empty_dictionary at 0x7f65cbeb9848>}
:key: '\x00'

Environment

  • Red Hat Enterprise Linux 6.8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content