Failed to show puppet classes: 500 - api request

asked 2016-08-23 11:22:26 -0500

oOHenry gravatar image

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 ... (more)

edit retag flag offensive close merge delete