ERF12-2530 [ProxyAPI::ProxyException]: Unable to detect features ([Net::HTTPServerException]: 403 "Forbidden") when installing a Red Hat Capsule server.

Solution Verified - Updated -

Environment

  • Red Hat Satellite 6
  • Red Hat Capsule 6

Issue

  • Capsule installation is failing with the below error:
2021-09-13 05:48:36 [ERROR ] [configure] /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[capsule.example.com]/ensure: change from 'absent' to 'present' failed: Proxy capsule.example.com cannot be registered: Unable to communicate with the Capsule: ERF12-2530 [ProxyAPI::ProxyException]: Unable to detect features ([Net::HTTPServerException]: 403 "Forbidden") for Capsule https://capsule.example.com:9090/v2/features Please check the Capsule is configured and running on the host.

Resolution

  • Check if any proxy is set on the Satellite server:
# hammer settings list | grep -i http_proxy
  • Exclude capsule server from the proxy so Satellite can reach the capsule server:
# hammer settings set --name=http_proxy_except_list --value=[capsule.example.com]

Root Cause

  • Satellite server has proxy set which was restricting the communication from the Satellite server to the capsule server.
  • Exclude capsule server from the proxy so Satelite can communicate with capsule server.

Diagnostic Steps

  • Following error observed in /var/log/foreman-installer/capsule.log file on the capsule server:
2021-09-13 05:48:36 [ERROR ] [configure] Proxy capsule.example.com cannot be registered: Unable to communicate with the Capsule: ERF12-2530 [ProxyAPI::ProxyException]: Unable to detect features ([Net::HTTPServerException]: 403 "Forbidden") for Capsule https://capsule.example.com:9090/v2/features Please check the Capsule is configured and running on the host.
2021-09-13 05:48:36 [ERROR ] [configure] /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[capsule.example.com]/ensure: change from 'absent' to 'present' failed: Proxy capsule.example.com cannot be registered: Unable to communicate with the Capsule: ERF12-2530 [ProxyAPI::ProxyException]: Unable to detect features ([Net::HTTPServerException]: 403 "Forbidden") for Capsule https://capsule.example.com:9090/v2/features Please check the Capsule is configured and running on the host.
  • Following errors are observed on the Satellite server /var/log/foreman/production.log file:
2021-09-13T04:08:39 [I|app|d67f8078] Authorized user foreman_api_admin(API Admin)
2021-09-13T04:08:39 [I|app|d67f8078] (RestClient) Proxying request to satellite.example.com via http://proxy.example.com:8080
2021-09-13T04:08:39 [E|app|d67f8078] Unprocessable entity SmartProxy (id: new):
 d67f8078 |   Unable to communicate with the Capsule: ERF12-2530 [ProxyAPI::ProxyException]: Unable to detect features ([Net::HTTPServerException]: 403 "Forbidden") for Capsule https://capsule.example.com:9090/v2/features
 d67f8078 |   Please check the Capsule is configured and running on the host.
 d67f8078 |

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