Problems with lighttpd deployment

222 views
Skip to first unread message

Adam Bengtsson

unread,
Aug 13, 2012, 7:15:18 PM8/13/12
to we...@googlegroups.com
Hello there,

Short time reader, first time poster.

I've been having some problems deploying a web.py project with lighttpd.

Running the hello world/name example works fine, but when trying to run my own application (divided into multiple files) the mod_fastcgi reports that "child exited with status 2".

I've tried running the project with the builtin development http server and it works fine, but with lighttpd I'm out of luck.

lighttpd error log:
2012-08-14 02:57:30: (log.c.166) server started 
2012-08-14 02:57:30: (mod_fastcgi.c.1104) the fastcgi-backend /var/www/site/webpy/index.py failed to start: 
2012-08-14 02:57:30: (mod_fastcgi.c.1108) child exited with status 2 /var/www/site/webpy/index.py 
2012-08-14 02:57:30: (mod_fastcgi.c.1111) If you're trying to run your app as a FastCGI backend, make sure you're using the FastCGI-enabled version.
If this is PHP on Gentoo, add 'fastcgi' to the USE flags. 
2012-08-14 02:57:30: (mod_fastcgi.c.1399) [ERROR]: spawning fcgi failed. 
2012-08-14 02:57:30: (server.c.938) Configuration of plugins failed. Going down.

After some googling I've concluded that when you get "child exited with status 13" you have a executable permission error, but I can't find any info on status 2.

If anyone has a solution, similar experience or knows of a resource explaining the status codes, it would be very much appreciated.

Thanks in advance,

//Adam

Primoz Anzur

unread,
Aug 14, 2012, 4:38:17 AM8/14/12
to we...@googlegroups.com
What does the error log say about this?

--
You received this message because you are subscribed to the Google Groups "web.py" group.
To view this discussion on the web visit https://groups.google.com/d/msg/webpy/-/tp0fNy3GehsJ.
To post to this group, send email to we...@googlegroups.com.
To unsubscribe from this group, send email to webpy+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/webpy?hl=en.

Adam Bengtsson

unread,
Aug 14, 2012, 5:23:33 AM8/14/12
to we...@googlegroups.com
I'm sorry, which error log are you referring to? I included the lighttpd error log in my original post, is there some other error log I could consult?

//Adam

Primoz Anzur

unread,
Aug 14, 2012, 5:50:31 AM8/14/12
to we...@googlegroups.com
Why did I always thought, that that was the console output...?
*headdesk*
Anyways, here are few questions: Does you application run stand-alone? Does it include something from different directory? Do you have shebang on top? Is the owner of the app same as the Lighty user? Is the script chmodded executable?



To view this discussion on the web visit https://groups.google.com/d/msg/webpy/-/q-DLAWEM1jwJ.

Adam Bengtsson

unread,
Aug 14, 2012, 8:50:48 AM8/14/12
to we...@googlegroups.com
I feel a bit silly now :-)

Rechecking my code for what seems like the millionth time, I discovered my shebangs where a bit of. After correcting them mod_fastcgi no longer throws an error and the application seems to be working.

Thanks for your time and questions, had you not asked them, I certainly would not have bothered to proofread the shebangs :-)

//Adam 
Reply all
Reply to author
Forward
0 new messages