Very new to puppet and ruby but not system administration. Baptism by fire, setting up puppetserver version: 2016.1.1022 on centos 7, 64-bit. Switched from default to apache, now when I open :8140 in a web browser I'm getting, with "PassengerFriendlyErrorPages on" in the apache config, "web application cannot be started" with this dump:
cannot load such file -- ./../testrequest (LoadError)
/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
config.ru:1:in `block in <main>'
/usr/share/gems/gems/rack-1.6.4/lib/rack/builder.rb:55:in `instance_eval'
/usr/share/gems/gems/rack-1.6.4/lib/rack/builder.rb:55:in `initialize'
config.ru:1:in `new'
config.ru:1:in `<main>'
/usr/share/passenger/helper-scripts/rack-preloader.rb:110:in `eval'
/usr/share/passenger/helper-scripts/rack-preloader.rb:110:in `preload_app'
/usr/share/passenger/helper-scripts/rack-preloader.rb:156:in `<module:App>'
/usr/share/passenger/helper-scripts/rack-preloader.rb:30:in `<module:PhusionPassenger>'
/usr/share/passenger/helper-scripts/rack-preloader.rb:29:in `<main>'
Error ID 3a22b1b3
Application root
/usr/share/puppet/rack/puppetmasterd
Environment (value of RAILS_ENV, RACK_ENV, WSGI_ENV, NODE_ENV and PASSENGER_APP_ENV)
production
Ruby interpreter command
/usr/bin/ruby
User and groups
uid=986(pe-puppet) gid=981(pe-puppet) groups=981(pe-puppet) context=system_u:unconfined_r:unconfined_t:s0
Environment variables
LANG = C
PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
NOTIFY_SOCKET = /run/systemd/notify
PASSENGER_USE_FEEDBACK_FD = true
SERVER_SOFTWARE = Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips Phusion_Passenger/5.0.28
PASSENGER_DEBUG_DIR = /tmp/passenger.spawn-debug.XXXXGEgBkx
USER = pe-puppet
LOGNAME = pe-puppet
SHELL = /sbin/nologin
HOME = /opt/puppetlabs/server/data/puppetserver
PWD = /usr/share/puppet/rack/puppetmasterd
IN_PASSENGER = 1
PYTHONUNBUFFERED = 1
NODE_PATH = /usr/share/passenger/node
RAILS_ENV = production
RACK_ENV = production
WSGI_ENV = production
NODE_ENV = production
PASSENGER_APP_ENV = production
As far as I can tell the config is all good and there is a file "testrequest.rb" not sure if it is in the right place but does have suitable read permissions:
-rw-r--r--. 1 root root 2012 Jun 20 07:05 /usr/local/share/gems/gems/rack-1.6.4/test/testrequest.rb