On 21 April 2010 08:51, Jake <[email protected]> wrote:
> I'm getting a request data read error when trying to upload files to
> the Django admin interface.
>
> Files under about 150k work, but bigger files always fail and almost
> always at around 200k. The Exception I get is below.
>
> File "/usr/lib/python2.4/site-packages/django/http/
> multipartparser.py", line 405, in read
>   return self._file.read(num_bytes)
> IOError: request data read error
>
> I'm running python 2.4, django 1.1, apache 2.2.3, mod_wsgi 2.8, on
> CentOS (a media temple DV server)
> I've tried Chrome and Firefox on Windows and Firefox on Mac - Same
> results.
> I've tried wsgi daemon mode and embedded
> I can upload to other sites so I don't think it's my connection.
> Locally it's fine (Django development server)
>
> Everything I've found on this error says it's a mod_python issue and
> that changing to mod_wsgi will fix it, but I am running mod_wsgi.
> Can anyone help?

Use recipe in:

  
http://code.google.com/p/modwsgi/wiki/DebuggingTechniques#Displaying_Request_Environment

to capture the WSGI environment as passed to the WSGI application and
post it for analysis.

Use FireBug in Firefox to capture the headers sent by the browser for
the upload and post it for analysis.

Try installing most recent Apache 2.2.X instead of the old version you
are using in case it is all because of using old Apache. Especially do
this as mostly pointless exercise debugging it if not using most up to
date Apache.

Graham

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

Reply via email to