Problem: Proxy sync’s fail with version 3.16 and 3.17
Expected outcome: Proxy sync’s need to complete successfully
Foreman and Proxy versions: 3.17.0
Foreman and Proxy plugin versions:
Foreman -
Content Version 3.4.0
Supported Content Types
ansible_collection
deb
docker
file
python
yum
PROXY -
Container_Gateway Version 3.4.2
Dynflow Version 0.9.4
Content Version 3.4.0
Supported Content Types
ansible_collection
deb
docker
file
python
yum
Registration Version 3.17.0
Script Version 0.11.7
Templates Version 3.17.0
Distribution and version: 3.17.0
Other relevant data:
After completing the upgrade to 3.17 on the Foreman and Proxy servers, we are getting the following errors during every attempt to sync the proxy…
In the Foreman UI:
Last sync failed: ERF12-2051 [ProxyAPI::ProxyException]: Unable to refresh host-repository mapping ([RestClient::InternalServerError]: 500 Internal Server Error) for proxy https://vm0dnfomadw6001.corp.chartercom.com:9090/container_gateway/host_repository_mapping
In the /var/log/foreman-proxy/proxy.log file:
2026-02-25T11:58:13 bd73d959 [I] Started PUT /container_gateway/host_repository_mapping/
2026-02-25T11:58:13 bd73d959 [W] Error processing request 'bd73d959-3e11-4dfd-acc3-629b159814ff: <NoMethodError>: undefined method `filter_map' for nil:NilClass
/usr/share/gems/gems/smart_proxy_container_gateway-3.4.2/lib/smart_proxy_container_gateway/container_gateway_main.rb:209:in `block in build_host_repository_mapping'
/usr/share/gems/gems/smart_proxy_container_gateway-3.4.2/lib/smart_proxy_container_gateway/container_gateway_main.rb:208:in `each'
/usr/share/gems/gems/smart_proxy_container_gateway-3.4.2/lib/smart_proxy_container_gateway/container_gateway_main.rb:208:in `flat_map'
/usr/share/gems/gems/smart_proxy_container_gateway-3.4.2/lib/smart_proxy_container_gateway/container_gateway_main.rb:208:in `build_host_repository_mapping'
/usr/share/gems/gems/smart_proxy_container_gateway-3.4.2/lib/smart_proxy_container_gateway/container_gateway_main.rb:193:in `update_host_repo_mapping'
/usr/share/gems/gems/smart_proxy_container_gateway-3.4.2/lib/smart_proxy_container_gateway/container_gateway_api.rb:273:in `block in <class:Api>'
So from my understanding, Foreman 3.16 has an issue (NotNullConstraintViolation) with the 3.4.1 version of container_gateway. Foreman 3.17 has a different issue (<NoMethodError>: undefined method `filter_map') with the 3.4.2 version of container_gateway.
Need help getting my Proxy sync's working again, please.
Thanks in advance for your support!