REX jobs failing with Error initializing command: Errno::ECONNREFUSED - Connection refused.
Environment
- Red Hat Satellite 6.x
Issue
-
Executing REX jobs are failing with below error on the Dynflow Console:
proxy_task_id: 2a855d68-3abc-46d7-bdcd-a234878e15f3 proxy_output: result: - output_type: debug output: 'Error initializing command: Errno::ECONNREFUSED - Connection refused - connect(2) for 10.113.78.76:22' <<==== [IP of client machine on which the REX job is being scheduled] timestamp: 1570220598.1900868 runner_id: 6863688e-1ff4-4d4c-bca9-09b693a7f168 exit_status: EXCEPTION
-
When trying to execute the REX job on secondary interface of a content host, it fails with the following error in the Dynflow Console:
proxy_task_id: 1b23v1-3abc-23gf-bdcd-a283578e17f0 proxy_output: result: - output_type: debug Error initializing command: Errno::ECONNREFUSED - Connection refused - connect(2) for 192.xxx.0.xx:22 Exit status: EXCEPTION
Resolution
-
Enable the following setting from Red Hat Satellite GUI:
- Administer > Settings > RemoteExecution > Fallback to Any Capsule = yes
-
Re-run REX job.
OR
- The issue can be because of the failure in the DNS resolution of the secondary interface and thus it fallback to the primary interface and fails to connect.
-
Enable the following setting from Red Hat Satellite GUI:
- Administer > Settings > RemoteExecution > Connect by IP = yes
-
Re-run REX job.
- Setting
Connect by IP
toyes
in Red Hat Satellite settings will allow the satellite to use the content host's IP to connect for the REX job and thus even if the DNS resolution fails, the satellite will connect with the content host using IP.
For more KB articles/solutions related to Red Hat Satellite 6.x Remote Execution Issues, please refer to the Red Hat Satellite Consolidated Troubleshooting Article for Red Hat Satellite 6.x Remote Execution Issues
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