So I've started upgrading our app to Rails 3.1 from Rails 3.0.9.
It's working great in the development environment. The time has come to put it up onto the staging server so we can run some full acceptance tests -- but oh, no! We're getting the horrible "Internal Server Error" pages served back at us half of the time, seemingly randomly. We're using Ruby 1.9.2 (p290) Apache (2) and Passenger (3.0.9).
Absolutely nothing is being written to our app's log file when these happen (even at the lowest log level).
The only thing being written to the Apache log is the following:
[Fri Dec 02 14:36:15 2011] [error] [client <my ip>] Premature end of script headers: <requested path>, referer: <http://domain.com/referrer>
Obviously this is far too generic an error for me to ask "fix it!", but some advice on where I can start looking to debug what's going on would be greatly appreciated. This is driving me nuts.
UPDATE: This problem does not occur with Sprockets disabled (i.e. Never mind, it still does...config.assets.enabled = false
)