Received: (from majordom@localhost) by hyperreal.com (8.8.4/8.8.4) id GAA23624; Tue, 22 Apr 1997 06:40:06 -0700 (PDT) Received: (from gnats@localhost) by hyperreal.com (8.8.4/8.8.4) id GAA23529; Tue, 22 Apr 1997 06:40:01 -0700 (PDT) Date: Tue, 22 Apr 1997 06:40:01 -0700 (PDT) Message-Id: <199704221340.GAA23529@hyperreal.com> From: Sebastian Andersson Reply-To: Sebastian Andersson To: apache-bugdb@apache.org Cc: apache-bugdb@apache.org Subject: os-linux/452: Server can not log to NFS mounted filesystem. In-Reply-To: Your message of Tue, 22 Apr 1997 06:39:49 -0700 (PDT) <199704221339.GAA23485@hyperreal.com> Sender: apache-bugdb-owner@apache.org Precedence: bulk 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: