java.lang.IllegalStateException: There was a problem adding a JRubyPuppet instance to the pool.

JIRA | Michael Speth | 2 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    I have created a vagrant environment that demonstrates the problem: [puppetserver_foremanproxy_error|https://github.com/Conzar/puppetserver_foremanproxy_error] The bug is caused by foreman-proxy. Will update when I find out additional information. OS: Ubuntu 14.04 Puppet Server Versions Tested: 1.0.2-1puppetlabs1 & 1.0.8-1puppetlabs1 Foreman Proxy Versions Tested: 1.7 & 1.8 Install: via package The following error is the output of: puppetserver foreground {code} LoadError: no such file to load -- puppet/defaults require at org/jruby/RubyKernel.java:1065 require at /usr/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55 Puppet at /usr/lib/ruby/vendor_ruby/puppet.rb:114 (root) at /usr/lib/ruby/vendor_ruby/puppet.rb:29 require at org/jruby/RubyKernel.java:1065 (root) at /usr/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1 require at /usr/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55 require at org/jruby/RubyKernel.java:1065 (root) at file:/usr/share/puppetserver/puppet-server-release.jar!/puppet-server-lib/puppet/server.rb:1 (root) at /usr/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1 require at org/jruby/RubyKernel.java:1065 require at /usr/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55 (root) at file:/usr/share/puppetserver/puppet-server-release.jar!/puppet-server-lib/puppet/server/master.rb:1 invoke at jruby_puppet_core.clj:164 invoke at jruby_puppet_core.clj:179 invoke at jruby_puppet_core.clj:167 invoke at jruby_puppet_agents.clj:54 invoke at jruby_puppet_agents.clj:39 invoke at jruby_puppet_agents.clj:116 invoke at internal.clj:247 invoke at internal.clj:231 shutdown_on_error at internal.clj:286 invoke at internal.clj:255 invoke at internal.clj:255 invoke at core.clj:619 doInvoke at core.clj:2396 invoke at core.clj:619 doInvoke at core.clj:2396 invoke at jruby_puppet_agents.clj:35 invoke at core.clj:1839 2015-03-20 16:40:59,924 ERROR [p.t.internal] shutdown-on-error triggered because of exception! java.lang.IllegalStateException: There was a problem adding a JRubyPuppet instance to the pool. at puppetlabs.services.jruby.jruby_puppet_agents$eval7031$prime_pool_BANG___7032$fn__7033.invoke(jruby_puppet_agents.clj:59) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_agents$eval7031$prime_pool_BANG___7032.invoke(jruby_puppet_agents.clj:39) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_agents$eval7108$send_prime_pool_BANG___7109$fn__7110$fn__7112.invoke(jruby_puppet_agents.clj:116) ~[na:na] at puppetlabs.trapperkeeper.internal$shutdown_on_error_STAR_.invoke(internal.clj:247) [na:na] at puppetlabs.trapperkeeper.internal$shutdown_on_error_STAR_.invoke(internal.clj:231) [na:na] at puppetlabs.trapperkeeper.internal$shutdown_service$reify__5861$service_fnk__5259__auto___positional$reify__5866.shutdown_on_error(internal.clj:286) [na:na] at puppetlabs.trapperkeeper.internal$eval5797$fn__5809$G__5783__5817.invoke(internal.clj:255) [na:na] at puppetlabs.trapperkeeper.internal$eval5797$fn__5809$G__5782__5826.invoke(internal.clj:255) [na:na] at clojure.lang.AFn.applyToHelper(AFn.java:167) [puppet-server-release.jar:na] at clojure.lang.AFn.applyTo(AFn.java:151) [puppet-server-release.jar:na] at clojure.core$apply.invoke(core.clj:619) [puppet-server-release.jar:na] at clojure.core$partial$fn__4190.doInvoke(core.clj:2396) [puppet-server-release.jar:na] at clojure.lang.RestFn.applyTo(RestFn.java:137) [puppet-server-release.jar:na] at clojure.core$apply.invoke(core.clj:619) [puppet-server-release.jar:na] at clojure.core$partial$fn__4190.doInvoke(core.clj:2396) [puppet-server-release.jar:na] at clojure.lang.RestFn.invoke(RestFn.java:408) [puppet-server-release.jar:na] at puppetlabs.services.jruby.jruby_puppet_agents$eval7009$send_agent__7010$fn__7011$agent_fn__7012.invoke(jruby_puppet_agents.clj:35) [na:na] at clojure.core$binding_conveyor_fn$fn__4107.invoke(core.clj:1839) [puppet-server-release.jar:na] at clojure.lang.AFn.applyToHelper(AFn.java:161) [puppet-server-release.jar:na] at clojure.lang.RestFn.applyTo(RestFn.java:132) [puppet-server-release.jar:na] at clojure.lang.Agent$Action.doRun(Agent.java:114) [puppet-server-release.jar:na] at clojure.lang.Agent$Action.run(Agent.java:163) [puppet-server-release.jar:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_75] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_75] at java.lang.Thread.run(Thread.java:745) [na:1.7.0_75] Caused by: org.jruby.embed.EvalFailedException: (LoadError) no such file to load -- puppet/defaults at org.jruby.embed.internal.EmbedEvalUnitImpl.run(EmbedEvalUnitImpl.java:133) ~[puppet-server-release.jar:na] at org.jruby.embed.ScriptingContainer.runUnit(ScriptingContainer.java:1317) ~[puppet-server-release.jar:na] at org.jruby.embed.ScriptingContainer.runScriptlet(ScriptingContainer.java:1310) ~[puppet-server-release.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_75] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_75] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_75] at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_75] at clojure.lang.Reflector.invokeMatchingMethod(Reflector.java:93) ~[puppet-server-release.jar:na] at clojure.lang.Reflector.invokeInstanceMethod(Reflector.java:28) ~[puppet-server-release.jar:na] at puppetlabs.services.jruby.jruby_puppet_core$create_scripting_container.invoke(jruby_puppet_core.clj:164) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_core$eval6761$create_pool_instance_BANG___6762$fn__6763.invoke(jruby_puppet_core.clj:179) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_core$eval6761$create_pool_instance_BANG___6762.invoke(jruby_puppet_core.clj:167) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_agents$eval7031$prime_pool_BANG___7032$fn__7033.invoke(jruby_puppet_agents.clj:54) ~[na:na] ... 24 common frames omitted Caused by: org.jruby.exceptions.RaiseException: (LoadError) no such file to load -- puppet/defaults at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1065) ~[puppet-server-release.jar:na] at RUBY.require(/usr/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55) ~[na:na] at RUBY.Puppet(/usr/lib/ruby/vendor_ruby/puppet.rb:114) ~[na:na] at RUBY.(root)(/usr/lib/ruby/vendor_ruby/puppet.rb:29) ~[na:na] at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1065) ~[puppet-server-release.jar:na] at RUBY.(root)(/usr/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1) ~[na:na] at RUBY.require(/usr/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55) ~[na:na] at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1065) ~[puppet-server-release.jar:na] at RUBY.(root)(file:/usr/share/puppetserver/puppet-server-release.jar!/puppet-server-lib/puppet/server.rb:1) ~[na:na] at RUBY.(root)(/usr/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1) ~[na:na] at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1065) ~[puppet-server-release.jar:na] at RUBY.require(/usr/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55) ~[na:na] at RUBY.(root)(file:/usr/share/puppetserver/puppet-server-release.jar!/puppet-server-lib/puppet/server/master.rb:1) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_core$create_scripting_container.invoke(jruby_puppet_core.clj:164) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_core$eval6761$create_pool_instance_BANG___6762$fn__6763.invoke(jruby_puppet_core.clj:179) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_core$eval6761$create_pool_instance_BANG___6762.invoke(jruby_puppet_core.clj:167) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_agents$eval7031$prime_pool_BANG___7032$fn__7033.invoke(jruby_puppet_agents.clj:54) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_agents$eval7031$prime_pool_BANG___7032.invoke(jruby_puppet_agents.clj:39) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_agents$eval7108$send_prime_pool_BANG___7109$fn__7110$fn__7112.invoke(jruby_puppet_agents.clj:116) ~[na:na] at puppetlabs.trapperkeeper.internal$shutdown_on_error_STAR_.invoke(internal.clj:247) [na:na] at puppetlabs.trapperkeeper.internal$shutdown_on_error_STAR_.invoke(internal.clj:231) [na:na] at puppetlabs.trapperkeeper.internal$shutdown_service$reify__5861$service_fnk__5259__auto___positional$reify__5866.shutdown_on_error(internal.clj:286) [na:na] at puppetlabs.trapperkeeper.internal$eval5797$fn__5809$G__5783__5817.invoke(internal.clj:255) [na:na] at puppetlabs.trapperkeeper.internal$eval5797$fn__5809$G__5782__5826.invoke(internal.clj:255) [na:na] at clojure.core$apply.invoke(core.clj:619) [puppet-server-release.jar:na] at clojure.core$partial$fn__4190.doInvoke(core.clj:2396) [puppet-server-release.jar:na] at clojure.core$apply.invoke(core.clj:619) [puppet-server-release.jar:na] at clojure.core$partial$fn__4190.doInvoke(core.clj:2396) [puppet-server-release.jar:na] at puppetlabs.trapperkeeper.internal$shutdown_on_error_STAR_.invoke(internal.clj:247) ~[na:na] at puppetlabs.trapperkeeper.internal$shutdown_on_error_STAR_.invoke(internal.clj:231) ~[na:na] at puppetlabs.trapperkeeper.internal$shutdown_service$reify__5861$service_fnk__5259__auto___positional$reify__5866.shutdown_on_error(internal.clj:286) ~[na:na] at puppetlabs.trapperkeeper.internal$eval5797$fn__5809$G__5783__5817.invoke(internal.clj:255) ~[na:na] at puppetlabs.trapperkeeper.internal$eval5797$fn__5809$G__5782__5826.invoke(internal.clj:255) ~[na:na] at clojure.lang.AFn.applyToHelper(AFn.java:167) [puppet-server-release.jar:na] at clojure.lang.AFn.applyTo(AFn.java:151) [puppet-server-release.jar:na] at clojure.core$apply.invoke(core.clj:619) [puppet-server-release.jar:na] at clojure.core$partial$fn__4190.doInvoke(core.clj:2396) ~[puppet-server-release.jar:na] at clojure.lang.RestFn.applyTo(RestFn.java:137) [puppet-server-release.jar:na] at clojure.core$apply.invoke(core.clj:619) [puppet-server-release.jar:na] at clojure.core$partial$fn__4190.doInvoke(core.clj:2396) ~[puppet-server-release.jar:na] at clojure.lang.RestFn.invoke(RestFn.java:408) [puppet-server-release.jar:na] at puppetlabs.services.jruby.jruby_puppet_agents$eval7009$send_agent__7010$fn__7011$agent_fn__7012.invoke(jruby_puppet_agents.clj:35) ~[na:na] at clojure.core$binding_conveyor_fn$fn__4107.invoke(core.clj:1839) ~[puppet-server-release.jar:na] at clojure.lang.AFn.applyToHelper(AFn.java:161) [puppet-server-release.jar:na] at clojure.lang.RestFn.applyTo(RestFn.java:132) [puppet-server-release.jar:na] at clojure.lang.Agent$Action.doRun(Agent.java:114) ~[puppet-server-release.jar:na] at clojure.lang.Agent$Action.run(Agent.java:163) ~[puppet-server-release.jar:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) ~[na:1.7.0_75] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) ~[na:1.7.0_75] at java.lang.Thread.run(Thread.java:745) ~[na:1.7.0_75] Caused by: org.jruby.exceptions.RaiseException: (LoadError) no such file to load -- puppet/defaults at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1065) ~[puppet-server-release.jar:na] at RUBY.require(/usr/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55) ~[na:na] at RUBY.Puppet(/usr/lib/ruby/vendor_ruby/puppet.rb:114) ~[na:na] at RUBY.(root)(/usr/lib/ruby/vendor_ruby/puppet.rb:29) ~[na:na] at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1065) ~[puppet-server-release.jar:na] at RUBY.(root)(/usr/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1) ~[na:na] at RUBY.require(/usr/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55) ~[na:na] at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1065) ~[puppet-server-release.jar:na] at RUBY.(root)(file:/usr/share/puppetserver/puppet-server-release.jar!/puppet-server-lib/puppet/server.rb:1) ~[na:na] at RUBY.(root)(/usr/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1) ~[na:na] at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1065) ~[puppet-server-release.jar:na] at RUBY.require(/usr/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55) ~[na:na] at RUBY.(root)(file:/usr/share/puppetserver/puppet-server-release.jar!/puppet-server-lib/puppet/server/master.rb:1) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_core$create_scripting_container.invoke(jruby_puppet_core.clj:164) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_core$eval6761$create_pool_instance_BANG___6762$fn__6763.invoke(jruby_puppet_core.clj:179) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_core$eval6761$create_pool_instance_BANG___6762.invoke(jruby_puppet_core.clj:167) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_agents$eval7031$prime_pool_BANG___7032$fn__7033.invoke(jruby_puppet_agents.clj:54) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_agents$eval7031$prime_pool_BANG___7032.invoke(jruby_puppet_agents.clj:39) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_agents$eval7108$send_prime_pool_BANG___7109$fn__7110$fn__7112.invoke(jruby_puppet_agents.clj:116) ~[na:na] at puppetlabs.trapperkeeper.internal$shutdown_on_error_STAR_.invoke(internal.clj:247) ~[na:na] at puppetlabs.trapperkeeper.internal$shutdown_on_error_STAR_.invoke(internal.clj:231) ~[na:na] at puppetlabs.trapperkeeper.internal$shutdown_service$reify__5861$service_fnk__5259__auto___positional$reify__5866.shutdown_on_error(internal.clj:286) ~[na:na] at puppetlabs.trapperkeeper.internal$eval5797$fn__5809$G__5783__5817.invoke(internal.clj:255) ~[na:na] at puppetlabs.trapperkeeper.internal$eval5797$fn__5809$G__5782__5826.invoke(internal.clj:255) ~[na:na] at clojure.core$apply.invoke(core.clj:619) [puppet-server-release.jar:na] at clojure.core$partial$fn__4190.doInvoke(core.clj:2396) ~[puppet-server-release.jar:na] at clojure.core$apply.invoke(core.clj:619) [puppet-server-release.jar:na] at clojure.core$partial$fn__4190.doInvoke(core.clj:2396) ~[puppet-server-release.jar:na] at puppetlabs.services.jruby.jruby_puppet_agents$eval7009$send_agent__7010$fn__7011$agent_fn__7012.invoke(jruby_puppet_agents.clj:35) ~[na:na] at clojure.core$binding_conveyor_fn$fn__4107.invoke(core.clj:1839) ~[puppet-server-release.jar:na] 2015-03-20 16:40:59,944 INFO [p.t.internal] Beginning shutdown sequence 2015-03-20 16:40:59,953 INFO [p.t.s.w.jetty9-service] Shutting down web server(s). 2015-03-20 16:40:59,959 INFO [p.t.internal] Finished shutdown sequence Exception in thread "main" java.lang.IllegalStateException: There was a problem adding a JRubyPuppet instance to the pool. at puppetlabs.services.jruby.jruby_puppet_agents$eval7031$prime_pool_BANG___7032$fn__7033.invoke(jruby_puppet_agents.clj:59) at puppetlabs.services.jruby.jruby_puppet_agents$eval7031$prime_pool_BANG___7032.invoke(jruby_puppet_agents.clj:39) at puppetlabs.services.jruby.jruby_puppet_agents$eval7108$send_prime_pool_BANG___7109$fn__7110$fn__7112.invoke(jruby_puppet_agents.clj:116) at puppetlabs.trapperkeeper.internal$shutdown_on_error_STAR_.invoke(internal.clj:247) at puppetlabs.trapperkeeper.internal$shutdown_on_error_STAR_.invoke(internal.clj:231) at puppetlabs.trapperkeeper.internal$shutdown_service$reify__5861$service_fnk__5259__auto___positional$reify__5866.shutdown_on_error(internal.clj:286) at puppetlabs.trapperkeeper.internal$eval5797$fn__5809$G__5783__5817.invoke(internal.clj:255) at puppetlabs.trapperkeeper.internal$eval5797$fn__5809$G__5782__5826.invoke(internal.clj:255) at clojure.lang.AFn.applyToHelper(AFn.java:167) at clojure.lang.AFn.applyTo(AFn.java:151) at clojure.core$apply.invoke(core.clj:619) at clojure.core$partial$fn__4190.doInvoke(core.clj:2396) at clojure.lang.RestFn.applyTo(RestFn.java:137) at clojure.core$apply.invoke(core.clj:619) at clojure.core$partial$fn__4190.doInvoke(core.clj:2396) at clojure.lang.RestFn.invoke(RestFn.java:408) at puppetlabs.services.jruby.jruby_puppet_agents$eval7009$send_agent__7010$fn__7011$agent_fn__7012.invoke(jruby_puppet_agents.clj:35) at clojure.core$binding_conveyor_fn$fn__4107.invoke(core.clj:1839) at clojure.lang.AFn.applyToHelper(AFn.java:161) at clojure.lang.RestFn.applyTo(RestFn.java:132) at clojure.lang.Agent$Action.doRun(Agent.java:114) at clojure.lang.Agent$Action.run(Agent.java:163) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: org.jruby.embed.EvalFailedException: (LoadError) no such file to load -- puppet/defaults at org.jruby.embed.internal.EmbedEvalUnitImpl.run(EmbedEvalUnitImpl.java:133) at org.jruby.embed.ScriptingContainer.runUnit(ScriptingContainer.java:1317) at org.jruby.embed.ScriptingContainer.runScriptlet(ScriptingContainer.java:1310) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at clojure.lang.Reflector.invokeMatchingMethod(Reflector.java:93) at clojure.lang.Reflector.invokeInstanceMethod(Reflector.java:28) at puppetlabs.services.jruby.jruby_puppet_core$create_scripting_container.invoke(jruby_puppet_core.clj:164) at puppetlabs.services.jruby.jruby_puppet_core$eval6761$create_pool_instance_BANG___6762$fn__6763.invoke(jruby_puppet_core.clj:179) at puppetlabs.services.jruby.jruby_puppet_core$eval6761$create_pool_instance_BANG___6762.invoke(jruby_puppet_core.clj:167) at puppetlabs.services.jruby.jruby_puppet_agents$eval7031$prime_pool_BANG___7032$fn__7033.invoke(jruby_puppet_agents.clj:54) ... 24 more Caused by: org.jruby.exceptions.RaiseException: (LoadError) no such file to load -- puppet/defaults at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1065) at RUBY.require(/usr/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55) at RUBY.Puppet(/usr/lib/ruby/vendor_ruby/puppet.rb:114) at RUBY.(root)(/usr/lib/ruby/vendor_ruby/puppet.rb:29) at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1065) at RUBY.(root)(/usr/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1) at RUBY.require(/usr/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55) at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1065) at RUBY.(root)(file:/usr/share/puppetserver/puppet-server-release.jar!/puppet-server-lib/puppet/server.rb:1) at RUBY.(root)(/usr/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1) at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1065) at RUBY.require(/usr/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55) at RUBY.(root)(file:/usr/share/puppetserver/puppet-server-release.jar!/puppet-server-lib/puppet/server/master.rb:1) at puppetlabs.services.jruby.jruby_puppet_core$create_scripting_container.invoke(jruby_puppet_core.clj:164) at puppetlabs.services.jruby.jruby_puppet_core$eval6761$create_pool_instance_BANG___6762$fn__6763.invoke(jruby_puppet_core.clj:179) at puppetlabs.services.jruby.jruby_puppet_core$eval6761$create_pool_instance_BANG___6762.invoke(jruby_puppet_core.clj:167) at puppetlabs.services.jruby.jruby_puppet_agents$eval7031$prime_pool_BANG___7032$fn__7033.invoke(jruby_puppet_agents.clj:54) at puppetlabs.services.jruby.jruby_puppet_agents$eval7031$prime_pool_BANG___7032.invoke(jruby_puppet_agents.clj:39) at puppetlabs.services.jruby.jruby_puppet_agents$eval7108$send_prime_pool_BANG___7109$fn__7110$fn__7112.invoke(jruby_puppet_agents.clj:116) at puppetlabs.trapperkeeper.internal$shutdown_on_error_STAR_.invoke(internal.clj:247) at puppetlabs.trapperkeeper.internal$shutdown_on_error_STAR_.invoke(internal.clj:231) at puppetlabs.trapperkeeper.internal$shutdown_service$reify__5861$service_fnk__5259__auto___positional$reify__5866.shutdown_on_error(internal.clj:286) at puppetlabs.trapperkeeper.internal$eval5797$fn__5809$G__5783__5817.invoke(internal.clj:255) at puppetlabs.trapperkeeper.internal$eval5797$fn__5809$G__5782__5826.invoke(internal.clj:255) at clojure.core$apply.invoke(core.clj:619) at clojure.core$partial$fn__4190.doInvoke(core.clj:2396) at clojure.core$apply.invoke(core.clj:619) at clojure.core$partial$fn__4190.doInvoke(core.clj:2396) at puppetlabs.services.jruby.jruby_puppet_agents$eval7009$send_agent__7010$fn__7011$agent_fn__7012.invoke(jruby_puppet_agents.clj:35) at clojure.core$binding_conveyor_fn$fn__4107.invoke(core.clj:1839) {code}

    JIRA | 2 years ago | Michael Speth
    java.lang.IllegalStateException: There was a problem adding a JRubyPuppet instance to the pool.
  2. 0

    I have created a vagrant environment that demonstrates the problem: [puppetserver_foremanproxy_error|https://github.com/Conzar/puppetserver_foremanproxy_error] The bug is caused by foreman-proxy. Will update when I find out additional information. OS: Ubuntu 14.04 Puppet Server Versions Tested: 1.0.2-1puppetlabs1 & 1.0.8-1puppetlabs1 Foreman Proxy Versions Tested: 1.7 & 1.8 Install: via package The following error is the output of: puppetserver foreground {code} LoadError: no such file to load -- puppet/defaults require at org/jruby/RubyKernel.java:1065 require at /usr/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55 Puppet at /usr/lib/ruby/vendor_ruby/puppet.rb:114 (root) at /usr/lib/ruby/vendor_ruby/puppet.rb:29 require at org/jruby/RubyKernel.java:1065 (root) at /usr/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1 require at /usr/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55 require at org/jruby/RubyKernel.java:1065 (root) at file:/usr/share/puppetserver/puppet-server-release.jar!/puppet-server-lib/puppet/server.rb:1 (root) at /usr/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1 require at org/jruby/RubyKernel.java:1065 require at /usr/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55 (root) at file:/usr/share/puppetserver/puppet-server-release.jar!/puppet-server-lib/puppet/server/master.rb:1 invoke at jruby_puppet_core.clj:164 invoke at jruby_puppet_core.clj:179 invoke at jruby_puppet_core.clj:167 invoke at jruby_puppet_agents.clj:54 invoke at jruby_puppet_agents.clj:39 invoke at jruby_puppet_agents.clj:116 invoke at internal.clj:247 invoke at internal.clj:231 shutdown_on_error at internal.clj:286 invoke at internal.clj:255 invoke at internal.clj:255 invoke at core.clj:619 doInvoke at core.clj:2396 invoke at core.clj:619 doInvoke at core.clj:2396 invoke at jruby_puppet_agents.clj:35 invoke at core.clj:1839 2015-03-20 16:40:59,924 ERROR [p.t.internal] shutdown-on-error triggered because of exception! java.lang.IllegalStateException: There was a problem adding a JRubyPuppet instance to the pool. at puppetlabs.services.jruby.jruby_puppet_agents$eval7031$prime_pool_BANG___7032$fn__7033.invoke(jruby_puppet_agents.clj:59) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_agents$eval7031$prime_pool_BANG___7032.invoke(jruby_puppet_agents.clj:39) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_agents$eval7108$send_prime_pool_BANG___7109$fn__7110$fn__7112.invoke(jruby_puppet_agents.clj:116) ~[na:na] at puppetlabs.trapperkeeper.internal$shutdown_on_error_STAR_.invoke(internal.clj:247) [na:na] at puppetlabs.trapperkeeper.internal$shutdown_on_error_STAR_.invoke(internal.clj:231) [na:na] at puppetlabs.trapperkeeper.internal$shutdown_service$reify__5861$service_fnk__5259__auto___positional$reify__5866.shutdown_on_error(internal.clj:286) [na:na] at puppetlabs.trapperkeeper.internal$eval5797$fn__5809$G__5783__5817.invoke(internal.clj:255) [na:na] at puppetlabs.trapperkeeper.internal$eval5797$fn__5809$G__5782__5826.invoke(internal.clj:255) [na:na] at clojure.lang.AFn.applyToHelper(AFn.java:167) [puppet-server-release.jar:na] at clojure.lang.AFn.applyTo(AFn.java:151) [puppet-server-release.jar:na] at clojure.core$apply.invoke(core.clj:619) [puppet-server-release.jar:na] at clojure.core$partial$fn__4190.doInvoke(core.clj:2396) [puppet-server-release.jar:na] at clojure.lang.RestFn.applyTo(RestFn.java:137) [puppet-server-release.jar:na] at clojure.core$apply.invoke(core.clj:619) [puppet-server-release.jar:na] at clojure.core$partial$fn__4190.doInvoke(core.clj:2396) [puppet-server-release.jar:na] at clojure.lang.RestFn.invoke(RestFn.java:408) [puppet-server-release.jar:na] at puppetlabs.services.jruby.jruby_puppet_agents$eval7009$send_agent__7010$fn__7011$agent_fn__7012.invoke(jruby_puppet_agents.clj:35) [na:na] at clojure.core$binding_conveyor_fn$fn__4107.invoke(core.clj:1839) [puppet-server-release.jar:na] at clojure.lang.AFn.applyToHelper(AFn.java:161) [puppet-server-release.jar:na] at clojure.lang.RestFn.applyTo(RestFn.java:132) [puppet-server-release.jar:na] at clojure.lang.Agent$Action.doRun(Agent.java:114) [puppet-server-release.jar:na] at clojure.lang.Agent$Action.run(Agent.java:163) [puppet-server-release.jar:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_75] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_75] at java.lang.Thread.run(Thread.java:745) [na:1.7.0_75] Caused by: org.jruby.embed.EvalFailedException: (LoadError) no such file to load -- puppet/defaults at org.jruby.embed.internal.EmbedEvalUnitImpl.run(EmbedEvalUnitImpl.java:133) ~[puppet-server-release.jar:na] at org.jruby.embed.ScriptingContainer.runUnit(ScriptingContainer.java:1317) ~[puppet-server-release.jar:na] at org.jruby.embed.ScriptingContainer.runScriptlet(ScriptingContainer.java:1310) ~[puppet-server-release.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_75] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_75] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_75] at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_75] at clojure.lang.Reflector.invokeMatchingMethod(Reflector.java:93) ~[puppet-server-release.jar:na] at clojure.lang.Reflector.invokeInstanceMethod(Reflector.java:28) ~[puppet-server-release.jar:na] at puppetlabs.services.jruby.jruby_puppet_core$create_scripting_container.invoke(jruby_puppet_core.clj:164) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_core$eval6761$create_pool_instance_BANG___6762$fn__6763.invoke(jruby_puppet_core.clj:179) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_core$eval6761$create_pool_instance_BANG___6762.invoke(jruby_puppet_core.clj:167) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_agents$eval7031$prime_pool_BANG___7032$fn__7033.invoke(jruby_puppet_agents.clj:54) ~[na:na] ... 24 common frames omitted Caused by: org.jruby.exceptions.RaiseException: (LoadError) no such file to load -- puppet/defaults at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1065) ~[puppet-server-release.jar:na] at RUBY.require(/usr/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55) ~[na:na] at RUBY.Puppet(/usr/lib/ruby/vendor_ruby/puppet.rb:114) ~[na:na] at RUBY.(root)(/usr/lib/ruby/vendor_ruby/puppet.rb:29) ~[na:na] at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1065) ~[puppet-server-release.jar:na] at RUBY.(root)(/usr/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1) ~[na:na] at RUBY.require(/usr/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55) ~[na:na] at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1065) ~[puppet-server-release.jar:na] at RUBY.(root)(file:/usr/share/puppetserver/puppet-server-release.jar!/puppet-server-lib/puppet/server.rb:1) ~[na:na] at RUBY.(root)(/usr/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1) ~[na:na] at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1065) ~[puppet-server-release.jar:na] at RUBY.require(/usr/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55) ~[na:na] at RUBY.(root)(file:/usr/share/puppetserver/puppet-server-release.jar!/puppet-server-lib/puppet/server/master.rb:1) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_core$create_scripting_container.invoke(jruby_puppet_core.clj:164) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_core$eval6761$create_pool_instance_BANG___6762$fn__6763.invoke(jruby_puppet_core.clj:179) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_core$eval6761$create_pool_instance_BANG___6762.invoke(jruby_puppet_core.clj:167) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_agents$eval7031$prime_pool_BANG___7032$fn__7033.invoke(jruby_puppet_agents.clj:54) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_agents$eval7031$prime_pool_BANG___7032.invoke(jruby_puppet_agents.clj:39) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_agents$eval7108$send_prime_pool_BANG___7109$fn__7110$fn__7112.invoke(jruby_puppet_agents.clj:116) ~[na:na] at puppetlabs.trapperkeeper.internal$shutdown_on_error_STAR_.invoke(internal.clj:247) [na:na] at puppetlabs.trapperkeeper.internal$shutdown_on_error_STAR_.invoke(internal.clj:231) [na:na] at puppetlabs.trapperkeeper.internal$shutdown_service$reify__5861$service_fnk__5259__auto___positional$reify__5866.shutdown_on_error(internal.clj:286) [na:na] at puppetlabs.trapperkeeper.internal$eval5797$fn__5809$G__5783__5817.invoke(internal.clj:255) [na:na] at puppetlabs.trapperkeeper.internal$eval5797$fn__5809$G__5782__5826.invoke(internal.clj:255) [na:na] at clojure.core$apply.invoke(core.clj:619) [puppet-server-release.jar:na] at clojure.core$partial$fn__4190.doInvoke(core.clj:2396) [puppet-server-release.jar:na] at clojure.core$apply.invoke(core.clj:619) [puppet-server-release.jar:na] at clojure.core$partial$fn__4190.doInvoke(core.clj:2396) [puppet-server-release.jar:na] at puppetlabs.trapperkeeper.internal$shutdown_on_error_STAR_.invoke(internal.clj:247) ~[na:na] at puppetlabs.trapperkeeper.internal$shutdown_on_error_STAR_.invoke(internal.clj:231) ~[na:na] at puppetlabs.trapperkeeper.internal$shutdown_service$reify__5861$service_fnk__5259__auto___positional$reify__5866.shutdown_on_error(internal.clj:286) ~[na:na] at puppetlabs.trapperkeeper.internal$eval5797$fn__5809$G__5783__5817.invoke(internal.clj:255) ~[na:na] at puppetlabs.trapperkeeper.internal$eval5797$fn__5809$G__5782__5826.invoke(internal.clj:255) ~[na:na] at clojure.lang.AFn.applyToHelper(AFn.java:167) [puppet-server-release.jar:na] at clojure.lang.AFn.applyTo(AFn.java:151) [puppet-server-release.jar:na] at clojure.core$apply.invoke(core.clj:619) [puppet-server-release.jar:na] at clojure.core$partial$fn__4190.doInvoke(core.clj:2396) ~[puppet-server-release.jar:na] at clojure.lang.RestFn.applyTo(RestFn.java:137) [puppet-server-release.jar:na] at clojure.core$apply.invoke(core.clj:619) [puppet-server-release.jar:na] at clojure.core$partial$fn__4190.doInvoke(core.clj:2396) ~[puppet-server-release.jar:na] at clojure.lang.RestFn.invoke(RestFn.java:408) [puppet-server-release.jar:na] at puppetlabs.services.jruby.jruby_puppet_agents$eval7009$send_agent__7010$fn__7011$agent_fn__7012.invoke(jruby_puppet_agents.clj:35) ~[na:na] at clojure.core$binding_conveyor_fn$fn__4107.invoke(core.clj:1839) ~[puppet-server-release.jar:na] at clojure.lang.AFn.applyToHelper(AFn.java:161) [puppet-server-release.jar:na] at clojure.lang.RestFn.applyTo(RestFn.java:132) [puppet-server-release.jar:na] at clojure.lang.Agent$Action.doRun(Agent.java:114) ~[puppet-server-release.jar:na] at clojure.lang.Agent$Action.run(Agent.java:163) ~[puppet-server-release.jar:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) ~[na:1.7.0_75] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) ~[na:1.7.0_75] at java.lang.Thread.run(Thread.java:745) ~[na:1.7.0_75] Caused by: org.jruby.exceptions.RaiseException: (LoadError) no such file to load -- puppet/defaults at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1065) ~[puppet-server-release.jar:na] at RUBY.require(/usr/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55) ~[na:na] at RUBY.Puppet(/usr/lib/ruby/vendor_ruby/puppet.rb:114) ~[na:na] at RUBY.(root)(/usr/lib/ruby/vendor_ruby/puppet.rb:29) ~[na:na] at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1065) ~[puppet-server-release.jar:na] at RUBY.(root)(/usr/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1) ~[na:na] at RUBY.require(/usr/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55) ~[na:na] at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1065) ~[puppet-server-release.jar:na] at RUBY.(root)(file:/usr/share/puppetserver/puppet-server-release.jar!/puppet-server-lib/puppet/server.rb:1) ~[na:na] at RUBY.(root)(/usr/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1) ~[na:na] at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1065) ~[puppet-server-release.jar:na] at RUBY.require(/usr/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55) ~[na:na] at RUBY.(root)(file:/usr/share/puppetserver/puppet-server-release.jar!/puppet-server-lib/puppet/server/master.rb:1) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_core$create_scripting_container.invoke(jruby_puppet_core.clj:164) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_core$eval6761$create_pool_instance_BANG___6762$fn__6763.invoke(jruby_puppet_core.clj:179) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_core$eval6761$create_pool_instance_BANG___6762.invoke(jruby_puppet_core.clj:167) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_agents$eval7031$prime_pool_BANG___7032$fn__7033.invoke(jruby_puppet_agents.clj:54) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_agents$eval7031$prime_pool_BANG___7032.invoke(jruby_puppet_agents.clj:39) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_agents$eval7108$send_prime_pool_BANG___7109$fn__7110$fn__7112.invoke(jruby_puppet_agents.clj:116) ~[na:na] at puppetlabs.trapperkeeper.internal$shutdown_on_error_STAR_.invoke(internal.clj:247) ~[na:na] at puppetlabs.trapperkeeper.internal$shutdown_on_error_STAR_.invoke(internal.clj:231) ~[na:na] at puppetlabs.trapperkeeper.internal$shutdown_service$reify__5861$service_fnk__5259__auto___positional$reify__5866.shutdown_on_error(internal.clj:286) ~[na:na] at puppetlabs.trapperkeeper.internal$eval5797$fn__5809$G__5783__5817.invoke(internal.clj:255) ~[na:na] at puppetlabs.trapperkeeper.internal$eval5797$fn__5809$G__5782__5826.invoke(internal.clj:255) ~[na:na] at clojure.core$apply.invoke(core.clj:619) [puppet-server-release.jar:na] at clojure.core$partial$fn__4190.doInvoke(core.clj:2396) ~[puppet-server-release.jar:na] at clojure.core$apply.invoke(core.clj:619) [puppet-server-release.jar:na] at clojure.core$partial$fn__4190.doInvoke(core.clj:2396) ~[puppet-server-release.jar:na] at puppetlabs.services.jruby.jruby_puppet_agents$eval7009$send_agent__7010$fn__7011$agent_fn__7012.invoke(jruby_puppet_agents.clj:35) ~[na:na] at clojure.core$binding_conveyor_fn$fn__4107.invoke(core.clj:1839) ~[puppet-server-release.jar:na] 2015-03-20 16:40:59,944 INFO [p.t.internal] Beginning shutdown sequence 2015-03-20 16:40:59,953 INFO [p.t.s.w.jetty9-service] Shutting down web server(s). 2015-03-20 16:40:59,959 INFO [p.t.internal] Finished shutdown sequence Exception in thread "main" java.lang.IllegalStateException: There was a problem adding a JRubyPuppet instance to the pool. at puppetlabs.services.jruby.jruby_puppet_agents$eval7031$prime_pool_BANG___7032$fn__7033.invoke(jruby_puppet_agents.clj:59) at puppetlabs.services.jruby.jruby_puppet_agents$eval7031$prime_pool_BANG___7032.invoke(jruby_puppet_agents.clj:39) at puppetlabs.services.jruby.jruby_puppet_agents$eval7108$send_prime_pool_BANG___7109$fn__7110$fn__7112.invoke(jruby_puppet_agents.clj:116) at puppetlabs.trapperkeeper.internal$shutdown_on_error_STAR_.invoke(internal.clj:247) at puppetlabs.trapperkeeper.internal$shutdown_on_error_STAR_.invoke(internal.clj:231) at puppetlabs.trapperkeeper.internal$shutdown_service$reify__5861$service_fnk__5259__auto___positional$reify__5866.shutdown_on_error(internal.clj:286) at puppetlabs.trapperkeeper.internal$eval5797$fn__5809$G__5783__5817.invoke(internal.clj:255) at puppetlabs.trapperkeeper.internal$eval5797$fn__5809$G__5782__5826.invoke(internal.clj:255) at clojure.lang.AFn.applyToHelper(AFn.java:167) at clojure.lang.AFn.applyTo(AFn.java:151) at clojure.core$apply.invoke(core.clj:619) at clojure.core$partial$fn__4190.doInvoke(core.clj:2396) at clojure.lang.RestFn.applyTo(RestFn.java:137) at clojure.core$apply.invoke(core.clj:619) at clojure.core$partial$fn__4190.doInvoke(core.clj:2396) at clojure.lang.RestFn.invoke(RestFn.java:408) at puppetlabs.services.jruby.jruby_puppet_agents$eval7009$send_agent__7010$fn__7011$agent_fn__7012.invoke(jruby_puppet_agents.clj:35) at clojure.core$binding_conveyor_fn$fn__4107.invoke(core.clj:1839) at clojure.lang.AFn.applyToHelper(AFn.java:161) at clojure.lang.RestFn.applyTo(RestFn.java:132) at clojure.lang.Agent$Action.doRun(Agent.java:114) at clojure.lang.Agent$Action.run(Agent.java:163) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: org.jruby.embed.EvalFailedException: (LoadError) no such file to load -- puppet/defaults at org.jruby.embed.internal.EmbedEvalUnitImpl.run(EmbedEvalUnitImpl.java:133) at org.jruby.embed.ScriptingContainer.runUnit(ScriptingContainer.java:1317) at org.jruby.embed.ScriptingContainer.runScriptlet(ScriptingContainer.java:1310) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at clojure.lang.Reflector.invokeMatchingMethod(Reflector.java:93) at clojure.lang.Reflector.invokeInstanceMethod(Reflector.java:28) at puppetlabs.services.jruby.jruby_puppet_core$create_scripting_container.invoke(jruby_puppet_core.clj:164) at puppetlabs.services.jruby.jruby_puppet_core$eval6761$create_pool_instance_BANG___6762$fn__6763.invoke(jruby_puppet_core.clj:179) at puppetlabs.services.jruby.jruby_puppet_core$eval6761$create_pool_instance_BANG___6762.invoke(jruby_puppet_core.clj:167) at puppetlabs.services.jruby.jruby_puppet_agents$eval7031$prime_pool_BANG___7032$fn__7033.invoke(jruby_puppet_agents.clj:54) ... 24 more Caused by: org.jruby.exceptions.RaiseException: (LoadError) no such file to load -- puppet/defaults at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1065) at RUBY.require(/usr/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55) at RUBY.Puppet(/usr/lib/ruby/vendor_ruby/puppet.rb:114) at RUBY.(root)(/usr/lib/ruby/vendor_ruby/puppet.rb:29) at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1065) at RUBY.(root)(/usr/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1) at RUBY.require(/usr/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55) at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1065) at RUBY.(root)(file:/usr/share/puppetserver/puppet-server-release.jar!/puppet-server-lib/puppet/server.rb:1) at RUBY.(root)(/usr/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1) at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1065) at RUBY.require(/usr/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55) at RUBY.(root)(file:/usr/share/puppetserver/puppet-server-release.jar!/puppet-server-lib/puppet/server/master.rb:1) at puppetlabs.services.jruby.jruby_puppet_core$create_scripting_container.invoke(jruby_puppet_core.clj:164) at puppetlabs.services.jruby.jruby_puppet_core$eval6761$create_pool_instance_BANG___6762$fn__6763.invoke(jruby_puppet_core.clj:179) at puppetlabs.services.jruby.jruby_puppet_core$eval6761$create_pool_instance_BANG___6762.invoke(jruby_puppet_core.clj:167) at puppetlabs.services.jruby.jruby_puppet_agents$eval7031$prime_pool_BANG___7032$fn__7033.invoke(jruby_puppet_agents.clj:54) at puppetlabs.services.jruby.jruby_puppet_agents$eval7031$prime_pool_BANG___7032.invoke(jruby_puppet_agents.clj:39) at puppetlabs.services.jruby.jruby_puppet_agents$eval7108$send_prime_pool_BANG___7109$fn__7110$fn__7112.invoke(jruby_puppet_agents.clj:116) at puppetlabs.trapperkeeper.internal$shutdown_on_error_STAR_.invoke(internal.clj:247) at puppetlabs.trapperkeeper.internal$shutdown_on_error_STAR_.invoke(internal.clj:231) at puppetlabs.trapperkeeper.internal$shutdown_service$reify__5861$service_fnk__5259__auto___positional$reify__5866.shutdown_on_error(internal.clj:286) at puppetlabs.trapperkeeper.internal$eval5797$fn__5809$G__5783__5817.invoke(internal.clj:255) at puppetlabs.trapperkeeper.internal$eval5797$fn__5809$G__5782__5826.invoke(internal.clj:255) at clojure.core$apply.invoke(core.clj:619) at clojure.core$partial$fn__4190.doInvoke(core.clj:2396) at clojure.core$apply.invoke(core.clj:619) at clojure.core$partial$fn__4190.doInvoke(core.clj:2396) at puppetlabs.services.jruby.jruby_puppet_agents$eval7009$send_agent__7010$fn__7011$agent_fn__7012.invoke(jruby_puppet_agents.clj:35) at clojure.core$binding_conveyor_fn$fn__4107.invoke(core.clj:1839) {code}

    JIRA | 2 years ago | Michael Speth
    java.lang.IllegalStateException: There was a problem adding a JRubyPuppet instance to the pool.

    Root Cause Analysis

    1. org.jruby.exceptions.RaiseException

      (LoadError) no such file to load -- puppet/defaults at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1065) ~[puppet-server-release.jar:na] at RUBY.require(/usr/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55) ~[na:na] at RUBY.Puppet(/usr/lib/ruby/vendor_ruby/puppet.rb:114) ~[na:na] at RUBY.(root)(/usr/lib/ruby/vendor_ruby/puppet.rb:29) ~[na:na] at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1065) ~[puppet-server-release.jar:na] at RUBY.(root)(/usr/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1) ~[na:na] at RUBY.require(/usr/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55) ~[na:na] at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1065) ~[puppet-server-release.jar:na] at RUBY.(root)(file:/usr/share/puppetserver/puppet-server-release.jar!/puppet-server-lib/puppet/server.rb:1) ~[na:na] at RUBY.(root)(/usr/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1) ~[na:na] at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1065) ~[puppet-server-release.jar:na] at RUBY.require(/usr/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55) ~[na:na] at RUBY.(root)(file:/usr/share/puppetserver/puppet-server-release.jar!/puppet-server-lib/puppet/server/master.rb:1) ~[na:na]

      at puppetlabs.services.jruby.jruby_puppet_core$create_scripting_container.invoke()
    2. puppetlabs.services.jruby
      jruby_puppet_agents$eval7108$send_prime_pool_BANG___7109$fn__7110$fn__7112.invoke
      1. puppetlabs.services.jruby.jruby_puppet_core$create_scripting_container.invoke(jruby_puppet_core.clj:164)[na:na]
      2. puppetlabs.services.jruby.jruby_puppet_core$eval6761$create_pool_instance_BANG___6762$fn__6763.invoke(jruby_puppet_core.clj:179)[na:na]
      3. puppetlabs.services.jruby.jruby_puppet_core$eval6761$create_pool_instance_BANG___6762.invoke(jruby_puppet_core.clj:167)[na:na]
      4. puppetlabs.services.jruby.jruby_puppet_agents$eval7031$prime_pool_BANG___7032$fn__7033.invoke(jruby_puppet_agents.clj:54)[na:na]
      5. puppetlabs.services.jruby.jruby_puppet_agents$eval7031$prime_pool_BANG___7032.invoke(jruby_puppet_agents.clj:39)[na:na]
      6. puppetlabs.services.jruby.jruby_puppet_agents$eval7108$send_prime_pool_BANG___7109$fn__7110$fn__7112.invoke(jruby_puppet_agents.clj:116)[na:na]
      6 frames
    3. puppetlabs.trapperkeeper
      internal$eval5797$fn__5809$G__5782__5826.invoke
      1. puppetlabs.trapperkeeper.internal$shutdown_on_error_STAR_.invoke(internal.clj:247)[na:na]
      2. puppetlabs.trapperkeeper.internal$shutdown_on_error_STAR_.invoke(internal.clj:231)[na:na]
      3. puppetlabs.trapperkeeper.internal$shutdown_service$reify__5861$service_fnk__5259__auto___positional$reify__5866.shutdown_on_error(internal.clj:286)[na:na]
      4. puppetlabs.trapperkeeper.internal$eval5797$fn__5809$G__5783__5817.invoke(internal.clj:255)[na:na]
      5. puppetlabs.trapperkeeper.internal$eval5797$fn__5809$G__5782__5826.invoke(internal.clj:255)[na:na]
      5 frames
    4. Clojure
      core$partial$fn__4190.doInvoke
      1. clojure.core$apply.invoke(core.clj:619)[puppet-server-release.jar:na]
      2. clojure.core$partial$fn__4190.doInvoke(core.clj:2396)[puppet-server-release.jar:na]
      3. clojure.core$apply.invoke(core.clj:619)[puppet-server-release.jar:na]
      4. clojure.core$partial$fn__4190.doInvoke(core.clj:2396)[puppet-server-release.jar:na]
      4 frames
    5. puppetlabs.services.jruby
      jruby_puppet_agents$eval7009$send_agent__7010$fn__7011$agent_fn__7012.invoke
      1. puppetlabs.services.jruby.jruby_puppet_agents$eval7009$send_agent__7010$fn__7011$agent_fn__7012.invoke(jruby_puppet_agents.clj:35)[na:na]
      1 frame
    6. Clojure
      core$binding_conveyor_fn$fn__4107.invoke
      1. clojure.core$binding_conveyor_fn$fn__4107.invoke(core.clj:1839)[puppet-server-release.jar:na]
      1 frame