My Dreamhost server got rebooted yesterday. After the reboot, I’ve noticed two things:
- Kernel 2.6
- My Django application down. I’m not sure if it was the 2.6 kernel that caused the problem. It could be a coincidence.
I’ve spent a whole day investigating the problem. It turned out that Python couldn’t make a new thread. Just like Grimboy, I’ve changed “threaded” method into “prefork” in dispatch.fcgi and got my site up and running.
FCGI is pretty difficult to debug, I must say. To get a debug message, I needed to run a Perl script, from which a Python script was called, with stderr redirected to a file.