[Zope] Zope IOError messages (FOUND TEST CASE)

Mike Renfro renfro@tntech.edu
Tue, 1 May 2001 15:58:08 -0500


On Tue, May 01, 2001 at 02:32:13PM -0400, J?r?me Loisel wrote:

> To manually restart Zope, I do the following: I open a shell, su, run the 
> stop script, run the start script, check that everything works and exit my 
> shell. You supposed that maybe stderr disappears somehow, causing my 
> IOErrors... Would closing my shell not make stderr disappear?

Whenever I've manually restarted Zope from a remote session, I've
often gotten IOErrors -- you've pretty well nailed the reason it
happens. My workarounds:

(1) Restart Zope from inside a 'screen' session, then detach
    screen. Zope always believes it has an open valid stderr, even if I'm
    not actively watching it.

(2) Find whatever product or code is mindlessly spitting debugs out to
    stderr (usually via Python print statements), and edit them
    out. I've seen this with WorldPilot, ZopeGUD components, etc.

-- 
Mike Renfro  / R&D Engineer, Center for Manufacturing Research,
931 372-3601 / Tennessee Technological University -- renfro@tntech.edu