Passenger | Error during failsafe response: closed stream 4
So you are running Passenger with Apache2 and all of a sudden your server is not happy: Internal Server Error!
You look in the log file and you see:
Error during failsafe response: closed stream
(originally closed stream)
Good news, all is not lost, it is your fault and you can fix it.
If you are dumb like me you ran a migration as "root" which means that your apache2 account can no longer open up the rails production.log file. (Or you did something else to mess up permissions.)
Fix the permissions and all will be better (after an apache restart of course).
Thanks ! Worked for me
How will fix permissions?
Okay to fix permissions (assuming you are on a Unix type OS) try this:
For me this is:
but it might be different for you.
Ultimately I am unsure if this actually resolved our issue… However it logically does make sense and I did in fact force us to look at permissions. Thanks for your suggestion and if I find another reason for these error(s) I will post.