![使用 Passenger 时不断收到 500 内部服务器错误](https://linux22.com/image/544215/%E4%BD%BF%E7%94%A8%20Passenger%20%E6%97%B6%E4%B8%8D%E6%96%AD%E6%94%B6%E5%88%B0%20500%20%E5%86%85%E9%83%A8%E6%9C%8D%E5%8A%A1%E5%99%A8%E9%94%99%E8%AF%AF.png)
每次我重启我的服务器(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)