the logging system for zeo instances is inconsistent

Bug #173029 reported by Fabio Tranchitella
4
Affects Status Importance Assigned to Milestone
ZODB
Incomplete
Undecided
Unassigned

Bug Description

Hi,
I'm the Debian and Ubuntu maintainer of Zope 3. We are trying to have ZEO
running in a FHS compliant way and as non-root user, but there are some
issues related to the logging subsystem.

First of all, if I modify the zeo.conf and specify a non-root user (let's say zope), and
then I start the instance from zeoctl using the root user, the log file is created by
the root (owner root:root, permissions 644) and the forked zeo server refuses to
start because it can't write to the log file. Fair.

Second problem: it seems that zeoctl has support for sending a logreopen
command to the zeo instance (./bin/zeoctl logreopen) but there is no handling
code for the SIGUSR2 signal in the zeo runner. This means that I can't use logrotate
to, well, rotate the logs of a zeo instance.

Thanks in advance,
Fabio

Tres Seaver (tseaver)
affects: zope3 → zodb
Jim Fulton (jim-zope)
Changed in zodb:
status: New → Confirmed
Revision history for this message
Jim Fulton (jim-zope) wrote :

On the first point, could you provide a sample configuration file (or files) that illustrate the problem?

Changed in zodb:
status: Confirmed → Incomplete
Revision history for this message
Jim Fulton (jim-zope) wrote :

The second part of this report, reopening log files in SIGUSR2 will be fixed (3.10b7).
See https://bugs.launchpad.net/zodb/+bug/143600

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.