Python traceback from yum update on Satellite client

Solution Unverified - Updated -

Issue

  • I get a GLib-Warning and python error when attempting to run yum update on libstdc++.x86_64yum update libstdc++.x86_64 gives something like this
    Traceback (most recent call last):
     File "/usr/bin/yum", line 29, in ?
       yummain.user_main(sys.argv[1:], exit_code=True)
     File "/usr/share/yum-cli/yummain.py", line 309, in user_main
       errcode = main(args)
     File "/usr/share/yum-cli/yummain.py", line 219, in main
       (result, resultmsgs) = base.buildTransaction()
     File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 732, in buildTransaction
       (rescode, restring) = self.resolveDeps()
     File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 707, in resolveDeps
       for po, dep in self._checkFileRequires():
     File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 946, in _checkFileRequires
       if not self.tsInfo.getOldProvides(filename) and not self.tsInfo.getNewProvides(filename):
     File "/usr/lib/python2.4/site-packages/yum/transactioninfo.py", line 424, in getNewProvides
       for pkg, hits in self.pkgSack.getProvides(name, flag, version).iteritems():
     File "/usr/lib/python2.4/site-packages/yum/packageSack.py", line 327, in getProvides
       return self._computeAggregateDictResult("getProvides", name, flags, version)
     File "/usr/lib/python2.4/site-packages/yum/packageSack.py", line 497, in _computeAggregateDictResult
       sackResult = apply(method, args)
     File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 883, in getProvides
       return self._search("provides", name, flags, version)
     File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 44, in newFunc
       return func(*args, **kwargs)
     File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 859, in _search
       for pkg in self.searchFiles(name, strict=True):
     File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 44, in newFunc
       return func(*args, **kwargswhere
    <channel id> is the id of the Red Hat Enterprise Linux (v. 5 for
    64-bit x86_64) channel. You can find the id from the web UI by clicking
    on Channels >  Red Hat Enterprise Linux (v. 5 for 64-bit x86_64).
    The channel id is the number at the very end of the URL displayed in
    your browser, for example the number 201 in the following:
    
    https://<satellite hostname>/network/software/channels/details.pxt?cid=201
    
    Once
    you clear out those files on the server, re-run "yum list" on the
    client. The first attempt will most likely fail, but this will trigger
    the server to regenerate those cache files. You can keep an eye on the
    contents of /var/cache/rhn on the server, and once those repomd files
    have been regenerated for that channel, try "yum list" on the client
    again. Let me know if you still get any errors at that point.)
     File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 560, in searchFiles
       self.populate(repo, mdtype='filelists')
     File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 190, in populate
       dobj = repo_cache_function(xml, csum)
     File "/usr/lib64/python2.4/site-packages/sqlitecachec.py", line 50, in getFilelists
       self.repoid))
    TypeError: Parsing filelists.xml error: Premature end of data in tag file line 2363202
    

Environment

  • Red Hat Network Satellite

  • Red Hat Enterprise Linux

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