Project

General

Profile

Actions

Bug #25500

closed

SCAP run failed on RHEL6 with error no such file to load -- json (LoadError)

Added by Marek Hulán over 5 years ago. Updated over 5 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=1651006

Description of problem:
Trying to generate openscap report on rhel6 gives error

/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- json (LoadError)
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /usr/lib/ruby/gems/1.8/gems/foreman_scap_client-0.4.0/lib/foreman_scap_client/client.rb:8
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /usr/lib/ruby/gems/1.8/gems/foreman_scap_client-0.4.0/lib/foreman_scap_client.rb:2
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /usr/lib/ruby/gems/1.8/gems/foreman_scap_client-0.4.0/bin/foreman_scap_client:3
from /usr/bin/foreman_scap_client:19:in `load'
from /usr/bin/foreman_scap_client:19

Version-Release number of selected component (if applicable):
Satellite 6.5 snap 4

How reproducible:
always

Steps to Reproduce:
1. create rhel6 host with scap policy assigned
2. run foreman_scap_client on client

Actual results:

  1. foreman_scap_client 2
    /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- json (LoadError)
    from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    from /usr/lib/ruby/gems/1.8/gems/foreman_scap_client-0.4.0/lib/foreman_scap_client/client.rb:8
    from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    from /usr/lib/ruby/gems/1.8/gems/foreman_scap_client-0.4.0/lib/foreman_scap_client.rb:2
    from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    from /usr/lib/ruby/gems/1.8/gems/foreman_scap_client-0.4.0/bin/foreman_scap_client:3
    from /usr/bin/foreman_scap_client:19:in `load'
    from /usr/bin/foreman_scap_client:19

Expected results: Successful scap report generate.

Additional info:
On rhel 6 client

  1. cat /etc/redhat-release
    Red Hat Enterprise Linux Server release 6.10 (Santiago)
  1. rpm -qa | grep ruby
    ruby-rdoc-1.8.7.374-5.el6.x86_64
    rubygem-foreman_scap_client-0.4.0-3.el6sat.noarch
    ruby-libs-1.8.7.374-5.el6.x86_64
    ruby-irb-1.8.7.374-5.el6.x86_64
    rubygems-1.3.7-5.el6.noarch
    ruby-1.8.7.374-5.el6.x86_64

Related issues 1 (0 open1 closed)

Related to Packaging - Bug #25552: Update dependencies for foreman_scap_clientResolvedOndřej PražákActions
Actions #1

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

  • Related to Bug #25552: Update dependencies for foreman_scap_client added
Actions #2

Updated by Marek Hulán over 5 years ago

  • Subject changed from SCAP run failed on RHEL6 with error no such file to load -- json (LoadError) to SCAP run failed on RHEL6 with error no such file to load -- json (LoadError)
  • Status changed from New to Ready For Testing
  • Assignee set to Ondřej Pražák
  • Pull request https://github.com/theforeman/foreman_scap_client/pull/25 added
Actions #3

Updated by Marek Hulán over 5 years ago

  • Fixed in Releases foreman_scap_client 0.4.1 added
Actions #4

Updated by Marek Hulán over 5 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF