You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2007/12/07 02:50:55 UTC

DO NOT REPLY [Bug 44036] New: - rotatelogs.exe seems not releasing old log files

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=44036>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=44036

           Summary: rotatelogs.exe seems not releasing old log files
           Product: Apache httpd-2
           Version: 2.2.6
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: kenji.kikuti@ctc-g.co.jp


For maintenance work, I would like to delete old error.log files, but I'm not
able to delete them from Windows command prompt. rotatelogs.exe seems not
releasing old log files.

How to reproduce;
 1. Add following directive,
     ErrorLog "| c:/apache2/bin/rotatelogs.exe c:/apache2/logs/%Y%m%d_error.log
86400"

 2. Restart Apache and access non-existing pages from browser

 3. Change Windows date 

 4. Access non-existing pages from browser

 5. Delete the old error.log file like,
    > del YYYYMMDD_error.log

 6. The old file still exists
    > ls


I'm able to delete them from Widows explore, but I would like to make a script
for maintenance work.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 44036] - rotatelogs.exe seems not releasing old log files

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=44036>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=44036


wrowe@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




------- Additional Comments From wrowe@apache.org  2007-12-30 22:39 -------
Until the parent process has fresh activity, yes it holds open it's last
used log.  This is what you are observing.

" 3. Change Windows date "

isn't quite a legitimate testing methodology, as it has unexpected side effects.

An appropriate hack would be to have rotatelogs actually 'expire' its lock on
the current file once a timeup occurs (mapping it to the number of seconds until
the next valid file should be created).  In fact this could avoid other side
effects.  But I'd offer that's a subject for another bug report (patches welcome!)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org