From nobody Sun Jul 16 19:07:35 2023 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4R3vqM38Pwz4n2bc for ; Sun, 16 Jul 2023 19:07:43 +0000 (UTC) (envelope-from robert@webtent.org) Received: from mx3.webtent.net (mx3.webtent.net [208.38.145.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4R3vqL2XLPz4Kpt for ; Sun, 16 Jul 2023 19:07:42 +0000 (UTC) (envelope-from robert@webtent.org) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=webtent.org header.s=201611 header.b=oel2C6Iz; spf=pass (mx1.freebsd.org: domain of robert@webtent.org designates 208.38.145.5 as permitted sender) smtp.mailfrom=robert@webtent.org; dmarc=pass (policy=reject) header.from=webtent.org Received: from localhost (localhost [127.0.0.1]) by mx3.webtent.net (WebTent ESMTP Postfix Internet Mail Exchange) with ESMTP id 52037D7A6B for ; Sun, 16 Jul 2023 15:07:39 -0400 (EDT) Received: from mx3.webtent.net ([127.0.0.1]) by localhost (mx3.webtent.net [127.0.0.1]) (maiad, port 10024) with ESMTP id 68636-06 for ; Sun, 16 Jul 2023 15:07:38 -0400 (EDT) Received: from [192.168.1.50] (ns2.webtent.net [144.129.73.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: robert@mx3.webtent.net) by mx3.webtent.net (WebTent ESMTP Postfix Internet Mail Exchange) with ESMTPSA id 8D60AD7A70 for ; Sun, 16 Jul 2023 15:07:38 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=webtent.org; s=201611; t=1689534458; bh=JfGXVC+adjCmT+DENesDlIaKChSzY3DScBqctLmmYck=; h=To:From:Subject:Date; b=oel2C6Iz4EXV2Xoc7KHfvYifU7dUNTvez7UywXw3/rHBHvzg4JYgLBdHgdcZQKSgw mPzDYkm24fkSflbo0Bura/r+cTpM14VqcvGCLFNyyI8wNpnKWs0S+cU3sgwzF15inw UVvNPDNUIGVhBEEjDRsQSMWTmIOPrXr9FJ9EstcHJmJg0ElJRfoNOm7NEOt19BazzL 4vOKTmz8RTGkzPG2Sqkyrfk09z3EAF4xR2uqHFn53hXs+GV310ySydbwrWLcLCqKuv qOMZdbXwsYUZ7HL8sqP3Spq+mxjdPundP9qlEDHOfKDJiHauYjFk4Yau8LKdk2NWSQ hfouyTOTrqosw== To: FreeBSD From: Robert Fitzpatrick Subject: Apache log rotation Message-ID: Date: Sun, 16 Jul 2023 15:07:35 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 PostboxApp/7.0.60 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Virus-Scanned: WebTent Mailguard 1.0.4_3 X-Spamd-Result: default: False [-4.65 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.95)[-0.948]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; DMARC_POLICY_ALLOW(-0.50)[webtent.org,reject]; R_DKIM_ALLOW(-0.20)[webtent.org:s=201611]; R_SPF_ALLOW(-0.20)[+mx]; RCVD_IN_DNSWL_MED(-0.20)[208.38.145.5:from]; MIME_GOOD(-0.10)[text/plain]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[webtent.org:+]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; ASN(0.00)[asn:16724, ipnet:208.38.128.0/18, country:US]; FREEFALL_USER(0.00)[robert]; ARC_NA(0.00)[]; TO_DN_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Queue-Id: 4R3vqL2XLPz4Kpt X-Spamd-Bar: ---- X-ThisMailContainsUnwantedMimeParts: N 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