Passenger keeps dying on my domain (Django)

software development

#1

I’m using Passenger to serve a Django app on a small website. I’m using a basic shared hosting account. On a regular basis, Passenger just plain stops working, and the site starts throwing 500s. Doing any of the textbook stuff that you’re supposed to do (restarting by touching the temp file, etc) doesn’t fix it; the only way I’ve found to set things right is to uncheck the Passenger setting in the Dreamhost panel, wait a few minutes for the setting to take effect, and then reactivate it. This got bad enough that I had to set up a cron job to hit the home page every hour and email me if it returns anything other than a 200. Has anybody else experienced this, and what can I do about it?