Unable to register system on RHN: software updater fails with "TypeError: cannot marshal None unless allow_none is enabled" error

Solution Verified - Updated -

Issue

  • Unable to register the system on RHN
  • System registration fails with:
        [Mon Feb  1 16:19:25 2010] rhn_register 
        Traceback (most recent call last): 
          File "/usr/share/rhn/up2date_client/tui.py", line 1510, in _activate_hardware 
            hardwareInfo = hardware.get_hal_system_and_smbios() 
          File "/usr/share/rhn/up2date_client/hardware.py", line 863, in get_hal_system_and_smbios 
            props = computer.GetAllProperties() 
          File "/usr/lib64/python2.4/site-packages/dbus/proxies.py", line 25, in __call__ 
            ret = self._proxy_method (*args, **keywords) 
          File "/usr/lib64/python2.4/site-packages/dbus/proxies.py", line 102, in __call__ 
            reply_message = self._connection.send_with_reply_and_block(message, timeout) 
          File "dbus_bindings.pyx", line 455, in dbus_bindings.Connection.send_with_reply_and_block 
        dbus_bindings.DBusException: The name org.freedesktop.Hal was not provided by any .service files 

Software updater fails with "TypeError: cannot marshal None unless allow_none is enabled" error rhn_register fails with the following messages

[Mon Dec  7 18:47:57 2009] rhn_register 
Traceback (most recent call last):
  File "/usr/sbin/rhn_register", line 82, in ?
    app.run()
  File "/usr/share/rhn/up2date_client/rhncli.py", line 65, in run
    sys.exit(self.main() or 0)
  File "/usr/sbin/rhn_register", line 64, in main
    ui.main()
  File "/usr/share/rhn/up2date_client/tui.py", line 1721, in main
    tui.run()
  File "/usr/share/rhn/up2date_client/tui.py", line 1608, in run
    if self._show_subscription_window() == False:
  File "/usr/share/rhn/up2date_client/tui.py", line 1562, in _show_subscription_window
    self.password)
  File "/usr/share/rhn/up2date_client/rhnreg.py", line 588, in getRemainingSubscriptions
    smbios)
  File "/usr/share/rhn/up2date_client/rhnserver.py", line 50, in __call__
    return rpcServer.doCall(method, *args, **kwargs)
  File "/usr/share/rhn/up2date_client/rpcServer.py", line 199, in doCall
    ret = method(*args, **kwargs)
  File "/usr/lib/python2.4/xmlrpclib.py", line 1096, in __call__
    return self.__send(self.__name, args)
  File "/usr/share/rhn/up2date_client/rpcServer.py", line 38, in _request1
    ret = self._request(methodname, params)
  File "/usr/lib/python2.4/site-packages/rhn/rpclib.py", line 314, in _request
    request = self._req_body(params, methodname)
  File "/usr/lib/python2.4/site-packages/rhn/rpclib.py", line 222, in _req_body
    return xmlrpclib.dumps(params, methodname, encoding=self._encoding)
  File "/usr/lib/python2.4/xmlrpclib.py", line 1029, in dumps
    data = m.dumps(params)
  File "/usr/lib/python2.4/xmlrpclib.py", line 603, in dumps
    dump(v, write)
  File "/usr/lib/python2.4/xmlrpclib.py", line 615, in __dump
    f(self, value, write)
  File "/usr/lib/python2.4/xmlrpclib.py", line 619, in dump_nil
    raise TypeError, "cannot marshal None unless allow_none is enabled"
exceptions.TypeError: cannot marshal None unless allow_none is enabled

Environment

  • Red Hat Enterprise Linux (RHEL) Server 4
  • Red Hat Enterprise Linux (RHEL) Server 5
  • Red Hat Network (RHN)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content