Uploaded image for project: 'Puppet Server'
  1. Puppet Server
  2. SERVER-2825

Unexpected server exception

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Incomplete
    • Affects Version/s: SERVER 6.12.0
    • Fix Version/s: None
    • Component/s: Puppet Server
    • Labels:
      None
    • Template:
      PUP Bug Template
    • Team:
      Froyo
    • Method Found:
      Needs Assessment
    • QA Risk Assessment:
      Needs Assessment

      Description

      Hello,

      Upgraded a couple of agents from 6.14 to 6.16. Running against server 6.12.

      Got the following error on server:

      2020-06-24T16:12:52.177Z ERROR [qtp1934319119-44] [puppetserver] Puppet Server Error: Could not intern from json: Did not recognize your adapter specification (no such file to load -- multi_json/adapters/json_gem).2020-06-24T16:12:52.177Z ERROR [qtp1934319119-44] [puppetserver] Puppet Server Error: Could not intern from json: Did not recognize your adapter specification (no such file to load -- multi_json/adapters/json_gem).org/jruby/RubyKernel.java:974:in `require'uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:54:in `require'/opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/multi_json-1.13.1/lib/multi_json.rb:157:in `load_adapter_from_string_name'/opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/multi_json-1.13.1/lib/multi_json.rb:99:in `load_adapter'/opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/multi_json-1.13.1/lib/multi_json.rb:103:in `load_adapter'/opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/multi_json-1.13.1/lib/multi_json.rb:91:in `use'/opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/multi_json-1.13.1/lib/multi_json.rb:73:in `adapter'/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/json.rb:40:in `load'/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/formats.rb:119:in `intern'/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/format_support.rb:12:in `convert_from'/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/indirector/catalog/compiler.rb:93:in `convert_wire_facts'/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/indirector/catalog/compiler.rb:31:in `block in extract_facts_from_request'/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler/around_profiler.rb:58:in `profile'/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler.rb:51:in `profile'/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/indirector/catalog/compiler.rb:29:in `extract_facts_from_request'/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/indirector/catalog/compiler.rb:48:in `find'/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/indirector/indirection.rb:223:in `find'/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/api/indirected_routes.rb:138:in `do_find'/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/api/indirected_routes.rb:54:in `block in call'/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:62:in `override'/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:290:in `override'/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/api/indirected_routes.rb:53:in `call'/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/route.rb:82:in `block in process'org/jruby/RubyArray.java:1809:in `each'/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/route.rb:81:in `process'/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/route.rb:88:in `process'/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/route.rb:88:in `process'/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/handler.rb:87:in `block in process'/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/handler.rb:70:in `block in with_request_profiling'/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler/around_profiler.rb:58:in `profile'/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler.rb:51:in `profile'/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/handler.rb:66:in `with_request_profiling'/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/handler.rb:86:in `block in process'/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/handler.rb:93:in `respond_to_errors'/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/handler.rb:85:in `process'uri:classloader:/puppetserver-lib/puppet/server/master.rb:64:in `block in handleRequest'/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:62:in `override'/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:290:in `override'uri:classloader:/puppetserver-lib/puppet/server/master.rb:63:in `handleRequest'2020-06-24T16:12:52.189Z ERROR [qtp1934319119-44] [p.r.core] Internal Server Error: org.jruby.exceptions.ArgumentError: (null) Did not recognize your adapter specification (no such file to load -- multi_json/adapters/json_gem). at RUBY.load_adapter(/opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/multi_json-1.13.1/lib/multi_json.rb:110) at RUBY.load_adapter(/opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/multi_json-1.13.1/lib/multi_json.rb:103) at RUBY.use(/opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/multi_json-1.13.1/lib/multi_json.rb:91) at RUBY.adapter(/opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/multi_json-1.13.1/lib/multi_json.rb:73) at RUBY.current_adapter(/opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/multi_json-1.13.1/lib/multi_json.rb:133) at RUBY.dump(/opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/multi_json-1.13.1/lib/multi_json.rb:139) at RUBY.dump(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/json.rb:62) at RUBY.to_json(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/error.rb:70) at RUBY.respond_with_http_error(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/handler.rb:104) at RUBY.respond_to_errors(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/handler.rb:100) at RUBY.process(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/handler.rb:85) at RUBY.handleRequest(uri:classloader:/puppetserver-lib/puppet/server/master.rb:64) at RUBY.override(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:62) at RUBY.override(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:290) at RUBY.handleRequest(uri:classloader:/puppetserver-lib/puppet/server/master.rb:63)
      2020-06-24T16:12:52.601Z INFO  [qtp1934319119-47] [puppetserver] Puppet Bad Request: The request body is invalid: Could not intern from json: Did not recognize your adapter specification (no such file to load -- multi_json/adapters/json_gem).2020-06-24T16:12:52.605Z ERROR [qtp1934319119-47] [p.r.core] Internal Server Error: org.jruby.exceptions.ArgumentError: (null) Did not recognize your adapter specification (no such file to load -- multi_json/adapters/json_gem). at RUBY.load_adapter(/opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/multi_json-1.13.1/lib/multi_json.rb:110) at RUBY.load_adapter(/opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/multi_json-1.13.1/lib/multi_json.rb:103) at RUBY.use(/opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/multi_json-1.13.1/lib/multi_json.rb:91) at RUBY.adapter(/opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/multi_json-1.13.1/lib/multi_json.rb:73) at RUBY.current_adapter(/opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/multi_json-1.13.1/lib/multi_json.rb:133) at RUBY.dump(/opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/multi_json-1.13.1/lib/multi_json.rb:139) at RUBY.dump(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/json.rb:62) at RUBY.to_json(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/error.rb:16) at RUBY.respond_with_http_error(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/handler.rb:104) at RUBY.respond_to_errors(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/handler.rb:96) at RUBY.process(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/handler.rb:85) at RUBY.handleRequest(uri:classloader:/puppetserver-lib/puppet/server/master.rb:64) at RUBY.override(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:62) at RUBY.override(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:290) at RUBY.handleRequest(uri:classloader:/puppetserver-lib/puppet/server/master.rb:63)
      

      Error on agent:

      Info: Using configured environment 'production'
      Info: Retrieving pluginfacts
      Info: Retrieving plugin
      Info: Retrieving locales
      Info: Loading facts
      Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Internal Server Error: org.jruby.exceptions.ArgumentError: (null) Did not recognize your adapter specification (no such file to load -- multi_json/adapters/json_gem).
      Warning: Not using cache on failed catalog
      Error: Could not retrieve catalog; skipping run
      Error: Could not send report: Error 500 on SERVER: Internal Server Error: org.jruby.exceptions.ArgumentError: (null) Did not recognize your adapter specification (no such file to load -- multi_json/adapters/json_gem).
      
      

      However, I was not able to replicate this again.

       

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            Uniplexed Rodrigo Pereira
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support