Spyce + lighttpd + fastcgi working but one problem
Andy Sy <[email protected]> Fri, 18 Apr 2008 00:14:18 +0800
| Newsgroups | gmane.comp.python.spyce.general |
|---|---|
| Message-ID | <[email protected]> |
I've got fastcgi Spyce on lighttpd working with one small
problem.
First of all, below is how lighttpd is started from rc.lighttpd:
MODULES=/usr/local/lib/
CONFIG=/etc/lighttpd.conf
su -c "/usr/local/sbin/lighttpd -f $CONFIG -m $MODULES" www
Everything works, *except* when I exit the shell from where I
started lighttpd. What happens then is that when I request
a page from lighttpd, the browser displays the ff:
Unexpected exception: (please report!)
Traceback (most recent call last):
File "/root/spyce-2.0.3/spyce.py", line 284, in commonHandler
DEBUG('elapsed to get spycecode: %s' % (time.time() - start))
File "/root/spyce-2.0.3/spyce.py", line 10, in DEBUG
sys.stderr.write('%s\n' % s)
IOError: [Errno 5] Input/output error
I believe this has to do with the fact that because the shell
is no longer around, spyce.py has nowhere to show its output.
How do we ask spyce to output to a log instead?
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone