rhn-satellite-activate or rhn-channel operations fail with "socket.gaierror:"

Solution Verified - Updated -


  • Running the command rhn-satellite-activate after updating rhn.conf with the proxy infocauses the following error message:
# rhn-satellite-activate --rhn-cert=/path/to/cert  
RHN_PARENT: satellite.rhn.redhat.com  

ERROR: unhandled exception occurred:  
socket.gaierror: (-2, 'Name or service not known')
  • running rhn-channel --available-channels or rhn-channel -L results in this traceback:
Username: *exampleuser*  

Traceback (most recent call last):  
    File "/usr/sbin/rhn-channel", line 145, in <module>  
    File "/usr/sbin/rhn-channel", line 137, in main  
        channels = get\_available\_channels(OPTIONS.user, OPTIONS.password)  
    File "/usr/lib64/python2.6/httplib.py", line 1112, in connect  
        sock = socket.create_connection((self.host, self.port), self.timeout)  
    File "/usr/lib64/python2.6/socket.py", line 553, in create_connection  
        for res in getaddrinfo(host, port, 0, SOCK_STREAM):  
socket.gaierror: [Errno -3] Temporary failure in name resolution


  • Red Hat Satellite or RHN Classic

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