login community faq

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 nohup python2.7 fcgihandler.py & then restart lighttpd to get my web site back.

Is there a way to prevent the FastCGI process from shutting down?

asked Nov 26 '11 at 21:05

HittingSmoke's gravatar image

HittingSmoke
55


While technically a workaround, scheduling a cron task to periodically retrieve your website is a relatively popular solution:

1
wget -O - http://mysite.com > /dev/null 2>&1

answered Nov 26 '11 at 21:11

ryans's gravatar image

ryans ♦♦
28411420

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.

(Nov 26 '11 at 21:34) HittingSmoke HittingSmoke's gravatar image

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.

(Nov 30 '11 at 17:54) HittingSmoke HittingSmoke's gravatar image

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?

(Nov 30 '11 at 19:51) neeravk ♦♦ neeravk's gravatar image
Your answer
If you have an answer to the above question, then use the form below. Otherwise, use the appropriate 'add new comment' button above to post your feedback.
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

×61
×18
×9
×3

Asked: Nov 26 '11 at 21:05

Seen: 712 times

Last updated: Nov 30 '11 at 19:51

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited