How to configure HTTP proxy for Remote Host Configuration (rhc)?

Solution Verified - Updated -

Issue

  • How to configure proxy setting for rhcd service?
  • Remote Host Configuration (rhc) service is not using the proxy and failing with cannot connect to broker: network Error:-

    [root@vm-virtwho ~]# systemctl status rhcd
    ● rhcd.service - Red Hat connector daemon
       Loaded: loaded (/usr/lib/systemd/system/rhcd.service; enabled; vendor preset: disabled)
       Active: failed (Result: exit-code) since Wed 2023-02-22 14:26:53 GMT; 25s ago
         Docs: https://github.com/redhatinsights/yggdrasil
      Process: 58902 ExecStart=/usr/sbin/rhcd (code=exited, status=1/FAILURE)
     Main PID: 58902 (code=exited, status=1/FAILURE)
    
    Feb 22 14:26:23 localhost systemd[1]: Started Red Hat connector daemon.
    Feb 22 14:26:53 localhost rhcd[58902]: cannot connect to broker: network Error :>
    Feb 22 14:26:53 localhost systemd[1]: rhcd.service: Main process exited, code=ex>
    Feb 22 14:26:53 localhost systemd[1]: rhcd.service: Failed with result 'exit-cod>
    

Environment

  • Remote Host Configuration(rhc)
  • Red Hat Enterprise Linux
  • Red Hat Insights

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content