Project

General

Profile

Actions

Bug #25501

closed

Failed to upload to Foreman, saving in spool. Failed with: Net::ReadTimeout

Added by Ondřej Pražák over 6 years ago. Updated over 6 years ago.

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

Description

Description of problem:

OpenSCAP ARF report upload results in a somewhat ambiguous ReadTimeout error:

E, [2018-09-21T10:17:09.709192 ] ERROR -- : Failed to upload to Foreman, saving in spool. Failed with: Net::ReadTimeout
I, [2018-09-21T10:17:09.728357 ] INFO -- : 192.168.0.1 - - [21/Sep/2018:10:17:09 -0700] "POST /compliance/arf/28 HTTP/1.1" 200 - 70.2510

2018-09-21T10:17:11 [I|app|19be2] Parameters: {"callback"=>{"task_id"=>"db96e59e-9c20-4b91-8d23-a2623584f4e0", "step_id"=>3}, "data"=>{"result"=>[{"output_type"=>"stdout", "output"=>"DEBUG: running: oscap xccdf eval --results-arf /tmp/d20180921-211543-45jrjv/results.xml /var/lib/openscap/content/bbf01ea10e2d1d325d2966e58ea13c4de3fad921e425cc376fbb5728433ce9fe.xml\r\n", "timestamp"=>1537550046.5883553}, {"output_type"=>"stdout", "output"=>"DEBUG: running: /usr/bin/bzip2 /tmp/d20180921-211543-45jrjv/results.xml\r\n", "timestamp"=>1537550140.9453838}, {"output_type"=>"stdout", "output"=>"Uploading results to https://satellite.example.com:9090/compliance/arf/28\r\nUpload failed: Net::ReadTimeout\r\n", "timestamp"=>1537550217.9129632}], "runner_id"=>"78bb1e6e-0106-4ec8-84d0-ef8149dd4b23", "exit_status"=>4}, "task"=>{}}

The odd thing is that despite the errors, the ARF reports appear to have been successfully submitted.

Version-Release number of selected component (if applicable):

tfm-rubygem-foreman_openscap-0.10.2-1.el7sat.noarch
rubygem-smart_proxy_openscap-0.6.10-2.el7sat.noarch
rubygem-openscap-0.4.7-3.el7sat.noarch
puppet-foreman_scap_client-0.3.16-3.el7sat.noarch

Steps to Reproduce:

1. Upload the attached SCAP contents file
2. Configure OpenSCAP on Satellite
3. Run OpenSCAP scan

Actual results:

Upload failed: Net::ReadTimeout

Expected results:

No error.

Actions #1

Updated by The Foreman Bot over 6 years ago

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

Updated by Marek Hulán over 6 years ago

  • Subject changed from Failed to upload to Foreman, saving in spool. Failed with: Net::ReadTimeout to Failed to upload to Foreman, saving in spool. Failed with: Net::ReadTimeout
  • Fixed in Releases smart_proxy_openscap 0.7.1 added
Actions #3

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

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF