ER12-2530 No route to host error on smarr proxy

Problem:
Error when registering external smart proxy to foreman UI.

Expected outcome:
Able to see external smart proxy in Foreman UI

Foreman and Proxy versions:
foreman-3.4 smart proxy-3.4

Foreman and Proxy plugin versions:
foreman 3.4 katello 4.6

Distribution and version:
Rocky Linux 8.6

Other relevant data:
2022-11-08 16:15:54 [ERROR ] [configure] Error making POST request to Foreman at https://tomtit.url3.net/api/v2/smart_proxies: Unable to communicate with the proxy: ERF12-2530 [ProxyAPI::ProxyException]: Unable to detect features ([RestClient::Exceptions::OpenTimeout]: Timed out connecting to server) for proxy https://nestor.url3.net:9090/v2/features Please check the proxy is configured and running on the host.
2022-11-08 16:15:54 [ERROR ] [configure] /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[nestor.url3.net]/ensure: change from ‘absent’ to ‘present’ failed: Error making POST request to Foreman at https://tomtit.url3.net/api/v2/smart_proxies: Unable to communicate with the proxy: ERF12-2530 [ProxyAPI::ProxyException]: Unable to detect features ([RestClient::Exceptions::OpenTimeout]: Timed out connecting to server) for proxy https://nestor.url3.net:9090/v2/features Please check the proxy is configured and running on the host.
2022-11-08 16:15:56 [NOTICE] [configure] System configuration has finished.

Command use when generating cert.tar file in foreman server:
foreman-proxy-certs-generate --foreman-proxy-fqdn smartproxy.example.com --certs-tar /root/smart-proxy_cert/smart-proxy_certs.tar

Command use when installing smart proxy feature on smart proxy base server
foreman-installer
–scenario foreman-proxy-content
–certs-tar-file “/root/smart-proxy_certs.tar”
–foreman-proxy-register-in-foreman “false”
–foreman-proxy-foreman-base-url “foreman url”
–foreman-proxy-trusted-hosts “foreman hostname”
–foreman-proxy-trusted-hosts “smart proxy hostname”
–foreman-proxy-oauth-consumer-key “oauth-consumer-key”
–foreman-proxy-oauth-consumer-secret “oauth-consumer-secret”

Also tried registration via foreman UI

Hi,

from the error messages you provided, it looks like you have a network connectivity issue from your forman to your smart-proxy server. If I had to guess, it would assume some firewall problem, but it might be any kind of network problem.
You should make sure that:

  • Port 9090 on your Proxy server is not blocked by a firewall from your Foreman server
  • Routing is properly configured between your proxy and the Foreman server
  • Check network connectivity is properly working on both systems.

Hope this helps.
Regards

Another suggestion what could be wrong as I see you did not give a port in the URL, so it is likely you forgot about the port (normally it is 8443 or 9090, not 443).

Thanks @Dirk @areyus. Able to connect by allowing port 9090.

Glad it worked, please mark either Dirk’s or my answer as solution so other forum members can easily see this issue is resolved :slight_smile: