Bug 16393 - Access log not working when piped to rotatelogs.exe
Summary: Access log not working when piped to rotatelogs.exe
Status: CLOSED FIXED
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: Core (show other bugs)
Version: 2.0.44
Hardware: PC All
: P3 normal with 19 votes (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-24 13:54 UTC by Lac Sedivy
Modified: 2005-03-20 17:06 UTC (History)
2 users (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lac Sedivy 2003-01-24 13:54:16 UTC
This is a new bug for 2.0.44 (it was working in 2.0.43)
If you attempt to pipe access log into rotatelogs.exe you will get NO log at 
all.  It will however work with the error log.
More information:
In 2.0.43 there were two rotatelogs.exe processes running (one for each apache I 
presume)  In 2.0.44 when apache is starting there are briefly two rotatelogs.exe 
processes but then one terminates.  There is no error generated in the errorlog 
(even used debug level) or the system log.

Running Apache 2.0.44 on WinNT4 SP6.
Comment 1 William A. Rowe Jr. 2003-01-24 18:49:10 UTC
  Confirming.

  Several causes for this, mostly revolving around the otherchild logic
  (code that is *supposed* to make external processing more robust.)

  Hopefully a patch within a day, and this may get into 2.0.45 soon.
Comment 2 askme 2003-03-05 04:40:55 UTC
Look in Bug# 17055, a quick fix is to set loglevel to ABOVE warn, the app error 
will not happen.
Comment 3 Olivier 2003-03-05 12:45:41 UTC
I try to set log level to above warn, but this not resolve the problem.
Indeed, LogLevel directive apply to error logs and this rotating problem occurs 
for all kind of logs, so this quick fixes can't work in this case.
However, i look in Bug# 17055 and i agree with you when you show that 
readwrite.c is a source of problems.
Comment 4 Sami Tikka 2003-03-10 10:29:48 UTC
Confirming. The bug happens with both standard rotatelogs.exe and a custom
application I am using for the same job. Error log works, access log does not.
Comment 5 khurrams 2003-05-17 20:17:39 UTC
installed apache 2.0.45 and still can't use the rotatelogs program.  the error
reads: unable to start piped log program 'bin/rotatelogs
logs/access_%Y_%b_%d.log 61': The system cannot find the path specified. Unable
to open logs.

Any ideas when it's going to be fixed.  thanks,
Comment 6 Lac Sedivy 2003-05-17 23:47:50 UTC
This is working fine for me (2.0.45 on Win2000)
Using following command:
CustomLog "|c:/apache2/bin/rotatelogs.exe c:/apache2/logs/access.%Y-%m-%d 
604800" combined
Comment 7 khurrams 2003-05-18 14:14:28 UTC
Thank you very much for the quick reply.  The path that i am using has spaces in
it: "C:/Program Files/Apache Group/Apache2/bin", and the spaces could be the
problem; what can i do to overcome it.  Thanks,
Comment 8 Laurent Courtin 2003-05-19 07:33:55 UTC
This work for me with Apache 2.0.45, W2k and spaces in the path.

CustomLog  "|\"C:/Program Files/Strategies/WebServer/apache/bin/cronolog.exe\"
\"C:/Program Files/Strategies/WebServer/apache/logs/access.%Y-%m-%d.log\"" common
Comment 9 André Malo 2003-07-14 22:33:32 UTC
Seems, this one is fixed already.