Having spent the entire of today chasing a problem with rails, running under passenger, where it always erroring for specific URL’s with: “Application Error” “Rails application failed to start properly” I thought I’d share one very useful tip which identified the problem me, so hopefully it will save other hours of head banging.
./scripts/console >> app.get '<Problem URL>'
Now if this is a problem with most parts of your app the error will be plain to see, instead of being caught up in the hand off between passenger and apache resulting in the less than useful Application Error.
N.B. Another good indication that this will help is the existence of “Premature end of script headers” errors in your apache log file.
Leave a Reply
You must be logged in to post a comment.