You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Sebastian Andersson <sa...@hogia.net> on 1997/04/22 15:40:01 UTC

os-linux/452: Server can not log to NFS mounted filesystem.

	The contract type is `' with a response time of 3 business hours.
	A first analysis should be sent before: Tue Apr 22 11:00:01 PDT 1997


>Number:         452
>Category:       os-linux
>Synopsis:       Server can not log to NFS mounted filesystem.
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    apache (Apache HTTP Project)
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Tue Apr 22 06:40:01 1997
>Originator:     sa@hogia.net
>Organization:
apache
>Release:        1.1.3
>Environment:
Linux 2.0.30 as NFS client.
>Description:
If the server is started as root and later runs as another user when the logging
doesn't work and possibly the scoreboard file doesn't work as it should. The problem
is because root creates the logfiles and when the server changes to a new user
that tries to write to the open files the linux kernel sends the new uid/gid to
the NFS server and that user may not write to the logfiles.
>How-To-Repeat:

>Fix:
The author of the NFS client code for linux claimed that the NFS standard
supported this "bug" and if that is the case when the forked servers will
have to log to a pipe to a process that run as root which in turn writes to
logfiles.
A temporary fix is to use CustomLog |"cat >file" format but this doesn't work
very well when you've got 100 Virtual hosts with their own log files. A solution
that works better is to use another program instead of cat that
reads the from stdin and writes to different logfiles depending on the type
of message that comes in the logfile
>Audit-Trail:
>Unformatted: