From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id MADxJDXetGaC/gAAe85BDQ:P1 (envelope-from ) for ; Thu, 08 Aug 2024 15:03:17 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id MADxJDXetGaC/gAAe85BDQ (envelope-from ) for ; Thu, 08 Aug 2024 17:03:17 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=VtJFWUx2; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1723129397; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=PHaAvi8m9cMLwk5YL4Z71oEJ8U3CKX48vcjh90spMH8=; b=BFgBqwLdnE6LPOrhNSV3VfBlTWng+yVqd23n1ZlH4oveeyyXS5vUiYHD7uz4nKseotCvRJ JeNTU/tCqBQww0saMoKqHR/IrCYWPAoMSYKkr+FnB53aPXfRVHrmUHXxJ8UKj9ot4fIMWJ EgN0Az5CpaLU4MwRoBlDD/gOP/1Bczh0MFduAnO/y9oohch33tepI6SELoGpI7PdmSS57x bc7dPv972/04P7haQ4ZYDeb0UQd2zxru0HNfrxSoWL0WgfyeSBspdRPwAqVduuBX7jUJ3e ApLb9GQe0XLQPMG65ehrFCStrfgTinhXrALZoZr7uJvY5p0eBkyrHUFR3h2KCg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1723129397; a=rsa-sha256; cv=none; b=PnCJ0vouW1HG6av+Vf2y81EycjqtWh5dBxAzKpnYWeQSUZnVVA6kmlYhvqlVCenvH/Wo9c e90EiOnlmQtM6D0axX87MUjFSx5WdIZg2j3EOu/+MzMow5EW1p6zqz1rEm6PLu5i/m+e+C jguGWjPO8C2MK+uwzpe83gES8XODbaZL+r+2o9zVe2so8nzmaJMFXXrOmC3fNkzzxGBm3C nbGXpexhzsTeVSrXspa0aYgn7lPQBbz5gTvdgut9ji29FNSxRoWSooDW0RAu8c/i2xo4wa DfvAqaPLA3rAXw8/RtdYuCmeFmSxUEVfTYophgxFuHSHiWuWJ3EBDguf5sGaKQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=VtJFWUx2; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6165A6780D for ; Thu, 8 Aug 2024 17:03:17 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sc4fH-0000sD-9R; Thu, 08 Aug 2024 11:02:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sc4f0-0000rC-Py for bug-guix@gnu.org; Thu, 08 Aug 2024 11:02:40 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sc4ey-0002F8-MR for bug-guix@gnu.org; Thu, 08 Aug 2024 11:02:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=PHaAvi8m9cMLwk5YL4Z71oEJ8U3CKX48vcjh90spMH8=; b=VtJFWUx2LeqSowazrggtkokUqnKsDdAw0lenu0XqSw5lvlyBQ0ExRVDDTGtGAZSvdGP5ZNtQbHcOzXHbXx50HJCwYrkLUGe6jOvZ52KN8OZ8lNmVif2lyxx3rX/+ARr5NqvnjdtNXw9PjhvuOWjExDKmOLVPNYpXym5FG3IuUhAIhK09fDs5yiJ1yKSDm27XAophgFrheSKGHL102posjZE7XIEuRxry1NP9LKjpz5LbWczMJtCB8kxSKFDpJa8YrgfVsBky/kmxzS/1ERfKCkRHgX1NHbtU6UavezbXL7r5iOvmbXfDvr+6TVwhra/HmCuuA3AFQJpcZa/MqGHbwg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sc4fP-0005XT-1D for bug-guix@gnu.org; Thu, 08 Aug 2024 11:03:03 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#72527: Rottlog never exits cleanly Resent-From: Simon Streit Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 08 Aug 2024 15:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 72527 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 72527@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.172312937021249 (code B ref -1); Thu, 08 Aug 2024 15:03:02 +0000 Received: (at submit) by debbugs.gnu.org; 8 Aug 2024 15:02:50 +0000 Received: from localhost ([127.0.0.1]:37052 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sc4fC-0005We-3E for submit@debbugs.gnu.org; Thu, 08 Aug 2024 11:02:50 -0400 Received: from lists.gnu.org ([209.51.188.17]:51778) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sc4fA-0005WV-Sw for submit@debbugs.gnu.org; Thu, 08 Aug 2024 11:02:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sc4ej-0000q2-Sq for bug-guix@gnu.org; Thu, 08 Aug 2024 11:02:21 -0400 Received: from smtprelay08.ispgateway.de ([134.119.228.106]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sc4ei-00025F-4K for bug-guix@gnu.org; Thu, 08 Aug 2024 11:02:21 -0400 Received: from [62.8.169.120] (helo=milk) by smtprelay08.ispgateway.de with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1sc4ee-000000000TW-3SvF; Thu, 08 Aug 2024 17:02:16 +0200 From: Simon Streit Gcc: nnfolder+archive:sent.2024-08 Date: Thu, 08 Aug 2024 17:02:16 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Df-Sender: c2ltb25AbmV0cGFuaWMub3Jn Received-SPF: pass client-ip=134.119.228.106; envelope-from=simon@netpanic.org; helo=smtprelay08.ispgateway.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 6165A6780D X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -10.19 X-Spam-Score: -10.19 X-TUID: drUgInJ39MVk Hello! On inspection of the default settings for Rot[t]log=E2=80=99s service, and reading through /var/log/mcron.log, rottlog always exits with the following error: --8<---------------cut here---------------start------------->8--- 2024-08-07 12:00:00 3408 /gnu/store/scligrs2fwpsy6jvffraa274k7ipbg81-rottlo= g-0.72.2/sbin/rottlog: running... 2024-08-07 12:00:01 3408 /gnu/store/scligrs2fwpsy6jvffraa274k7ipbg81-rottlo= g-0.72.2/sbin/rottlog: failed after 0.199s with: (misc-error #f unclean exi= t status ~S (1) #f) --8<---------------cut here---------------end--------------->8--- Checking directly: --8<---------------cut here---------------start------------->8--- root@host ~# /gnu/store/scligrs2fwpsy6jvffraa274k7ipbg81-rottlog-0.72.2/sbi= n/rottlog -v read_custom: Config file 'custom' does not exist read_daily: Config file 'daily' does not exist check_last_rotate: Checking for week(ly) config file check_last_rotate: Old date : 1722810339 check_last_rotate: New date : 1723125091 check_last_rotate: Next date : Thu 15 Aug 16:51:31 CEST 2024 check_last_rotate: Rotation not needed: 314752 < 604800 read_monthly: Config file 'monthly' does not exist root@host ~# echo $? 1 --8<---------------cut here---------------end--------------->8--- To experiment a little, I add: --8<---------------cut here---------------start------------->8--- (simple-service 'nginx-custom-rotations rottlog-service-type (list (log-rotation (frequency 'custom) (files '("/var/log/nginx/access.log" "/var/log/nginx/error.log")) (options '("storedir nginx period 15"))))) (simple-service 'nginx-daily-rotations rottlog-service-type (list (log-rotation (frequency 'daily) (files '("/var/log/nginx/access.log" "/var/log/nginx/error.log")) (options '("storedir nginx"))))) (simple-service 'nginx-monthly-rotations rottlog-service-type (list (log-rotation (frequency 'monthly) (files '("/var/log/nginx/access.log" "/var/log/nginx/error.log")) (options '("storedir nginx"))))) --8<---------------cut here---------------end--------------->8--- Upon reconfiguration, I called =E2=80=9C/gnu/store/...rottlog -v=E2=80=9D a= gain, and voil=C3=A0, it exits cleanly. The current default is to only provide a weekly rotation. Rottlog expects a custom, daily, weekly and monthly file. The documentation upstream doesn't state this directly. Providing empty files doesn't help either, as it then errors out about syntax errors. Would it make sense to be sure that a weekly file is enough, or all four files are provided in a way? The latter option sounds like slight over engineering. The default weekly rotation is enough for a base system. I doubt it this is someone=E2=80=99s first concern to read through /var/log/mcron.log and understand the error message on a new system. The error message is there and it is not clear why at first sight. Kind regards --=20 Simon