Passenger | Error during failsafe response: closed stream 4

Posted by markm Mon, 23 Mar 2009 09:35:00 GMT

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).

Comments

Leave a comment

  1. Avatar
    Diego Camacho about 1 month later:

    Thanks ! Worked for me

  2. Avatar
    ferit about 1 month later:

    How will fix permissions?

  3. Avatar
    markm about 1 month later:

    Okay to fix permissions (assuming you are on a Unix type OS) try this:

    `chown -R <user>:<group> <path_to_app>`
    

    For me this is:

    `chown -R apache2:apache2 /var/www/`
    

    but it might be different for you.

  4. Avatar
    http://www.ephekt.com about 1 month later:

    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.

Comments