I recently managed to get an app up and running with web2py running through FastCGI and Lighttpd for a very low RAM footprint. It's running great, save for the FastCGI process shutting down after going for a while with no use. When it shuts down I get 500 and 502 errors from my page. I have to shut down lighttpd, run Is there a way to prevent the FastCGI process from shutting down? asked 26 Nov '11, 21:05 HittingSmoke |
While technically a workaround, scheduling a cron task to periodically retrieve your website is a relatively popular solution:
answered 26 Nov '11, 21:11 ryans ♦♦ Ahh! I hadn't thought of that. I thought of a cron job to run a restart script but decided it wasn't worth bothering with since there would be regular down time while in development. Thanks. I'll keep this running until an actual solution is posted.
(26 Nov '11, 21:34)
HittingSmoke
It appears that's not keeping the site up. I'm not sure exactly why it's going down. Lighttpd continues running but web2py w/ FastCGI doesn't.
(30 Nov '11, 17:54)
HittingSmoke
Can you try running your fastcgi process in a screen(try the command "man screen" for more info) and see with exactly what error does that process shutdown?
(30 Nov '11, 19:51)
neeravk
|