Not able to register the system on satellite 5.x
Issue
- Not able to register the system on satellite 5.x
- When trying to register, it throw following error:-
# rhnreg_ks --activationkey=<activation-key> --serverUrl=<satellite.example.com> --force
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/share/rhn/up2date_client/
", line 234, in exceptionHandler
sys.stderr.write(utf8_encode(_("An error has occurred:") + "\n"))
File "/usr/share/rhn/up2date_client/
", line 72, in utf8_encode
return(i18n.bstr(msg))
File "/usr/lib/python2.6/site-packages/rhn/
", line 48, in bstr
return str(obj.encode('utf8', errors='ignore'))
TypeError: encode() takes no keyword arguments
Environment
- Red Hat Satellite 5.x
- Red Hat Enterprise Linux 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.