我一直在此问题上停留了几周,而且我的想法已经用完。应用程序spawner服务器意外退出:连接已关闭 - 乘客
我正在尝试将两个Ruby站点移动到新的服务器。一个完美地工作,另一个给连接关闭错误。
它应该是一个标准的Apache + Passenger 3.0 + Ruby 1.8.7 + Rails 2.3.18安装程序。 这两个Ruby站点都基于相同的代码,略有不同。 我也不是Ruby家伙,我只是管理服务器,但是开发人员对这个问题没有想法。
Apache的错误日志客运调试已变为最大显示了这个:
[ pid=23816 thr=139877253064448 file=ext/common/ApplicationPool/Pool.h:939 time=2013-05-15 14:19:28.87 ]: Spawning a process for /home/xxxxx because there are none for this app group
[ pid=23816 thr=139877253064448 file=ext/common/ApplicationPool/../SpawnManager.h:289 time=2013-05-15 14:19:28.88 ]: Spawning a new application process for /home/xxxxx...
[ pid=23816 thr=139877253064448 file=ext/common/ApplicationPool/Server.h:292 time=2013-05-15 14:19:34.141 ]: Client 28: SpawnException occured (with error page)
所以它试图产卵应用程序,它失败。但我无法找到任何解释其失败原因的日志。
从应用程序的根文件夹运行./script/server可以正常工作,所以一切都必须或多或少地与应用程序正常工作。
Apache的配置文件是非常直接的和相当基本的:(略简体)
PassengerRoot /var/lib/gems/1.8/gems/passenger-3.0.19
PassengerRuby /usr/bin/ruby1.8
PassengerEnabled off
PassengerUserSwitching on
PassengerLogLevel 3
<VirtualHost *:80>
ServerName xxxxx.com
ServerAdmin [email protected]
DocumentRoot /home/xxxxx/public
PassengerEnabled on
PassengerAppRoot /home/xxxxx
PassengerTempDir /home/xxxxx/tmp
PassengerUploadBufferDir /home/xxxxx/tmp/uploads
</VirtualHost>
有谁知道这个错误可能发生的历史给出一个几乎相同的代码库工作正常的事实呢?什么日志记录应该显示这样的产卵错误?我真的很想念那个失败的关键步骤,我无法弄清楚它在做什么。