java.lang.IllegalStateException

Unable to borrow JRuby instance from pool

Solutions on the web13382

  • via JIRA by Ben Ford, 1 year ago
    Unable to borrow JRuby instance from pool
  • via JIRA by Jeff McCune, 9 months ago
    Unable to borrow JRuby instance from pool
  • via JIRA by Ben Ford, 1 year ago
    Unable to borrow JRuby instance from pool
  • Stack trace

    • java.lang.IllegalStateException: Unable to borrow JRuby instance from pool at puppetlabs.services.jruby.jruby_puppet_core$eval6898$validate_instance_from_pool_BANG___6899$fn__6900.invoke(jruby_puppet_core.clj:293)[na:na] at puppetlabs.services.jruby.jruby_puppet_core$eval6898$validate_instance_from_pool_BANG___6899.invoke(jruby_puppet_core.clj:283)[na:na] at puppetlabs.services.jruby.jruby_puppet_core$eval6996$borrow_from_pool_with_timeout__6997$fn__6998.invoke(jruby_puppet_core.clj:343)[na:na] at puppetlabs.services.jruby.jruby_puppet_core$eval6996$borrow_from_pool_with_timeout__6997.invoke(jruby_puppet_core.clj:331)[na:na] at puppetlabs.services.jruby.jruby_puppet_service$reify__7276$service_fnk__5259__auto___positional$reify__7287.borrow_instance(jruby_puppet_service.clj:55)[na:na] at puppetlabs.services.config.puppet_server_config_core$eval9656$get_puppet_config__9657$fn__9658$fn__9659.invoke(puppet_server_config_core.clj:102)[na:na] at puppetlabs.services.config.puppet_server_config_core$eval9656$get_puppet_config__9657$fn__9658.invoke(puppet_server_config_core.clj:102)[na:na] at puppetlabs.services.config.puppet_server_config_core$eval9656$get_puppet_config__9657.invoke(puppet_server_config_core.clj:97)[na:na] at puppetlabs.services.config.puppet_server_config_service$reify__9683$service_fnk__5259__auto___positional$reify__9694.init(puppet_server_config_service.clj:24)[na:na] at puppetlabs.trapperkeeper.services$eval5095$fn__5096$G__5087__5099.invoke(services.clj:12)[na:na] at puppetlabs.trapperkeeper.services$eval5095$fn__5096$G__5086__5103.invoke(services.clj:12)[na:na] at puppetlabs.trapperkeeper.internal$run_lifecycle_fn_BANG_.invoke(internal.clj:145)[na:na] at puppetlabs.trapperkeeper.internal$run_lifecycle_fns.invoke(internal.clj:173)[na:na] at puppetlabs.trapperkeeper.internal$build_app_STAR_$reify__5953.init(internal.clj:437)[na:na] at puppetlabs.trapperkeeper.internal$boot_services_STAR_$fn__5965.invoke(internal.clj:463)[na:na] at puppetlabs.trapperkeeper.internal$boot_services_STAR_.invoke(internal.clj:462)[na:na] at puppetlabs.trapperkeeper.core$boot_with_cli_data.invoke(core.clj:113)[na:na] at puppetlabs.trapperkeeper.core$run.invoke(core.clj:144)[na:na] at puppetlabs.trapperkeeper.core$main.doInvoke(core.clj:159)[na:na] at clojure.lang.RestFn.invoke(RestFn.java:457)[puppet-server-release.jar:na] at clojure.lang.Var.invoke(Var.java:394)[puppet-server-release.jar:na] at clojure.lang.AFn.applyToHelper(AFn.java:165)[puppet-server-release.jar:na] at clojure.lang.Var.applyTo(Var.java:700)[puppet-server-release.jar:na] at clojure.core$apply.invoke(core.clj:624)[puppet-server-release.jar:na] at puppetlabs.trapperkeeper.main$_main.doInvoke(main.clj:7)[puppet-server-release.jar:na] at clojure.lang.RestFn.invoke(RestFn.java:457)[puppet-server-release.jar:na] at clojure.lang.Var.invoke(Var.java:394)[puppet-server-release.jar:na] at clojure.lang.AFn.applyToHelper(AFn.java:165)[puppet-server-release.jar:na] at clojure.lang.Var.applyTo(Var.java:700)[puppet-server-release.jar:na] at clojure.core$apply.invoke(core.clj:624)[puppet-server-release.jar:na] at clojure.main$main_opt.invoke(main.clj:315)[puppet-server-release.jar:na] at clojure.main$main.doInvoke(main.clj:420)[puppet-server-release.jar:na] at clojure.lang.RestFn.invoke(RestFn.java:512)[puppet-server-release.jar:na] at clojure.lang.Var.invoke(Var.java:409)[puppet-server-release.jar:na] at clojure.lang.AFn.applyToHelper(AFn.java:178)[puppet-server-release.jar:na] at clojure.lang.Var.applyTo(Var.java:700)[puppet-server-release.jar:na] at clojure.main.main(main.java:37)[puppet-server-release.jar:na] Caused by: org.jruby.embed.InvokeFailedException: (RuntimeError) Got 2 failure(s) while initializing: File[/var/run/puppetlabs/puppetserver]: change from absent to directory failed: Could not set 'directory' on ensure: Permission denied - /var/run/puppetlabs/puppetserver; File[/etc /puppetlabs/puppet/ssl]: change from absent to directory failed: Could not set 'directory' on ensure: Permission denied - /etc/puppetlabs/pup pet/ssl at org.jruby.embed.internal.EmbedRubyObjectAdapterImpl.call(EmbedRubyObjectAdapterImpl.java:317)[puppet-server-release.jar:na] at org.jruby.embed.internal.EmbedRubyObjectAdapterImpl.callMethod(EmbedRubyObjectAdapterImpl.java:169)[puppet-server-release.jar:na] at org.jruby.embed.ScriptingContainer.callMethod(ScriptingContainer.java:1508)[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$eval6798$create_pool_instance_BANG___6799$fn__6800.invoke(jruby_puppet_core.clj:229)[na:na] at puppetlabs.services.jruby.jruby_puppet_core$eval6798$create_pool_instance_BANG___6799.invoke(jruby_puppet_core.clj:199)[na:na] at puppetlabs.services.jruby.jruby_puppet_agents$eval7068$prime_pool_BANG___7069$fn__7070.invoke(jruby_puppet_agents.clj:54)[na:na] at puppetlabs.services.jruby.jruby_puppet_agents$eval7068$prime_pool_BANG___7069.invoke(jruby_puppet_agents.clj:39)[na:na] at puppetlabs.services.jruby.jruby_puppet_agents$eval7145$send_prime_pool_BANG___7146$fn__7147$fn__7149.invoke(jruby_puppet_agents.clj:117)[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:160)[puppet-server-release.jar:na] at clojure.lang.AFn.applyTo(AFn.java:144)[puppet-server-release.jar:na] at clojure.core$apply.invoke(core.clj:626)[puppet-server-release.jar:na] at clojure.core$partial$fn__4228.doInvoke(core.clj:2468)[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:626)[puppet-server-release.jar:na] at clojure.core$partial$fn__4228.doInvoke(core.clj:2468)[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$eval7046$send_agent__7047$fn__7048$agent_fn__7049.invoke(jruby_puppet_agents.clj:35)[na:na] at clojure.core$binding_conveyor_fn$fn__4145.invoke(core.clj:1913)[puppet-server-release.jar:na] at clojure.lang.AFn.applyToHelper(AFn.java:154)[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: (RuntimeError) Got 2 failure(s) while initializing: File[/var/run/puppetlabs/puppetserver]: c hange from absent to directory failed: Could not set 'directory' on ensure: Permission denied - /var/run/puppetlabs/puppetserver; File[/etc/p uppetlabs/puppet/ssl]: change from absent to directory failed: Could not set 'directory' on ensure: Permission denied - /etc/puppetlabs/puppe t/ssl at RUBY.use(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/settings.rb:948) ~[na:na] at RUBY.apply(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:190) ~[na:na] at RUBY.use(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/settings.rb:938) ~[na:na] at RUBY.initialize_puppet(file:/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/puppet-server-lib/puppet/server/pu ppet_config.rb:42) ~[na:na] at RUBY.initialize(file:/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/puppet-server-lib/puppet/server/master.rb :27) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_core$eval6798$create_pool_instance_BANG___6799$fn__6800.invoke(jruby_puppet_core.clj:229)[na:na] at puppetlabs.services.jruby.jruby_puppet_core$eval6798$create_pool_instance_BANG___6799.invoke(jruby_puppet_core.clj:199)[na:na] at puppetlabs.services.jruby.jruby_puppet_agents$eval7068$prime_pool_BANG___7069$fn__7070.invoke(jruby_puppet_agents.clj:54)[na:na] at puppetlabs.services.jruby.jruby_puppet_agents$eval7068$prime_pool_BANG___7069.invoke(jruby_puppet_agents.clj:39)[na:na] at puppetlabs.services.jruby.jruby_puppet_agents$eval7145$send_prime_pool_BANG___7146$fn__7147$fn__7149.invoke(jruby_puppet_agents.clj:117)[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:626)[puppet-server-release.jar:na] at clojure.core$partial$fn__4228.doInvoke(core.clj:2468)[puppet-server-release.jar:na] at clojure.core$apply.invoke(core.clj:626)[puppet-server-release.jar:na] at clojure.core$partial$fn__4228.doInvoke(core.clj:2468)[puppet-server-release.jar:na] at puppetlabs.services.jruby.jruby_puppet_agents$eval7046$send_agent__7047$fn__7048$agent_fn__7049.invoke(jruby_puppet_agents.clj:35)[na:na] at clojure.core$binding_conveyor_fn$fn__4145.invoke(core.clj:1913)[puppet-server-release.jar:na]

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.