durusmail: quixote-users: problems with mod_scgi, Quixote 2 and Apache 2
problems with mod_scgi, Quixote 2 and Apache 2
2005-05-13
2005-05-13
2005-05-13
problems with mod_scgi, Quixote 2 and Apache 2
Matt Patterson
2005-05-13
Hello everyone,

I think this may be another go-around for this, but I haven't been
able to find an answer yet.

I've got a simple Quixote 2 app (largely cribbed from the demo app,
I'm just trying to get the setup working) that runs fine under
simple_server.py, but doesn't run under mod_scgi.

The error I'm getting from Quixote is this:


> Traceback (most recent call last):
>   File "/usr/lib/python2.3/site-packages/quixote/publish.py", line
> 273, in proce
> ss_request
>     output = self.try_publish(request)
>   File "/usr/lib/python2.3/site-packages/quixote/publish.py", line
> 248, in try_p
> ublish
>     assert path[:1] == '/'
> AssertionError
>

That line in try_publish is performing an assert on path, which has
been set to the value of the environment variable PATH_INFO.

The environment dumped by quixote is here:


> Environment:
> CONTENT_LENGTH  0
> DOCUMENT_ROOT   /htdocs
> HTTP_ACCEPT     text/html, text/plain, application/x-bittorrent,
> application/x-troff-man, application/x-tar, application/x-gtar,
> text/*, application/x-debian-package, audio/basic, */*;q=0.01
> HTTP_ACCEPT_ENCODING gzip, compress
> HTTP_ACCEPT_LANGUAGE en
> HTTP_HOST       kalendar.8fp.net
> HTTP_USER_AGENT Lynx/2.8.4rel.1 libwww-FM/2.14 SSL-MM/1.4.1 OpenSSL/
> 0.9.6g
> QUERY_STRING
> REMOTE_ADDR     10.0.0.10
> REMOTE_PORT     3600
> REQUEST_METHOD  GET
> REQUEST_URI     /
> SCGI            1
> SCRIPT_NAME     /
> SERVER_ADDR     10.0.0.11
> SERVER_ADMIN    webmaster@localhost
> SERVER_NAME     kalendar.8fp.net
> SERVER_PORT     80
> SERVER_PROTOCOL HTTP/1.0
> SERVER_SOFTWARE Apache/2.0.54 (Debian GNU/Linux) mod_scgi/1.2
>

Since PATH_INFO is missing, I'm assuming this is the problem. Can
anyone point to a solution?

I'm running Debian 3 (Testing), with Python 2.3.5, Apache 2.0.54,
mod_scgi 1.2 and Quixote 2.0. Quixote was built from source by me
(setup.py install), but everything else is straight out of  Debian...

Thanks,

Matt

--
   Matt Patterson | Design & Code
    | http://www.emdash.co.uk/
    | http://www.reprocessed.org/


reply