Ruby on Rails 获取 HTTP 500,没有错误记录(托管在 Media Temple 上)
我正在尝试在 Media Temple 上部署 Ruby on Rails 应用程序。应用程序启动正常(Mongrel 启动正常),但我不断收到 HTTP 500 错误。
问题是没有任何内容写入日志,所以我现在知道可能导致此问题的原因。
我有 256M 可用内存,所以我不认为内存是一个问题。
谢谢,
I am trying to deploy my Ruby on Rails application on Media Temple. The application starts fine (Mongrel starts up fine) but I keep on getting a HTTP 500 error.
The problem is that nothing gets written to the log, so I do now know what might be causing this problem.
I have 256M of memory available so I do not believe memory is an issue.
Thanks,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
您还需要确保“杂种用户”能够写入 tmp/、log/
You will also need to make sure that the "mongrel user" has the ability to write to the tmp/, log/
这可能是与向您的杂种代理请求相关的 Apache 错误。还要检查 Apache 日志。
It may be an Apache error related to proxying requests to your mongrel. Check the Apache log as well.
您可以尝试查看上面给出的步骤,但作为练习或方便起见,请在 Rails 应用程序中使用 Hoptoad Notifier 或 Exception Notifier。
这是跟踪 Rails 应用程序中异常的好方法,并且您会收到包含所有必要详细信息的电子邮件通知。
You can try seeing the steps given above, But as a practice or a convenience, use Hoptoad Notifier or Exception Notifier to your Rails Application.
Its a nice way to keeping track of exceptions in your Rails app and you get email notifications with all the necessary details.
您可以启动在 Mongrel 上运行的脚本/服务器会话,这样日志就会直接打印在会话中。
但我想现在无论如何都已经修复了;-)
You could have started a script/server session running on Mongrel, that way the logs get printed directly in the session.
But I guess it's fixed either way now ;-)
通过转移到另一台主机,问题得到解决。不是理想的,但它有效。
In the the problem was solved by moving to another host. Not the ideal, but it works.