subscription-manager register command fails with error [Errno 110] Connection timed out on Red Hat Satellite 6.

Solution Verified - Updated

Environment

  • Red Hat Satellite 6.x

Issue

  • While registering the client machine to satellite using subscription-manager register command, it fails with the below error:-

    [root@satellite]# subscription-manager register --username xxxxxxx --password xxxxx
    Network error, unable to connect to server. Please see /var/log/rhsm/rhsm.log for more information.  
    
  • In /var/log/rhsm/rhsm.log file,

    2019-04-18 10:39:14,592 [ERROR] @managercli.py:101 - Error during registration: [Errno 110] Connection timed out
    2019-04-18 10:39:14,592 [ERROR] @managercli.py:102 - [Errno 110] Connection timed out
    

Resolution

  • On Client machine,
    • Verify that the appropriate satellite server entries are in the /etc/hosts file.

    • Satellite server should be reachable from the client machine.

    • Correct DNS entries should be there in /etc/resolv.conf file and the satellite server should be resolving with the correct IP on the client machine.

    • Confirm no proxy environment variables are set on the client machine:-

      [root@client] # env | grep -i "proxy"
      

For more KB articles/solutions related to Red Hat Satellite 6.x Client Subscription Issues, please refer to the Red Hat Satellite Consolidated Troubleshooting Article for Red Hat Satellite 6.x Client Subscription Issues

Root Cause

  • The client machine is not able to resolve the hostname of satellite server due to connectivity issue.
  • Proxy environment variable being set or proxy related details updated wrongly in /etc/rhsm/rhsm.conf file on the client machine.

Diagnostic Steps

  • Verifying reachability of satellite server from the client machine,

    [root@client] # ping satellite.example.com
    
  • Check DNS settings on the client machine,

    [root@client] # cat /etc/resolv.conf
    [root@client] # dig satellite.example.com
    

Note:- Replace satellite.example.com with the satellite hostname

SBR
Product(s)
Category

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.