Why command 'rhn-channel -L' fails with '<type 'exceptions.TypeError'>: Parse() argument 1 must be string or read-only buffer, not None.' ?
Environment
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 5.8 and later
- rhn-channel
Issue
- Execution of
rhn-channel -L
command fails with
<type 'exceptions.TypeError'>: Parse() argument 1 must be string or read-only buffer, not None
# rhn-channel -L
Username:
Password:
Ein Fehler trat auf:
<type 'exceptions.TypeError'>
up2date
Traceback (most recent call last):
File "/usr/sbin/rhn-channel", line 176, in <module>
main()
File "/usr/sbin/rhn-channel", line 167, in main
channels = get_available_channels(OPTIONS.user, OPTIONS.password)
File "/usr/sbin/rhn-channel", line 106, in get_available_channels
system_id = re.sub('^ID-', '', rpclib.xmlrpclib.loads(up2dateAuth.getSystemId())[0][0]['system_id'])
File "/usr/lib64/python2.6/xmlrpclib.py", line 1182, in loads
p.feed(data)
File "/usr/lib64/python2.6/xmlrpclib.py", line 601, in feed
self._parser.Parse(data, 0)
<type 'exceptions.TypeError'>: Parse() argument 1 must be string or read-only buffer, not None
Resolution
- The system is not registered with
RHN Classic
, to userhn-channel -L
make sure that system is registered only using RHN Classic.
Root Cause
- The system is not registered with
RHN Classic
, to userhn-channel -L
make sure that system is registered only using RHN Classic.
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