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 2020/01/07 09:06:49 UTC

[Bug 64055] New: Apache2 suddenly stops logging errors until manually restarted

https://bz.apache.org/bugzilla/show_bug.cgi?id=64055

            Bug ID: 64055
           Summary: Apache2 suddenly stops logging errors until manually
                    restarted
           Product: Apache httpd-2
           Version: 2.4.38
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_log_config
          Assignee: bugs@httpd.apache.org
          Reporter: solusvm@web.de
  Target Milestone: ---

I'm using the latest available Apache2 on my Debian 10.2 system using the
Debian repo (2.4.38-3+deb10u3) and I'm facing an issue since about December 23.
I never experienced this issue before.

The error logging of my vHosts (primary PHP errors and warnings) works fine but
after a few days it suddenly stops to log anything in my "error.log" files. The
access logs work fine without any issues and the error log file of the default
vHost too, but the error log files of my other vHosts, which I haven't changed
in the last 4 or 5 months, aren't logging new lines in the error log file until
I restart Apache2...

Yesterday it was working for just 5 hours and then it stopped again. I'm losing
some important lines of error logging in the past days and I don't know what
causes this issue. I can't find anything related to this in any log file.

I'm using PHP 7.4.1 and I upgraded from PHP 7.4.0 to PHP 7.4.1 on December 19.
So, I thought that this could be the issue, but when error logging stops
working, also the Apache2 log lines which are not PHP related aren't logged
anymore (e.g. when a BasicAuth login fails). I reported this as a bug on the
PHP bug tracker too, because I'm not sure if it's a bug in Apache2 or in PHP
7.4.1, but I didn't get an answer so far...

-- 
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


[Bug 64055] Apache2 suddenly stops logging errors until manually restarted

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64055

solusvm@web.de changed:

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

--- Comment #1 from solusvm@web.de ---
Now I noticed that this issue appears when I edit the Apache2 log file when the
web server is running. It's only caused by editing the file using sed or vim in
my case. When I use nano, I can edit it and Apache2 will still append new lines
to it.

I guess the reason is that nano writes directly in the file and vim/sed creates
a new file and renames it (or something like this). Then Apache2 still logs in
his open file handle which got in the meantime deleted.

After restarting Apache2 it's thrown away because the last process (Apache2) is
closing it and at the start it just opens the new file that I created in the
meantime.

-- 
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


[Bug 64055] Apache2 suddenly stops logging errors until manually restarted

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64055

solusvm@web.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |Linux
           Hardware|PC                          |All

-- 
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