On Thu, Nov 04, 2010 at 08:13:14AM -0600, Shane Hathaway wrote:
> On 11/04/2010 06:28 AM, Chris Withers wrote:
> > I was having trouble starting a relstorage 1.4.0-backed Zope instance
> > this morning. The symptoms were that it would get going fine, until the
> > point it tried to open the storages, at which point it would simply
> > restart with no logging as to why.
> >
> > Turns out I had keep-history set to true whereas the database have been
> > created with it set to false.
> >
> > Should this not result in an exception being logged rather than just a
> > silent death that causes zdaemon to lamely attempt to restart the instance?
> 
> It outputs an error using the logging module and raises an exception. 
> Are you saying some code somewhere is nastily swallowing that exception 
> and suppressing the log?

In the past I've been burned a few times by zdaemon discarding all
stdout and stderr output from the child process, which resulted in
this kind of "child keeps restarting, sysadmin has no clue why" if an
exception happens during startup.

Make sure your zdaemon.conf has

  <runner>
    ...
    transcript $LOGDIR/transcript.log
    ...
  </runner>

or something like that.

Marius Gedminas
-- 
If it wasn't for C, we'd be using BASI, PASAL and OBOL

Attachment: signature.asc
Description: Digital signature

_______________________________________________
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zodb-dev

Reply via email to