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

Failed to show puppet classes: 500 Api Request

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Accepted
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: PUP 6.y
    • Component/s: Language
    • Labels:
      None
    • Environment:

      Debian Jessie

    • Template:
    • Team:
      Froyo

      Description

      After requesting api via:

       curl --cert /etc/puppetlabs/puppet/ssl/certs/foreman.pem  \
          --key /etc/puppetlabs/puppet/ssl/private_keys/foreman.pem  \
         --cacert /etc/puppetlabs/puppet/ssl/certs/ca.pem                     \  
         -H 'Accept: pson'      "https://puppet:8140/puppet/v3/resource_types/*?kind=class&&environment=env
      

      I get:

      Failed to show puppet classes: 500 {"message":"Server Error: Internal Error: Puppet Context ':loaders' missing","issue_kind":"RUNTIME_ERROR","stacktrace":["/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/loaders.rb:101:in `loaders'","/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/loaders.rb:50:in `find_loader'","/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/ast/pops_bridge.rb:255:in `instantiate_FunctionDefinition'","/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/ast/pops_bridge.rb:99:in `instantiate'","org/jruby/RubyArray.java:2407:in `collect'","/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/ast/pops_bridge.rb:85:in `instantiate'","/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/ast/hostclass.rb:17:in `instantiate'","/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/ast/pops_bridge.rb:126:in `each'","/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/ast/hostclass.rb:15:in `instantiate'","/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/type_collection.rb:36:in `import_ast'","/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/type_loader.rb:130:in `load_files'","org/jruby/RubyArray.java:2407:in `collect'","/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/type_loader.rb:129:in `load_files'","/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/type_loader.rb:41:in `import_all'","org/jruby/RubyArray.java:1613:in `each'","/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/type_loader.rb:40:in `import_all'","/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/indirector/resource_type/parser.rb:62:in `search'","/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:65:in `override'","/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:240:in `override'","/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/indirector/resource_type/parser.rb:58:in `search'","/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/indirector/indirection.rb:269:in `search'","/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/api/indirected_routes.rb:151:in `do_search'","/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/api/indirected_routes.rb:48:in `call'","/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:65:in `override'","/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:240:in `override'","/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/api/indirected_routes.rb:47:in `call'","/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/route.rb:82:in `process'","org/jruby/RubyArray.java:1613: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:87:in `process'","/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/route.rb:87:in `process'","/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/handler.rb:60:in `process'","/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:58:in `process'","file:/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/puppetserver-lib/puppet/server/master.rb:42:in `handleRequest'","Puppet$$Server$$Master_1135067081.gen:13:in `handleRequest'","request_handler_core.clj:281:in `invoke'","jruby_request.clj:47:in `invoke'","jruby_request.clj:29:in `invoke'","request_handler_service.clj:38:in `handle_request'","request_handler.clj:3:in `invoke'","request_handler.clj:3:in `invoke'","core.clj:2493:in `invoke'","core.clj:294:in `invoke'","core.clj:128:in `invoke'","core.clj:134:in `invoke'","ringutils.clj:86:in `invoke'","master_core.clj:433:in `invoke'","ring.clj:21:in `invoke'","ring.clj:12:in `invoke'","comidi.clj:249:in `invoke'","jetty9_core.clj:424:in `invoke'","normalized_uri_helpers.clj:80:in `invoke'"]}
      

      • Puppetmaster running on version 4.6.0
        What can I do to fix this error?

      thanks

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            oOHenry Henry Hirsch
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

              Dates

              Created:
              Updated:

                Zendesk Support