[Python-modules-team] Bug#598143: Downgrade to libapache2-mod-wsgi from lenny helped

Pieter Ennes pieter at ennes.nl
Wed Mar 2 13:39:23 UTC 2011


We're seeing a similar thing, but using libapache2-mod-wsgi with plain
Python scripts without Django.

Forward-porting version 2.5 from Lenny made it work here as well. The
info below is from the non-working squeeze version.

This is from the local host, client side:
$ curl --trace - http://localhost/live/wsgi-bin/uagents.py
== Info: About to connect() to localhost port 80 (#0)
== Info:   Trying 127.0.0.1... == Info: connected
== Info: Connected to localhost (127.0.0.1) port 80 (#0)
=> Send header, 186 bytes (0xba)
0000: 47 45 54 20 2f 6c 69 76 65 2f 77 73 67 69 2d 62 GET /live/wsgi-b
0010: 69 6e 2f 75 61 67 65 6e 74 73 2e 70 79 20 48 54 in/uagents.py HT
0020: 54 50 2f 31 2e 31 0d 0a 55 73 65 72 2d 41 67 65 TP/1.1..User-Age
0030: 6e 74 3a 20 63 75 72 6c 2f 37 2e 32 31 2e 30 20 nt: curl/7.21.0 
0040: 28 69 34 38 36 2d 70 63 2d 6c 69 6e 75 78 2d 67 (i486-pc-linux-g
0050: 6e 75 29 20 6c 69 62 63 75 72 6c 2f 37 2e 32 31 nu) libcurl/7.21
0060: 2e 30 20 4f 70 65 6e 53 53 4c 2f 30 2e 39 2e 38 .0 OpenSSL/0.9.8
0070: 6f 20 7a 6c 69 62 2f 31 2e 32 2e 33 2e 34 20 6c o zlib/1.2.3.4 l
0080: 69 62 69 64 6e 2f 31 2e 31 35 20 6c 69 62 73 73 ibidn/1.15 libss
0090: 68 32 2f 31 2e 32 2e 36 0d 0a 48 6f 73 74 3a 20 h2/1.2.6..Host: 
00a0: 6c 6f 63 61 6c 68 6f 73 74 0d 0a 41 63 63 65 70 localhost..Accep
00b0: 74 3a 20 2a 2f 2a 0d 0a 0d 0a                   t: */*....

[hangs]
^C

Looking on the server side, Apache error log, using LogLevel=debug, the
only messages are these:

[Wed Mar 02 14:33:39 2011] [info] mod_wsgi (pid=32275): Create
interpreter 'rs.watchmouse.net|/live/wsgi-bin/browser.py'.
[Wed Mar 02 14:33:39 2011] [info] mod_wsgi (pid=32275): Adding
'/home/wmc/sites/cp/live/wsgi' to path.

The virtual host has a WSGI directive like this:

WSGIDaemonProcess wsgi-live processes=6 threads=1 maximum-requests=1
stack-size=4096000 home=/somepath/ python-path=/somepath/
WSGIScriptAlias /live/wsgi-bin/ /somepath/

-- 
- Pieter






More information about the Python-modules-team mailing list