You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Chris Abajian <ab...@singingfish.com> on 2000/03/09 01:15:29 UTC

config/5845: httpd keeps truncating own httpd.log file

>Number:         5845
>Category:       config
>Synopsis:       httpd keeps truncating own httpd.log file
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Wed Mar 08 16:20:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     abajian@singingfish.com
>Release:        1.3.12
>Organization:
apache
>Environment:
RedHat 6.1 install, rebuilt kernel:
Linux toro1 2.2.14 #6 SMP Tue Mar 7 15:58:11 PST 2000 i686 unknown
gcc version 2.95.2 19991024 (release)
>Description:
httpd reads content and writes logs to an NFS server.  Added LockFile
directive for local disk (/tmp) but the file is never created.

httpd.conf =
   ...
   ServerType standalone
   ServerRoot "/sf/platform/linux/apache"
   LockFile /tmp/httpd_toro1.lock
   PidFile /sf/logs/httpd/httpd_toro1.pid
   ...
   CustomLog /sf/logs/httpd/access_log_toro1 common
   ...

Access log gets written as expected, then suddenly (with no activity)
gets truncated - back to 0 bytes.

Searched database, saw many suggestions to use LockFile directive but
also many statements to the effect that USE_FLOCK_SERIALIZED_ACCEPT
is broken...
>How-To-Repeat:
try running with logs on NFS disk, RH6.1 linux 2.2.14 and specify LockFile
see anything?
>Fix:
Log to local disk.  Not very satisfactory.
>Release-Note:
>Audit-Trail:
>Unformatted:
 [In order for any reply to be added to the PR database, you need]
 [to include <ap...@Apache.Org> in the Cc line and make sure the]
 [subject line starts with the report component and number, with ]
 [or without any 'Re:' prefixes (such as "general/1098:" or      ]
 ["Re: general/1098:").  If the subject doesn't match this       ]
 [pattern, your message will be misfiled and ignored.  The       ]
 ["apbugs" address is not added to the Cc line of messages from  ]
 [the database automatically because of the potential for mail   ]
 [loops.  If you do not include this Cc, your reply may be ig-   ]
 [nored unless you are responding to an explicit request from a  ]
 [developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]