When attempting to register a system to Red Hat Satellite or Capsule, the subscription-manager registration process may fail with a "Network error, unable to connect to server" message.

Solution Verified - Updated -

Issue

  • When attempting to register a system with Red Hat Satellite or Capsule using the subscription-manager command, the registration process may fail with the error message Network error, unable to connect to server.
  • The registration of a new virtual machine to the Red Hat Satellite 6 server cannot be completed.
  • Encountering certificate issues while attempting to establish a connection to our Red Hat Satellite 6 server.
  • Encountering a network error while attempting to register the host using subscription-manager.
  • The registration of the system to Red Hat Satellite or Capsule was unsuccessful, and the error message "Network error, unable to connect to server" was displayed by the subscription-manager command.

    #  subscription-manager register --org="Test" --activationkey="Test_AK"
    Network error, unable to connect to server. Please see /var/log/rhsm/rhsm.log for more information.
    
    2023-03-30 08:41:41,505 [ERROR] subscription-manager:11683:MainThread @managercli.py:218 - Error during registration: [Errno 104] Connection reset by peer
    2023-03-30 08:41:41,505 [ERROR] subscription-manager:11683:MainThread @managercli.py:219 - [Errno 104] Connection reset by peer
    File "/usr/lib64/python3.6/ssl.py", line 648, in do_handshake
    self._sslobj.do_handshake()
    ConnectionResetError: [Errno 104] Connection reset by peer
    
    2023-03-30 13:44:50,030 [ERROR] subscription-manager:639256:MainThread @managercli.py:218 - Error during registration: [Errno -2] Name or service not known
    2023-03-30 13:44:50,031 [ERROR] subscription-manager:639256:MainThread @managercli.py:219 - [Errno -2] Name or service not known
      File "/usr/lib64/python3.6/socket.py", line 704, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
     File "/usr/lib64/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
    
    2023-03-30 10:39:14,592 [ERROR] @managercli.py:101 - Error during registration: [Errno 110] Connection timed out
    2023-03-30 10:39:14,592 [ERROR] @managercli.py:102 - [Errno 110] Connection timed out
    
    2023-03-30 00:15:22,004 [ERROR] subscription-manager:5280:MainThread @managercli.py:217 - Error during registration: ('_ssl.c:602: The handshake operation timed out',)
    2023-03-30 00:15:22,005 [ERROR] subscription-manager:5280:MainThread @managercli.py:218 - ('_ssl.c:602: The handshake operation timed out',)
    
      File "/usr/lib64/python3.6/ssl.py", line 648, in do_handshake
    self._sslobj.do_handshake()
    ssl.SSLError: [SSL: NO_CIPHERS_AVAILABLE] no ciphers available (_ssl.c:897)
    

Environment

  • Red Hat Satellite 6
  • Red Hat Capsule 6
  • Red Hat Enterprise Linux

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