apache 挂上的 phusion guest mod_rails
我运行 Apache 2.2.3 和乘客 3.0.7(在史前 SLES11 linux 上)。 当请求通过乘客时,它会生成应用程序进程,但然后永远挂起,就好像没有应用程序无法启动一样。
我使用简单的 hello worldrack 应用程序以及新创建的 Rails 3 应用程序框架进行了测试。这些应用程序在 webrick 上以生产模式启动,因此不存在应用程序内部问题。
我检查了权限,全部属于 apache 用户。
Passenger 向 apache 记录它生成了该进程,但请求 url 甚至没有进入 apache 的访问日志,并且应用程序日志也是空的。乘客说,跟踪显示应用程序在启动过程中好像冻结了,但我没有发现它们甚至到达 config.ru 的痕迹。这一切都向我表明,悬挂的是乘客生成器。
这太神秘了,难道不是因为某些奇怪的 apache 配置而导致生成的进程无法获取资源吗?
这对任何人来说都敲响了警钟吗?所有调试帮助或提示都表示感谢
我在 phusion google 组上提出了这个问题,但没有找到解决方案。 https://groups.google.com/forum/#!topic/phusion -乘客/GlQIBNTyF6A
维克
I run Apache 2.2.3 with passenger 3.0.7 (on a prehistoric SLES11 linux).
when a request goes through passenger, it spawns the app process but then hangs forever as if no app could start up.
I tested with trivial hello world rack app, as well as a freshly created rails 3 app skeleton. The apps come up in production mode on webrick so no app-internal problem.
I checked permissions, all owned by the apache user.
Passenger logs to apache that it spawned the process but the request url does not even make it to the access log of apache and the app logs are empty too. Passenger people say that the trace shows as if the apps froze during startup, however I find no trace of them even reaching config.ru. This all suggests to me that it is passengers spawner that hangs.
This is all too mysterious, can it not be that the spawned process does not get resources due to some wierd apache config?
Does this ring a bell to anyone? all help or hints to debug appreciated
I raised this problem on the phusion google group but found no resolution.
https://groups.google.com/forum/#!topic/phusion-passenger/GlQIBNTyF6A
Vik
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在 Nginx 1.0.15、Passenger 3.0.12、Rails 2.3.14 和 Bundler 1.1.3 上也遇到了同样的问题。 Nginx 会正常启动,然后 Passenger 会尝试生成一个应用程序,然后什么也没有。没有例外或任何事情,只是尝试生成应用程序的无限循环。
将 config.ru 添加到应用程序立即解决了问题!对于 Rails 2.3,它应该看起来像这样:
现在就像一个魅力。
I had the same problem with Nginx 1.0.15, Passenger 3.0.12, Rails 2.3.14 and Bundler 1.1.3. Nginx would start fine, then Passenger would try to spawn an application and then nothing. No exceptions or anything, just endless loop of trying to spawn the application.
Adding config.ru to the application resolved the issue immediately! For Rails 2.3 it should look like this:
Works like a charm now.