Disconnected Red Hat Satellite server complaints for failed to open tcp connection to subscription.rhsm.redhat.com:443 on GUI.

Solution Verified - Updated -

Environment

  • Red Hat Satellite up to 6.10

Issue

  • I see the following error on Red Hat Satellite's GUI:
- Content >  Subscriptions

error: failed to open tcp connection to subscription.rhsm.redhat.com:443 (getaddrinfo: Name or service not found)

Resolution

  • Verify if the following setting is enabled on GUI:
- Administer > Settings > Content > Disconnected mode > Yes
  • Restart services:
[root@disconnected_satellite ~]# foreman-maintain service restart

Diagnostic Steps

  • Errors as witnessed in /var/log/foreman/production.log:
2019-10-04T15:07:08 [E|app|fd3be587] SocketError: Failed to open TCP connection to subscription.rhsm.redhat.com:443 (getaddrinfo: Name or service not known)
/opt/rh/rh-ruby25/root/usr/share/ruby/net/http.rb:939:in `rescue in block in connect'
/opt/rh/rh-ruby25/root/usr/share/ruby/net/http.rb:936:in `block in connect'
/opt/rh/rh-ruby25/root/usr/share/ruby/timeout.rb:93:in `block in timeout'
/opt/rh/rh-ruby25/root/usr/share/ruby/timeout.rb:103:in `timeout'
/opt/rh/rh-ruby25/root/usr/share/ruby/net/http.rb:935:in `connect'
/opt/rh/rh-ruby25/root/usr/share/ruby/net/http.rb:920:in `do_start'
/opt/rh/rh-ruby25/root/usr/share/ruby/net/http.rb:909:in `start'

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.

Comments