Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 06-28-2007, 10:32 PM   #1
Registered: Jun 2004
Location: Northern CA
Distribution: Debian
Posts: 835

Rep: Reputation: 49
Exclamation apache2 mod_python.publisher upload problem

I'm having an issue with mod_python on a custom app that I designed. I'm posting here because I just became fairly confident that this problem has nothing to do with my code. I set "PythonDebug on" in order to get a stack trace.

This only seems to happen on Internet explorer (version 6 sp2, don't have 7 handy right now). This has not occurred on firefox.

The when uploading a file as part of a form, through POST, the page eventually times out and gives this error:

Mod_python error: "PythonHandler mod_python.publisher"

Traceback (most recent call last):

  File "/usr/lib/python2.4/site-packages/mod_python/", line 299, in HandlerDispatch
    result = object(req)

  File "/usr/lib/python2.4/site-packages/mod_python/", line 213, in handler
    published = publish_object(req, object)

  File "/usr/lib/python2.4/site-packages/mod_python/", line 411, in publish_object
    req.form = util.FieldStorage(req, keep_blank_values=1)

  File "/usr/lib/python2.4/site-packages/mod_python/", line 147, in __init__
    self.read_to_boundary(req, boundary, None)

  File "/usr/lib/python2.4/site-packages/mod_python/", line 238, in read_to_boundary
    line = req.readline(readBlockSize)

IOError: Client read error (Timeout?)
Note that the stack trace does NOT go through any of my code. This is all mod_python.

This is not consistent behavior. The file will sometimes upload just fine. Typically, it can be convinced to work by selecting "back" and then submitting again.

I am working with a client on this one, and need to understand this quickly (hence posting here). If I do not solve this before I leave work today, I really should fix it first thing tomorrow.

Apache version: 2.2.3-4
mod_python version: 3.2.10-4

Thank you in advance to anybody who replies.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
mod_python file upload gd2shoe Programming 0 07-26-2006 01:38 AM
mod_python segfaults apache2 fietske Slackware 1 07-19-2006 04:14 AM
Apache2 upload fileperms problem Martin Fischer SUSE / openSUSE 1 09-03-2005 03:57 AM
mod_python (with -DEAPI) compiled problem dominant Linux - Software 0 12-05-2004 06:28 AM
Upload Files in Apache2.... vous Linux - Software 0 02-03-2004 07:51 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:05 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration