httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 53552] New: error log corruption when start Windows service from command-line
Date Mon, 16 Jul 2012 17:44:32 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=53552

          Priority: P2
            Bug ID: 53552
          Assignee: bugs@httpd.apache.org
           Summary: error log corruption when start Windows service from
                    command-line
          Severity: normal
    Classification: Unclassified
                OS: Windows Server 2003
          Reporter: kilroy155@gmail.com
          Hardware: PC
            Status: NEW
           Version: 2.2.22
         Component: mpm_winnt
           Product: Apache httpd-2

When the server service is started from the Windows command-line via 
 bin\httpd.exe -k start -n Apache2.2
(or via the autostart that occurs immediately after installation), 
then there is some corruption that occurs at the beginning of that session
in the error log.  
The log is slightly different when the service is started via the Windows 
Services window and the corruption does not occur in that case.

For example, when started via Windows Services with LogLevel warn, then the
first few lines looks like:

 [Thu Jul 12 16:58:18 2012] [notice] Apache/2.2.22 (Win32) configured 
 -- resuming normal operations
 [Thu Jul 12 16:58:18 2012] [notice] Server built: Jan 28 2012 11:16:39
 [Thu Jul 12 16:58:18 2012] [notice] Parent: Created child process 5668

However, when started from the cmd-line as described above, then the first
few lines looks like:

 Starting the Apache2.2 service
 The Apache2.2 service is running.
 ] Apache/2.2.22 (Win32) configured -- resuming normal operations
 [Thu Jul 12 17:04:25 2012] [notice] Server built: Jan 28 2012 11:16:39
 [Thu Jul 12 17:04:25 2012] [notice] Parent: Created child process 1640

There are a couple of extra lines logged at the top about the service starting
but then the next line (which is the first line in the previous case) is logged
but the beginning portion is missing - e.g. the 
 "[Thu Jul 12 16:58:18 2012] [notice"   piece is missing.

The problem also occurs with Apache 2.4 - the timestamp portion of the
statement was missing. The missing section seems proportional to the length
of the "The Apache2.2 service is running." message. 

The two statements about starting the service do not appear at the console
where it would seem most beneficial to have them, and having them go to the
error log seems to cause a conflict with the usual initial statements being 
output to the log.  
It seems like they should appear at the console to provide feedback there, 
similar to the two statements that appear there to provide feedback when
stopping the sevrice from the cmd-line via:
 bin\httpd.exe -k stop -n Apache2.2
eg:
 "The Apache2.2 service is stopping.
  The Apache2.2 service has stopped."

The two service start messages appear to have possibly been created to mimic
the two statements that appear at the console if the service is started via
'net start Apache2.2', eg:
 "The Apache2.2 service is starting.
  The Apache2.2 service was started successfully."
yet the Apache service start messages only go to the log file.

If they are intended for the log file for some reason, then it is currently
being done in such a way as to cause some corruption.

-- 
You are receiving this mail because:
You are the assignee for the bug.

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


Mime
View raw message