org.jruby.exceptions.RaiseException: (InvalidByteSequenceError) ""\xA7"" on ASCII-8BIT

JIRA | Santo Natale | 3 years ago
  1. 0

    Hi, I'm experiencing the exception below on Windows 2008 r2/Windows 2012: ###################################################### Exception in thread "LogStash::Runner" org.jruby.exceptions.RaiseException: (InvalidByteSequenceError) ""\xA7"" on ASCII-8BIT at org.jruby.RubyString.encode(org/jruby/RubyString.java:7599) at json.ext.GeneratorMethods$RbHash.to_json(json/ext/GeneratorMethods.java:71) at LogStash::Event.to_json(file:/C:/logstash/logstash.jar!/logstash/event.rb:168) at LogStash::Outputs::Redis.receive(file:/C:/logstash/logstash.jar!/logstash/outputs/redis.rb:151) at LogStash::Outputs::Base.handle(file:/C:/logstash/logstash.jar!/logstash/outputs/base.rb:86) at RUBY.initialize((eval):17) at org.jruby.RubyProc.call(org/jruby/RubyProc.java:271) at LogStash::Pipeline.output(file:/C:/logstash/logstash.jar!/logstash/pipeline.rb:259) at RUBY.outputworker(file:/C:/logstash/logstash.jar!/logstash/pipeline.rb:218) at RUBY.start_outputs(file:/C:/logstash/logstash.jar!/logstash/pipeline.rb:145) ############################################# This happens randomly, but quite often ( several times per day ). Here's the configuration file: ########################################## input { eventlog { logfile => ["Application", "Security", "System", "Forwarded Events"] } } output { # stdout { codec => rubydebug } redis { host => "redis.example.com" data_type => "list" key => "eventlogs" } } ################################## The java implementation used is java sun jre7u51 . Different logstash instances on linux machines with openjdk 7u51 with output on the same redis server don't experience the crash. Do you need additional details ? Thank you very much,

    JIRA | 3 years ago | Santo Natale
    org.jruby.exceptions.RaiseException: (InvalidByteSequenceError) ""\xA7"" on ASCII-8BIT
  2. 0

    I got the following error when I enable Windows servers to send Eventlogs via NXLog to Logstash: Exception in thread "LogStash::Runner" org.jruby.exceptions.RaiseException: (InvalidByteSequenceError) ""\xE2"" on ASCII-8BIT at org.jruby.RubyString.encode(org/jruby/RubyString.java:7599) at json.ext.GeneratorMethods$RbHash.to_json(json/ext/GeneratorMethods.java:71) at LogStash::Event.to_json(file:/opt/logstash/logstash-1.3.0.dev-4fc342b-flatjar.jar!/logstash/event.rb:157) at LogStash::Outputs::File.receive(file:/opt/logstash/logstash-1.3.0.dev-4fc342b-flatjar.jar!/logstash/outputs/file.rb:72) at LogStash::Outputs::Base.handle(file:/opt/logstash/logstash-1.3.0.dev-4fc342b-flatjar.jar!/logstash/outputs/base.rb:86) at RUBY.initialize((eval):269) at org.jruby.RubyProc.call(org/jruby/RubyProc.java:271) at LogStash::Pipeline.output(file:/opt/logstash/logstash-1.3.0.dev-4fc342b-flatjar.jar!/logstash/pipeline.rb:259) at RUBY.outputworker(file:/opt/logstash/logstash-1.3.0.dev-4fc342b-flatjar.jar!/logstash/pipeline.rb:218) at RUBY.start_outputs(file:/opt/logstash/logstash-1.3.0.dev-4fc342b-flatjar.jar!/logstash/pipeline.rb:145) After this logstash exists. The problem is connected to the file output module. If I enable it it dies in a minute, without it it is stable. The relevant output config is: file { path => "/var/log/logstash-export/%{+YYYY-MM-dd}/% {host} /% {source} .log" codec => plain { charset => "UTF-8" } } Original issue was LOGSTASH-1595.

    JIRA | 3 years ago | Laszlo Toth
    org.jruby.exceptions.RaiseException: (InvalidByteSequenceError) ""\xE2"" on ASCII-8BIT
  3. 0

    Getting this quite a bit: 2013-11-06_17:30:06.92724 {:timestamp=>"2013-11-06T17:30:06.926000+0000", :message=>"Failed to flush outgoing items", :outgoing_count=>18, :exception=>#<Encoding::InvalidByteSequenceError: ""\xDE"" on ASCII-8BIT>, :backtrace=>["org/jruby/RubyString.java:7596:in `encode'", "json/ext/GeneratorMethods.java:71:in `to_json'", "file:/usr/local/logstash/server/lib/logstash-1.2.2.jar!/logstash/event.rb:156:in `to_json'", "file:/usr/local/logstash/server/lib/logstash-1.2.2.jar!/logstash/outputs/elasticsearch.rb:163:in `flush'", "org/jruby/RubyArray.java:1613:in `each'", "file:/usr/local/logstash/server/lib/logstash-1.2.2.jar!/logstash/outputs/elasticsearch.rb:158:in `flush'", "file:/usr/local/logstash/server/lib/logstash-1.2.2.jar!/stud/buffer.rb:219:in `buffer_flush'", "org/jruby/RubyHash.java:1324:in `each'", "file:/usr/local/logstash/server/lib/logstash-1.2.2.jar!/stud/buffer.rb:216:in `buffer_flush'", "file:/usr/local/logstash/server/lib/logstash-1.2.2.jar!/stud/buffer.rb:193:in `buffer_flush'", "file:/usr/local/logstash/server/lib/logstash-1.2.2.jar!/stud/buffer.rb:112:in `buffer_initialize'", "org/jruby/RubyKernel.java:1517:in `loop'", "file:/usr/local/logstash/server/lib/logstash-1.2.2.jar!/stud/buffer.rb:110:in `buffer_initialize'"], :level=>:warn} 2013-11-06_17:30:06.97237 Exception in thread "LogStash::Runner" org.jruby.exceptions.RaiseException: (InvalidByteSequenceError) ""\xDE"" on ASCII-8BIT 2013-11-06_17:30:06.97246 at org.jruby.RubyString.encode(org/jruby/RubyString.java:7596) 2013-11-06_17:30:06.97247 at json.ext.GeneratorMethods$RbHash.to_json(json/ext/GeneratorMethods.java:71) 2013-11-06_17:30:06.97247 at LogStash::Event.to_json(file:/usr/local/logstash/server/lib/logstash-1.2.2.jar!/logstash/event.rb:156) 2013-11-06_17:30:06.97248 at LogStash::Codecs::JSON.encode(file:/usr/local/logstash/server/lib/logstash-1.2.2.jar!/logstash/codecs/json.rb:37) 2013-11-06_17:30:06.97248 at LogStash::Outputs::Tcp.receive(file:/usr/local/logstash/server/lib/logstash-1.2.2.jar!/logstash/outputs/tcp.rb:142) 2013-11-06_17:30:06.97249 at LogStash::Outputs::Base.handle(file:/usr/local/logstash/server/lib/logstash-1.2.2.jar!/logstash/outputs/base.rb:85) 2013-11-06_17:30:06.97250 at RUBY.initialize((eval):117) 2013-11-06_17:30:06.97251 at org.jruby.RubyProc.call(org/jruby/RubyProc.java:271) 2013-11-06_17:30:06.97253 at LogStash::Pipeline.output(file:/usr/local/logstash/server/lib/logstash-1.2.2.jar!/logstash/pipeline.rb:254) 2013-11-06_17:30:06.97254 at RUBY.outputworker(file:/usr/local/logstash/server/lib/logstash-1.2.2.jar!/logstash/pipeline.rb:213) 2013-11-06_17:30:06.97255 at RUBY.start_outputs(file:/usr/local/logstash/server/lib/logstash-1.2.2.jar!/logstash/pipeline.rb:140)

    JIRA | 3 years ago | Scott Smith
    org.jruby.exceptions.RaiseException: (InvalidByteSequenceError) ""\xDE"" on ASCII-8BIT
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Installing an experimental build of 2.0.0-rc1, built in Job 5 from commit aba66ac using the experimental AIO pipeline at https://jenkins.puppetlabs.com/view/Puppet%20Server/view/aio/job/experimental_puppet-server_init-manual_aio/ I get this error trying to run {{puppetserver foreground}} immediately after installation. I suspect this is related to SERVER-404 not being merged, along with SERVER-336. If we don't have acceptance tests for those tickets, we should definitely consider adding them. {code} [root@xqtfp3v6qzd7agn ~]# puppetserver foreground bash: puppetserver: command not found [root@xqtfp3v6qzd7agn ~]# /opt/puppetlabs/bin/puppetserver foreground 2015-03-10 23:06:34,965 INFO [p.s.j.jruby-puppet-service] Initializing the JRuby service 2015-03-10 23:06:34,982 INFO [p.t.s.w.jetty9-service] Initializing web server(s). 2015-03-10 23:06:47,723 INFO [puppet-server] Puppet Puppet settings initialized; run mode: master 2015-03-10 23:06:49,597 ERROR [puppet-server] Puppet Could not set 'directory' on ensure: Permission denied - /var/run/puppetlabs/puppetserve r org/jruby/RubyDir.java:443:in `mkdir' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/file/ensure.rb:88:in `set_directory' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:48:in `withumask' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/file/ensure.rb:87:in `set_directory' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/property.rb:427:in `set' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/property.rb:501:in `sync' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/file/ensure.rb:183:in `sync' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:209:in `sync' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:134:in `sync_if_needed' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:81:in `perform_changes' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:20:in `evaluate' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:204:in `apply' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:219:in `eval_resource' org/jruby/RubyMethod.java:128:in `call' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:147:in `evaluate' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:284:in `thinmark' /opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/1.9/benchmark.rb:295:in `realtime' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:283:in `thinmark' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:147:in `evaluate' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:118:in `traverse' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:138:in `evaluate' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:178:in `apply' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/log.rb:157:in `with_destination' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/report.rb:107:in `as_logging_destination' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:177:in `apply' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/settings.rb:938:in `use' file:/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/puppet-server-lib/puppet/server/puppet_config.rb:42:in `initialize_p uppet' file:/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/puppet-server-lib/puppet/server/master.rb:27:in `initialize' jruby_puppet_core.clj:229:in `invoke' jruby_puppet_core.clj:199:in `invoke' jruby_puppet_agents.clj:54:in `invoke' jruby_puppet_agents.clj:39:in `invoke' jruby_puppet_agents.clj:117:in `invoke' internal.clj:247:in `invoke' internal.clj:231:in `invoke' internal.clj:286:in `shutdown_on_error' internal.clj:255:in `invoke' internal.clj:255:in `invoke' core.clj:626:in `invoke' core.clj:2468:in `doInvoke' core.clj:626:in `invoke' core.clj:2468:in `doInvoke' jruby_puppet_agents.clj:35:in `invoke' core.clj:1913:in `invoke' 2015-03-10 23:06:49,686 ERROR [puppet-server] Puppet Could not set 'directory' on ensure: Permission denied - /var/run/puppetlabs/puppetserve r org/jruby/RubyDir.java:443:in `mkdir' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/file/ensure.rb:88:in `set_directory' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:48:in `withumask' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/file/ensure.rb:87:in `set_directory' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/property.rb:427:in `set' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/property.rb:501:in `sync' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/file/ensure.rb:183:in `sync' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:209:in `sync' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:134:in `sync_if_needed' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:81:in `perform_changes' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:20:in `evaluate' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:204:in `apply' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:219:in `eval_resource' org/jruby/RubyMethod.java:128:in `call' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:147:in `evaluate' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:284:in `thinmark' /opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/1.9/benchmark.rb:295:in `realtime' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:283:in `thinmark' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:147:in `evaluate' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:118:in `traverse' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:138:in `evaluate' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:178:in `apply' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/log.rb:157:in `with_destination' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/report.rb:107:in `as_logging_destination' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:177:in `apply' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/settings.rb:938:in `use' file:/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/puppet-server-lib/puppet/server/puppet_config.rb:42:in `initialize_p uppet' file:/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/puppet-server-lib/puppet/server/master.rb:27:in `initialize' jruby_puppet_core.clj:229:in `invoke' jruby_puppet_core.clj:199:in `invoke' jruby_puppet_agents.clj:54:in `invoke' jruby_puppet_agents.clj:39:in `invoke' jruby_puppet_agents.clj:117:in `invoke' internal.clj:247:in `invoke' internal.clj:231:in `invoke' internal.clj:286:in `shutdown_on_error' internal.clj:255:in `invoke' internal.clj:255:in `invoke' core.clj:626:in `invoke' core.clj:2468:in `doInvoke' core.clj:626:in `invoke' core.clj:2468:in `doInvoke' jruby_puppet_agents.clj:35:in `invoke' core.clj:1913:in `invoke' Wrapped exception: Permission denied - /var/run/puppetlabs/puppetserver org/jruby/RubyDir.java:443:in `mkdir' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/file/ensure.rb:88:in `set_directory' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:48:in `withumask' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/file/ensure.rb:87:in `set_directory' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/property.rb:427:in `set' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/property.rb:501:in `sync' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/file/ensure.rb:183:in `sync' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:209:in `sync' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:134:in `sync_if_needed' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:81:in `perform_changes' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:20:in `evaluate' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:204:in `apply' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:219:in `eval_resource' org/jruby/RubyMethod.java:128:in `call' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:147:in `evaluate' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:284:in `thinmark' /opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/1.9/benchmark.rb:295:in `realtime' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:283:in `thinmark' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:147:in `evaluate' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:118:in `traverse' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:138:in `evaluate' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:178:in `apply' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/log.rb:157:in `with_destination' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/report.rb:107:in `as_logging_destination' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:177:in `apply' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/settings.rb:938:in `use' file:/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/puppet-server-lib/puppet/server/puppet_config.rb:42:in `initialize_p uppet' file:/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/puppet-server-lib/puppet/server/master.rb:27:in `initialize' jruby_puppet_core.clj:229:in `invoke' jruby_puppet_core.clj:199:in `invoke' jruby_puppet_agents.clj:54:in `invoke' jruby_puppet_agents.clj:39:in `invoke' jruby_puppet_agents.clj:117:in `invoke' internal.clj:247:in `invoke' internal.clj:231:in `invoke' internal.clj:286:in `shutdown_on_error' internal.clj:255:in `invoke' internal.clj:255:in `invoke' core.clj:626:in `invoke' core.clj:2468:in `doInvoke' core.clj:626:in `invoke' core.clj:2468:in `doInvoke' jruby_puppet_agents.clj:35:in `invoke' core.clj:1913:in `invoke' 2015-03-10 23:06:49,697 ERROR [puppet-server] /File[/var/run/puppetlabs/puppetserver]/ensure change from absent to directory failed: Could no t set 'directory' on ensure: Permission denied - /var/run/puppetlabs/puppetserver 2015-03-10 23:06:49,748 ERROR [puppet-server] Puppet Could not set 'directory' on ensure: Permission denied - /etc/puppetlabs/puppet/ssl org/jruby/RubyDir.java:443:in `mkdir' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/file/ensure.rb:88:in `set_directory' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:48:in `withumask' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/file/ensure.rb:87:in `set_directory' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/property.rb:427:in `set' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/property.rb:501:in `sync' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/file/ensure.rb:183:in `sync' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:209:in `sync' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:134:in `sync_if_needed' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:81:in `perform_changes' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:20:in `evaluate' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:204:in `apply' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:219:in `eval_resource' org/jruby/RubyMethod.java:128:in `call' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:147:in `evaluate' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:284:in `thinmark' /opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/1.9/benchmark.rb:295:in `realtime' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:283:in `thinmark' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:147:in `evaluate' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:118:in `traverse' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:138:in `evaluate' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:178:in `apply' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/log.rb:157:in `with_destination' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/report.rb:107:in `as_logging_destination' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:177:in `apply' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/settings.rb:938:in `use' file:/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/puppet-server-lib/puppet/server/puppet_config.rb:42:in `initialize_p uppet' file:/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/puppet-server-lib/puppet/server/master.rb:27:in `initialize' jruby_puppet_core.clj:229:in `invoke' jruby_puppet_core.clj:199:in `invoke' jruby_puppet_agents.clj:54:in `invoke' jruby_puppet_agents.clj:39:in `invoke' jruby_puppet_agents.clj:117:in `invoke' internal.clj:247:in `invoke' internal.clj:231:in `invoke' internal.clj:286:in `shutdown_on_error' internal.clj:255:in `invoke' internal.clj:255:in `invoke' core.clj:626:in `invoke' core.clj:2468:in `doInvoke' core.clj:626:in `invoke' core.clj:2468:in `doInvoke' jruby_puppet_agents.clj:35:in `invoke' core.clj:1913:in `invoke' 2015-03-10 23:06:49,775 ERROR [puppet-server] Puppet Could not set 'directory' on ensure: Permission denied - /etc/puppetlabs/puppet/ssl org/jruby/RubyDir.java:443:in `mkdir' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/file/ensure.rb:88:in `set_directory' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:48:in `withumask' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/file/ensure.rb:87:in `set_directory' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/property.rb:427:in `set' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/property.rb:501:in `sync' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/file/ensure.rb:183:in `sync' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:209:in `sync' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:134:in `sync_if_needed' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:81:in `perform_changes' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:20:in `evaluate' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:204:in `apply' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:219:in `eval_resource' org/jruby/RubyMethod.java:128:in `call' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:147:in `evaluate' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:284:in `thinmark' /opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/1.9/benchmark.rb:295:in `realtime' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:283:in `thinmark' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:147:in `evaluate' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:118:in `traverse' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:138:in `evaluate' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:178:in `apply' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/log.rb:157:in `with_destination' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/report.rb:107:in `as_logging_destination' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:177:in `apply' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/settings.rb:938:in `use' file:/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/puppet-server-lib/puppet/server/puppet_config.rb:42:in `initialize_p uppet' file:/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/puppet-server-lib/puppet/server/master.rb:27:in `initialize' jruby_puppet_core.clj:229:in `invoke' jruby_puppet_core.clj:199:in `invoke' jruby_puppet_agents.clj:54:in `invoke' jruby_puppet_agents.clj:39:in `invoke' jruby_puppet_agents.clj:117:in `invoke' internal.clj:247:in `invoke' internal.clj:231:in `invoke' internal.clj:286:in `shutdown_on_error' internal.clj:255:in `invoke' internal.clj:255:in `invoke' core.clj:626:in `invoke' core.clj:2468:in `doInvoke' core.clj:626:in `invoke' core.clj:2468:in `doInvoke' jruby_puppet_agents.clj:35:in `invoke' core.clj:1913:in `invoke' Wrapped exception: Permission denied - /etc/puppetlabs/puppet/ssl org/jruby/RubyDir.java:443:in `mkdir' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/file/ensure.rb:88:in `set_directory' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:48:in `withumask' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/file/ensure.rb:87:in `set_directory' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/property.rb:427:in `set' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/property.rb:501:in `sync' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/file/ensure.rb:183:in `sync' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:209:in `sync' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:134:in `sync_if_needed' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:81:in `perform_changes' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:20:in `evaluate' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:204:in `apply' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:219:in `eval_resource' org/jruby/RubyMethod.java:128:in `call' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:147:in `evaluate' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:284:in `thinmark' /opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/1.9/benchmark.rb:295:in `realtime' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:283:in `thinmark' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:147:in `evaluate' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:118:in `traverse' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:138:in `evaluate' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:178:in `apply' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/log.rb:157:in `with_destination' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/report.rb:107:in `as_logging_destination' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:177:in `apply' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/settings.rb:938:in `use' file:/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/puppet-server-lib/puppet/server/puppet_config.rb:42:in `initialize_p uppet' file:/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/puppet-server-lib/puppet/server/master.rb:27:in `initialize' jruby_puppet_core.clj:229:in `invoke' jruby_puppet_core.clj:199:in `invoke' jruby_puppet_agents.clj:54:in `invoke' jruby_puppet_agents.clj:39:in `invoke' jruby_puppet_agents.clj:117:in `invoke' internal.clj:247:in `invoke' internal.clj:231:in `invoke' internal.clj:286:in `shutdown_on_error' internal.clj:255:in `invoke' internal.clj:255:in `invoke' core.clj:626:in `invoke' core.clj:2468:in `doInvoke' core.clj:626:in `invoke' core.clj:2468:in `doInvoke' jruby_puppet_agents.clj:35:in `invoke' core.clj:1913:in `invoke' 2015-03-10 23:06:49,777 ERROR [puppet-server] /File[/etc/puppetlabs/puppet/ssl]/ensure change from absent to directory failed: Could not set 'directory' on ensure: Permission denied - /etc/puppetlabs/puppet/ssl 2015-03-10 23:06:49,779 INFO [puppet-server] /File[/etc/puppetlabs/puppet/ssl/certs] Dependency File[/etc/puppetlabs/puppet/ssl] has failure s: true 2015-03-10 23:06:49,780 WARN [puppet-server] /File[/etc/puppetlabs/puppet/ssl/certs] Skipping because of failed dependencies 2015-03-10 23:06:49,782 INFO [puppet-server] /File[/etc/puppetlabs/puppet/ssl/public_keys] Dependency File[/etc/puppetlabs/puppet/ssl] has f ailures: true 2015-03-10 23:06:49,782 WARN [puppet-server] /File[/etc/puppetlabs/puppet/ssl/public_keys] Skipping because of failed dependencies 2015-03-10 23:06:49,784 INFO [puppet-server] /File[/etc/puppetlabs/puppet/ssl/certificate_requests] Dependency File[/etc/puppetlabs/puppet/s sl] has failures: true 2015-03-10 23:06:49,785 WARN [puppet-server] /File[/etc/puppetlabs/puppet/ssl/certificate_requests] Skipping because of failed dependencies 2015-03-10 23:06:49,786 INFO [puppet-server] /File[/etc/puppetlabs/puppet/ssl/private_keys] Dependency File[/etc/puppetlabs/puppet/ssl] has failures: true 2015-03-10 23:06:49,787 WARN [puppet-server] /File[/etc/puppetlabs/puppet/ssl/private_keys] Skipping because of failed dependencies 2015-03-10 23:06:49,789 INFO [puppet-server] /File[/etc/puppetlabs/puppet/ssl/private] Dependency File[/etc/puppetlabs/puppet/ssl] has failu res: true 2015-03-10 23:06:49,790 WARN [puppet-server] /File[/etc/puppetlabs/puppet/ssl/private] Skipping because of failed dependencies 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 dire ctory failed: Could not set 'directory' on ensure: Permission denied - /etc/puppetlabs/puppet/ssl use at /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/settings.rb:948 apply at /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:190 use at /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/settings.rb:938 initialize_puppet at file:/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/puppet-server-lib/puppet/server/puppet_config .rb:42 initialize at file:/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/puppet-server-lib/puppet/server/master.rb:27 invoke at jruby_puppet_core.clj:229 invoke at jruby_puppet_core.clj:199 invoke at jruby_puppet_agents.clj:54 invoke at jruby_puppet_agents.clj:39 invoke at jruby_puppet_agents.clj:117 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:626 doInvoke at core.clj:2468 invoke at core.clj:626 doInvoke at core.clj:2468 invoke at jruby_puppet_agents.clj:35 invoke at core.clj:1913 2015-03-10 23:06:49,841 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$eval7068$prime_pool_BANG___7069$fn__7070.invoke(jruby_puppet_agents.clj:59) ~[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.cl j: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.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] ... 24 common frames omitted 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.cl j: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] 2015-03-10 23:06:49,858 ERROR [p.t.internal] Error during service init!!! 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) ~[n a: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_confi g_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.cl j:102) ~[na:na] at puppetlabs.services.config.puppet_server_config_core$eval9656$get_puppet_config__9657.invoke(puppet_server_config_core.clj:97) ~[n a:na] at puppetlabs.services.config.puppet_server_config_service$reify__9683$service_fnk__5259__auto___positional$reify__9694.init(puppet_s erver_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.cl j: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.cl j: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] 2015-03-10 23:06:49,863 INFO [p.t.internal] Beginning shutdown sequence 2015-03-10 23:06:49,866 INFO [p.t.s.w.jetty9-service] Shutting down web server(s). 2015-03-10 23:06:49,871 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$eval7068$prime_pool_BANG___7069$fn__7070.invoke(jruby_puppet_agents.clj:59) at puppetlabs.services.jruby.jruby_puppet_agents$eval7068$prime_pool_BANG___7069.invoke(jruby_puppet_agents.clj:39) at puppetlabs.services.jruby.jruby_puppet_agents$eval7145$send_prime_pool_BANG___7146$fn__7147$fn__7149.invoke(jruby_puppet_agents.cl j:117) 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:160) at clojure.lang.AFn.applyTo(AFn.java:144) at clojure.core$apply.invoke(core.clj:626) at clojure.core$partial$fn__4228.doInvoke(core.clj:2468) at clojure.lang.RestFn.applyTo(RestFn.java:137) at clojure.core$apply.invoke(core.clj:626) at clojure.core$partial$fn__4228.doInvoke(core.clj:2468) at clojure.lang.RestFn.invoke(RestFn.java:408) at puppetlabs.services.jruby.jruby_puppet_agents$eval7046$send_agent__7047$fn__7048$agent_fn__7049.invoke(jruby_puppet_agents.clj:35) at clojure.core$binding_conveyor_fn$fn__4145.invoke(core.clj:1913) at clojure.lang.AFn.applyToHelper(AFn.java:154) 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.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) at org.jruby.embed.internal.EmbedRubyObjectAdapterImpl.callMethod(EmbedRubyObjectAdapterImpl.java:169) at org.jruby.embed.ScriptingContainer.callMethod(ScriptingContainer.java:1508) 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$eval6798$create_pool_instance_BANG___6799$fn__6800.invoke(jruby_puppet_core.clj:229) at puppetlabs.services.jruby.jruby_puppet_core$eval6798$create_pool_instance_BANG___6799.invoke(jruby_puppet_core.clj:199) at puppetlabs.services.jruby.jruby_puppet_agents$eval7068$prime_pool_BANG___7069$fn__7070.invoke(jruby_puppet_agents.clj:54) ... 24 more 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) at RUBY.apply(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:190) at RUBY.use(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/settings.rb:938) at RUBY.initialize_puppet(file:/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/puppet-server-lib/puppet/server/pu ppet_config.rb:42) at RUBY.initialize(file:/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/puppet-server-lib/puppet/server/master.rb :27) at puppetlabs.services.jruby.jruby_puppet_core$eval6798$create_pool_instance_BANG___6799$fn__6800.invoke(jruby_puppet_core.clj:229) at puppetlabs.services.jruby.jruby_puppet_core$eval6798$create_pool_instance_BANG___6799.invoke(jruby_puppet_core.clj:199) at puppetlabs.services.jruby.jruby_puppet_agents$eval7068$prime_pool_BANG___7069$fn__7070.invoke(jruby_puppet_agents.clj:54) at puppetlabs.services.jruby.jruby_puppet_agents$eval7068$prime_pool_BANG___7069.invoke(jruby_puppet_agents.clj:39) at puppetlabs.services.jruby.jruby_puppet_agents$eval7145$send_prime_pool_BANG___7146$fn__7147$fn__7149.invoke(jruby_puppet_agents.cl j:117) 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:626) at clojure.core$partial$fn__4228.doInvoke(core.clj:2468) at clojure.core$apply.invoke(core.clj:626) at clojure.core$partial$fn__4228.doInvoke(core.clj:2468) at puppetlabs.services.jruby.jruby_puppet_agents$eval7046$send_agent__7047$fn__7048$agent_fn__7049.invoke(jruby_puppet_agents.clj:35) at clojure.core$binding_conveyor_fn$fn__4145.invoke(core.clj:1913) [root@xqtfp3v6qzd7agn ~]# ls -l /var/run/puppetlabs/puppetserver ls: cannot access /var/run/puppetlabs/puppetserver: No such file or directory [root@xqtfp3v6qzd7agn ~]# ls -l /var/run/puppetlabs total 0 [root@xqtfp3v6qzd7agn ~]# ls -la /var/run/puppetlabs/puppetserver ls: cannot access /var/run/puppetlabs/puppetserver: No such file or directory [root@xqtfp3v6qzd7agn ~]# ls -la /var/run/puppetlabs total 0 drwxr-xr-x. 2 root root 40 Mar 10 13:22 . drwxr-xr-x. 24 root root 740 Mar 10 23:05 .. [root@xqtfp3v6qzd7agn ~]# {code} [1]: https://github.com/puppetlabs/puppet-server/commit/aba66acdc4a0b1aae2b3ddf463f017a870148a20

    JIRA | 2 years ago | Jeff McCune
    java.lang.IllegalStateException: Unable to borrow JRuby instance from pool
  6. 0

    Immediately after installing puppetserver 2.1.1-1.el7 from the PC1 repo, I get the error {{(RuntimeError) Got 1 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}} while trying to run {{puppetserver foreground --debug}} Here's the full stack trace in all of it's beautifully descriptive glory: {code} [root@bud9j7ixfdnaye0 ~]# puppetserver foreground --debug OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0 2015-06-29 10:34:20,966 DEBUG [main] [p.t.logging] Debug logging enabled 2015-06-29 10:34:20,969 DEBUG [main] [p.t.bootstrap] Loading bootstrap config from specified path: '/etc/puppetlabs/puppetserver/bootstrap.cfg' 2015-06-29 10:34:23,102 INFO [main] [o.e.j.u.log] Logging initialized @12044ms 2015-06-29 10:34:33,337 INFO [main] [p.t.s.w.jetty9-service] Initializing web server(s). 2015-06-29 10:34:33,358 INFO [main] [p.s.j.jruby-puppet-service] Initializing the JRuby service 2015-06-29 10:34:33,359 DEBUG [main] [p.s.j.jruby-puppet-core] Adding facter jar to classpath from: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter.jar 2015-06-29 10:34:33,554 DEBUG [clojure-agent-send-pool-0] [p.s.j.jruby-puppet-agents] Initializing JRubyPuppet instances with the following settings: {:max-active-instances 1, :master-run-dir "/var/run/puppetlabs/puppetserver", :http-client-ssl-protocols nil, :master-var-dir "/opt/puppetlabs/server/data/puppetserver", :http-client-idle-timeout-milliseconds 1200000, :master-conf-dir "/etc/puppetlabs/puppet", :http-client-connect-timeout-milliseconds 120000, :http-client-cipher-suites nil, :gem-home "/opt/puppetlabs/server/data/puppetserver/jruby-gems", :ruby-load-path ["/opt/puppetlabs/puppet/lib/ruby/vendor_ruby"], :master-log-dir "/var/log/puppetlabs/puppetserver", :borrow-timeout 1200000, :max-requests-per-instance 0, :master-code-dir "/etc/puppetlabs/code"} 2015-06-29 10:34:33,566 DEBUG [clojure-agent-send-pool-0] [p.s.j.jruby-puppet-agents] Priming JRubyPuppet instance 1 of 1 2015-06-29 10:34:44,750 INFO [clojure-agent-send-pool-0] [puppet-server] Puppet Puppet settings initialized; run mode: master 2015-06-29 10:34:44,756 DEBUG [clojure-agent-send-pool-0] [p.s.j.puppet-environments] Registering environment 'production' 2015-06-29 10:34:44,758 DEBUG [clojure-agent-send-pool-0] [puppet-server] Puppet Caching environment 'production' (cache ttl: 0) 2015-06-29 10:34:44,759 DEBUG [clojure-agent-send-pool-0] [puppet-server] Puppet Applying settings catalog for sections main, master, ssl, metrics 2015-06-29 10:34:44,889 DEBUG [clojure-agent-send-pool-0] [puppet-server] Puppet Evicting cache entry for environment 'production' 2015-06-29 10:34:44,890 DEBUG [clojure-agent-send-pool-0] [p.s.j.puppet-environments] Removing environment 'production' from registry 2015-06-29 10:34:44,914 DEBUG [clojure-agent-send-pool-0] [p.s.j.puppet-environments] Registering environment 'production' 2015-06-29 10:34:44,916 DEBUG [clojure-agent-send-pool-0] [puppet-server] Puppet Caching environment 'production' (cache ttl: 0) 2015-06-29 10:34:44,962 DEBUG [clojure-agent-send-pool-0] [puppet-server] Puppet Evicting cache entry for environment 'production' 2015-06-29 10:34:44,962 DEBUG [clojure-agent-send-pool-0] [p.s.j.puppet-environments] Removing environment 'production' from registry 2015-06-29 10:34:44,965 DEBUG [clojure-agent-send-pool-0] [p.s.j.puppet-environments] Registering environment 'production' 2015-06-29 10:34:44,966 DEBUG [clojure-agent-send-pool-0] [puppet-server] Puppet Caching environment 'production' (cache ttl: 0) 2015-06-29 10:34:44,986 DEBUG [clojure-agent-send-pool-0] [puppet-server] Puppet Evicting cache entry for environment 'production' 2015-06-29 10:34:44,986 DEBUG [clojure-agent-send-pool-0] [p.s.j.puppet-environments] Removing environment 'production' from registry 2015-06-29 10:34:44,988 DEBUG [clojure-agent-send-pool-0] [p.s.j.puppet-environments] Registering environment 'production' 2015-06-29 10:34:44,990 DEBUG [clojure-agent-send-pool-0] [puppet-server] Puppet Caching environment 'production' (cache ttl: 0) 2015-06-29 10:34:45,041 DEBUG [clojure-agent-send-pool-0] [puppet-server] Puppet Evicting cache entry for environment 'production' 2015-06-29 10:34:45,041 DEBUG [clojure-agent-send-pool-0] [p.s.j.puppet-environments] Removing environment 'production' from registry 2015-06-29 10:34:45,044 DEBUG [clojure-agent-send-pool-0] [p.s.j.puppet-environments] Registering environment 'production' 2015-06-29 10:34:45,046 DEBUG [clojure-agent-send-pool-0] [puppet-server] Puppet Caching environment 'production' (cache ttl: 0) 2015-06-29 10:34:45,094 DEBUG [clojure-agent-send-pool-0] [puppet-server] Puppet Failed to load library 'selinux' for feature 'selinux' 2015-06-29 10:34:45,116 DEBUG [clojure-agent-send-pool-0] [puppet-server] Puppet Using settings: adding file resource 'confdir': 'File[/etc/puppetlabs/puppet]{:path=>"/etc/puppetlabs/puppet", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' 2015-06-29 10:34:45,118 DEBUG [clojure-agent-send-pool-0] [puppet-server] Puppet Using settings: adding file resource 'codedir': 'File[/etc/puppetlabs/code]{:path=>"/etc/puppetlabs/code", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' 2015-06-29 10:34:45,119 DEBUG [clojure-agent-send-pool-0] [puppet-server] Puppet Using settings: adding file resource 'vardir': 'File[/opt/puppetlabs/server/data/puppetserver]{:path=>"/opt/puppetlabs/server/data/puppetserver", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' 2015-06-29 10:34:45,121 DEBUG [clojure-agent-send-pool-0] [puppet-server] Puppet Using settings: adding file resource 'logdir': 'File[/var/log/puppetlabs/puppetserver]{:path=>"/var/log/puppetlabs/puppetserver", :mode=>"750", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' 2015-06-29 10:34:45,123 DEBUG [clojure-agent-send-pool-0] [puppet-server] Puppet Using settings: adding file resource 'statedir': 'File[/opt/puppetlabs/server/data/puppetserver/state]{:path=>"/opt/puppetlabs/server/data/puppetserver/state", :mode=>"1755", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' 2015-06-29 10:34:45,149 DEBUG [clojure-agent-send-pool-0] [puppet-server] Puppet Using settings: adding file resource 'rundir': 'File[/var/run/puppetlabs/puppetserver]{:path=>"/var/run/puppetlabs/puppetserver", :mode=>"755", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' 2015-06-29 10:34:45,151 DEBUG [clojure-agent-send-pool-0] [puppet-server] Puppet Using settings: adding file resource 'libdir': 'File[/opt/puppetlabs/server/data/puppetserver/lib]{:path=>"/opt/puppetlabs/server/data/puppetserver/lib", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' 2015-06-29 10:34:45,153 DEBUG [clojure-agent-send-pool-0] [puppet-server] Puppet Using settings: adding file resource 'hiera_config': 'File[/etc/puppetlabs/code/hiera.yaml]{:path=>"/etc/puppetlabs/code/hiera.yaml", :ensure=>:file, :loglevel=>:debug, :links=>:follow, :backup=>false}' 2015-06-29 10:34:45,155 DEBUG [clojure-agent-send-pool-0] [puppet-server] Puppet Using settings: adding file resource 'preview_outputdir': 'File[/opt/puppetlabs/server/data/puppetserver/preview]{:path=>"/opt/puppetlabs/server/data/puppetserver/preview", :mode=>"750", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' 2015-06-29 10:34:45,157 DEBUG [clojure-agent-send-pool-0] [puppet-server] Puppet Using settings: adding file resource 'certdir': 'File[/etc/puppetlabs/puppet/ssl/certs]{:path=>"/etc/puppetlabs/puppet/ssl/certs", :mode=>"755", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' 2015-06-29 10:34:45,174 DEBUG [clojure-agent-send-pool-0] [puppet-server] Puppet Using settings: adding file resource 'ssldir': 'File[/etc/puppetlabs/puppet/ssl]{:path=>"/etc/puppetlabs/puppet/ssl", :mode=>"771", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' 2015-06-29 10:34:45,176 DEBUG [clojure-agent-send-pool-0] [puppet-server] Puppet Using settings: adding file resource 'publickeydir': 'File[/etc/puppetlabs/puppet/ssl/public_keys]{:path=>"/etc/puppetlabs/puppet/ssl/public_keys", :mode=>"755", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' 2015-06-29 10:34:45,178 DEBUG [clojure-agent-send-pool-0] [puppet-server] Puppet Using settings: adding file resource 'requestdir': 'File[/etc/puppetlabs/puppet/ssl/certificate_requests]{:path=>"/etc/puppetlabs/puppet/ssl/certificate_requests", :mode=>"755", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' 2015-06-29 10:34:45,180 DEBUG [clojure-agent-send-pool-0] [puppet-server] Puppet Using settings: adding file resource 'privatekeydir': 'File[/etc/puppetlabs/puppet/ssl/private_keys]{:path=>"/etc/puppetlabs/puppet/ssl/private_keys", :mode=>"750", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' 2015-06-29 10:34:45,182 DEBUG [clojure-agent-send-pool-0] [puppet-server] Puppet Using settings: adding file resource 'privatedir': 'File[/etc/puppetlabs/puppet/ssl/private]{:path=>"/etc/puppetlabs/puppet/ssl/private", :mode=>"750", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' 2015-06-29 10:34:45,291 DEBUG [clojure-agent-send-pool-0] [puppet-server] Puppet Using settings: adding file resource 'masterhttplog': 'File[/var/log/puppetlabs/puppetserver/masterhttp.log]{:path=>"/var/log/puppetlabs/puppetserver/masterhttp.log", :mode=>"660", :ensure=>:file, :loglevel=>:debug, :links=>:follow, :backup=>false}' 2015-06-29 10:34:45,293 DEBUG [clojure-agent-send-pool-0] [puppet-server] Puppet Using settings: adding file resource 'bucketdir': 'File[/opt/puppetlabs/server/data/puppetserver/bucket]{:path=>"/opt/puppetlabs/server/data/puppetserver/bucket", :mode=>"750", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' 2015-06-29 10:34:45,295 DEBUG [clojure-agent-send-pool-0] [puppet-server] Puppet Using settings: adding file resource 'rest_authconfig': 'File[/etc/puppetlabs/puppet/auth.conf]{:path=>"/etc/puppetlabs/puppet/auth.conf", :ensure=>:file, :loglevel=>:debug, :links=>:follow, :backup=>false}' 2015-06-29 10:34:45,319 DEBUG [clojure-agent-send-pool-0] [puppet-server] Puppet Using settings: adding file resource 'yamldir': 'File[/opt/puppetlabs/server/data/puppetserver/yaml]{:path=>"/opt/puppetlabs/server/data/puppetserver/yaml", :mode=>"750", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' 2015-06-29 10:34:45,321 DEBUG [clojure-agent-send-pool-0] [puppet-server] Puppet Using settings: adding file resource 'server_datadir': 'File[/opt/puppetlabs/server/data/puppetserver/server_data]{:path=>"/opt/puppetlabs/server/data/puppetserver/server_data", :mode=>"750", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' 2015-06-29 10:34:45,323 DEBUG [clojure-agent-send-pool-0] [puppet-server] Puppet Using settings: adding file resource 'reportdir': 'File[/opt/puppetlabs/server/data/puppetserver/reports]{:path=>"/opt/puppetlabs/server/data/puppetserver/reports", :mode=>"750", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' 2015-06-29 10:34:45,347 DEBUG [clojure-agent-send-pool-0] [puppet-server] Puppet Using settings: adding file resource 'pluginfactdest': 'File[/opt/puppetlabs/server/data/puppetserver/facts.d]{:path=>"/opt/puppetlabs/server/data/puppetserver/facts.d", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' 2015-06-29 10:34:45,698 DEBUG [clojure-agent-send-pool-0] [puppet-server] Puppet Evicting cache entry for environment 'production' 2015-06-29 10:34:45,698 DEBUG [clojure-agent-send-pool-0] [p.s.j.puppet-environments] Removing environment 'production' from registry 2015-06-29 10:34:45,701 DEBUG [clojure-agent-send-pool-0] [p.s.j.puppet-environments] Registering environment 'production' 2015-06-29 10:34:45,702 DEBUG [clojure-agent-send-pool-0] [puppet-server] Puppet Caching environment 'production' (cache ttl: 0) 2015-06-29 10:34:45,729 DEBUG [clojure-agent-send-pool-0] [puppet-server] Puppet Evicting cache entry for environment 'production' 2015-06-29 10:34:45,729 DEBUG [clojure-agent-send-pool-0] [p.s.j.puppet-environments] Removing environment 'production' from registry 2015-06-29 10:34:45,731 DEBUG [clojure-agent-send-pool-0] [p.s.j.puppet-environments] Registering environment 'production' 2015-06-29 10:34:45,733 DEBUG [clojure-agent-send-pool-0] [puppet-server] Puppet Caching environment 'production' (cache ttl: 0) 2015-06-29 10:34:45,764 DEBUG [clojure-agent-send-pool-0] [puppet-server] Puppet Failed to load library 'shadow' for feature 'libshadow' 2015-06-29 10:34:46,007 DEBUG [clojure-agent-send-pool-0] [puppet-server] /File[/opt/puppetlabs/server/data/puppetserver/state] Adding autorequire relationship with File[/opt/puppetlabs/server/data/puppetserver] 2015-06-29 10:34:46,023 DEBUG [clojure-agent-send-pool-0] [puppet-server] /File[/opt/puppetlabs/server/data/puppetserver/lib] Adding autorequire relationship with File[/opt/puppetlabs/server/data/puppetserver] 2015-06-29 10:34:46,027 DEBUG [clojure-agent-send-pool-0] [puppet-server] /File[/etc/puppetlabs/code/hiera.yaml] Adding autorequire relationship with File[/etc/puppetlabs/code] 2015-06-29 10:34:46,029 DEBUG [clojure-agent-send-pool-0] [puppet-server] /File[/opt/puppetlabs/server/data/puppetserver/preview] Adding autorequire relationship with File[/opt/puppetlabs/server/data/puppetserver] 2015-06-29 10:34:46,030 DEBUG [clojure-agent-send-pool-0] [puppet-server] /File[/etc/puppetlabs/puppet/ssl/certs] Adding autorequire relationship with File[/etc/puppetlabs/puppet/ssl] 2015-06-29 10:34:46,032 DEBUG [clojure-agent-send-pool-0] [puppet-server] /File[/etc/puppetlabs/puppet/ssl] Adding autorequire relationship with File[/etc/puppetlabs/puppet] 2015-06-29 10:34:46,034 DEBUG [clojure-agent-send-pool-0] [puppet-server] /File[/etc/puppetlabs/puppet/ssl/public_keys] Adding autorequire relationship with File[/etc/puppetlabs/puppet/ssl] 2015-06-29 10:34:46,035 DEBUG [clojure-agent-send-pool-0] [puppet-server] /File[/etc/puppetlabs/puppet/ssl/certificate_requests] Adding autorequire relationship with File[/etc/puppetlabs/puppet/ssl] 2015-06-29 10:34:46,037 DEBUG [clojure-agent-send-pool-0] [puppet-server] /File[/etc/puppetlabs/puppet/ssl/private_keys] Adding autorequire relationship with File[/etc/puppetlabs/puppet/ssl] 2015-06-29 10:34:46,052 DEBUG [clojure-agent-send-pool-0] [puppet-server] /File[/etc/puppetlabs/puppet/ssl/private] Adding autorequire relationship with File[/etc/puppetlabs/puppet/ssl] 2015-06-29 10:34:46,054 DEBUG [clojure-agent-send-pool-0] [puppet-server] /File[/var/log/puppetlabs/puppetserver/masterhttp.log] Adding autorequire relationship with File[/var/log/puppetlabs/puppetserver] 2015-06-29 10:34:46,056 DEBUG [clojure-agent-send-pool-0] [puppet-server] /File[/opt/puppetlabs/server/data/puppetserver/bucket] Adding autorequire relationship with File[/opt/puppetlabs/server/data/puppetserver] 2015-06-29 10:34:46,060 DEBUG [clojure-agent-send-pool-0] [puppet-server] /File[/etc/puppetlabs/puppet/auth.conf] Adding autorequire relationship with File[/etc/puppetlabs/puppet] 2015-06-29 10:34:46,062 DEBUG [clojure-agent-send-pool-0] [puppet-server] /File[/opt/puppetlabs/server/data/puppetserver/yaml] Adding autorequire relationship with File[/opt/puppetlabs/server/data/puppetserver] 2015-06-29 10:34:46,063 DEBUG [clojure-agent-send-pool-0] [puppet-server] /File[/opt/puppetlabs/server/data/puppetserver/server_data] Adding autorequire relationship with File[/opt/puppetlabs/server/data/puppetserver] 2015-06-29 10:34:46,064 DEBUG [clojure-agent-send-pool-0] [puppet-server] /File[/opt/puppetlabs/server/data/puppetserver/reports] Adding autorequire relationship with File[/opt/puppetlabs/server/data/puppetserver] 2015-06-29 10:34:46,066 DEBUG [clojure-agent-send-pool-0] [puppet-server] /File[/opt/puppetlabs/server/data/puppetserver/facts.d] Adding autorequire relationship with File[/opt/puppetlabs/server/data/puppetserver] 2015-06-29 10:34:46,068 DEBUG [clojure-agent-send-pool-0] [puppet-server] /File[/etc/puppetlabs/code/environments/production] Adding autorequire relationship with File[/etc/puppetlabs/code] 2015-06-29 10:34:46,135 DEBUG [clojure-agent-send-pool-0] [puppet-server] /File[/var/log/puppetlabs/puppetserver]/mode mode changed '0700' to '0750' 2015-06-29 10:34:46,141 DEBUG [clojure-agent-send-pool-0] [puppet-server] /File[/opt/puppetlabs/server/data/puppetserver/state]/ensure created 2015-06-29 10:34:46,195 ERROR [clojure-agent-send-pool-0] [puppet-server] Puppet Could not set 'directory' on ensure: Permission denied - /var/run/puppetlabs/puppetserver org/jruby/RubyDir.java:461:in `mkdir' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/file/ensure.rb:88:in `set_directory' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:48:in `withumask' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/file/ensure.rb:87:in `set_directory' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/property.rb:427:in `set' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/property.rb:501:in `sync' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/file/ensure.rb:183:in `sync' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:209:in `sync' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:134:in `sync_if_needed' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:81:in `perform_changes' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:20:in `evaluate' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:204:in `apply' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:220:in `eval_resource' org/jruby/RubyMethod.java:120:in `call' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:147:in `evaluate' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:284:in `thinmark' /opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/1.9/benchmark.rb:295:in `realtime' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:283:in `thinmark' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:147:in `evaluate' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:118:in `traverse' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:138:in `evaluate' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:178:in `apply' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/log.rb:157:in `with_destination' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/report.rb:107:in `as_logging_destination' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:177:in `apply' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/settings.rb:997:in `use' file:/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/puppet-server-lib/puppet/server/puppet_config.rb:42:in `initialize_puppet' file:/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/puppet-server-lib/puppet/server/master.rb:27:in `initialize' jruby_puppet_internal.clj:198:in `invoke' jruby_puppet_internal.clj:159:in `invoke' jruby_puppet_agents.clj:54:in `invoke' jruby_puppet_agents.clj:38:in `invoke' jruby_puppet_agents.clj:133:in `invoke' internal.clj:254:in `invoke' internal.clj:238:in `invoke' internal.clj:293:in `shutdown_on_error' internal.clj:262:in `invoke' internal.clj:262:in `invoke' core.clj:626:in `invoke' core.clj:2468:in `doInvoke' core.clj:626:in `invoke' core.clj:2468:in `doInvoke' jruby_puppet_agents.clj:32:in `invoke' core.clj:1913:in `invoke' 2015-06-29 10:34:46,277 ERROR [clojure-agent-send-pool-0] [puppet-server] Puppet Could not set 'directory' on ensure: Permission denied - /var/run/puppetlabs/puppetserver org/jruby/RubyDir.java:461:in `mkdir' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/file/ensure.rb:88:in `set_directory' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:48:in `withumask' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/file/ensure.rb:87:in `set_directory' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/property.rb:427:in `set' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/property.rb:501:in `sync' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/file/ensure.rb:183:in `sync' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:209:in `sync' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:134:in `sync_if_needed' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:81:in `perform_changes' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:20:in `evaluate' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:204:in `apply' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:220:in `eval_resource' org/jruby/RubyMethod.java:120:in `call' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:147:in `evaluate' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:284:in `thinmark' /opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/1.9/benchmark.rb:295:in `realtime' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:283:in `thinmark' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:147:in `evaluate' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:118:in `traverse' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:138:in `evaluate' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:178:in `apply' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/log.rb:157:in `with_destination' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/report.rb:107:in `as_logging_destination' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:177:in `apply' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/settings.rb:997:in `use' file:/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/puppet-server-lib/puppet/server/puppet_config.rb:42:in `initialize_puppet' file:/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/puppet-server-lib/puppet/server/master.rb:27:in `initialize' jruby_puppet_internal.clj:198:in `invoke' jruby_puppet_internal.clj:159:in `invoke' jruby_puppet_agents.clj:54:in `invoke' jruby_puppet_agents.clj:38:in `invoke' jruby_puppet_agents.clj:133:in `invoke' internal.clj:254:in `invoke' internal.clj:238:in `invoke' internal.clj:293:in `shutdown_on_error' internal.clj:262:in `invoke' internal.clj:262:in `invoke' core.clj:626:in `invoke' core.clj:2468:in `doInvoke' core.clj:626:in `invoke' core.clj:2468:in `doInvoke' jruby_puppet_agents.clj:32:in `invoke' core.clj:1913:in `invoke' Wrapped exception: Permission denied - /var/run/puppetlabs/puppetserver org/jruby/RubyDir.java:461:in `mkdir' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/file/ensure.rb:88:in `set_directory' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:48:in `withumask' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/file/ensure.rb:87:in `set_directory' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/property.rb:427:in `set' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/property.rb:501:in `sync' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/file/ensure.rb:183:in `sync' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:209:in `sync' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:134:in `sync_if_needed' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:81:in `perform_changes' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:20:in `evaluate' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:204:in `apply' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:220:in `eval_resource' org/jruby/RubyMethod.java:120:in `call' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:147:in `evaluate' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:284:in `thinmark' /opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/1.9/benchmark.rb:295:in `realtime' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:283:in `thinmark' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:147:in `evaluate' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:118:in `traverse' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:138:in `evaluate' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:178:in `apply' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/log.rb:157:in `with_destination' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/report.rb:107:in `as_logging_destination' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:177:in `apply' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/settings.rb:997:in `use' file:/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/puppet-server-lib/puppet/server/puppet_config.rb:42:in `initialize_puppet' file:/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/puppet-server-lib/puppet/server/master.rb:27:in `initialize' jruby_puppet_internal.clj:198:in `invoke' jruby_puppet_internal.clj:159:in `invoke' jruby_puppet_agents.clj:54:in `invoke' jruby_puppet_agents.clj:38:in `invoke' jruby_puppet_agents.clj:133:in `invoke' internal.clj:254:in `invoke' internal.clj:238:in `invoke' internal.clj:293:in `shutdown_on_error' internal.clj:262:in `invoke' internal.clj:262:in `invoke' core.clj:626:in `invoke' core.clj:2468:in `doInvoke' core.clj:626:in `invoke' core.clj:2468:in `doInvoke' jruby_puppet_agents.clj:32:in `invoke' core.clj:1913:in `invoke' 2015-06-29 10:34:46,284 ERROR [clojure-agent-send-pool-0] [puppet-server] /File[/var/run/puppetlabs/puppetserver]/ensure change from absent to directory failed: Could not set 'directory' on ensure: Permission denied - /var/run/puppetlabs/puppetserver 2015-06-29 10:34:46,288 DEBUG [clojure-agent-send-pool-0] [puppet-server] /File[/opt/puppetlabs/server/data/puppetserver/lib]/ensure created 2015-06-29 10:34:46,292 DEBUG [clojure-agent-send-pool-0] [puppet-server] /File[/opt/puppetlabs/server/data/puppetserver/preview]/ensure created 2015-06-29 10:34:46,311 DEBUG [clojure-agent-send-pool-0] [puppet-server] /File[/etc/puppetlabs/puppet/ssl]/mode mode changed '0770' to '0771' 2015-06-29 10:34:46,315 DEBUG [clojure-agent-send-pool-0] [puppet-server] /File[/etc/puppetlabs/puppet/ssl/certs]/ensure created 2015-06-29 10:34:46,318 DEBUG [clojure-agent-send-pool-0] [puppet-server] /File[/etc/puppetlabs/puppet/ssl/public_keys]/ensure created 2015-06-29 10:34:46,335 DEBUG [clojure-agent-send-pool-0] [puppet-server] /File[/etc/puppetlabs/puppet/ssl/certificate_requests]/ensure created 2015-06-29 10:34:46,338 DEBUG [clojure-agent-send-pool-0] [puppet-server] /File[/etc/puppetlabs/puppet/ssl/private_keys]/ensure created 2015-06-29 10:34:46,341 DEBUG [clojure-agent-send-pool-0] [puppet-server] /File[/etc/puppetlabs/puppet/ssl/private]/ensure created 2015-06-29 10:34:46,359 DEBUG [clojure-agent-send-pool-0] [puppet-server] /File[/var/log/puppetlabs/puppetserver/masterhttp.log]/ensure created 2015-06-29 10:34:46,363 DEBUG [clojure-agent-send-pool-0] [puppet-server] /File[/opt/puppetlabs/server/data/puppetserver/bucket]/ensure created 2015-06-29 10:34:46,367 DEBUG [clojure-agent-send-pool-0] [puppet-server] /File[/opt/puppetlabs/server/data/puppetserver/yaml]/ensure created 2015-06-29 10:34:46,385 DEBUG [clojure-agent-send-pool-0] [puppet-server] /File[/opt/puppetlabs/server/data/puppetserver/server_data]/ensure created 2015-06-29 10:34:46,389 DEBUG [clojure-agent-send-pool-0] [puppet-server] /File[/opt/puppetlabs/server/data/puppetserver/reports]/ensure created 2015-06-29 10:34:46,391 DEBUG [clojure-agent-send-pool-0] [puppet-server] /File[/opt/puppetlabs/server/data/puppetserver/facts.d]/ensure created 2015-06-29 10:34:46,406 DEBUG [clojure-agent-send-pool-0] [puppet-server] Puppet Finishing transaction 2674 RuntimeError: Got 1 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 use at /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/settings.rb:1007 apply at /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:186 use at /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/settings.rb:997 initialize_puppet at file:/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/puppet-server-lib/puppet/server/puppet_config.rb:42 initialize at file:/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/puppet-server-lib/puppet/server/master.rb:27 invoke at jruby_puppet_internal.clj:198 invoke at jruby_puppet_internal.clj:159 invoke at jruby_puppet_agents.clj:54 invoke at jruby_puppet_agents.clj:38 invoke at jruby_puppet_agents.clj:133 invoke at internal.clj:254 invoke at internal.clj:238 shutdown_on_error at internal.clj:293 invoke at internal.clj:262 invoke at internal.clj:262 invoke at core.clj:626 doInvoke at core.clj:2468 invoke at core.clj:626 doInvoke at core.clj:2468 invoke at jruby_puppet_agents.clj:32 invoke at core.clj:1913 2015-06-29 10:34:46,425 ERROR [clojure-agent-send-pool-0] [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$eval6743$prime_pool_BANG___6744$fn__6748.invoke(jruby_puppet_agents.clj:60) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_agents$eval6743$prime_pool_BANG___6744.invoke(jruby_puppet_agents.clj:38) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_agents$eval6849$send_prime_pool_BANG___6850$fn__6851$fn__6853.invoke(jruby_puppet_agents.clj:133) ~[na:na] at puppetlabs.trapperkeeper.internal$shutdown_on_error_STAR_.invoke(internal.clj:254) [na:na] at puppetlabs.trapperkeeper.internal$shutdown_on_error_STAR_.invoke(internal.clj:238) [na:na] at puppetlabs.trapperkeeper.internal$shutdown_service$reify__5401$service_fnk__4090__auto___positional$reify__5406.shutdown_on_error(internal.clj:293) [na:na] at puppetlabs.trapperkeeper.internal$eval5337$fn__5349$G__5323__5357.invoke(internal.clj:262) [na:na] at puppetlabs.trapperkeeper.internal$eval5337$fn__5349$G__5322__5366.invoke(internal.clj:262) [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$eval6721$send_agent__6722$fn__6723$agent_fn__6724.invoke(jruby_puppet_agents.clj:32) [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:1142) [na:1.8.0_45] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_45] at java.lang.Thread.run(Thread.java:745) [na:1.8.0_45] Caused by: org.jruby.embed.InvokeFailedException: (RuntimeError) Got 1 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 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:1509) ~[puppet-server-release.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_45] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_45] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_45] at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_45] 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_internal$eval6502$create_pool_instance_BANG___6503$fn__6504.invoke(jruby_puppet_internal.clj:198) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_internal$eval6502$create_pool_instance_BANG___6503.invoke(jruby_puppet_internal.clj:159) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_agents$eval6743$prime_pool_BANG___6744$fn__6748.invoke(jruby_puppet_agents.clj:54) ~[na:na] ... 24 common frames omitted Caused by: org.jruby.exceptions.RaiseException: (RuntimeError) Got 1 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 at RUBY.use(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/settings.rb:1007) ~[na:na] at RUBY.apply(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:186) ~[na:na] at RUBY.use(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/settings.rb:997) ~[na:na] at RUBY.initialize_puppet(file:/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/puppet-server-lib/puppet/server/puppet_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_internal$eval6502$create_pool_instance_BANG___6503$fn__6504.invoke(jruby_puppet_internal.clj:198) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_internal$eval6502$create_pool_instance_BANG___6503.invoke(jruby_puppet_internal.clj:159) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_agents$eval6743$prime_pool_BANG___6744$fn__6748.invoke(jruby_puppet_agents.clj:54) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_agents$eval6743$prime_pool_BANG___6744.invoke(jruby_puppet_agents.clj:38) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_agents$eval6849$send_prime_pool_BANG___6850$fn__6851$fn__6853.invoke(jruby_puppet_agents.clj:133) ~[na:na] at puppetlabs.trapperkeeper.internal$shutdown_on_error_STAR_.invoke(internal.clj:254) [na:na] at puppetlabs.trapperkeeper.internal$shutdown_on_error_STAR_.invoke(internal.clj:238) [na:na] at puppetlabs.trapperkeeper.internal$shutdown_service$reify__5401$service_fnk__4090__auto___positional$reify__5406.shutdown_on_error(internal.clj:293) [na:na] at puppetlabs.trapperkeeper.internal$eval5337$fn__5349$G__5323__5357.invoke(internal.clj:262) [na:na] at puppetlabs.trapperkeeper.internal$eval5337$fn__5349$G__5322__5366.invoke(internal.clj:262) [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$eval6721$send_agent__6722$fn__6723$agent_fn__6724.invoke(jruby_puppet_agents.clj:32) [na:na] at clojure.core$binding_conveyor_fn$fn__4145.invoke(core.clj:1913) [puppet-server-release.jar:na] 2015-06-29 10:34:46,433 ERROR [main] [p.t.internal] Error during service init!!! java.lang.IllegalStateException: Unable to borrow JRuby instance from pool at puppetlabs.services.jruby.jruby_puppet_internal$eval6594$borrow_from_pool_BANG__STAR___6595$fn__6596.invoke(jruby_puppet_internal.clj:241) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_internal$eval6594$borrow_from_pool_BANG__STAR___6595.invoke(jruby_puppet_internal.clj:228) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_internal$eval6631$borrow_from_pool_with_timeout__6632$fn__6633.invoke(jruby_puppet_internal.clj:273) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_internal$eval6631$borrow_from_pool_with_timeout__6632.invoke(jruby_puppet_internal.clj:261) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_core$eval7172$borrow_from_pool_with_timeout__7173$fn__7174.invoke(jruby_puppet_core.clj:193) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_core$eval7172$borrow_from_pool_with_timeout__7173.invoke(jruby_puppet_core.clj:182) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_service$reify__7352$service_fnk__4090__auto___positional$reify__7363.borrow_instance(jruby_puppet_service.clj:43) ~[na:na] at puppetlabs.services.config.puppet_server_config_core$eval9838$get_puppet_config__9839$fn__9840$fn__9841.invoke(puppet_server_config_core.clj:104) ~[na:na] at puppetlabs.services.config.puppet_server_config_core$eval9838$get_puppet_config__9839$fn__9840.invoke(puppet_server_config_core.clj:104) ~[na:na] at puppetlabs.services.config.puppet_server_config_core$eval9838$get_puppet_config__9839.invoke(puppet_server_config_core.clj:99) ~[na:na] at puppetlabs.services.config.puppet_server_config_service$reify__9868$service_fnk__4090__auto___positional$reify__9879.init(puppet_server_config_service.clj:24) ~[na:na] at puppetlabs.trapperkeeper.services$eval3926$fn__3927$G__3918__3930.invoke(services.clj:8) ~[na:na] at puppetlabs.trapperkeeper.services$eval3926$fn__3927$G__3917__3934.invoke(services.clj:8) ~[na:na] at puppetlabs.trapperkeeper.internal$run_lifecycle_fn_BANG_.invoke(internal.clj:152) ~[na:na] at puppetlabs.trapperkeeper.internal$run_lifecycle_fns.invoke(internal.clj:180) ~[na:na] at puppetlabs.trapperkeeper.internal$build_app_STAR_$reify__5493.init(internal.clj:444) [na:na] at puppetlabs.trapperkeeper.internal$boot_services_STAR_$fn__5505.invoke(internal.clj:470) [na:na] at puppetlabs.trapperkeeper.internal$boot_services_STAR_.invoke(internal.clj:469) [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:482) [puppet-server-release.jar:na] at clojure.lang.Var.invoke(Var.java:401) [puppet-server-release.jar:na] at clojure.lang.AFn.applyToHelper(AFn.java:171) [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:482) [puppet-server-release.jar:na] at clojure.lang.Var.invoke(Var.java:401) [puppet-server-release.jar:na] at clojure.lang.AFn.applyToHelper(AFn.java:171) [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:551) [puppet-server-release.jar:na] at clojure.lang.Var.invoke(Var.java:419) [puppet-server-release.jar:na] at clojure.lang.AFn.applyToHelper(AFn.java:186) [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 1 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 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:1509) ~[puppet-server-release.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_45] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_45] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_45] at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_45] 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_internal$eval6502$create_pool_instance_BANG___6503$fn__6504.invoke(jruby_puppet_internal.clj:198) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_internal$eval6502$create_pool_instance_BANG___6503.invoke(jruby_puppet_internal.clj:159) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_agents$eval6743$prime_pool_BANG___6744$fn__6748.invoke(jruby_puppet_agents.clj:54) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_agents$eval6743$prime_pool_BANG___6744.invoke(jruby_puppet_agents.clj:38) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_agents$eval6849$send_prime_pool_BANG___6850$fn__6851$fn__6853.invoke(jruby_puppet_agents.clj:133) ~[na:na] at puppetlabs.trapperkeeper.internal$shutdown_on_error_STAR_.invoke(internal.clj:254) ~[na:na] at puppetlabs.trapperkeeper.internal$shutdown_on_error_STAR_.invoke(internal.clj:238) ~[na:na] at puppetlabs.trapperkeeper.internal$shutdown_service$reify__5401$service_fnk__4090__auto___positional$reify__5406.shutdown_on_error(internal.clj:293) ~[na:na] at puppetlabs.trapperkeeper.internal$eval5337$fn__5349$G__5323__5357.invoke(internal.clj:262) ~[na:na] at puppetlabs.trapperkeeper.internal$eval5337$fn__5349$G__5322__5366.invoke(internal.clj:262) ~[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$eval6721$send_agent__6722$fn__6723$agent_fn__6724.invoke(jruby_puppet_agents.clj:32) ~[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:1142) ~[na:1.8.0_45] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[na:1.8.0_45] at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_45] Caused by: org.jruby.exceptions.RaiseException: (RuntimeError) Got 1 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 at RUBY.use(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/settings.rb:1007) ~[na:na] at RUBY.apply(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:186) ~[na:na] at RUBY.use(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/settings.rb:997) ~[na:na] at RUBY.initialize_puppet(file:/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/puppet-server-lib/puppet/server/puppet_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_internal$eval6502$create_pool_instance_BANG___6503$fn__6504.invoke(jruby_puppet_internal.clj:198) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_internal$eval6502$create_pool_instance_BANG___6503.invoke(jruby_puppet_internal.clj:159) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_agents$eval6743$prime_pool_BANG___6744$fn__6748.invoke(jruby_puppet_agents.clj:54) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_agents$eval6743$prime_pool_BANG___6744.invoke(jruby_puppet_agents.clj:38) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_agents$eval6849$send_prime_pool_BANG___6850$fn__6851$fn__6853.invoke(jruby_puppet_agents.clj:133) ~[na:na] at puppetlabs.trapperkeeper.internal$shutdown_on_error_STAR_.invoke(internal.clj:254) ~[na:na] at puppetlabs.trapperkeeper.internal$shutdown_on_error_STAR_.invoke(internal.clj:238) ~[na:na] at puppetlabs.trapperkeeper.internal$shutdown_service$reify__5401$service_fnk__4090__auto___positional$reify__5406.shutdown_on_error(internal.clj:293) ~[na:na] at puppetlabs.trapperkeeper.internal$eval5337$fn__5349$G__5323__5357.invoke(internal.clj:262) ~[na:na] at puppetlabs.trapperkeeper.internal$eval5337$fn__5349$G__5322__5366.invoke(internal.clj:262) ~[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$eval6721$send_agent__6722$fn__6723$agent_fn__6724.invoke(jruby_puppet_agents.clj:32) ~[na:na] at clojure.core$binding_conveyor_fn$fn__4145.invoke(core.clj:1913) ~[puppet-server-release.jar:na] 2015-06-29 10:34:46,440 INFO [main] [p.t.internal] Beginning shutdown sequence 2015-06-29 10:34:46,444 INFO [main] [p.t.s.w.jetty9-service] Shutting down web server(s). 2015-06-29 10:34:46,446 INFO [main] [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$eval6743$prime_pool_BANG___6744$fn__6748.invoke(jruby_puppet_agents.clj:60) at puppetlabs.services.jruby.jruby_puppet_agents$eval6743$prime_pool_BANG___6744.invoke(jruby_puppet_agents.clj:38) at puppetlabs.services.jruby.jruby_puppet_agents$eval6849$send_prime_pool_BANG___6850$fn__6851$fn__6853.invoke(jruby_puppet_agents.clj:133) at puppetlabs.trapperkeeper.internal$shutdown_on_error_STAR_.invoke(internal.clj:254) at puppetlabs.trapperkeeper.internal$shutdown_on_error_STAR_.invoke(internal.clj:238) at puppetlabs.trapperkeeper.internal$shutdown_service$reify__5401$service_fnk__4090__auto___positional$reify__5406.shutdown_on_error(internal.clj:293) at puppetlabs.trapperkeeper.internal$eval5337$fn__5349$G__5323__5357.invoke(internal.clj:262) at puppetlabs.trapperkeeper.internal$eval5337$fn__5349$G__5322__5366.invoke(internal.clj:262) at clojure.lang.AFn.applyToHelper(AFn.java:160) at clojure.lang.AFn.applyTo(AFn.java:144) at clojure.core$apply.invoke(core.clj:626) at clojure.core$partial$fn__4228.doInvoke(core.clj:2468) at clojure.lang.RestFn.applyTo(RestFn.java:137) at clojure.core$apply.invoke(core.clj:626) at clojure.core$partial$fn__4228.doInvoke(core.clj:2468) at clojure.lang.RestFn.invoke(RestFn.java:408) at puppetlabs.services.jruby.jruby_puppet_agents$eval6721$send_agent__6722$fn__6723$agent_fn__6724.invoke(jruby_puppet_agents.clj:32) at clojure.core$binding_conveyor_fn$fn__4145.invoke(core.clj:1913) at clojure.lang.AFn.applyToHelper(AFn.java:154) 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:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: org.jruby.embed.InvokeFailedException: (RuntimeError) Got 1 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 at org.jruby.embed.internal.EmbedRubyObjectAdapterImpl.call(EmbedRubyObjectAdapterImpl.java:317) at org.jruby.embed.internal.EmbedRubyObjectAdapterImpl.callMethod(EmbedRubyObjectAdapterImpl.java:169) at org.jruby.embed.ScriptingContainer.callMethod(ScriptingContainer.java:1509) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at clojure.lang.Reflector.invokeMatchingMethod(Reflector.java:93) at clojure.lang.Reflector.invokeInstanceMethod(Reflector.java:28) at puppetlabs.services.jruby.jruby_puppet_internal$eval6502$create_pool_instance_BANG___6503$fn__6504.invoke(jruby_puppet_internal.clj:198) at puppetlabs.services.jruby.jruby_puppet_internal$eval6502$create_pool_instance_BANG___6503.invoke(jruby_puppet_internal.clj:159) at puppetlabs.services.jruby.jruby_puppet_agents$eval6743$prime_pool_BANG___6744$fn__6748.invoke(jruby_puppet_agents.clj:54) ... 24 more Caused by: org.jruby.exceptions.RaiseException: (RuntimeError) Got 1 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 at RUBY.use(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/settings.rb:1007) at RUBY.apply(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:186) at RUBY.use(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/settings.rb:997) at RUBY.initialize_puppet(file:/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/puppet-server-lib/puppet/server/puppet_config.rb:42) at RUBY.initialize(file:/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/puppet-server-lib/puppet/server/master.rb:27) at puppetlabs.services.jruby.jruby_puppet_internal$eval6502$create_pool_instance_BANG___6503$fn__6504.invoke(jruby_puppet_internal.clj:198) at puppetlabs.services.jruby.jruby_puppet_internal$eval6502$create_pool_instance_BANG___6503.invoke(jruby_puppet_internal.clj:159) at puppetlabs.services.jruby.jruby_puppet_agents$eval6743$prime_pool_BANG___6744$fn__6748.invoke(jruby_puppet_agents.clj:54) at puppetlabs.services.jruby.jruby_puppet_agents$eval6743$prime_pool_BANG___6744.invoke(jruby_puppet_agents.clj:38) at puppetlabs.services.jruby.jruby_puppet_agents$eval6849$send_prime_pool_BANG___6850$fn__6851$fn__6853.invoke(jruby_puppet_agents.clj:133) at puppetlabs.trapperkeeper.internal$shutdown_on_error_STAR_.invoke(internal.clj:254) at puppetlabs.trapperkeeper.internal$shutdown_on_error_STAR_.invoke(internal.clj:238) at puppetlabs.trapperkeeper.internal$shutdown_service$reify__5401$service_fnk__4090__auto___positional$reify__5406.shutdown_on_error(internal.clj:293) at puppetlabs.trapperkeeper.internal$eval5337$fn__5349$G__5323__5357.invoke(internal.clj:262) at puppetlabs.trapperkeeper.internal$eval5337$fn__5349$G__5322__5366.invoke(internal.clj:262) at clojure.core$apply.invoke(core.clj:626) at clojure.core$partial$fn__4228.doInvoke(core.clj:2468) at clojure.core$apply.invoke(core.clj:626) at clojure.core$partial$fn__4228.doInvoke(core.clj:2468) at puppetlabs.services.jruby.jruby_puppet_agents$eval6721$send_agent__6722$fn__6723$agent_fn__6724.invoke(jruby_puppet_agents.clj:32) at clojure.core$binding_conveyor_fn$fn__4145.invoke(core.clj:1913) {code}

    JIRA | 1 year ago | Jeff McCune
    java.lang.IllegalStateException: Unable to borrow JRuby instance from pool

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.jruby.exceptions.RaiseException

      (InvalidByteSequenceError) ""\xA7"" on ASCII-8BIT

      at org.jruby.RubyString.encode()
    2. JRuby Main Maven Artifact
      RubyString.encode
      1. org.jruby.RubyString.encode(org/jruby/RubyString.java:7599)
      1 frame
    3. json.ext
      GeneratorMethods$RbHash.to_json
      1. json.ext.GeneratorMethods$RbHash.to_json(json/ext/GeneratorMethods.java:71)
      1 frame