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 Den tisdagen den 14:e augusti 2012 kl. 11:50:31 UTC+2 skrev Primoz Anzur: > > 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? > > > > On Tue, Aug 14, 2012 at 11:23 AM, Adam Bengtsson > <[email protected]<javascript:> > > wrote: > >> 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 >> >> Den tisdagen den 14:e augusti 2012 kl. 10:38:17 UTC+2 skrev Primoz Anzur: >>> >>> What does the error log say about this? >>> >>> On Tue, Aug 14, 2012 at 1:15 AM, Adam Bengtsson <[email protected]>wrote: >>> >>>> 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 >>>> >>>> -- >>>> 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<https://groups.google.com/d/msg/webpy/-/tp0fNy3GehsJ> >>>> . >>>> To post to this group, send email to [email protected]. >>>> 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 <http://groups.google.com/group/webpy?hl=en>. >>>> >>> >>> -- >> 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/-/q-DLAWEM1jwJ. >> >> To post to this group, send email to [email protected] <javascript:> >> . >> To unsubscribe from this group, send email to >> [email protected] <javascript:>. >> For more options, visit this group at >> http://groups.google.com/group/webpy?hl=en. >> > > Den tisdagen den 14:e augusti 2012 kl. 11:50:31 UTC+2 skrev Primoz Anzur: > > 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? > > > > On Tue, Aug 14, 2012 at 11:23 AM, Adam Bengtsson > <[email protected]<javascript:> > > wrote: > >> 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 >> >> Den tisdagen den 14:e augusti 2012 kl. 10:38:17 UTC+2 skrev Primoz Anzur: >>> >>> What does the error log say about this? >>> >>> On Tue, Aug 14, 2012 at 1:15 AM, Adam Bengtsson <[email protected]>wrote: >>> >>>> 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 >>>> >>>> -- >>>> 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<https://groups.google.com/d/msg/webpy/-/tp0fNy3GehsJ> >>>> . >>>> To post to this group, send email to [email protected]. >>>> 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 <http://groups.google.com/group/webpy?hl=en>. >>>> >>> >>> -- >> 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/-/q-DLAWEM1jwJ. >> >> To post to this group, send email to [email protected] <javascript:> >> . >> To unsubscribe from this group, send email to >> [email protected] <javascript:>. >> For more options, visit this group at >> http://groups.google.com/group/webpy?hl=en. >> > > -- 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/-/5h4E7PHLZOAJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/webpy?hl=en.
