Hi All,
Brand new to puppet and am trying to get a simpler master server set up to test it out. I've been following the install guide at http://docs.puppetlabs.com/guides/install_puppet/install_el.html. This is on CentOS 7 on AWS. Everything goes fine, through the installation of passenger. When I start apache and fire up a browser, I get a generic error message in my browser and this shows up in the error_log. Any clues as to what the permissions issue is would be great. Originally, everything in /etc/puppet/ was owned by root. I changed it to puppet (which is the user that owns the config.ru file) and that didn't matter either. I'm at a loss a this point, so any help would be great.
[ 2015-05-10 21:09:09.6731 1455/7f09e7bc0700 App/Implementation.cpp:287 ]: Could not spawn process for application /usr/share/puppet/rack/puppetmasterd: An error occured while starting up the preloader.
Error ID: a313ca62
Error details saved to: /tmp/passenger-error-Lw6ZvE.html
Message from application: Permission denied - /etc/puppet/modules (Errno::EACCES)
/usr/share/ruby/vendor_ruby/puppet/util/autoload.rb:136:in `open'
/usr/share/ruby/vendor_ruby/puppet/util/autoload.rb:136:in `entries'
/usr/share/ruby/vendor_ruby/puppet/util/autoload.rb:136:in `block in module_directories'
/usr/share/ruby/vendor_ruby/puppet/util/autoload.rb:135:in `collect'
/usr/share/ruby/vendor_ruby/puppet/util/autoload.rb:135:in `module_directories'
/usr/share/ruby/vendor_ruby/puppet/util/autoload.rb:164:in `search_directories'
/usr/share/ruby/vendor_ruby/puppet/util/autoload.rb:94:in `files_to_load'
/usr/share/ruby/vendor_ruby/puppet/util/autoload.rb:225:in `files_to_load'
/usr/share/ruby/vendor_ruby/puppet/application.rb:229:in `available_application_names'
/usr/share/ruby/vendor_ruby/puppet/util/command_line.rb:105:in `find_subcommand'
/usr/share/ruby/vendor_ruby/puppet/util/command_line.rb:92:in `execute'
config.ru:35:in `block in <main>'
/usr/local/share/gems/gems/rack-1.6.1/lib/rack/builder.rb:55:in `instance_eval'
/usr/local/share/gems/gems/rack-1.6.1/lib/rack/builder.rb:55:in `initialize'
config.ru:1:in `new'
config.ru:1:in `<main>'
/usr/local/share/gems/gems/passenger-5.0.7/helper-scripts/rack-preloader.rb:107:in `eval'
/usr/local/share/gems/gems/passenger-5.0.7/helper-scripts/rack-preloader.rb:107:in `preload_app'
/usr/local/share/gems/gems/passenger-5.0.7/helper-scripts/rack-preloader.rb:153:in `<module:App>'
/usr/local/share/gems/gems/passenger-5.0.7/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>'
/usr/local/share/gems/gems/passenger-5.0.7/helper-scripts/rack-preloader.rb:28:in `<main>'
[ 2015-05-10 21:09:09.6767 1455/7f09e209e700 age/Hel/Req/CheckoutSession.cpp:252 ]: [Client 1-2] Cannot checkout session because a spawning error occurred. The identifier of the error is a313ca62. Please see earlier logs for details about the error.
Thanks!
Joe
If you're trying to access a puppet URI like
https://puppetmaster:8140/.../ then the master is probably waiting for
you to send a client TLS certificate to authenticate yourself. This is
how the puppet master ensures that only client that it knows of are
trying to get information out of it.
To test out that puppet is working right, I'd recommend rather to try
running a puppet agent run from the master server as a client to the
puppet master on the same server (e.g. configure /etc/puppet/puppet.conf
to specify master host, create a node in your manifests for the puppet
master host that does something simple like a notify{ 'some text': }
then run puppet agent -t). Since the puppet master will use the same TLS
cert as a client then as server, the cert will be already valid.
--
Gabriel Filion
[ 2015-05-14 14:31:09.6396 2593/7f3e24760700 App/Implementation.cpp:287 ]: Could not spawn process for application /usr/share/puppet/rack/puppetmasterd: An error occured while starting up the preloader.
Error ID: 25487624
Error details saved to: /tmp/passenger-error-xaaVuJ.html
Message from application: Permission denied - /etc/puppet/modules (Errno::EACCES)
/usr/share/ruby/vendor_ruby/puppet/util/autoload.rb:136:in `open'
/usr/share/ruby/vendor_ruby/puppet/util/autoload.rb:136:in `entries'
/usr/share/ruby/vendor_ruby/puppet/util/autoload.rb:136:in `block in module_directories'
/usr/share/ruby/vendor_ruby/puppet/util/autoload.rb:135:in `collect'
/usr/share/ruby/vendor_ruby/puppet/util/autoload.rb:135:in `module_directories'
/usr/share/ruby/vendor_ruby/puppet/util/autoload.rb:164:in `search_directories'
/usr/share/ruby/vendor_ruby/puppet/util/autoload.rb:94:in `files_to_load'
/usr/share/ruby/vendor_ruby/puppet/util/autoload.rb:225:in `files_to_load'
/usr/share/ruby/vendor_ruby/puppet/application.rb:229:in `available_application_names'
/usr/share/ruby/vendor_ruby/puppet/util/command_line.rb:105:in `find_subcommand'
/usr/share/ruby/vendor_ruby/puppet/util/command_line.rb:92:in `execute'
config.ru:35:in `block in <main>'
/usr/local/share/gems/gems/rack-1.6.1/lib/rack/builder.rb:55:in `instance_eval'
/usr/local/share/gems/gems/rack-1.6.1/lib/rack/builder.rb:55:in `initialize'
config.ru:1:in `new'
config.ru:1:in `<main>'
/usr/local/share/gems/gems/passenger-5.0.7/helper-scripts/rack-preloader.rb:107:in `eval'
/usr/local/share/gems/gems/passenger-5.0.7/helper-scripts/rack-preloader.rb:107:in `preload_app'
/usr/local/share/gems/gems/passenger-5.0.7/helper-scripts/rack-preloader.rb:153:in `<module:App>'
/usr/local/share/gems/gems/passenger-5.0.7/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>'
/usr/local/share/gems/gems/passenger-5.0.7/helper-scripts/rack-preloader.rb:28:in `<main>'
I went ahead and checked permissions on /etc/puppet/modules and /etc/puppet and it all looks good. It's all owned by the puppet user and If I switch to the puppet user I can ls in the directory and everything else. If I look at my running processes, should I see anything actually running as the puppet user? Apache should just be running as 'apache' or 'httpd', correct? Not puppet? I also went ahead and blew out everything in /var/lib/puppet/ssl just to be sure. It all re-created just fine and sudo puppet cert list --all lists out what I would expect.
I greatly appreciate the help. This is my first experience with Puppet at all, so I appreciate your patience during my learning curve.
Thanks
Joe
On Monday, May 11, 2015 at 8:38:23 PM UTC-5, Gabriel Filion wrote: