Hi all,
I'm trying to update my server using the ./foreman_scap_client 1
command and I'm getting the following error.
DEBUG: running: oscap xccdf eval --results-arf
/tmp/d20160509-60255-10nmqqd/results.xml
/var/lib/openscap/content/815ddab77812d133a8e5dc8f2f58beccbe9638cfb8690382ace423d5b4c476c9.xml
WARNING: Skipping
http://www.redhat.com/security/data/oval/Red_Hat_Enterprise_Linux_7.xml
file which is referenced from XCCDF content
DEBUG: running: /usr/bin/bzip2 /tmp/d20160509-60255-10nmqqd/results.xml
Uploading results to https://puppet.123.edu:8443/compliance/arf/1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<HTML>
<HEAD><TITLE>Internal Server Error</TITLE></HEAD>
<BODY>
<H1>Internal Server Error</H1>
undefined method `join' for #<String:0x0000000295ca20>
<HR>
<ADDRESS>
WEBrick/1.3.1 (Ruby/2.0.0/2014-11-13) OpenSSL/1.0.1e at
puppet.123.edu:8443
</ADDRESS>
</BODY>
</HTML>
Upload failed: 500 "Internal Server Error "
···
----Heres a debug trace from the foreman-proxy daemon
E, [2016-05-09T10:13:30.650136 #59315] ERROR – : undefined method join' for #<String:0x00000002930830> (NoMethodError) /usr/share/gems/gems/sinatra-1.3.5/lib/sinatra/showexceptions.rb:35:in
rescue in call’
/usr/share/gems/gems/sinatra-1.3.5/lib/sinatra/showexceptions.rb:21:in
call' /usr/share/gems/gems/sinatra-1.3.5/lib/sinatra/base.rb:124:in
call’
/usr/share/gems/gems/sinatra-1.3.5/lib/sinatra/base.rb:1417:in block in call' /usr/share/gems/gems/sinatra-1.3.5/lib/sinatra/base.rb:1499:in
synchronize’
/usr/share/gems/gems/sinatra-1.3.5/lib/sinatra/base.rb:1417:in call' /usr/share/gems/gems/rack-1.6.4/lib/rack/urlmap.rb:66:in
block in call’
/usr/share/gems/gems/rack-1.6.4/lib/rack/urlmap.rb:50:in each' /usr/share/gems/gems/rack-1.6.4/lib/rack/urlmap.rb:50:in
call’
/usr/share/gems/gems/rack-1.6.4/lib/rack/builder.rb:153:in call' /usr/share/gems/gems/rack-1.6.4/lib/rack/handler/webrick.rb:88:in
service’
/usr/share/ruby/webrick/httpserver.rb:138:in service' /usr/share/ruby/webrick/httpserver.rb:94:in
run’
/usr/share/ruby/webrick/server.rb:295:in `block in start_thread’
I checked the "
/usr/share/gems/gems/sinatra-1.3.5/lib/sinatra/showexceptions.rb "
file and this is the Line.
[500, {“Content-Type” => content_type, “Content-Length” =>
Rack::Utils.bytesize(body.join).to_s}, body]
Any ideas why this is happening?
I have theforeman 1.11.1 and walked through the openSCAP instructions here:
http://www.theforeman.org/plugins/foreman_openscap/0.5/index.html#4.Usage