Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-3092

Json lib issue when installing Puppet on RHEL 7

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Cannot Reproduce
    • Affects Version/s: PUP 3.6.2, PUP 3.7.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      AWS, RHEL 7

    • Template:

      Description

      Installed:
      puppet.noarch 0:3.6.2-1.el7

      Dependency Installed:
      hiera.noarch 0:1.3.4-1.el7

      Complete!

      When i run this command, it gives an error on json lib version 1.7.7

      [ec2-user@ip-172-31-11-15 installers]$ puppet -version
      /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file – json/pure (LoadError)
      from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:54:in `require'
      from /usr/share/gems/gems/json-1.7.7/lib/json.rb:60:in `rescue in <module:JSON>'
      from /usr/share/gems/gems/json-1.7.7/lib/json.rb:57:in `<module:JSON>'
      from /usr/share/gems/gems/json-1.7.7/lib/json.rb:54:in `<top (required)>'
      from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:128:in `require'
      from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:128:in `rescue in require'
      from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:39:in `require'
      from /usr/share/ruby/vendor_ruby/puppet/module.rb:3:in `<top (required)>'
      from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:54:in `require'
      from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:54:in `require'
      from /usr/share/ruby/vendor_ruby/puppet/parser/files.rb:1:in `<top (required)>'
      from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:54:in `require'
      from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:54:in `require'
      from /usr/share/ruby/vendor_ruby/puppet/parser/templatewrapper.rb:1:in `<top (required)>'
      from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:54:in `require'
      from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:54:in `require'
      from /usr/share/ruby/vendor_ruby/puppet/parser/scope.rb:6:in `<top (required)>'
      from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:54:in `require'
      from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:54:in `require'
      from /usr/share/ruby/vendor_ruby/puppet/parser/methods.rb:2:in `<top (required)>'
      from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:54:in `require'
      from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:54:in `require'
      from /usr/share/ruby/vendor_ruby/puppet/parser/ast/method_call.rb:2:in `<top (required)>'
      from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:54:in `require'
      from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:54:in `require'
      from /usr/share/ruby/vendor_ruby/puppet/parser/ast.rb:115:in `<top (required)>'
      from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:54:in `require'
      from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:54:in `require'
      from /usr/share/ruby/vendor_ruby/puppet/parser/parser.rb:11:in `<top (required)>'
      from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:54:in `require'
      from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:54:in `require'
      from /usr/share/ruby/vendor_ruby/puppet/parser.rb:4:in `<top (required)>'
      from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:54:in `require'
      from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:54:in `require'
      from /usr/share/ruby/vendor_ruby/puppet.rb:260:in `<top (required)>'
      from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:54:in `require'
      from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:54:in `require'
      from /usr/share/ruby/vendor_ruby/puppet/util/command_line.rb:12:in `<top (required)>'
      from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:54:in `require'
      from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:54:in `require'
      from /usr/bin/puppet:7:in `<main>'
      [ec2-user@ip-172-31-11-15 installers]$ yum -e json

      I'm using AWS RedHat 7
      [ec2-user@ip-172-31-11-15 gems]$ cat /etc/release
      NAME="Red Hat Enterprise Linux Server"
      VERSION="7.0 (Maipo)"
      ID="rhel"
      ID_LIKE="fedora"
      VERSION_ID="7.0"
      PRETTY_NAME="Red Hat Enterprise Linux Server 7.0 (Maipo)"
      ANSI_COLOR="0;31"
      CPE_NAME="cpe:/o:redhat:enterprise_linux:7.0:GA:server"
      HOME_URL="https://www.redhat.com/"
      BUG_REPORT_URL="https://bugzilla.redhat.com/"

      REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7"
      REDHAT_BUGZILLA_PRODUCT_VERSION=7.0
      REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
      REDHAT_SUPPORT_PRODUCT_VERSION=7.0
      Red Hat Enterprise Linux Server release 7.0 (Maipo)
      Red Hat Enterprise Linux Server release 7.0 (Maipo)
      cpe:/o:redhat:enterprise_linux:7.0:ga:server

      Need your expertise and help on this. Do we need to upgrade this json lib or should we downgrade ruby? Please advise and let me know if you have any concerns. Thank you.

        Attachments

          Activity

            People

            Assignee:
            mjoven Mark Gil Joven
            Reporter:
            mjoven Mark Gil Joven
            QA Contact:
            Eric Thompson
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support