Re: Intermittent IOError exception raised and emailed to admins during file upload.

2011-02-15 Thread Graham Dumpleton
BTW, you didn't say whether you were using mod_wsgi embedded mode or daemon mode and what latter configuration was if using it. Graham On Wednesday, February 16, 2011 7:15:09 AM UTC+8, Graham Dumpleton wrote: > > > > On Wednesday, February 16, 2011 5:16:01 AM UTC+11, Drew Volpe wrote: >> >> >>

Re: Intermittent IOError exception raised and emailed to admins during file upload.

2011-02-15 Thread Drew Volpe
https only Apache/2.2.16 on Ubuntu 10.10 (32 bit) Python 2.6.6 mod_wsgi 3.2 embedded mode mpm worker: StartServers 2 MinSpareThreads 25 MaxSpareThreads 75 ThreadLimit 64 ThreadsPerChild 25 MaxClients 150 MaxRequestsPerChild

Re: Intermittent IOError exception raised and emailed to admins during file upload.

2011-02-14 Thread Graham Dumpleton
Presuming Apace/mod_wsgi is being used, are you using https or just http? Are you using daemon mode of mod_wsgi? If yes to latter, how have you configured daemon mode? Also what Apache MPM are you using and what MPM configuration settings? Finally, what Apache and mod_wsgi versions are you

Re: Intermittent IOError exception raised and emailed to admins during file upload.

2011-02-14 Thread Drew Volpe
On Feb 14, 3:15 pm, Nick Phillips wrote: > > I'm seeing a similar issue in a eb service written in Django which > > receives data from mobile apps as a POST.  Not infrequently, I'm > > seeing the same "IOError: request data read error" when I try to read > >

Re: Intermittent IOError exception raised and emailed to admins during file upload.

2011-02-14 Thread Nick Phillips
On Mon, 2011-02-14 at 11:10 -0800, Drew Volpe wrote: > Did you ever track down what was happening ? > > Was any more information discovered on this problem ? > > I'm seeing a similar issue in a eb service written in Django which > receives data from mobile apps as a POST. Not infrequently, I'm

Re: Intermittent IOError exception raised and emailed to admins during file upload.

2011-02-14 Thread Drew Volpe
Did you ever track down what was happening ? Was any more information discovered on this problem ? I'm seeing a similar issue in a eb service written in Django which receives data from mobile apps as a POST. Not infrequently, I'm seeing the same "IOError: request data read error" when I try to

Re: Intermittent IOError exception raised and emailed to admins during file upload.

2011-02-06 Thread Tai Lee
As a datapoint, I've had 9 of these errors from 5 different people (2 people retried 3 times each) and 30 successful uploads from 14 different people in the past 7 days on a low traffic site (300 visits). That's a pretty low success rate. Seven of the errors had a user agent indicating MSIE 8,

Re: Intermittent IOError exception raised and emailed to admins during file upload.

2011-02-04 Thread Jacob Kaplan-Moss
On Fri, Feb 4, 2011 at 2:45 AM, Tai Lee wrote: > It seems to happen with very small file uploads as well. I've seen it > reported with 30KB uploads, while at the same time 60MB uploads work. If I > can't find a problem with the server causing disconnects, and it is

Re: Intermittent IOError exception raised and emailed to admins during file upload.

2011-02-04 Thread Tai Lee
It seems to happen with very small file uploads as well. I've seen it reported with 30KB uploads, while at the same time 60MB uploads work. If I can't find a problem with the server causing disconnects, and it is actually on the client side, I'll just have to continue to ignore the exception

Re: Intermittent IOError exception raised and emailed to admins during file upload.

2011-02-03 Thread Tai Lee
Thanks for your detailed explanation, Graham. I'll try to approach this from another angle and see if I can determine what is actually causing the connections to be dropped, as I'm seeing this error a few times a day on a low traffic site using Apache at the front for static media, with proxy pass

Re: Intermittent IOError exception raised and emailed to admins during file upload.

2011-02-03 Thread Graham Dumpleton
The problem is you can't just catch IOError, because the presence of WSGI middleware may mean that IOError could be generated for other reasons when reading wsgi.input. To base detection on the description in the IOError, ie., 'request data read error', would mean having to know what that

Intermittent IOError exception raised and emailed to admins during file upload.

2011-02-03 Thread Tai Lee
There are many questions about this on django-users. The usual answer is to ignore the errors, which are probably generated as a result of the client prematurely terminating a connection, usually during an upload. Nobody seems to be able to reliably reproduce the error, and it seems to happen