From unknown Thu Aug 14 22:14:12 2025 X-Loop: help-debbugs@gnu.org Subject: bug#76130: 'herd status' cannot handle inaccessible logfiles (shepherd 1.0.1) Resent-From: Andrew Wong Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 07 Feb 2025 20:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 76130 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 76130@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.173896018513515 (code B ref -1); Fri, 07 Feb 2025 20:30:02 +0000 Received: (at submit) by debbugs.gnu.org; 7 Feb 2025 20:29:45 +0000 Received: from localhost ([127.0.0.1]:36834 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tgUyu-0003Vv-L7 for submit@debbugs.gnu.org; Fri, 07 Feb 2025 15:29:44 -0500 Received: from lists.gnu.org ([2001:470:142::17]:52802) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tgUyt-0003Ve-BO for submit@debbugs.gnu.org; Fri, 07 Feb 2025 15:29:43 -0500 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 1tgUyi-0005Rq-HV for bug-guix@gnu.org; Fri, 07 Feb 2025 15:29:33 -0500 Received: from qs51p00im-qukt01072501.me.com ([17.57.155.14]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tgUyg-0005Du-Vi for bug-guix@gnu.org; Fri, 07 Feb 2025 15:29:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; bh=1NpwMZ/wlC4WB9kCCcxXy/m6SZH+DYrrKoz154IOGAY=; h=Message-ID:Date:MIME-Version:To:From:Subject:Content-Type:x-icloud-hme; b=eIcqxFI/N7GG0Jl6koodzre4srfwoFmXrPj6IY0dlTWVTrKzk4wVf2wy8YuP42gOB wyHSE2b76pRamqv2gUoq5e/1eVpoT0pHCQk51OtkNMF0F05MF3BRXdpb4/UrNUCYe1 3LF8X9SFOKsTSvQgXHDzQWLsqf2KRZWkzs3WOjNhHdoHNVSE/ujYbXIPZNAMR4X2Jy pwFuKi/d9L98z5ym4jOnVmRcirZLjh/Nqtoy4Yf8hi08k/QYNaVwpQXDWOsGILlOS3 WOm1AHkOLsGsWJ7Bi3sZsANsoIjPVOkXa8uSXHrCFd8/1nuDxRlqAACSWPPviBp0dN Jy474ECDCtNOA== Received: from [192.168.86.109] (qs51p00im-dlb-asmtp-mailmevip.me.com [17.57.155.28]) by qs51p00im-qukt01072501.me.com (Postfix) with ESMTPSA id 32C544400AA for ; Fri, 7 Feb 2025 20:29:27 +0000 (UTC) Message-ID: <75e91a02-a779-47f7-8c22-810012733dc7@icloud.com> Date: Fri, 7 Feb 2025 15:29:25 -0500 MIME-Version: 1.0 User-Agent: Icedove Daily Content-Language: en-US From: Andrew Wong Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Proofpoint-ORIG-GUID: LsIGxj8Y4yH9BgFb02Ack_l1dY8Y-qeW X-Proofpoint-GUID: LsIGxj8Y4yH9BgFb02Ack_l1dY8Y-qeW X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-02-07_09,2025-02-07_03,2024-11-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 suspectscore=0 spamscore=0 mlxlogscore=370 clxscore=1015 adultscore=0 malwarescore=0 mlxscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2308100000 definitions=main-2502070153 Received-SPF: pass client-ip=17.57.155.14; envelope-from=wongandj@icloud.com; helo=qs51p00im-qukt01072501.me.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.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: -0.0 (/) Hello, I've found a bug in shepherd 1.0.1. When a service has a log file in an 'inaccessible' location, e.g. a home service logging to /var/log, it causes 'herd status $service' to hang, as well as the overall 'herd service' command. I found it with this service[1] which silently failed to log, I guess, until I updated shepherd and found this bug. [1]: (service home-shepherd-service-type         (home-shepherd-configuration          (services           (list            (shepherd-service         (provision '(emacs))         (start #~(make-forkexec-constructor               (list #$(file-append emacs-pgtk-xwidgets "/bin/emacs")                 "--fg-daemon")               #:log-file "/var/log/emacs.log"))         (stop #~(make-kill-destructor))))))) From unknown Thu Aug 14 22:14:12 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: Andrew Wong Subject: bug#76130: closed (Re: bug#76130: 'herd status' cannot handle inaccessible logfiles (shepherd 1.0.1)) Message-ID: References: <87seooumho.fsf@gnu.org> <75e91a02-a779-47f7-8c22-810012733dc7@icloud.com> X-Gnu-PR-Message: they-closed 76130 X-Gnu-PR-Package: guix Reply-To: 76130@debbugs.gnu.org Date: Sat, 08 Feb 2025 22:00:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1739052003-28358-1" This is a multi-part message in MIME format... ------------=_1739052003-28358-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #76130: 'herd status' cannot handle inaccessible logfiles (shepherd 1.0.1) 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 76130@debbugs.gnu.org. --=20 76130: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D76130 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1739052003-28358-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 76130-done) by debbugs.gnu.org; 8 Feb 2025 21:59:14 +0000 Received: from localhost ([127.0.0.1]:41771 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tgsr3-0007Lp-MT for submit@debbugs.gnu.org; Sat, 08 Feb 2025 16:59:13 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:53444) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tgsqz-0007LV-VV for 76130-done@debbugs.gnu.org; Sat, 08 Feb 2025 16:59:11 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tgsqu-0003rw-JD; Sat, 08 Feb 2025 16:59:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=FanwcaZvC5ah0CdUxu1zNJXxv9DZqnohhs4JZDVmIwM=; b=mkWp7jbIsq0P+CHVuUIX quCpgrg/GQYMjm/FGZhuNEROZQYT+rI5kIYb9SuEDu6kpwyjfNQNlwX96Qw3Mwud2pjyuXq3A+rk0 aRZ5sE2DQOdgdYWMhVfofsZJ5kwHlHvjRKELtIg3nHOPUYcpe6DhLvCjojJETcZgRc2Yc0VKcZyf1 6bBpRDBMIaRo6ax2bNuAbMkrxh/Kjyj1UyUuTzmGXp20LV0agiSKumJ9VB+vt+sN3YVkJwvKSDN2F eWQIqe1HrGonBguULLdAFy2Youaklz2gGJmKkiwjcD4zFyObIlJobGKXUy5CxRldd85o/OlOom8KJ YuyzTOz+gEkGmQ==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Andrew Wong Subject: Re: bug#76130: 'herd status' cannot handle inaccessible logfiles (shepherd 1.0.1) In-Reply-To: <75e91a02-a779-47f7-8c22-810012733dc7@icloud.com> (Andrew Wong's message of "Fri, 7 Feb 2025 15:29:25 -0500") References: <75e91a02-a779-47f7-8c22-810012733dc7@icloud.com> Date: Sat, 08 Feb 2025 22:58:59 +0100 Message-ID: <87seooumho.fsf@gnu.org> 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-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 76130-done Cc: 76130-done@debbugs.gnu.org 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 Andrew, Andrew Wong skribis: > I've found a bug in shepherd 1.0.1. When a service has a log file in > an 'inaccessible' location, e.g. a home service logging to /var/log, > it causes 'herd status $service' to hang, as well as the overall 'herd > service' command. I found it with this service[1] which silently > failed to log, I guess, until I updated shepherd and found this bug. Good catch. This is fixed by cd6d35fe8adf5baaeb50adf2a96662fb30382eca, which will be in 1.0.2, to be released in the coming days. Thank you! Ludo=E2=80=99. ------------=_1739052003-28358-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 7 Feb 2025 20:29:45 +0000 Received: from localhost ([127.0.0.1]:36834 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tgUyu-0003Vv-L7 for submit@debbugs.gnu.org; Fri, 07 Feb 2025 15:29:44 -0500 Received: from lists.gnu.org ([2001:470:142::17]:52802) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tgUyt-0003Ve-BO for submit@debbugs.gnu.org; Fri, 07 Feb 2025 15:29:43 -0500 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 1tgUyi-0005Rq-HV for bug-guix@gnu.org; Fri, 07 Feb 2025 15:29:33 -0500 Received: from qs51p00im-qukt01072501.me.com ([17.57.155.14]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tgUyg-0005Du-Vi for bug-guix@gnu.org; Fri, 07 Feb 2025 15:29:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; bh=1NpwMZ/wlC4WB9kCCcxXy/m6SZH+DYrrKoz154IOGAY=; h=Message-ID:Date:MIME-Version:To:From:Subject:Content-Type:x-icloud-hme; b=eIcqxFI/N7GG0Jl6koodzre4srfwoFmXrPj6IY0dlTWVTrKzk4wVf2wy8YuP42gOB wyHSE2b76pRamqv2gUoq5e/1eVpoT0pHCQk51OtkNMF0F05MF3BRXdpb4/UrNUCYe1 3LF8X9SFOKsTSvQgXHDzQWLsqf2KRZWkzs3WOjNhHdoHNVSE/ujYbXIPZNAMR4X2Jy pwFuKi/d9L98z5ym4jOnVmRcirZLjh/Nqtoy4Yf8hi08k/QYNaVwpQXDWOsGILlOS3 WOm1AHkOLsGsWJ7Bi3sZsANsoIjPVOkXa8uSXHrCFd8/1nuDxRlqAACSWPPviBp0dN Jy474ECDCtNOA== Received: from [192.168.86.109] (qs51p00im-dlb-asmtp-mailmevip.me.com [17.57.155.28]) by qs51p00im-qukt01072501.me.com (Postfix) with ESMTPSA id 32C544400AA for ; Fri, 7 Feb 2025 20:29:27 +0000 (UTC) Message-ID: <75e91a02-a779-47f7-8c22-810012733dc7@icloud.com> Date: Fri, 7 Feb 2025 15:29:25 -0500 MIME-Version: 1.0 User-Agent: Icedove Daily Content-Language: en-US To: bug-guix@gnu.org From: Andrew Wong Subject: 'herd status' cannot handle inaccessible logfiles (shepherd 1.0.1) Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Proofpoint-ORIG-GUID: LsIGxj8Y4yH9BgFb02Ack_l1dY8Y-qeW X-Proofpoint-GUID: LsIGxj8Y4yH9BgFb02Ack_l1dY8Y-qeW X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-02-07_09,2025-02-07_03,2024-11-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 suspectscore=0 spamscore=0 mlxlogscore=370 clxscore=1015 adultscore=0 malwarescore=0 mlxscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2308100000 definitions=main-2502070153 Received-SPF: pass client-ip=17.57.155.14; envelope-from=wongandj@icloud.com; helo=qs51p00im-qukt01072501.me.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) 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: -0.0 (/) Hello, I've found a bug in shepherd 1.0.1. When a service has a log file in an 'inaccessible' location, e.g. a home service logging to /var/log, it causes 'herd status $service' to hang, as well as the overall 'herd service' command. I found it with this service[1] which silently failed to log, I guess, until I updated shepherd and found this bug. [1]: (service home-shepherd-service-type         (home-shepherd-configuration          (services           (list            (shepherd-service         (provision '(emacs))         (start #~(make-forkexec-constructor               (list #$(file-append emacs-pgtk-xwidgets "/bin/emacs")                 "--fg-daemon")               #:log-file "/var/log/emacs.log"))         (stop #~(make-kill-destructor))))))) ------------=_1739052003-28358-1--