Description

[Errno] 9 Bad file descriptor occurs occasionally.

Steps to reproduce

  1. fetch the same page rapidly (e.g. HelpForBeginners)

  2. keep going, eventually you get the above error

OK - I shouldn't be refetching a page like this but it comes up every now and then just fetching a page normally and the rapid re-fetch is a good way to reproduce it. Sometimes it happens within the first ten clicks, sometimes you need to go on for 50 or more.

Additional note: This may be to do with logging - I can't reproduce it with Python logging to a console (python.exe) it only happens with the pythonw.exe console-less version.

Example

Any page, however simple.

Details

Traceback.txt

MoinMoin Version

1.5.1

OS and Version

Windows 2003 Server

Python Version

2.4.2

Server Setup

MoinMoin Standalone Server

Server Details

Workaround

Set a logfile in moin.py

Discussion

We could check if it is possible to write to sys.stderr and redirect the output to a file otherwise.

See also:

The standalone server was never meant to be a production server. It was a quick solution suitable for light use and development. During the years it got better threading and missing features were added. I had very good experience with it on Mac OS X (millions of request without errors), but still I would use real server solution for production. Try fast cgi, mod python or twisted instead. I would also use non threaded solution as moin 1.3.5 and later have several possible race conditions with threaded servers. -- NirSoffer 2006-02-06 20:16:24

Plan


CategoryMoinMoinNoBug

MoinMoin: MoinMoinBugs/FetchBadFileDescriptor (last edited 2007-10-29 19:13:05 by localhost)