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

JIRA | Scott Smith | 3 years ago
  1. 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
  2. 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
  3. 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
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Generating a .pom from a .gemspec with non-ASCII characters in it causes a 500

    GitHub | 2 years ago | rtyler
    org.jruby.embed.InvokeFailedException: (Encoding::UndefinedConversionError) ""\xC3\xA9"" from UTF-8 to US-ASCII
  6. 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

    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) ""\xDE"" on ASCII-8BIT

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