[Bug 844865] New: apache does not reopen logfiles when it is reloaded.
https://bugzilla.novell.com/show_bug.cgi?id=844865 https://bugzilla.novell.com/show_bug.cgi?id=844865#c0 Summary: apache does not reopen logfiles when it is reloaded. Classification: openSUSE Product: openSUSE Factory Version: 13.1 Beta 1 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Apache AssignedTo: bnc-team-apache@forge.provo.novell.com ReportedBy: per@computer.org QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:11.0) Gecko/20100101 Firefox/11.0 I'm running apache 2.4 from Factory, and I've noticed an issue with logrotate. It seems that apache does not reopen a logfile when 'systemctl reload apache2' is issued. My virtual hosts all have this: CustomLog /srv/www/vhosts/vhost_access_log vhost To rotate that log: /srv/www/vhosts/vhost_access_log { compress dateext maxage 365 rotate 30 daily notifempty missingok create 644 root root sharedscripts postrotate systemctl reload apache2 endscript } For now, I've changed logrotate to do "systemctl restart apache2", but that shouldn't be necessary. Reproducible: Always -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=844865
https://bugzilla.novell.com/show_bug.cgi?id=844865#c1
--- Comment #1 from Bruno Friedmann
https://bugzilla.novell.com/show_bug.cgi?id=844865
https://bugzilla.novell.com/show_bug.cgi?id=844865#c2
Per Jessen
Strangely having this definition with my 12.3 apache2.4 is working and rotating as expected
/var/log/apache2/access_log /var/log/apache2/error_log /var/log/apache2/suexec.log /var/log/apache2/deflate.log /var/log/apache2/ssl_request_log /var/log/apache2/ssl_engine_log { compress dateext maxage 365 rotate 99 size=+1024k notifempty missingok create 644 root root postrotate systemctl reload apache2.service endscript }
It looks like I have had two logrotate jobs running, which certainly will have had potential to screw things up. I'll close this as INVALID, and reopen if the problem persists. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=844865
https://bugzilla.novell.com/show_bug.cgi?id=844865#c3
Per Jessen
It looks like I have had two logrotate jobs running, which certainly will have had potential to screw things up. I'll close this as INVALID, and reopen if the problem persists.
Unfortunately it does. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=844865
https://bugzilla.novell.com/show_bug.cgi?id=844865#c4
Joerg Rohrer
https://bugzilla.novell.com/show_bug.cgi?id=844865
https://bugzilla.novell.com/show_bug.cgi?id=844865#c5
--- Comment #5 from Per Jessen
Facing the same problem with 13.1 Final When i try to restart apache2 after logrotation, one apache thread stuck and i have manually kill'em. After a clean restart logfiles are written again until the next logrotate.
Per, does "systemctl restart apache2" working as workaround?
Hi Joerg yes, doing a restart works, but if you have a lot of vhosts, it will be slow. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=844865
https://bugzilla.novell.com/show_bug.cgi?id=844865#c6
--- Comment #6 from Joerg Rohrer
https://bugzilla.novell.com/show_bug.cgi?id=844865
https://bugzilla.novell.com/show_bug.cgi?id=844865#c7
Christian Boltz
https://bugzilla.novell.com/show_bug.cgi?id=844865
https://bugzilla.novell.com/show_bug.cgi?id=844865#c8
patrick shanahan
https://bugzilla.novell.com/show_bug.cgi?id=844865
https://bugzilla.novell.com/show_bug.cgi?id=844865#c9
patrick shanahan
https://bugzilla.novell.com/show_bug.cgi?id=844865
https://bugzilla.novell.com/show_bug.cgi?id=844865#c10
Christian Boltz
http://bugzilla.novell.com/show_bug.cgi?id=844865
C. Holm
participants (1)
-
bugzilla_noreply@novell.com