From unknown Sun Jun 22 17:18:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#36838: mcron leaves zombies around Resent-From: Robert Vollmert Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 29 Jul 2019 15:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 36838 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 36838@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.156441478421903 (code B ref -1); Mon, 29 Jul 2019 15:40:01 +0000 Received: (at submit) by debbugs.gnu.org; 29 Jul 2019 15:39:44 +0000 Received: from localhost ([127.0.0.1]:48987 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hs7kV-0005hD-Rf for submit@debbugs.gnu.org; Mon, 29 Jul 2019 11:39:44 -0400 Received: from lists.gnu.org ([209.51.188.17]:42465) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hs7kU-0005h6-D7 for submit@debbugs.gnu.org; Mon, 29 Jul 2019 11:39:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49313) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hs7kT-0000WW-DU for bug-guix@gnu.org; Mon, 29 Jul 2019 11:39:42 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_LOW autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hs7kS-0007Gr-De for bug-guix@gnu.org; Mon, 29 Jul 2019 11:39:41 -0400 Received: from mx1.mailbox.org ([80.241.60.212]:24938) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hs7kS-0007EH-86 for bug-guix@gnu.org; Mon, 29 Jul 2019 11:39:40 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:105:465:1:2:0]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id 581B95033E for ; Mon, 29 Jul 2019 17:39:37 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter04.heinlein-hosting.de (spamfilter04.heinlein-hosting.de [80.241.56.122]) (amavisd-new, port 10030) with ESMTP id SVN_yCrolJ7G for ; Mon, 29 Jul 2019 17:39:35 +0200 (CEST) From: Robert Vollmert Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Message-Id: <70F6F2EB-3619-4175-885F-C970448355D7@vllmrt.net> Date: Mon, 29 Jul 2019 17:39:33 +0200 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 80.241.60.212 X-Spam-Score: -1.6 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) It seems that mcron doesn=E2=80=99t clean up after itself. I regularly = see some zombie processes around, presumably left over by each of my two 15-minute cron jobs: root 21285 0.0 0.3 24124 3248 ? Ss 11:05 0:00 = /gnu/store/mamwayq00mqs85kgs6ibww7xw6dy776s-mcron-1.1.1/bin/mcron = /gnu/store/rdi71izz4d16v77hb8h2jks0s3q9zini-mcron-job = /gnu/store/k7dn1v7qpi4kz183glmbgsf1c7pj19xx-mcron-job = /gnu/store/lfyj23bzhc14y5rqi91g493jql9dphxk-mcron-job = /gnu/store/mx9k5n92kmhryn3vh4607hrmnkjb8dl6-mcron-job = /gnu/store/l4nxmajr0i5g07fxvrgnaw29zd1jq0qw-mcron-job root 26611 0.0 0.0 0 0 ? Z 17:29 0:00 [mcron] = root 26612 0.0 0.0 0 0 ? Z 17:29 0:00 [mcron] = In case that matters, they=E2=80=99re defined using the following: (define puzzledb-tweets-pzv-job (let* ((exp (with-imported-modules '((helpers)) #~(begin (use-modules (helpers)) (let ((backend (read-secret "tools.jwt")) (twitter (read-secret "twitter.token"))) (runl (string-append #$puzzledb-tools "/bin/tweets") "-backend_token" backend "-token" twitter "-deletes"))))) (script (program-file "puzzledb-tweets-pzv-job" exp))) #~(job "*/15 * * * *" ; every fifteen minutes #$script))) where the module helpers contains: (define-module (helpers) #:use-module (ice-9 textual-ports) #:export (runl read-secret)) (define* (runl prog . args) (apply execl prog prog args)) (define* (read-secret file) (string-trim-both (get-string-all (open-input-file (string-append "/etc/puzzledb/secrets/" file))))) From unknown Sun Jun 22 17:18:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#36838: mcron leaves zombies around Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 24 Aug 2021 03:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36838 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Robert Vollmert Cc: 36838@debbugs.gnu.org Received: via spool by 36838-submit@debbugs.gnu.org id=B36838.16297773538212 (code B ref 36838); Tue, 24 Aug 2021 03:56:02 +0000 Received: (at 36838) by debbugs.gnu.org; 24 Aug 2021 03:55:53 +0000 Received: from localhost ([127.0.0.1]:42890 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mINXU-00028O-VJ for submit@debbugs.gnu.org; Mon, 23 Aug 2021 23:55:53 -0400 Received: from mail-qt1-f175.google.com ([209.85.160.175]:46634) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mINXR-000289-06 for 36838@debbugs.gnu.org; Mon, 23 Aug 2021 23:55:51 -0400 Received: by mail-qt1-f175.google.com with SMTP id x5so15686663qtq.13 for <36838@debbugs.gnu.org>; Mon, 23 Aug 2021 20:55:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=uXMP7LEHhW6u/Ak2nPeGDGWiVEeK8YEnMneq+TbjZnQ=; b=W0Kg0+c0400JogRA0E1XJuz1GjmlmTD2q5GVv0TCdvA32mKw5W+lL/8XYBhvXcJY/2 9k48NmNPavibW6rfnjU+f0BqvEJHHhCfuXqgRNVAebcTBY/I6N57SyFxw9XYQ5BJDzWu 68gL2q9LBvNaN3As27EDUC20cspC439K0lhujJ/CVUs0XaIdJKvoDZdiEWTcL3mMGRNp wnbWeU6oXaUIEByPBnNMn0KqAKisxpRpKHcVLe81PGjzDSolcymRgeR0JYVqkUla3orN JR2m4fQducZb5x9zo4UyomA+ftrymQxMifWDih8O411ESm2IwiGTOpWTyviNGuJBLj0F aHFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=uXMP7LEHhW6u/Ak2nPeGDGWiVEeK8YEnMneq+TbjZnQ=; b=uAh8dRpC+d1RGDfpuMqmO07XIpLLho4a3f+SO4Xrd1IV2ljytqTXmyZoZu0LMtgTDk IQGibTJXEFp7+XCDjmI6gzCa50RIQt9OfSDSYQWB19tbP5U72hOhW9A00Wd4x1MydS36 EFXCL9JaDWPZ+u2yCvDBHuV1fxVMfp44HherBoYNv1mwGyoqJiFVGFCl8kAFioYRNZP0 Zcd0x/Sx3Uig9dh1aYawFrE5ZHCHBs6qWr0aSIEaZJGBTA9qOns87Pby1A7ftKMdPrtM COhyPSPaejxoCr1fr+VbyR+qI+nO/CAELtpEGd1iEtCCDQBJMHJSCv66JhgebvH7lrgk +4Fw== X-Gm-Message-State: AOAM532XA1Zwxfs+HgO3KZeTIzctBjfFExamNFOaVQED2sC87TPs+Eiw TLflRc9bL61aZi4qvqlW04I0sQwrEH4= X-Google-Smtp-Source: ABdhPJz2lSJrrIyKmjrEFJSgK36SvyKIcekiPLQ/uCDHj9wn3UbG4/YmF1OQArY3gilGyjUna/SiWQ== X-Received: by 2002:a05:622a:493:: with SMTP id p19mr32629705qtx.195.1629777343176; Mon, 23 Aug 2021 20:55:43 -0700 (PDT) Received: from hurd (dsl-10-129-227.b2b2c.ca. [72.10.129.227]) by smtp.gmail.com with ESMTPSA id o20sm7536650qtk.41.2021.08.23.20.55.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Aug 2021 20:55:42 -0700 (PDT) From: Maxim Cournoyer References: <70F6F2EB-3619-4175-885F-C970448355D7@vllmrt.net> Date: Mon, 23 Aug 2021 23:55:42 -0400 In-Reply-To: <70F6F2EB-3619-4175-885F-C970448355D7@vllmrt.net> (Robert Vollmert's message of "Mon, 29 Jul 2019 17:39:33 +0200") Message-ID: <87fsuzts1t.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello Robert, Robert Vollmert writes: > It seems that mcron doesn=E2=80=99t clean up after itself. I regularly see > some zombie processes around, presumably left over by each of my > two 15-minute cron jobs: > > root 21285 0.0 0.3 24124 3248 ? Ss 11:05 0:00 /gnu/sto= re/mamwayq00mqs85kgs6ibww7xw6dy776s-mcron-1.1.1/bin/mcron /gnu/store/rdi71i= zz4d16v77hb8h2jks0s3q9zini-mcron-job /gnu/store/k7dn1v7qpi4kz183glmbgsf1c7p= j19xx-mcron-job /gnu/store/lfyj23bzhc14y5rqi91g493jql9dphxk-mcron-job /gnu/= store/mx9k5n92kmhryn3vh4607hrmnkjb8dl6-mcron-job /gnu/store/l4nxmajr0i5g07f= xvrgnaw29zd1jq0qw-mcron-job > root 26611 0.0 0.0 0 0 ? Z 17:29 0:00 [mcron] = > root 26612 0.0 0.0 0 0 ? Z 17:29 0:00 [mcron] = > > In case that matters, they=E2=80=99re defined using the following: > > (define puzzledb-tweets-pzv-job > (let* ((exp > (with-imported-modules '((helpers)) > #~(begin > (use-modules (helpers)) > (let ((backend (read-secret "tools.jwt")) > (twitter (read-secret "twitter.token"))) > (runl (string-append #$puzzledb-tools "/bin/tweets") > "-backend_token" backend > "-token" twitter > "-deletes"))))) > (script (program-file "puzzledb-tweets-pzv-job" exp))) > #~(job "*/15 * * * *" ; every fifteen minutes > #$script))) > > where the module helpers contains: > > (define-module (helpers) > #:use-module (ice-9 textual-ports) > #:export (runl read-secret)) > > (define* (runl prog . args) > (apply execl prog prog args)) > > (define* (read-secret file) > (string-trim-both > (get-string-all > (open-input-file > (string-append "/etc/puzzledb/secrets/" file))))) Thank you for the report. I don't seem to have any mcron zombies on my system and have one job running every 5 minutes, another once per day, another every 3 days. Does the problem still exist for you? Thanks, Maxim From unknown Sun Jun 22 17:18:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#36838: mcron leaves zombies around References: <70F6F2EB-3619-4175-885F-C970448355D7@vllmrt.net> Resent-From: Leo Prikler Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 24 Aug 2021 10:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36838 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: maxim.cournoyer@gmail.com, 36838@debbugs.gnu.org Received: via spool by 36838-submit@debbugs.gnu.org id=B36838.16297999857550 (code B ref 36838); Tue, 24 Aug 2021 10:14:02 +0000 Received: (at 36838) by debbugs.gnu.org; 24 Aug 2021 10:13:05 +0000 Received: from localhost ([127.0.0.1]:43311 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mITQT-0001xU-Pr for submit@debbugs.gnu.org; Tue, 24 Aug 2021 06:13:05 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:60682) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mITQO-0001xB-O6 for 36838@debbugs.gnu.org; Tue, 24 Aug 2021 06:13:00 -0400 Received: from nijino.local (62-47-226-13.adsl.highway.telekom.at [62.47.226.13]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4Gv4g913HHz1LWpd; Tue, 24 Aug 2021 12:12:53 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 mailrelay.tugraz.at 4Gv4g913HHz1LWpd DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1629799973; bh=N7TuRsu83uc9rQbgrdljDh2RwjUCOGjTYDrIiiBFmkM=; h=Subject:From:To:Date:In-Reply-To:From; b=oTMzjRg6gOS+60+2BshMH9TDtDwrtbYfU1wvmtp1T2cKScNvyC5IjgzzmckdUBQJT igbOpmIaH7RUb48fcPuEUf27d/h6xfDlO+QLtB80A6cHZzXSAl4HZRyhvWhvBila8g 5S5UZ9KpPzgHnL/lBhptI6C2MrtGifpLIlrMF+5s= Message-ID: From: Leo Prikler Date: Tue, 24 Aug 2021 12:12:52 +0200 In-Reply-To: 87fsuzts1t.fsf@gmail.com Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw X-Spam-Scanner: SpamAssassin 3.003001 X-Spam-Score-relay: -1.9 X-Scanned-By: MIMEDefang 2.74 on 129.27.10.117 X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi Maxim, I still have a defunct mcron flying around with a fairly standard Guix configuration. The only service running through mcron seems to be rottlog-service-type. Regards From unknown Sun Jun 22 17:18:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#36838: mcron leaves zombies around Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 29 Aug 2021 21:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36838 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 36838@debbugs.gnu.org Cc: Leo Prikler Received: via spool by 36838-submit@debbugs.gnu.org id=B36838.1630272961334 (code B ref 36838); Sun, 29 Aug 2021 21:36:02 +0000 Received: (at 36838) by debbugs.gnu.org; 29 Aug 2021 21:36:01 +0000 Received: from localhost ([127.0.0.1]:57603 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKSTA-00005J-JK for submit@debbugs.gnu.org; Sun, 29 Aug 2021 17:36:00 -0400 Received: from mail-qv1-f52.google.com ([209.85.219.52]:42869) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKST8-00004z-42 for 36838@debbugs.gnu.org; Sun, 29 Aug 2021 17:35:58 -0400 Received: by mail-qv1-f52.google.com with SMTP id gf5so7287042qvb.9 for <36838@debbugs.gnu.org>; Sun, 29 Aug 2021 14:35:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=FerT42v5JnNQdJS4cA7WOrelHqbRR4I7QPM8a+g4Bj4=; b=ROAL1Nz2E7iuhFFdMrdXzeJO08LquR4H4VQOqvaTicF+WjD4UfZrgcCcCtjMnqpIsH pnpCTnOv/VlUYa6OR90MQrvXAo5XLPjJJ3E60wikhbXbXrJTzM2q5Zq69Y6GlAXB+pFQ 6bD3dkr9+cGuefz9rHEot5ZWIadWT9vqP/M7D8Yv1OfYNgMZFFWSuADH5h4NQdqU7d+I 71hpFtt1sNv1kx3bPmiENVQ/U5YZ9v7cIRWF+VECd0h/4794f/nu58WqTUyCC9Q6ZmqB VeTNy+X2Diu7P5fyBiwaFvmenIc31rf6Y1kpcJku9/V8fjfVvkHydjpu10Ct4A0JlEUl NVYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=FerT42v5JnNQdJS4cA7WOrelHqbRR4I7QPM8a+g4Bj4=; b=MkqEOKFfGbLigXENkr9Xy/QjivEOvEb+p0u2rv6gFarmQXaUJV5kLF97TtrYqRIZHC vvSPndU9tWzZJLJLk9+/InSJ7cjeyVLj/XelRu9O6cQWIn0HFUQd5ysceYTil3YZp6gQ cMbC5Wx+T3wyHdVz9iGFBmgDiA17rbpqSUj2WQzOJm9aTsz8Rw7D3o8W7VZ3seKOOLMm EtuFpDC42XlQCx+CCAbdNYwFlA7IyX3AWFjWMTcaDeaFNLa5S4FGz7R2lzzYrs6wQRR2 6WVBYVIQZQDHCvIz+CIHi29EiofzWxcDQp/5+uwxXUKstJJqjdo3nkv+9CcjoEQYVKNq VxkQ== X-Gm-Message-State: AOAM532BrpQxONmLwr8hnycnvOhS1SnnxDB9PfHn5EpUQuej5cUuCySg ijBZFeYFHrZes8VULyRWMX0kEvIJMqE= X-Google-Smtp-Source: ABdhPJxpVjwcbKdVCeuaAqjErIpF6EmZH1szrl6GR1fWQpxxNT5BzdpewHPaJe+neXypoDx2U/rWQQ== X-Received: by 2002:ad4:418e:: with SMTP id e14mr18552167qvp.50.1630272952524; Sun, 29 Aug 2021 14:35:52 -0700 (PDT) Received: from hurd (dsl-10-141-212.b2b2c.ca. [72.10.141.212]) by smtp.gmail.com with ESMTPSA id b19sm10128055qkc.7.2021.08.29.14.35.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Aug 2021 14:35:52 -0700 (PDT) From: Maxim Cournoyer References: Date: Sun, 29 Aug 2021 17:35:51 -0400 In-Reply-To: (Leo Prikler's message of "Tue, 24 Aug 2021 12:12:52 +0200") Message-ID: <87k0k4szm0.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Leo, Leo Prikler writes: > Hi Maxim, > > I still have a defunct mcron flying around with a fairly standard Guix > configuration. The only service running through mcron seems to be > rottlog-service-type. If you have the energy/bandwidth, would you mind trying this patch here: https://lists.gnu.org/archive/html/bug-mcron/2021-08/msg00008.html; it may have positive side-effects in that regard, I believe. I've modified the mcron package to use a local checkout in my system config like so: --8<---------------cut here---------------start------------->8--- @@ -2,7 +2,14 @@ ;;; RAID-1c3 storage bay. (use-modules (gnu) (guix modules) - (srfi srfi-1)) + (srfi srfi-1) + ;; for mcron experiment + (gnu packages autotools) + (gnu packages guile-xyz) + (gnu packages man) + (gnu packages texinfo) + (guix git) + (guix packages)) (use-service-modules admin desktop docker linux mail mcron networking nfs nix spice ssh sysctl telephony virtualization vpn xorg) @@ -196,6 +203,15 @@ (pam-limits-entry "@realtime" 'both 'memlock 'unlimited))) (service mcron-service-type (mcron-configuration + (mcron (package/inherit mcron + (source (git-checkout + (url "file:///home/maxim/src/mcron"))) + (native-inputs (append + `(("autoconf" ,autoconf) + ("automake" ,automake) + ("help2man" ,help2man) + ("texinfo" ,texinfo)) + (package-native-inputs mcron))))) (jobs (list duckdns-job backup-home-job --8<---------------cut here---------------end--------------->8--- The output is now annotated as: --8<---------------cut here---------------start------------->8--- 2021-08-25T00:01:34 /gnu/store/xcngj8vg5j8g54r3aqm71vbgsgrsjl31-rottlog-0.72.2/sbin/rottlog: mail: Cannot open mailer: No such file or directory 2021-08-25T00:01:34 /gnu/store/xcngj8vg5j8g54r3aqm71vbgsgrsjl31-rottlog-0.72.2/sbin/rottlog: mail: cannot send message: No such file or directory 2021-08-25T00:01:34 /gnu/store/xcngj8vg5j8g54r3aqm71vbgsgrsjl31-rottlog-0.72.2/sbin/rottlog: mail: Cannot open mailer: No such file or directory 2021-08-25T00:01:34 /gnu/store/xcngj8vg5j8g54r3aqm71vbgsgrsjl31-rottlog-0.72.2/sbin/rottlog: mail: cannot send message: No such file or directory 2021-08-25T00:01:34 /gnu/store/xcngj8vg5j8g54r3aqm71vbgsgrsjl31-rottlog-0.72.2/sbin/rottlog: mail: Cannot open mailer: No such file or directory 2021-08-25T00:01:34 /gnu/store/xcngj8vg5j8g54r3aqm71vbgsgrsjl31-rottlog-0.72.2/sbin/rottlog: mail: cannot send message: No such file or directory 2021-08-25T00:01:34 /gnu/store/xcngj8vg5j8g54r3aqm71vbgsgrsjl31-rottlog-0.72.2/sbin/rottlog: completed in 93.625s 2021-08-25T00:05:00 duckdns-update: running... 2021-08-25T00:05:01 duckdns-update: completed in 0.519s --8<---------------cut here---------------end--------------->8--- And I don't have any mcron zombie process lying around, unless I'm reading the ps output wrong. Thanks, Maxim From unknown Sun Jun 22 17:18:26 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Robert Vollmert Subject: bug#36838: closed (Re: bug#36838: mcron leaves zombies around) Message-ID: References: <87zg3qlnzp.fsf@gmail.com> <70F6F2EB-3619-4175-885F-C970448355D7@vllmrt.net> X-Gnu-PR-Message: they-closed 36838 X-Gnu-PR-Package: guix Reply-To: 36838@debbugs.gnu.org Date: Thu, 20 Jul 2023 13:20:01 +0000 Content-Type: multipart/mixed; boundary="----------=_1689859201-5585-1" This is a multi-part message in MIME format... ------------=_1689859201-5585-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #36838: mcron leaves zombies around which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 36838@debbugs.gnu.org. --=20 36838: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D36838 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1689859201-5585-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 36838-done) by debbugs.gnu.org; 20 Jul 2023 13:19:15 +0000 Received: from localhost ([127.0.0.1]:58001 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qMTYp-0001Qs-9U for submit@debbugs.gnu.org; Thu, 20 Jul 2023 09:19:15 -0400 Received: from mail-qv1-xf35.google.com ([2607:f8b0:4864:20::f35]:59855) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qMTYn-0001QZ-9E for 36838-done@debbugs.gnu.org; Thu, 20 Jul 2023 09:19:14 -0400 Received: by mail-qv1-xf35.google.com with SMTP id 6a1803df08f44-635ee3baa14so5027126d6.3 for <36838-done@debbugs.gnu.org>; Thu, 20 Jul 2023 06:19:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689859148; x=1690463948; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=h/l06Thy+NHfu7TknnfULLxlSCJBQgj4XzL7EfITjcY=; b=j1OCj+B+SehhwCicwHndtE43+Y8T6s1KLXVO3a8UXyEsXYrw0eb+YS+w1Q97GoU5hF L1071YCIWbEuvI37wrTLvzAHcvA99Br5eIjcg0Y8zG6P6XKPko7M39eLN2WqSyQsuIwt wRGuSMoDWMP39q6KEzictqa4RSmyPpZoEZ5NqMKis0ttpXNBObf4ISPpXBNS5Z8SWE3Y pC03ySij1nfgsVACjfgSYwyEmx0L9rYzdSP5sFUqh1rwPSe7bYLueV/2f1EfuuXUZRL5 2VjlKOKSuPncf4bdZIGxukIimlbhXczVRvK1tCTM1fyAsex7YawTtIP4jjQ2d8A6U7DM G+CQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689859148; x=1690463948; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=h/l06Thy+NHfu7TknnfULLxlSCJBQgj4XzL7EfITjcY=; b=HjboD10t9b7OwXBu3lFejLq0mYun1Dtsxl/1Ek1writ/mpX2L7ynQ2laBmoDBKsM8W 7LDimSx3kPRgypy+iYFYldaVuuKUfkHhl7yxDr1kIWPM2HdYI9HttS9B66N/QNkxGlsk kpZStHGWEgIZdKptKL212qtRVTAnrzqH8EndRIV426jK3fApU1ONJcbGzvPX9v9Al/uR hi5srT/dASXPWCRp1bJmB5w/5DPw46Ez8VJ9b1KifvjKvwL/66ubuZkdMopNkHdH+9YD OqCvCgbUvoAOJHkIbM73SaAN7vBCG2sE8+fVaVFCmmF5tMJt6/EvoOFNW9cA0NcVaG7G OEeQ== X-Gm-Message-State: ABy/qLaC1/jVJglM+TGzZ9xdKIK3Umnm2S4MO8OOuj9cP73VJm33ROSR 9BLC8s3tZXiVM5C6x6HY6OAHtF0rgJE= X-Google-Smtp-Source: APBJJlFFl6+hJ2cmw7+hudLNl5dSUS/tXx5oGLC4Uq4UDPCtD1gJiVB735YHMstBsxZUiV72ggxBYQ== X-Received: by 2002:a0c:b2c5:0:b0:634:7c34:6c77 with SMTP id d5-20020a0cb2c5000000b006347c346c77mr17442085qvf.3.1689859147823; Thu, 20 Jul 2023 06:19:07 -0700 (PDT) Received: from hurd (dsl-159-145.b2b2c.ca. [66.158.159.145]) by smtp.gmail.com with ESMTPSA id d26-20020a0caa1a000000b0063631be090csm326713qvb.125.2023.07.20.06.19.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Jul 2023 06:19:07 -0700 (PDT) From: Maxim Cournoyer To: 36838-done@debbugs.gnu.org Subject: Re: bug#36838: mcron leaves zombies around References: <87k0k4szm0.fsf@gmail.com> Date: Thu, 20 Jul 2023 09:19:06 -0400 In-Reply-To: <87k0k4szm0.fsf@gmail.com> (Maxim Cournoyer's message of "Sun, 29 Aug 2021 17:35:51 -0400") Message-ID: <87zg3qlnzp.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 36838-done Cc: Leo Prikler X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi, Maxim Cournoyer writes: > Hi Leo, > > Leo Prikler writes: > >> Hi Maxim, >> >> I still have a defunct mcron flying around with a fairly standard Guix >> configuration. The only service running through mcron seems to be >> rottlog-service-type. > > If you have the energy/bandwidth, would you mind trying this patch here: > https://lists.gnu.org/archive/html/bug-mcron/2021-08/msg00008.html; it > may have positive side-effects in that regard, I believe. > > I've modified the mcron package to use a local checkout in my system > config like so: > > @@ -2,7 +2,14 @@ > ;;; RAID-1c3 storage bay. > (use-modules (gnu) > (guix modules) > - (srfi srfi-1)) > + (srfi srfi-1) > + ;; for mcron experiment > + (gnu packages autotools) > + (gnu packages guile-xyz) > + (gnu packages man) > + (gnu packages texinfo) > + (guix git) > + (guix packages)) > > (use-service-modules admin desktop docker linux mail mcron networking nfs nix > spice ssh sysctl telephony virtualization vpn xorg) > @@ -196,6 +203,15 @@ > (pam-limits-entry "@realtime" 'both 'memlock 'unlimited))) > (service mcron-service-type > (mcron-configuration > + (mcron (package/inherit mcron > + (source (git-checkout > + (url "file:///home/maxim/src/mcron"))) > + (native-inputs (append > + `(("autoconf" ,autoconf) > + ("automake" ,automake) > + ("help2man" ,help2man) > + ("texinfo" ,texinfo)) > + (package-native-inputs mcron))))) > (jobs (list duckdns-job > backup-home-job > > > The output is now annotated as: > > 2021-08-25T00:01:34 /gnu/store/xcngj8vg5j8g54r3aqm71vbgsgrsjl31-rottlog-0.72.2/sbin/rottlog: mail: Cannot open mailer: No such file or directory > 2021-08-25T00:01:34 /gnu/store/xcngj8vg5j8g54r3aqm71vbgsgrsjl31-rottlog-0.72.2/sbin/rottlog: mail: cannot send message: No such file or directory > 2021-08-25T00:01:34 /gnu/store/xcngj8vg5j8g54r3aqm71vbgsgrsjl31-rottlog-0.72.2/sbin/rottlog: mail: Cannot open mailer: No such file or directory > 2021-08-25T00:01:34 /gnu/store/xcngj8vg5j8g54r3aqm71vbgsgrsjl31-rottlog-0.72.2/sbin/rottlog: mail: cannot send message: No such file or directory > 2021-08-25T00:01:34 /gnu/store/xcngj8vg5j8g54r3aqm71vbgsgrsjl31-rottlog-0.72.2/sbin/rottlog: mail: Cannot open mailer: No such file or directory > 2021-08-25T00:01:34 /gnu/store/xcngj8vg5j8g54r3aqm71vbgsgrsjl31-rottlog-0.72.2/sbin/rottlog: mail: cannot send message: No such file or directory > 2021-08-25T00:01:34 /gnu/store/xcngj8vg5j8g54r3aqm71vbgsgrsjl31-rottlog-0.72.2/sbin/rottlog: completed in 93.625s > 2021-08-25T00:05:00 duckdns-update: running... > 2021-08-25T00:05:01 duckdns-update: completed in 0.519s > > And I don't have any mcron zombie process lying around, unless I'm > reading the ps output wrong. It's been a while and I haven't seen this problem myself in all this time; closing. Do reopen if you encounter it or better yet, have a reproducer for it. -- Thanks, Maxim ------------=_1689859201-5585-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 29 Jul 2019 15:39:44 +0000 Received: from localhost ([127.0.0.1]:48987 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hs7kV-0005hD-Rf for submit@debbugs.gnu.org; Mon, 29 Jul 2019 11:39:44 -0400 Received: from lists.gnu.org ([209.51.188.17]:42465) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hs7kU-0005h6-D7 for submit@debbugs.gnu.org; Mon, 29 Jul 2019 11:39:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49313) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hs7kT-0000WW-DU for bug-guix@gnu.org; Mon, 29 Jul 2019 11:39:42 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_LOW autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hs7kS-0007Gr-De for bug-guix@gnu.org; Mon, 29 Jul 2019 11:39:41 -0400 Received: from mx1.mailbox.org ([80.241.60.212]:24938) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hs7kS-0007EH-86 for bug-guix@gnu.org; Mon, 29 Jul 2019 11:39:40 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:105:465:1:2:0]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id 581B95033E for ; Mon, 29 Jul 2019 17:39:37 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter04.heinlein-hosting.de (spamfilter04.heinlein-hosting.de [80.241.56.122]) (amavisd-new, port 10030) with ESMTP id SVN_yCrolJ7G for ; Mon, 29 Jul 2019 17:39:35 +0200 (CEST) From: Robert Vollmert Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: mcron leaves zombies around Message-Id: <70F6F2EB-3619-4175-885F-C970448355D7@vllmrt.net> Date: Mon, 29 Jul 2019 17:39:33 +0200 To: bug-guix@gnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 80.241.60.212 X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) It seems that mcron doesn=E2=80=99t clean up after itself. I regularly = see some zombie processes around, presumably left over by each of my two 15-minute cron jobs: root 21285 0.0 0.3 24124 3248 ? Ss 11:05 0:00 = /gnu/store/mamwayq00mqs85kgs6ibww7xw6dy776s-mcron-1.1.1/bin/mcron = /gnu/store/rdi71izz4d16v77hb8h2jks0s3q9zini-mcron-job = /gnu/store/k7dn1v7qpi4kz183glmbgsf1c7pj19xx-mcron-job = /gnu/store/lfyj23bzhc14y5rqi91g493jql9dphxk-mcron-job = /gnu/store/mx9k5n92kmhryn3vh4607hrmnkjb8dl6-mcron-job = /gnu/store/l4nxmajr0i5g07fxvrgnaw29zd1jq0qw-mcron-job root 26611 0.0 0.0 0 0 ? Z 17:29 0:00 [mcron] = root 26612 0.0 0.0 0 0 ? Z 17:29 0:00 [mcron] = In case that matters, they=E2=80=99re defined using the following: (define puzzledb-tweets-pzv-job (let* ((exp (with-imported-modules '((helpers)) #~(begin (use-modules (helpers)) (let ((backend (read-secret "tools.jwt")) (twitter (read-secret "twitter.token"))) (runl (string-append #$puzzledb-tools "/bin/tweets") "-backend_token" backend "-token" twitter "-deletes"))))) (script (program-file "puzzledb-tweets-pzv-job" exp))) #~(job "*/15 * * * *" ; every fifteen minutes #$script))) where the module helpers contains: (define-module (helpers) #:use-module (ice-9 textual-ports) #:export (runl read-secret)) (define* (runl prog . args) (apply execl prog prog args)) (define* (read-secret file) (string-trim-both (get-string-all (open-input-file (string-append "/etc/puzzledb/secrets/" file))))) ------------=_1689859201-5585-1--