No I was too bussy wondering why changing a comment line in my python code translated into a crashing aplication :)
On Jul 22, 1:05 am, Graham Dumpleton <[email protected]> wrote: > The code in that area was just changed for Python 3.X. Obviously > something isn't right. > > Change to use: > > start_response(b'200 OK', ...) > > Ie., add a 'b' in front of status string so bytes are used. > > That might get it working while I get a chance to look at it. > > BTW, hadn't you noticed that the processes were always crashing on > shutdown when sub interpreters were used, but not main interpreter? > > Graham > > 2009/7/22 gert <[email protected]>: > > > > > I wonder if this is normal behavior ? > > >http://code.google.com/p/appwsgi/source/browse/trunk/appwsgi/wsgi/dow... > > > Apache 2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8g mod_wsgi/3.0c5- > > TRUNK Python/3.1 > > > WSGIDaemonProcess www python-path=/usr/httpd/www user=www group=www > > processes=1 threads=1 display-name="wsgi: www" > > WSGIProcessGroup www > > WSGIApplicationGroup %{GLOBAL} > > > [Wed Jul 22 00:40:09 2009] [info] [client 192.168.2.100] mod_wsgi > > (pid=31955, process='www', application=''): Loading WSGI script '/usr/ > > httpd/www/appwsgi/wsgi/user.wsgi'. > > [Wed Jul 22 00:40:09 2009] [info] [client 192.168.2.100] mod_wsgi > > (pid=31955, process='www', application=''): Loading WSGI script '/usr/ > > httpd/www/appwsgi/wsgi/download.wsgi'. > > [Wed Jul 22 00:40:09 2009] [error] [client 192.168.2.100] mod_wsgi > > (pid=31955): Exception occurred processing WSGI script '/usr/httpd/www/ > > appwsgi/wsgi/download.wsgi'. > > [Wed Jul 22 00:40:09 2009] [error] [client 192.168.2.100] Traceback > > (most recent call last): > > [Wed Jul 22 00:40:09 2009] [error] [client 192.168.2.100] File "/usr/ > > httpd/www/appwsgi/wsgi/download.wsgi", line 26, in application > > [Wed Jul 22 00:40:09 2009] [error] [client 192.168.2.100] response > > ('200 OK', [('Content-type', 'image/png'), ('Content-Length', str(len > > (bin))), ('Set-Cookie', session.COOKIE)]) > > [Wed Jul 22 00:40:09 2009] [error] [client 192.168.2.100] TypeError: > > status value is not an integer > > [Wed Jul 22 00:40:09 2009] [error] [client 192.168.2.100] > > [Wed Jul 22 00:40:09 2009] [error] [client 192.168.2.100] During > > handling of the above exception, another exception occurred: > > [Wed Jul 22 00:40:09 2009] [error] [client 192.168.2.100] > > [Wed Jul 22 00:40:09 2009] [error] [client 192.168.2.100] Traceback > > (most recent call last): > > [Wed Jul 22 00:40:09 2009] [error] [client 192.168.2.100] File "/usr/ > > httpd/www/appwsgi/wsgi/download.wsgi", line 32, in application > > [Wed Jul 22 00:40:09 2009] [error] [client 192.168.2.100] response > > ('200 OK', [('Content-type', 'image/png'), ('Content-Length', str(l)), > > ('Set-Cookie', session.COOKIE)]) > > [Wed Jul 22 00:40:09 2009] [error] [client 192.168.2.100] Premature > > end of script headers: download.wsgi, > > referer:http://192.168.2.17/appwsgi/www/user/user.htm > > [Wed Jul 22 00:40:10 2009] [notice] child pid 31955 exit signal > > Segmentation fault (11) > > [Wed Jul 22 00:40:10 2009] [info] mod_wsgi (pid=31955): Process 'www' > > has died, restarting. > > [Wed Jul 22 00:40:10 2009] [info] mod_wsgi (pid=31966): Starting > > process 'www' with uid=33, gid=33 and threads=1. > > [Wed Jul 22 00:40:10 2009] [info] mod_wsgi (pid=31966): Attach > > interpreter ''. > > [Wed Jul 22 00:40:10 2009] [info] mod_wsgi (pid=31966): Adding '/usr/ > > httpd/www' to path. > > [Wed Jul 22 00:40:14 2009] [info] [client 192.168.2.100] mod_wsgi > > (pid=31966, process='www', application=''): Loading WSGI script '/usr/ > > httpd/www/appwsgi/wsgi/upload.wsgi'. > > [Wed Jul 22 00:40:14 2009] [info] [client 192.168.2.100] mod_wsgi > > (pid=31966, process='www', application=''): Loading WSGI script '/usr/ > > httpd/www/appwsgi/wsgi/download.wsgi'. > > [Wed Jul 22 00:40:18 2009] [error] [client 192.168.2.100] mod_wsgi > > (pid=31966): Exception occurred processing WSGI script '/usr/httpd/www/ > > appwsgi/wsgi/download.wsgi'. > > [Wed Jul 22 00:40:18 2009] [error] [client 192.168.2.100] Premature > > end of script headers: download.wsgi, > > referer:http://192.168.2.17/appwsgi/www/user/user.css > > [Wed Jul 22 00:40:19 2009] [notice] child pid 31966 exit signal > > Segmentation fault (11) > > [Wed Jul 22 00:40:19 2009] [info] mod_wsgi (pid=31966): Process 'www' > > has died, restarting. > > [Wed Jul 22 00:40:19 2009] [info] mod_wsgi (pid=31971): Starting > > process 'www' with uid=33, gid=33 and threads=1. > > [Wed Jul 22 00:40:19 2009] [info] mod_wsgi (pid=31971): Attach > > interpreter ''. > > [Wed Jul 22 00:40:19 2009] [info] mod_wsgi (pid=31971): Adding '/usr/ > > httpd/www' to path. > > [Wed Jul 22 00:40:19 2009] [info] [client 192.168.2.100] mod_wsgi > > (pid=31971, process='www', application=''): Loading WSGI script '/usr/ > > httpd/www/appwsgi/wsgi/user.wsgi'. > > [Wed Jul 22 00:40:19 2009] [info] [client 192.168.2.100] mod_wsgi > > (pid=31971, process='www', application=''): Loading WSGI script '/usr/ > > httpd/www/appwsgi/wsgi/download.wsgi'. > > [Wed Jul 22 00:40:20 2009] [error] [client 192.168.2.100] Premature > > end of script headers: download.wsgi, > > referer:http://192.168.2.17/appwsgi/www/user/user.css > > [Wed Jul 22 00:40:21 2009] [notice] child pid 31971 exit signal > > Segmentation fault (11) > > [Wed Jul 22 00:40:21 2009] [info] mod_wsgi (pid=31971): Process 'www' > > has died, restarting. > > [Wed Jul 22 00:40:21 2009] [info] mod_wsgi (pid=31976): Starting > > process 'www' with uid=33, gid=33 and threads=1. > > [Wed Jul 22 00:40:21 2009] [info] mod_wsgi (pid=31976): Attach > > interpreter ''. > > [Wed Jul 22 00:40:21 2009] [info] mod_wsgi (pid=31976): Adding '/usr/ > > httpd/www' to path. > > [Wed Jul 22 00:40:21 2009] [info] [client 192.168.2.100] mod_wsgi > > (pid=31976, process='www', application=''): Loading WSGI script '/usr/ > > httpd/www/appwsgi/wsgi/user.wsgi'. > > [Wed Jul 22 00:40:21 2009] [info] [client 192.168.2.100] mod_wsgi > > (pid=31976, process='www', application=''): Loading WSGI script '/usr/ > > httpd/www/appwsgi/wsgi/download.wsgi'. > > [Wed Jul 22 00:40:23 2009] [error] [client 192.168.2.100] Premature > > end of script headers: download.wsgi, > > referer:http://192.168.2.17/appwsgi/www/user/user.css > > [Wed Jul 22 00:40:23 2009] [notice] child pid 31976 exit signal > > Segmentation fault (11) > > [Wed Jul 22 00:40:23 2009] [info] mod_wsgi (pid=31976): Process 'www' > > has died, restarting. > > [Wed Jul 22 00:40:23 2009] [info] mod_wsgi (pid=31981): Starting > > process 'www' with uid=33, gid=33 and threads=1. > > [Wed Jul 22 00:40:23 2009] [info] mod_wsgi (pid=31981): Attach > > interpreter ''. > > [Wed Jul 22 00:40:23 2009] [info] mod_wsgi (pid=31981): Adding '/usr/ > > httpd/www' to path. > > [Wed Jul 22 00:40:23 2009] [info] [client 192.168.2.100] mod_wsgi > > (pid=31981, process='www', application=''): Loading WSGI script '/usr/ > > httpd/www/appwsgi/wsgi/user.wsgi'. > > [Wed Jul 22 00:40:23 2009] [info] [client 192.168.2.100] mod_wsgi > > (pid=31981, process='www', application=''): Loading WSGI script '/usr/ > > httpd/www/appwsgi/wsgi/download.wsgi'. > > [Wed Jul 22 00:40:31 2009] [info] mod_wsgi (pid=31946): Destroying > > interpreters. > > [Wed Jul 22 00:40:31 2009] [info] mod_wsgi (pid=31946): Cleanup > > interpreter ''. > > [Wed Jul 22 00:40:31 2009] [info] mod_wsgi (pid=31946): Terminating > > Python. > > [Wed Jul 22 00:40:31 2009] [info] mod_wsgi (pid=31946): Python has > > shutdown. > > [Wed Jul 22 00:40:38 2009] [info] [client 192.168.2.100] mod_wsgi > > (pid=31981, process='www', application=''): Loading WSGI script '/usr/ > > httpd/www/appwsgi/wsgi/upload.wsgi'. > > [Wed Jul 22 00:40:38 2009] [error] [client 192.168.2.100] mod_wsgi > > (pid=31981): Exception occurred processing WSGI script '/usr/httpd/www/ > > appwsgi/wsgi/download.wsgi'. > > [Wed Jul 22 00:40:38 2009] [error] [client 192.168.2.100] Premature > > end of script headers: download.wsgi, > > referer:http://192.168.2.17/appwsgi/www/user/user.htm > > [Wed Jul 22 00:40:38 2009] [notice] child pid 31981 exit signal > > Segmentation fault (11) > > [Wed Jul 22 00:40:38 2009] [info] mod_wsgi (pid=31981): Process 'www' > > has died, restarting. > > [Wed Jul 22 00:40:38 2009] [info] mod_wsgi (pid=31986): Starting > > process 'www' with uid=33, gid=33 and threads=1. > > [Wed Jul 22 00:40:38 2009] [info] mod_wsgi (pid=31986): Attach > > interpreter ''. > > [Wed Jul 22 00:40:38 2009] [info] mod_wsgi (pid=31986): Adding '/usr/ > > httpd/www' to path. > > [Wed Jul 22 00:42:33 2009] [info] [client 192.168.2.100] mod_wsgi > > (pid=31986, process='www', application=''): Loading WSGI script '/usr/ > > httpd/www/appwsgi/wsgi/download.wsgi'. > > [Wed Jul 22 00:42:33 2009] [info] [client 192.168.2.100] mod_wsgi > > (pid=31986, process='www', application=''): Loading WSGI script '/usr/ > > httpd/www/appwsgi/wsgi/user.wsgi'. > > [Wed Jul 22 00:42:33 2009] [error] [client 192.168.2.100] mod_wsgi > > (pid=31986): Exception occurred processing WSGI script '/usr/httpd/www/ > > appwsgi/wsgi/download.wsgi'. > > [Wed Jul 22 00:42:33 2009] [error] [client 192.168.2.100] Traceback > > (most recent call last): > > [Wed Jul 22 00:42:33 2009] [error] [client 192.168.2.100] File "/usr/ > > httpd/www/appwsgi/wsgi/download.wsgi", line 26, in application > > [Wed Jul 22 00:42:33 2009] [error] [client 192.168.2.100] response > > ('200 OK', [('Content-type', 'image/png'), ('Content-Length', str(len > > (bin))), ('Set-Cookie', session.COOKIE)]) > > [Wed Jul 22 00:42:33 2009] [error] [client 192.168.2.100] TypeError: > > status value is not an integer > > [Wed Jul 22 00:42:33 2009] [error] [client 192.168.2.100] > > [Wed Jul 22 00:42:33 2009] [error] [client 192.168.2.100] During > > handling of the above exception, another exception occurred: > > [Wed Jul 22 00:42:33 2009] [error] [client 192.168.2.100] > > [Wed Jul 22 00:42:33 2009] [error] [client 192.168.2.100] Traceback > > (most recent call last): > > [Wed Jul 22 00:42:33 2009] [error] [client 192.168.2.100] File "/usr/ > > httpd/www/appwsgi/wsgi/download.wsgi", line 32, in application > > [Wed Jul 22 00:42:33 2009] [error] [client 192.168.2.100] response > > ('200 OK', [('Content-type', 'image/png'), ('Content-Length', > > ... > > read more » --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "modwsgi" 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/modwsgi?hl=en -~----------~----~----~----~------~----~------~--~---
