Unable to detect features ([Net::HTTPServerException]: 404 "Not Found") for Capsule https://[CAPSULE FQDN]:9090/v2/features Please check the Capsule is configured and running on the host.

Solution Verified - Updated -

Environment

  • Red Hat Satellite 6
  • Red Hat Satellite Capsule 6.

Issue

  • Installing new external capsule failed.
  • Connection failed with the external capsule.
[ERROR 2021-02-01T11:59:43 main]  /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[CAPSULE-FQDN]/ensure: change from 'absent' to 'present' failed: Proxy[CAPSULE-FQDN] cannot be registered: Unable to communicate with the Capsule: ERF12-2530 [ProxyAPI::ProxyException]: Unable to detect features ([Net::HTTPServerException]: 404 "Not Found") for Capsule https://[CAPSULE-FQDN]:9090/v2/features Please check the Capsule is configured and running on the host.

Resolution

1) Check if a proxy is set for all outgoing HTTP connections from Satellite:
Satellite webUI -> Administer -> Setting -> General -> HTTP(S) proxy

2) As workaround ,add the capsule FQDN/IP to "HTTP(S) proxy except hosts" from the satellite webUI:

Satellite webUI -> Administer -> Setting -> General -> HTTP(S) proxy except hosts

Root Cause

  • After adding/removing a proxy for all outgoing HTTP connections from Satellite, the satellite is still using the proxy for connections with the external capsule.

  • Bugzilla 1923962 has been created for tracking the issue.

Diagnostic Steps

  • On /var/log/foreman/production.log :
[ERROR 2021-02-01T11:59:43 main]  /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[CAPSULE-FQDN]/ensure: change from 'absent' to 'present' failed: Proxy[CAPSULE-FQDN] cannot be registered: Unable to communicate with the Capsule: ERF12-2530 [ProxyAPI::ProxyException]: Unable to detect features ([Net::HTTPServerException]: 404 "Not Found") for Capsule https://[CAPSULE-FQDN]:9090/v2/features Please check the Capsule is configured and running on the host.

2021-02-02T11:16:13 [I|app|c860285b] (RestClient) Proxying request to [CAPSULE FQDN] via https://[PROXY-IP]:[PROXY PORT]

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.