Red Hat Satellite 6 manifest refresh fails with Failed to open TCP connection to satellite.example.com:443 (getaddrinfo: Temporary failure in name resolution)
Environment
- Red Hat Satellite 6.5
Issue
- Red Hat Satellite
manifest refreshfails with "Failed to open TCP connection to satellite.example.com:443 (getaddrinfo: Temporary failure in name resolution)"
Resolution
-
Ensure 443 is white listed in firewall/proxy on Satellite server.
# telnet satellite.example.com 443 -
Ensure DNS resolution works in forwards and reverse way.
# nslookup satellite.example.com # nslookup 192.0.xxx.xxx -
Ensure proper hosts entry in
/etc/hostsfile on Satellite server.192.0.xxx.xxx satellite.example.com satellite
For more KB articles/solutions related to Red Hat Satellite 6.x Manifest Issues, please refer to the Consolidated Troubleshooting Article for Red Hat Satellite 6.x Manifest Issues
Root Cause
-
Satellite is not able to resolve FQDN of own which is causing manifest refresh to fail.
-
443 port is not opened in firewall on Satellite server.
Diagnostic Steps
-
While trying to refresh manifest from
Satellite WebUIbelow error is observed.Failed to open TCP connection to satellite.example.com:443 (getaddrinfo: Temporary failure in name resolution) -
In
/var/log/foreman/production.loglook for below error and traceback.2020-04-28T17:40:23 [E|kat|ce81144a] SocketError: Failed to open TCP connection to satellite.example.com:8443 (getaddrinfo: Temporary failure in name resolution) /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' /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-2.0.1/lib/restclient/request.rb:715:in `transmit' /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-2.0.1/lib/restclient/request.rb:145:in `execute' /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-2.0.1/lib/restclient/request.rb:52:in `execute' /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-2.0.1/lib/restclient/resource.rb:51:in `get' /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.10.0.58/app/lib/katello/resources/candlepin/proxy.rb:26:in `get'
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.