Bug 205724

Summary: up2date fails with expat error and python stacktrace
Product: Red Hat Enterprise Linux 4 Reporter: Klaus Ethgen <Klaus+rhbz>
Component: up2dateAssignee: Bret McMillan <bretm>
Status: CLOSED DUPLICATE QA Contact: Brandon Perkins <bperkins>
Severity: urgent Docs Contact:
Priority: medium    
Version: 4.3   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-05-22 15:34:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Klaus Ethgen 2006-09-08 08:51:09 UTC
Description of problem:
On one of our AS4 servers I get the following error trying to update the system
with "up2date -u":

xxxxxxx:~# up2date -u

Fetching Obsoletes list for channel: rhel-i386-as-4...

Fetching rpm headers...
An error has occurred:
xml.parsers.expat.ExpatError
See /var/log/up2date for more information

In /var/log/up2date I find the following boring and useless python error
message:
---
[Fri Sep  8 10:42:07 2006] up2date updating login info
[Fri Sep  8 10:42:07 2006] up2date logging into up2date server
[Fri Sep  8 10:42:07 2006] up2date successfully retrieved authentication token 
from up2date server
[Fri Sep  8 10:42:07 2006] up2date availablePackageList from network
[Fri Sep  8 10:42:09 2006] up2date   File "/usr/sbin/up2date", line 1288, in ?
    sys.exit(main() or 0)
   File "/usr/sbin/up2date", line 806, in main
    fullUpdate, dryRun=options.dry_run))
   File "/usr/sbin/up2date", line 1126, in batchRun
    batch.init()
   File "/usr/share/rhn/up2date_client/up2dateBatch.py", line 65, in init
    self.__findPackagesToUpdate()
   File "/usr/share/rhn/up2date_client/up2dateBatch.py", line 112, in 
__findPackagesToUpdate
    self.availableUpdates = plist.getPackagesToInstall()
   File "/usr/share/rhn/up2date_client/packageList.py", line 682, in 
getPackagesToInstall
    result = self.__skipPackages(result)
   File "/usr/share/rhn/up2date_client/packageList.py", line 711, in 
__skipPackages
    packageList = self.__skipFiles(packageList)
   File "/usr/share/rhn/up2date_client/packageList.py", line 732, in __skipFiles
    ignoreMsgCallback = self.ignoreMsgCallback)
   File "/usr/share/rhn/up2date_client/packageList.py", line 771, in 
buildHeaderList
    hdr = headerList[pkg]
   File "/usr/share/rhn/up2date_client/headers.py", line 37, in __getitem__
    self.__retrievePackage(item)
   File "/usr/share/rhn/up2date_client/headers.py", line 42, in 
__retrievePackage
    hdr, sourceType = rpcServer.doCall(self.repos.getHeader, item)
   File "/usr/share/rhn/up2date_client/rpcServer.py", line 236, in doCall
    ret = apply(method, args, kwargs)
   File "/usr/share/rhn/up2date_client/repoDirector.py", line 33, in getHeader
    return self.handlers[channel['type']].getHeader(pkg, msgCallback, 
progressCallback)
   File "/usr/share/rhn/up2date_client/rpmSource.py", line 213, in getHeader
    header = source.getHeader(pkg, progressCallback = progressCallback)
   File "/usr/share/rhn/up2date_client/repoBackends/up2dateRepo.py", line 152, 
in getHeader
    fd = self.s.getPackageHeader(channel, filename)
   File "/usr/lib/python2.3/site-packages/rhn/rpclib.py", line 606, in __call__
    result = self._send(self._name, args)
   File "/usr/lib/python2.3/site-packages/rhn/rpclib.py", line 319, in _request
    request, verbose=self._verbose)
   File "/usr/lib/python2.3/site-packages/rhn/transports.py", line 185, in 
request
    return self._process_response(fd, connection)
   File "/usr/lib/python2.3/site-packages/rhn/transports.py", line 213, in 
_process_response
    return self.parse_response(fd)
   File "/usr/lib/python2.3/site-packages/rhn/transports.py", line 236, in 
parse_response
    p.close()
   File "/usr/lib/python2.3/xmlrpclib.py", line 531, in close
    self._parser.Parse("", 1) # end of data

---

I also tried to uninstall and reinstall up2date and rhnlib and also
reregistering the machine new on the satellite.

As you might expect, this is a very urgent issue as this machine is a important
server in our infrastructure and fully connected to the internet! There are
several high security bugs open which cannot applied!


Version-Release number of selected component (if applicable):
up2date-4.4.69-25
rhnlib-1.8.7-4


How reproducible:
See above.

Actual results:
See above.

Expected results:
Well, of course the update...

Comment 1 Klaus Ethgen 2006-09-12 08:53:13 UTC
Seems to be a bug of our satelite server. Seems to be a corrupt database there.


Comment 2 Red Hat Bugzilla 2007-04-12 01:11:27 UTC
User bnackash's account has been closed

Comment 3 Todd Sanders 2007-05-22 15:34:58 UTC

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