Foreman-installer failing when adding new feature

Hi,

I’m trying to add a new proxy plugin shellhooks, but foreman-installer is failing. I haven’t found too much information why it is failing. There is nothing in the proxy logs, even with debug enabled.

Foreman and Foreman Proxy 3.11.4 on Debian 11

foreman-installer logs look like that:

2024-11-15 03:47:47 [ERROR ] [configure] Proxy chc-prd-vforeman01.domain.com has failed to load one or more features (Shellhooks), check /var/log/foreman-proxy/proxy.log for configuration errors
2024-11-15 03:47:47 [ERROR ] [configure] /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[chc-prd-vforeman01.domain.com]/features: change from ["Ansible", "DNS", "Discovery", "Dynflow", "HTTPBoot", "Logs", "Puppet", "Puppet CA", "Script", "TFTP"] to ["Ansible", "DNS", "Discovery", "Dynflow", "HTTPBoot", "Logs", "Puppet", "Puppet CA", "Script", "Shellhooks", "TFTP"] failed: Proxy chc-prd-vforeman01.domain.com has failed to load one or more features (Shellhooks), check /var/log/foreman-proxy/proxy.log for configuration errors
2024-11-15 03:47:49 [NOTICE] [configure] System configuration has finished.

Error 1: Puppet Foreman_smartproxy resource 'chc-prd-vforeman01.domain.com' failed. Logs:
  /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[chc-prd-vforeman01.domain.com]/before
    before to Cron[puppet]
    before to Service[puppet]
    before to Service[puppet-run.timer]
  /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[chc-prd-vforeman01.domain.com]
    Adding autorequire relationship with Anchor[foreman::service]
    Adding autorequire relationship with Anchor[foreman::providers::oauth]
    Starting to evaluate the resource (1689 of 1716)
    Evaluated in 0.36 seconds
  Foreman_smartproxy[chc-prd-vforeman01.domain.com](provider=rest_v3)
    Making get request to https://chc-prd-vforeman01.domain.com/api/v2/smart_proxies?search=name%3D%22chc-prd-vforeman01.domain.com%22
    Received response 200 from request to https://chc-prd-vforeman01.domain.com/api/v2/smart_proxies?search=name%3D%22chc-prd-vforeman01.domain.com%22
    Making put request to https://chc-prd-vforeman01.domain.com/api/v2/smart_proxies/1/refresh
    Received response 200 from request to https://chc-prd-vforeman01.domain.com/api/v2/smart_proxies/1/refresh
  /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[chc-prd-vforeman01.domain.com]/features
    change from ["Ansible", "DNS", "Discovery", "Dynflow", "HTTPBoot", "Logs", "Puppet", "Puppet CA", "Script", "TFTP"] to ["Ansible", "DNS", "Discovery", "Dynflow", "HTTPBoot", "Logs", "Puppet", "Puppet CA", "Script", "Shellhooks", "TFTP"] failed: Proxy chc-prd-vforeman01.domain.com has failed to load one or more features (Shellhooks), check /var/log/foreman-proxy/proxy.log for configuration errors

1 error was detected during installation.
Please address the errors and re-run the installer to ensure the system is properly configured.
Failing to do so is likely to result in broken functionality.

The full log is at /var/log/foreman-installer/foreman.log

Try running it in debug so that you have more information: foreman-installer --verbose-log-level DEBUG