Zope startup error msgs
If Zope fails to start up none of its error msgs are recorded in event.log. Is this to be expected and if so how can I record why it has failed? -- John
--On Mittwoch, 17. November 2004 12:20 Uhr +0000 John Poltorak <jp@warpix.org> wrote:
If Zope fails to start up none of its error msgs are recorded in event.log. Is this to be expected and if so how can I record why it has failed?
This is a known problem if you start in non-debug mode. No solution so far...at least none in the CVS. In our own CVS we patched the code to log error during the startup phase into a dedicated startup.log. -aj
On Wed, Nov 17, 2004 at 01:28:43PM +0100, Andreas Jung wrote:
--On Mittwoch, 17. November 2004 12:20 Uhr +0000 John Poltorak <jp@warpix.org> wrote:
If Zope fails to start up none of its error msgs are recorded in event.log. Is this to be expected and if so how can I record why it has failed?
This is a known problem if you start in non-debug mode.
I've just looked though zope.conf where it says that by default debug-mode is on and that when in debug-mode error msgs do not get written to event.log. Does this mean I should set debug-mode off ?
-aj
-- John
John Poltorak wrote at 2004-11-17 12:36 +0000:
... I've just looked though zope.conf where it says that by default debug-mode is on and that when in debug-mode error msgs do not get written to event.log.
Please reread the section. Anyway, whether or not log messages are written to the logfile is independent from "debug-mode"! However, when "debug-mode" is "off", Zope refuses to log to "stderr" (should this be the logfile).
Does this mean I should set debug-mode off ?
No, you should not. At least not in order to get log messages into your log file. -- Dieter
In article <20041117122013.U84@warpix.org> you write:
If Zope fails to start up none of its error msgs are recorded in event.log.
This sucks.
Is this to be expected and if so how can I record why it has failed?
I don't know if a bug has been filed about this. To see the errors, you can start it once using: bin/zopectl fg Florent -- Florent Guillaume, Nuxeo (Paris, France) CTO, Director of R&D +33 1 40 33 71 59 http://nuxeo.com fg@nuxeo.com
On Wed, 2004-11-17 at 19:05 +0100, Florent Guillaume wrote:
In article <20041117122013.U84@warpix.org> you write:
If Zope fails to start up none of its error msgs are recorded in event.log.
This sucks.
Is this to be expected and if so how can I record why it has failed?
I don't know if a bug has been filed about this.
Zope doesn't log anything until it is able to get to the point where it sets the effective uid. This is of course useless on Windows and in most cases on UNIX when you're not running Zope under the root account. If anyone has some patches which preserves the spirit of this behavior but allows logging to happen sooner, they're welcome.
To see the errors, you can start it once using: bin/zopectl fg
Or bin/runzope. - C
Zope doesn't log anything until it is able to get to the point where it sets the effective uid. This is of course useless on Windows and in most cases on UNIX when you're not running Zope under the root account. If anyone has some patches which preserves the spirit of this behavior but allows logging to happen sooner, they're welcome.
I've added this comment to http://collector.zope.org/Zope/1285 Florent -- Florent Guillaume, Nuxeo (Paris, France) CTO, Director of R&D +33 1 40 33 71 59 http://nuxeo.com fg@nuxeo.com
On Wed, 17 Nov 2004 13:20:31 -0500, Chris McDonough <chrism@plope.com> wrote:
Zope doesn't log anything until it is able to get to the point where it sets the effective uid. This is of course useless on Windows and in most cases on UNIX when you're not running Zope under the root account. If anyone has some patches which preserves the spirit of this behavior but allows logging to happen sooner, they're welcome.
The stuff in Zope 2.8 certainly starts using the final logging configuration sooner for Windows than for Unix (it switches to the configured logging as soon at it has the configuration). Someone may be able to improve on it, and it may be that those changes can be backported to Zope 2.7. -Fred -- Fred L. Drake, Jr. <fdrake at gmail.com> Zope Corporation
John Poltorak wrote at 2004-11-17 12:20 +0000:
If Zope fails to start up none of its error msgs are recorded in event.log. Is this to be expected and if so how can I record why it has failed?
It is a bug. A bug report is already sitting in the collector. -- Dieter
participants (6)
-
Andreas Jung -
Chris McDonough -
Dieter Maurer -
Florent Guillaume -
Fred Drake -
John Poltorak