[Satellite 6.11] REX job fails with "Initialization error: RestClient::NotFound - 404 Not FoundError loading data from Capsule: NoMethodError - undefined method `code' for "404 Not Found"

Solution Verified - Updated

Environment

  • Red Hat Satellite 6.11
  • Red Hat Capsule 6.10

Issue

  • Remote Execution (REX) job from Satellie fails with "Initialization error: RestClient::NotFound - 404 Not FoundError loading data from Capsule: NoMethodError - undefined method `code' for "404 Not Found"
 1:Initialization error: RestClient::NotFound - 404 Not Found
 2:Initialization error: RestClient::NotFound - 404 Not Found
 3:Initialization error: RestClient::NotFound - 404 Not Found
 4:Initialization error: RestClient::NotFound - 404 Not FoundError loading data from Capsule: NoMethodError - 
 undefined method `code' for "404 Not Found":String
 5:Did you mean?  encode1:Initialization error: 

Resolution

or

  • Temporary Workaroung to use only Satellite for the REX
Disable Remote execution feature on the capsule

# satellite-installer --foreman-proxy-plugin-remote-execution-ssh-enabled false
Change the REX config via the web UI

Web ui, Administer, Remote Execution, 'Fallback to Any capsule' to 'yes', 'Enable Global Capsule' to 'No'

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

Root Cause

Diagnostic Steps

  • Run REX and it will fails with the below:
 1:Initialization error: RestClient::NotFound - 404 Not Found
 2:Initialization error: RestClient::NotFound - 404 Not Found
 3:Initialization error: RestClient::NotFound - 404 Not Found
 4:Initialization error: RestClient::NotFound - 404 Not FoundError loading data from Capsule: NoMethodError - 
 undefined method `code' for "404 Not Found":String
 5:Did you mean?  encode
SBR
Product(s)
Category

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.