While subscribing channel to a system using "rhn-channel" the task fails with a "exceptions.TypeError" message ?

Solution Verified - Updated -

Issue

  • rhn-channel command fails with following message:
[root@testsystem ~]# rhn-channel --add --channel=rhel-x86_64-server-6-rhevm-3
Username: my username   
Password: 
An error has occurred:
File "/usr/sbin/rhn-channel", line 164, in <module>
    systemExit(1, e)
  File "/usr/sbin/rhn-channel", line 46, in systemExit
    sys.stderr.write(rhncli.utf8_encode(msg)+'\n')
<type 'exceptions.TypeError'>: unsupported operand type(s) for +: 'CommunicationError' and 'str'

Environment

  • Red Hat Enterprise Linux
  • rhn-channel

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

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