After upgrading to up2date-4.5.5-5.el4, up2date fails with An error has occurred: exceptions.TypeError See /var/log/up2date for more informatio that only goes away if I comment out the repomd line in my /etc/sysconfig/rhn/sources. Debugging with pdb revealed that the error happens in the call to listAllPackages on line 240 of /usr/share/rhn/up2date_client/rpmSource.py. Namely: > /usr/share/rhn/up2date_client/rpmSource.py(239)listAllPackages() -> source = self.metainfo[source_key] (Pdb) p source_key 'repomd' (Pdb) p source <up2date_client.rpmSource.DiskCache instance at 0xb77aa20c> (Pdb) n > /usr/share/rhn/up2date_client/rpmSource.py(240)listAllPackages() -> packageList = source.listAllPackages(channel, (Pdb) p source <up2date_client.repoBackends.repomdRepo.RepomdDiskCache instance at 0xb77aa2cc> (Pdb) s > /usr/share/rhn/up2date_client/rpmSource.py(241)listAllPackages() -> msgCallback, progressCallback) (Pdb) s TypeError: 'listAllPackages() takes exactly 1 argument (4 given)' > /usr/share/rhn/up2date_client/rpmSource.py(241)listAllPackages() -> msgCallback, progressCallback)
Please attach your /etc/sysconfig/rhn/sources file, as well as your /var/log/up2date log for diagnosis.
(In reply to comment #1) > Please attach your /etc/sysconfig/rhn/sources file I see the error with just up2date default repomd none none or up2date default repomd atrpms-el4 http://dl.atrpms.net/el4-i386/atrpms/stable (it does not seem to matter what I put after the "repomd") > as well as your /var/log/up2date log for diagnosis. Will do.
Created attachment 155176 [details] /var/log/up2date
fixed.. we needed allavailablepackages only for scheduled actions .. should be fixed now
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2007-0815.html