Uploaded image for project: 'Puppet Server'
  1. Puppet Server
  2. SERVER-439

Investigate puppetserver foreground failing in "2.0.0-rc1"

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Puppet Server
    • Labels:
    • Template:
    • Sub-team:
    • Story Points:
      1
    • Sprint:
      Server Emerald 2015-03-18

      Description

      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.

      [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 ~]#
      

      [1]: https://github.com/puppetlabs/puppet-server/commit/aba66acdc4a0b1aae2b3ddf463f017a870148a20

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  jeff Jeff McCune
                  QA Contact:
                  Erik Dasher
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: