rhn-package-manager fails with a typeerror exception due to a bad number of arguments in _processfile() on a RHN connected RHN proxy

Solution Verified - Updated -

Environment

  • Red Hat Network Proxy 5.5 connected to RHN installed on Red Hat Enterprise Linux 6
  • rhnpush-5.5.65-5.el6sat.noarch installed

Issue

  • rhn-package-manager fails with a typeerror exception due to a bad number of arguments in _processfile() on a RHN connected RHN proxy
  • rhn-package-manager fails with
Connecting to https://xmlrpc.rhn.redhat.com/APP
Connecting to https://xmlrpc.rhn.redhat.com/XP
[...]
Traceback (most recent call last):
  File "/usr/bin/rhn_package_manager", line 28, in <module>
    rhn_package_manager.main()
  File "/usr/share/rhn/PackageManager/rhn_package_manager.py", line 125, in main
    upload.uploadHeaders()
  File "/usr/share/rhn/rhnpush/uploadLib.py", line 392, in uploadHeaders
    verbose=self.options.verbose, nosig=self.options.nosig)
  File "/usr/share/rhn/rhnpush/uploadLib.py", line 547, in _processBatch
    nosig=nosig)
  File "/usr/share/rhn/PackageManager/rhn_package_manager.py", line 263, in _processFile
    info = uploadLib.UploadClass._processFile(self, filename, relativeDir, source, nosig)
TypeError: _processFile() takes at most 4 arguments (5 given)

Resolution

Upgrade your proxy to 5.6 to apply the update of rhn-package-manager only available in that version :

# configure-proxy.sh

make sure to deploy a 5.6 proxy and answer the SSL questions as previously - the answers are all in /root/ssl-build/HOSTNAME/*.cnf

Root Cause

An update to rhn-push is incompatible with the version of rhn-package-manager included with proxy 5.5 and anterior.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments