Downloading the OpenSCAP HTML report from Red Hat Satellite Server fails for a host registered with the Red Hat Capsule Server.

Solution Verified - Updated -

Environment

  • Red Hat Satellite 6
  • Red Hat Capsule 6

Issue

  • Downloading the OpenSCAP HTML report from Red Hat Satellite Server WebUI fails for a host registered with the Red Hat Capsule Server.

    ERF12-1831 [ProxyAPI::ProxyException]: Unable to get HTML version of requested report from Capsule ([RestClient::InternalServerError]: 500 Internal Server Error) for Capsule https://satellite.example.com:9090/compliance/
    
  • Unable to read the full OpenSCAP report of a Content Host registered with Red Hat Capsule Server from Red Hat Satellite Server WebUI.

Resolution

  • Make sure that Red Hat Capsule is selected as OpenSCAP Capsule on the Red Hat Satellite Server.

    • Navigate to the path mentioned below on Red Hat Satellite WebUI to select the OpenSCAP capsule:
    Hosts >> All Hosts >> click on Edit button under Action Tab for the client >> Under General Tab select OpenSCAP Capsule  >> Ensure it is set to  Red Hat Capsule server.
    

For more KB articles/solutions related to Red Hat Satellite 6.x OpenSCAP Issues, please refer to the Red Hat Satellite Consolidated Troubleshooting Article for Red Hat Satellite 6.x OpenSCAP Issues

Root Cause

  • The report is available on the Capsule Server but was not being downloaded from the Red Hat Satellite Web UI since correct Red Hat Capsule server was not associated to the content host as OpenSCAP Capsule.

Diagnostic Steps

  • Foreman-tail logs prompt the error as mentioned below.

    E, [2018-12-03T12:24:14.219299 ] ERROR -- : Could not find requested file, Can't find path /var/lib/foreman-proxy/openscap/reports/arf/1dd8b5e1-2b43-4452-b07d-a813e21e9af9/20389/1543836123/3ac4d0c0d891db84c0835257bc5ed874f25937d1bb24cc308c66ba9e95b29fcb
    
  • Check and confirm the existence of file both on Red Hat Satellite Server and Red Hat Capsule Server :

    # ll /var/lib/foreman-proxy/openscap/reports/arf/1dd8b5e1-2b43-4452-b07d-a813e21e9af9/20389/
    

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