我有一个运行 ruby on rails 应用程序和乘客的 Web 服务器,具有以下规格
Red Hat Enterprise Linux Server release 5.4 (Tikanga)
Server version: Apache/2.2.3
Server built: May 28 2012 08:45:26
PHP 5.3.8 (cli) (built: Oct 3 2012 18:55:28)
rvm 1.16.19 (stable)
ruby 1.8.7 (2012-02-08 MBARI 8/0x6770 on patchlevel 358) [x86_64-linux], MBARI 0x6770, Ruby Enterprise Edition 2012.02
Rails 3.2.8
Phusion Passenger version 3.0.18
今天早上,我收到了来自服务器管理员的电子邮件,说该网站已开始返回错误。我登录服务器发现乘客不仅没有运行,而且有些已经从服务器上完全卸载。
这是服务器多次抛出的错误
ruby: No such file or directory -- /directory/rvm/gems/ree-1.8.7-2012.02/gems/passenger-3.0.18/helper-scripts/passenger-spawn-server (LoadError)
[ pid=3324 thr=48010014159632 file=ext/apache2/Hooks.cpp:884 time=2012-11-14 10:59:55.403 ]: Unexpected error in mod_passenger: Cannot spawn application '/var/www/html/application/current': Could not read from the spawn server: Connection reset by peer (104)
Backtrace:
in 'virtual Passenger::SessionPtr Passenger::ApplicationPool::Client::get(const Passenger::PoolOptions&)' (Client.h:742)
in 'Passenger::SessionPtr Hooks::getSession(const Passenger::PoolOptions&)' (Hooks.cpp:312)
in 'int Hooks::handleRequest(request_rec*)' (Hooks.cpp:585)