rhn-satellite-activate または rhn-channel オペレーションが "socket.gaierror:" で失敗する

Solution Verified - Updated -

Issue

  • プロキシ情報で rhn.conf をアップデートした後に rhn-satellite-activate コマンドを実行すると、以下のエラーメッセージが発生します。
# rhn-satellite-activate --rhn-cert=/path/to/cert  
RHN_PARENT: satellite.rhn.redhat.com  

ERROR: unhandled exception occurred:  
[...]  
socket.SOCK_STREAM):  
socket.gaierror:(-2, 'Name or service not known')
  • rhn-channel --available-channels または rhn-channel -L を実行すると、以下のトレースバックになります。
Username:*exampleuser*  
Password:  

Traceback (most recent call last):  
    File "/usr/sbin/rhn-channel", line 145, in <module>  
        main()  
    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

Environment

  • Red Hat Satellite または RHN Classic

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.