Project

General

Profile

Actions

Bug #28251

closed

500 Internal Server Error while uploading report from proxy to satellite

Added by Marek Hulán over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1770433

Description of problem:

2019-11-09T00:11:27 [I|app|85ceb50b] Started POST "/api/v2/compliance/arf_reports/5bb15393-2e2d-4dd4-b8b5-743423a7cae2/1/1573276285" for IP at 2019-11-09 00:11:27 -0500
2019-11-09T00:11:28 [I|app|85ceb50b] Processing by Api::V2::Compliance::ArfReportsController#create as JSON
2019-11-09T00:11:28 [I|app|85ceb50b] Parameters: {"logs"=>"[FILTERED]", "digest"=>"ab63b6bc631f9e1efa7207699ac034ebfb6187094c8fa9678b91dc3388514f91", "metrics"=>{"passed"=>18, "failed"=>31, "othered"=>0}, "openscap_proxy_name"=>"satellite.example.com", "openscap_proxy_url"=>"https://satellite.example.com:9090", "apiv"=>"v2", "cname"=>"5bb15393-2e2d-4dd4-b8b5-743423a7cae2", "policy_id"=>"1", "date"=>"1573276285", "arf_report"=>{"logs"=>"[FILTERED]", "digest"=>"ab63b6bc631f9e1efa7207699ac034ebfb6187094c8fa9678b91dc3388514f91", "metrics"=>{"passed"=>18, "failed"=>31, "othered"=>0}, "openscap_proxy_name"=>"satellite.example.com", "openscap_proxy_url"=>"https://satellite.example.com:9090"}}
2019-11-09T00:11:28 [W|app|85ceb50b] Action failed
2019-11-09T00:11:28 [I|app|85ceb50b] Rendering api/v2/errors/custom_error.json.rabl within api/v2/layouts/error_layout
2019-11-09T00:11:28 [I|app|85ceb50b] Rendered api/v2/errors/custom_error.json.rabl within api/v2/layouts/error_layout (0.7ms)
2019-11-09T00:11:28 [I|app|85ceb50b] Completed 500 Internal Server Error in 64ms (Views: 1.5ms | ActiveRecord: 0.9ms)

Version-Release number of selected component (if applicable):
Satellite 6.7 snap 1

How reproducible:
always

Steps to Reproduce:
1. # foreman_scap_client 1
DEBUG: running: oscap xccdf eval --profile xccdf_org.ssgproject.content_profile_standard_customized --tailoring-file /var/lib/openscap/tailoring/0d87960defa6a38ec0ccbb32f317eb18950e29db3a5487ed08edac915c358405.xml --results-arf /tmp/d20191109-12473-98ibid/results.xml /var/lib/openscap/content/96c2a9d5278d5da905221bbb2dc61d0ace7ee3d97f021fccac994d26296d986d.xml
WARNING: This content points out to the remote resources. Use `--fetch-remote-resources' option to download them.
WARNING: Skipping https://www.redhat.com/security/data/oval/com.redhat.rhsa-RHEL7.xml.bz2 file which is referenced from XCCDF content
DEBUG: running: /usr/bin/env bzip2 /tmp/d20191109-12473-98ibid/results.xml
Uploading results to https://satellite.example.com:9090/compliance/arf/1
Report not uploaded from proxy to Foreman server, cause: Failed to upload to Foreman, saving in spool. Failed with: 500 "Internal Server Error"

Actual results:

Failed with: 500 "Internal Server Error"

Expected results:
Successful upload of arf reports.

Additional info:


Related issues 4 (0 open4 closed)

Related to OpenSCAP - Bug #28262: Internal Server Error while creating scap policy using hammerClosedOndřej PražákActions
Related to Foreman - Bug #28547: don't try to assign lone taxonomies for reportsClosedTomer BriskerActions
Related to OpenSCAP - Refactor #28609: Remove fix for skipping lone taxonomies assignmentClosedActions
Has duplicate OpenSCAP - Bug #28010: 500 Error uploading reports from proxyDuplicateActions
Actions #1

Updated by The Foreman Bot over 4 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Ondřej Pražák
  • Pull request https://github.com/theforeman/foreman_openscap/pull/425 added
Actions #2

Updated by Ondřej Pražák over 4 years ago

  • Related to Bug #28262: Internal Server Error while creating scap policy using hammer added
Actions #3

Updated by The Foreman Bot over 4 years ago

  • Fixed in Releases foreman_openscap 2.0.2 added
Actions #4

Updated by Ondřej Pražák over 4 years ago

  • Has duplicate Bug #28010: 500 Error uploading reports from proxy added
Actions #5

Updated by Ondřej Pražák over 4 years ago

  • Subject changed from 500 Internal Server Error while uploading report from proxy to satellite to 500 Internal Server Error while uploading report from proxy to satellite
  • Status changed from Ready For Testing to Closed
Actions #6

Updated by Tomer Brisker over 4 years ago

  • Related to Bug #28547: don't try to assign lone taxonomies for reports added
Actions #7

Updated by Ondřej Pražák over 4 years ago

  • Related to Refactor #28609: Remove fix for skipping lone taxonomies assignment added
Actions

Also available in: Atom PDF