I'm trying to deploy my web.py project with lighttpd, but I get a 500
error. Lighttpd configuration and log output included below. The
errors look sort of like the problem they discuss in troubleshooting
here: http://redmine.lighttpd.net/wiki/lighttpd/Docs:ModFastCGI#Troubleshooting
. You can see my attempt to fix it in the configuration below, to no
avail. You guys all use this lighttpd+fastcgi setup, right? Any
ideas?
I'm using gentoo on slicehost. I have flup 1.0.1 installed. My
project runs fine on port 8080 if I just say ./website.py, so I don't
think it's a problem with my script. I am running lighttpd as a
different user from myself, however.
lighttpd config
-------------------------------------------------------
server.username = "lighttpd"
server.groupname = "lighttpd"
include "mime-types.conf"
static-file.exclude-extensions = (".fcgi")
server.errorlog = "/home/nick/errors.log"
index-file.names = ( "index.html" )
server.modules = ("mod_fastcgi", "mod_rewrite")
server.port = 80
server.pid-file = "/home/nick/config/lighttpd.pid"
fastcgi.debug = 500
server.document-root = "/home/nick/artscraper/"
fastcgi.server = ( "/website.py" =>
(( "socket" => "/tmp/fastcgi.socket",
"bin-path" => "/home/nick/artscraper/website.py",
"bin-environment" => (
"FCGI_WEB_SERVER_ADDRS" => "127.0.0.1"
),
"max-procs" => 1
))
)
url.rewrite-once = (
#"^/favicon.ico$" => "/static/favicon.ico",
"^/static/(.*)$" => "/static/$1",
"^/(.*)$" => "/website.py/$1"
)
relevant snippet from my lighttpd error log
-------------------------------------------------------------
2008-11-19 11:12:00: (mod_fastcgi.c.1768) connect failed: Connection
refused on unix:/tmp/fastcgi.socket-0
2008-11-19 11:12:00: (mod_fastcgi.c.2956) backend died; we'll disable
it for 5 seconds and send the request to another backend instead:
reconnects: 0 load: 1
2008-11-19 11:12:00: (mod_fastcgi.c.2653) proc: unix:/tmp/
fastcgi.socket-0 3 1 0 9702
2008-11-19 11:12:00: (mod_fastcgi.c.2752) --- fastcgi spawning
socket unix:/tmp/fastcgi.socket-0
current: 1 / 1
2008-11-19 11:12:00: (mod_fastcgi.c.814) new proc, socket: 0 /tmp/
fastcgi.socket-0
2008-11-19 11:12:00: (mod_fastcgi.c.1568) release proc for reconnect:
9714 unix:/tmp/fastcgi.socket-0
2008-11-19 11:12:00: (mod_fastcgi.c.1779) connect succeeded: 6
2008-11-19 11:12:00: (mod_fastcgi.c.3005) got proc: pid: 9714 socket:
unix:/tmp/fastcgi.socket-0 load: 1
2008-11-19 11:12:00: (mod_fastcgi.c.2653) proc: unix:/tmp/
fastcgi.socket-0 1 1 1 9714
2008-11-19 11:12:01: (mod_fastcgi.c.2494) unexpected end-of-file
(perhaps the fastcgi process died): pid: 9714 socket: unix:/tmp/
fastcgi.socket-0
2008-11-19 11:12:01: (mod_fastcgi.c.3325) response not received,
request sent: 924 on socket: unix:/tmp/fastcgi.socket-0 for /
website.py , closing connection
2008-11-19 11:12:01: (mod_fastcgi.c.1515) released proc: pid: 9714
socket: unix:/tmp/fastcgi.socket-0 load: 0
2008-11-19 11:12:01: (mod_fastcgi.c.2653) proc: unix:/tmp/
fastcgi.socket-0 1 1 0 9714
2008-11-19 11:12:02: (mod_fastcgi.c.2653) proc: unix:/tmp/
fastcgi.socket-0 1 1 0 9714
2008-11-19 11:12:03: (mod_fastcgi.c.2653) proc: unix:/tmp/
fastcgi.socket-0 1 1 0 9714
etc ad infinitum
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" group.
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
-~----------~----~----~----~------~----~------~--~---