"unexpected keyword argument 'timeout'" error in yum client after Satellite 5.6 update

Solution Unverified - Updated -

Environment

  • Red Hat Enterprise Linux 5
  • rhnlib-2.5.23-1.el5.noarch
  • Red Hat Satellite 5.6

Issue

  • after upgrading Satellite server to Satellite 5.6, and then updating the packages on a Red Hat Enterprise Linux 5 server, yum no longer works:
# yum repolist
Loaded plugins: downloadonly, rhnplugin, security
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 157, in main
    base.getOptionsConfig(args)
  File "/usr/share/yum-cli/cli.py", line 187, in getOptionsConfig
    self.conf
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 665, in <lambda>
    conf = property(fget=lambda self: self._getConfig(),
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 254, in _getConfig
    self.plugins.run('init')
  File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 179, in run
    func(conduitcls(self, self.base, conf, **kwargs))
  File "/usr/lib/yum-plugins/rhnplugin.py", line 125, in init_hook
    login_info = up2dateAuth.getLoginInfo(timeout=timeout)
  File "/usr/share/rhn/up2date_client/up2dateAuth.py", line 219, in getLoginInfo
    login(timeout=timeout)
  File "/usr/share/rhn/up2date_client/up2dateAuth.py", line 170, in login
    server = rhnserver.RhnServer(timeout=timeout)
  File "/usr/share/rhn/up2date_client/rhnserver.py", line 155, in __init__
    self._server = rpcServer.getServer(timeout=timeout)
  File "/usr/share/rhn/up2date_client/rpcServer.py", line 156, in getServer
    timeout=timeout)
TypeError: __init__() got an unexpected keyword argument 'timeout'

Resolution

Root Cause

  • An unsupported version of rhnlib was installed on the client system (rhnlib-2.5.23-* is available from the Spacewalk project repository but not supported for use with Red Hat Satellite).

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.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.