puppet enterprise + apache无法加载这样的文件 - ./../testrequest(LoadError

时间:2016-06-21 18:37:41

标签: ruby apache passenger puppet-enterprise

对木偶和红宝石很新,但不是系统管理。火灾洗礼,设置puppetserver版本:2016.1.1022 on centos 7,64-bit。从默认切换到apache,现在当我打开:8140在网络浏览器中我得到了," PassengerFriendlyErrorPages on"在apache配置中," Web应用程序无法启动"使用此转储:

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

据我所知,配置一切都很好,并且有一个文件&#34; testrequest.rb&#34;不确定它是否在正确的位置但具有合适的读取权限:

-rw-r--r--. 1 root root 2012 Jun 20 07:05 /usr/local/share/gems/gems/rack-1.6.4/test/testrequest.rb

0 个答案:

没有答案