使用 Passenger 时不断收到 500 内部服务器错误

使用 Passenger 时不断收到 500 内部服务器错误

每次我重启我的服务器(MediaTemple VPS)时,我们的 Redmine 安装(由 Passenger 通过 Apache 提供支持)都会开始发出 500 内部服务器错误。通常,当我重启 Apache 时,它​​就会重新开始工作,但这变得非常烦人。我可以得到一些帮助吗?

Apache 错误日志的内容如下:

/usr/local/rubygems/gems/gems/passenger-3.0.4/helper-scripts/passenger-spawnserver:75:in `require': no such file to load -- rubygems (LoadError) from /usr/local/rubygems/gems/gems/passenger-3.0.4/helper-scripts/passenger-spawn-server:75
[ pid=6133 thr=3079579408 file=ext/apache2/Hooks.cpp:864 time=2011-03-26 16:43:57.147 ]: Unexpected error in mod_passenger: Cannot spawn application '…/redmine': 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:750)
     in 'Passenger::SessionPtr Hooks::getSession(const Passenger::PoolOptions&)' (Hooks.cpp:297)
     in 'int Hooks::handleRequest(request_rec*)' (Hooks.cpp:566)

相关内容