modwsgi

[Prev] Thread [Next]  |  [Prev] Date [Next]

[modwsgi] Re: Sometimes my Django site just does not respond at first Graham Dumpleton Thu Jun 18 01:00:36 2009

When you say the wget fails on the first request, are you saying the
blank page problem only ever happens on the home page of the site?

BTW, I have seen some reports of MacOS X having strange network issues
which might partly explain this. I can't remember though if it only
caused problems when the web server itself was on MacOS X. If I can
remember what was being described and where I saw the posts I will
send them around.

What OS type are you running the Apache web server and wget on? Is
Safari browser on MacOS X the only place you have got error response.

Finally, check both main and virtual host error logs for any instances
of 'Segmentation fault'.

Graham

2009/6/18 Rubens Altimari <[EMAIL PROTECTED]>:
>
> Hello,
>
> I've been using Apache + mod_wsgi + Django for quite some time now,
> and everything works great:
>
>        WSGIDaemonProcess   myapp.com.br processes=2 threads=25
>        WSGIProcessGroup    myapp.com.br
>        WSGIReloadMechanism Process
>
>        WSGIScriptAlias / "/var/django/myapp/apache/wsgi.conf"
>
> Lately though, probably due to the fact that the site is being used
> more intensely, I'm dealing with a problem I can't pinpoint. Sometimes
> it seems that a request to get the site (say, the main page) fails -
> I've seen it once myself, the (Safari) browser gave me a blank page
> stating that it "sometimes happened when the server was too busy". I
> didn't take the time to take note of the message, but as far as I
> remember it wasn't a 500 error (but then again, maybe it was). Then a
> simple refresh presented me with the correct page.
>
> The problem is, I have a script that will get a "static" version of
> the site by first issuing a wget, and then copying all the static
> pages to another server (so the general public actually sees the
> static version, not the Django version). In my logs, I can see that
> sometimes wget fails, meaning it just ends withoutu getting any page,
> but it issues no error message that I can log. During normal
> operation, wget will get all (+1000) pages of the site, but when that
> problem happens, it gets none. It seems it's a "all or nothing"
> problem. Maybe wget just fails when the very first page fails, or
> something like that.
>
> I'm sure I'm giving too few information in order to track this
> problem, but I'm not sure what I should monitor. My Apache2 log shows
> several "IOError: client connection closed", but I've read this list's
> archive, and it looks like this is not really an error, so I don't
> have anything else at this point.
>
> Here is a typical excerpt from the Apache2 log:
>
> [Wed Jun 03 20:16:24 2009] [notice] Apache/2.2.8 (Ubuntu) mod_wsgi/2.4
> Python/2.5.2 configured -- resuming normal operations
>
> [Fri Jun 05 12:14:42 2009] [error]
> ['/usr/lib/python2.5/site-packages/ipython-0.9.1-py2.5.egg',
> '/usr/lib/python2.5/site-packages/Django-1.0.2_final-py2.5.egg',
> '/usr/lib/python2.5/site-packages/MySQL_python-1.2.3c1-py2.5-linux-i686.egg',
> '/usr/lib/python25.zip', '/usr/lib/python2.5',
> '/usr/lib/python2.5/plat-linux2', '/usr/lib/python2.5/lib-tk',
> '/usr/lib/python2.5/lib-dynload',
> '/usr/local/lib/python2.5/site-packages',
> '/usr/lib/python2.5/site-packages',
> '/usr/lib/python2.5/site-packages/PIL', '/var/django',
> '/var/django/myapp']
> [Fri Jun 05 13:19:43 2009] [error]
> ['/usr/lib/python2.5/site-packages/ipython-0.9.1-py2.5.egg',
> '/usr/lib/python2.5/site-packages/Django-1.0.2_final-py2.5.egg',
> '/usr/lib/python2.5/site-packages/MySQL_python-1.2.3c1-py2.5-linux-i686.egg',
> '/usr/lib/python25.zip', '/usr/lib/python2.5',
> '/usr/lib/python2.5/plat-linux2', '/usr/lib/python2.5/lib-tk',
> '/usr/lib/python2.5/lib-dynload',
> '/usr/local/lib/python2.5/site-packages',
> '/usr/lib/python2.5/site-packages',
> '/usr/lib/python2.5/site-packages/PIL', '/var/django',
> '/var/django/myapp']
>
> [Fri Jun 05 14:46:08 2009] [error] [client 201.6.63.43] mod_wsgi
> (pid=29343): Exception occurred processing WSGI script
> '/var/django/myapp/apache/wsgi.conf'.
> [Fri Jun 05 14:46:08 2009] [error] [client 201.6.63.43] IOError:
> client connection closed
> [Fri Jun 05 14:46:19 2009] [error] [client 201.6.63.43] mod_wsgi
> (pid=29344): Exception occurred processing WSGI script
> '/var/django/myapp/apache/wsgi.conf'.
> [Fri Jun 05 14:46:19 2009] [error] [client 201.6.63.43] IOError:
> client connection closed
> [Fri Jun 05 15:56:54 2009] [error] [client 201.6.63.43] mod_wsgi
> (pid=29344): Exception occurred processing WSGI script
> '/var/django/myapp/apache/wsgi.conf'.
> [Fri Jun 05 15:56:54 2009] [error] [client 201.6.63.43] IOError:
> client connection closed
>
> Any help is greatly appreciated!
>
> Regards,
> Rubens
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---