[Spacewalk-list] upgrade-packages failed

Michael Mraka michael.mraka at redhat.com
Wed Feb 17 09:55:55 UTC 2010


Thomas Bendler wrote:
% Hi @all,

Hi Thomas,

% the upgrade-packages command from the upgrade guid 0.7 to 0.8 failed:
% 
% [root at sw ~]# update-packages --debug --verbose --db $(spacewalk-cfg-get
% default_db) --update-sha256
% Connecting to xxx/xxx at XXX
% Processing 5800 SHA256 capable packages
%          ________________________________________
% standby: error: rpmts_HdrFromFdno: MD5 digest: BAD
% Expected(1cb8ca3523b8f876f740cd5e5aacc697) !=
% (c38507a9b4d5824549b60d90c7b3dc15)
% Traceback (most recent call last):
%   File "/usr/bin/update-packages", line 102, in ?
%     sys.exit(abs(main() or 0))
%   File "/usr/bin/update-packages", line 92, in main
%     return updatePackages.main()
%   File "/usr/share/rhn/satellite_tools/updatePackages.py", line 86, in main
%     process_sha256_packages()
%   File "/usr/share/rhn/satellite_tools/updatePackages.py", line 314, in
% process_sha256_packages
%     header, payload_stream, header_start, header_end = \
%   File "/usr/share/rhn/server/rhnPackageUpload.py", line 296, in
% load_package
%     raise rhnFault(50, "Unable to load package", explain=0)
% common.rhnException.rhnFault: (50, 'Unable to load package', 'Invalid
% information uploaded to the server')
% [root at sw ~]#
% 
% Guess a corrupt package in my spacewalk channels is the root cause for this.
% What is the recommended procedure in such a case?
% /var/log/rhn/update-packages.
% log don't show up the corrupted package, so how can I find out which package
% has the bad header, think deleting it will solve this issue?

add

  Log.writeMessage("Package path %s" % old_abs_path)

to /usr/share/rhn/satellite_tools/updatePackages.py, line 313
and rerun update-packages once more with --debug.
Once you find and fix corrupted package run update-packages once again
to update the rest of the packages.

Regards,

--
Michael Mráka
Satellite Engineering, Red Hat




More information about the Spacewalk-list mailing list