Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Jul 2023 15:07:35 -0400
From:      Robert Fitzpatrick <robert@webtent.org>
To:        FreeBSD <freebsd-questions@freebsd.org>
Subject:   Apache log rotation
Message-ID:  <e555269d-4c81-3e18-4079-0caa044fde9b@webtent.org>

next in thread | raw e-mail | index | archive | help
Ever since I upgraded from FreeBSD 13.1 to 13.2, each week when the 
logrotate happens for my Apache logs, apache dies. I see this in the log...

Jul 16 02:00:00 sites kernel: pid 84639 (httpd), jid 0, uid 0: exited on 
signal 11 (core dumped)

If I use gdb on the core output file, I get no stack...

root@sites:~ # gdb /httpd.core
(gdb) bt
No stack.

My suspicion after looking around, is this happens during log rotation 
since it happens exactly at 2am each Sunday morning. I have my logs 
listed in newsyslog.conf as this ....

/var/log/httpd-access.log               644  14    *    $W0D2  JC 
/var/run/httpd.pid 30
/var/log/httpd-error.log                        644  14    *    $W0D2 JC 
/var/run/httpd.pid 30

This has worked for a long time up until the last 4 weeks, ever since I 
upgraded FreeBSD to 13.2 only from 13.1 and all packages using pkg. Not 
sure where I got the idea for 30 for the sig num, I see posts now 
suggesting this should be 1? Appreciate any help to determine what needs 
changed or how to track down the issue. Are there other ways to rotate 
apache logs?

-- 
Robert




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e555269d-4c81-3e18-4079-0caa044fde9b>