Ruby on Rails getting HTTP 500 with no error logged (hosted on Media Temple)
-
05-07-2019 - |
Question
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,
Solution 5
In the the problem was solved by moving to another host. Not the ideal, but it works.
OTHER TIPS
You will also need to make sure that the "mongrel user" has the ability to write to the tmp/, log/
It may be an Apache error related to proxying requests to your mongrel. Check the Apache log as well.
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.
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 ;-)