From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id +PnNIeWxVGVlJwAAG6o9tA:P1 (envelope-from ) for ; Wed, 15 Nov 2023 12:56:21 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id +PnNIeWxVGVlJwAAG6o9tA (envelope-from ) for ; Wed, 15 Nov 2023 12:56:21 +0100 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 33F5235DF4 for ; Wed, 15 Nov 2023 12:56:21 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=none ("invalid DKIM record") header.d=freakingpenguin.com header.s=x header.b="pEZl6N/L"; 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=1700049381; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=H/KAbwhl+3n6of4fwiEoTmFCLomvebOs7omrEJjDxLs=; b=RiNAuKHii/23ytdyksv3Ccv1AfI9x1IeLpCt41vAet66WSfKiVVUdKlwDSZb5GVCBno4BZ jEzxo8P1wG7ABwv2w9SdYOvosxi5uhaw5eqy+m94mHmSVmmrWKActrLQdmKJB8+V/mElJF OfibkR63RVaBjlsr8f77hi9+Pjq1Bbznlv2YhCdNZUzgas7pVLWNtH8Z3NXI01ktYOIlek 26eNGHC7LruVng7gTjZIWQiqDRArC1w4QNO8P6C/r5HUJEU1E4CHFFSnebi67yPU+6bluP 6bsVcP0k7xXd4ubrDsUIIsZfQrT+XMDasmDtStfEDePfiHGQOLCxHqQh3z9wPQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none ("invalid DKIM record") header.d=freakingpenguin.com header.s=x header.b="pEZl6N/L"; 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-Seal: i=1; s=key1; d=yhetil.org; t=1700049381; a=rsa-sha256; cv=none; b=kRDiBT2SdXtGljNurF6DwW48TRH2F4f+jB9ERwsTkrcMLKUtxauVOgv2n9smL2PJvSzTyI 87vIHb9d3nuRHnA9uJW7xqKrSBBvK+EkiTVxLH50IBEGlumI25mTuO1KWeunaQBDc6feZ4 RcO4+Wpl+ieK7fpc0v0yU/lWn1NgpCJB73e4kshmHPHcBQqb+8GKq8XfQtknHZ1QKzrC1J qQAZ5vqZbBJdMi77ehjXaMp+d4WZPQZPYOHN94CBloQymHFw1R9/4Q0L5dSZvKiykFEJSc Uneod83XjUSnKI+GO9z7WPNg4NFeNFquBfzHQF9BqW/+KVYieBHBOkUa1h6GRQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r3EV2-00041E-GT; Wed, 15 Nov 2023 06:56:04 -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 1r359j-0008P1-15 for bug-guix@gnu.org; Tue, 14 Nov 2023 20:57:27 -0500 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 1r359i-0002iZ-Pl for bug-guix@gnu.org; Tue, 14 Nov 2023 20:57:26 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r35AP-0007Te-7A for bug-guix@gnu.org; Tue, 14 Nov 2023 20:58:09 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#65463: Herd `fport_write: Broken pipe` error when running `guix home reconfigure` References: <169277323322.1687.15739147838600524142@localhost> In-Reply-To: <169277323322.1687.15739147838600524142@localhost> Resent-From: richard@freakingpenguin.com Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 15 Nov 2023 01:58:09 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65463 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 65463@debbugs.gnu.org Received: via spool by 65463-submit@debbugs.gnu.org id=B65463.170001347728583 (code B ref 65463); Wed, 15 Nov 2023 01:58:09 +0000 Received: (at 65463) by debbugs.gnu.org; 15 Nov 2023 01:57:57 +0000 Received: from localhost ([127.0.0.1]:34417 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r35AD-0007Qx-4u for submit@debbugs.gnu.org; Tue, 14 Nov 2023 20:57:57 -0500 Received: from mail-108-mta235.mxroute.com ([136.175.108.235]:37875) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r358Y-0007Mr-Mt for 65463@debbugs.gnu.org; Tue, 14 Nov 2023 20:56:15 -0500 Received: from filter006.mxroute.com ([136.175.111.2] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta235.mxroute.com (ZoneMTA) with ESMTPSA id 18bd0b0c9c7000190b.001 for <65463@debbugs.gnu.org> (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Wed, 15 Nov 2023 01:55:28 +0000 X-Zone-Loop: 59b08dfd38df266e037affe1f847a82f7a7dd83b41d5 X-Originating-IP: [136.175.111.2] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=freakingpenguin.com; s=x; h=Content-Transfer-Encoding:Content-Type: Message-ID:Subject:To:From:Date:MIME-Version:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=H/KAbwhl+3n6of4fwiEoTmFCLomvebOs7omrEJjDxLs=; b=pEZl6N/LmSXhWc/Uh+BL+Rzhbp 5RvGG1JzLFHWTzHZXcF3K0HnXb8XwSP/mfvvxyc7APEiV3jCYrKpitSHSocMRSUqWboEEZoPr/SZH +271nGSICiDrISek7/Uv3uDmGGzyyLV2I6QPmYispB02xyMk1xxaKzXBVOjmhLhmIICLGlF0QlmdZ 3jZO9i+qSwrtok1MjotESPxhbqbgtusDq7T6/wAJ7UaQAkn87JFIi8eSAea/isKP4wiy8WS9h0dRG 8NmnWiTRIGvcvHd5AWUvZGawdVv29gdGnbzmHsD0CCPNzaBKOG8YZJBF6KcbnJDmXz+OrkF7en1Yo 3Hr1RhZw==; MIME-Version: 1.0 Date: Tue, 14 Nov 2023 20:55:26 -0500 From: richard@freakingpenguin.com Message-ID: <87107ca490c719dd1e9c7a75915ceaa8@freakingpenguin.com> X-Sender: richard@freakingpenguin.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated-Id: richard@freakingpenguin.com X-Mailman-Approved-At: Tue, 14 Nov 2023 20:57:56 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Wed, 15 Nov 2023 06:56:01 -0500 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-Spam-Score: -4.59 X-Spam-Score: -4.59 X-Migadu-Queue-Id: 33F5235DF4 X-Migadu-Scanner: mx10.migadu.com X-TUID: IO/fxN6Je4Fk Just throwing out that I'm also experiencing this issue, even with a home configuration containing a single service, that being home-gpg-agent-service. I've deployed the same configuration on two different machines at the same checkout and only experience the issue on one. The other machine works flawlessly. The only distinction between the two is that the working machine is using Guix on a foreign distribution while the nonworking machine is using Guix System. I do see the same behavior mentioned previously such as herd commands hanging. However, in my case there seems to be another negative symptom from shepherd acting this way. Various $ gpg commands will hang (presumably when they try invoking gpg-agent). Trying to manually invoke $ gpg-agent --daemon fails and hangs indefinitely without a message. This effectively makes gpg unusable. Barebones home-environment: --8<---------------cut here---------------start------------->8--- (home-environment (services (list (service home-gpg-agent-service-type (home-gpg-agent-configuration (pinentry-program (file-append pinentry-tty "/bin/pinentry-tty")) (ssh-support? #t)))))) --8<---------------cut here---------------end--------------->8--- herd status: --8<---------------cut here---------------start------------->8--- Started: + gpg-agent + root --8<---------------cut here---------------end--------------->8--- Interestingly when running $ gpg --card-status I see the following printed to the log: shepherd.log (nonworking machine): --8<---------------cut here---------------start------------->8--- 2023-11-14 19:23:06 Spawning systemd-style service /gnu/store/2zgdxhbnkz8fgsb1l4xydm3nbvj66mih-gnupg-2.2.39/bin/gpg-agent. 2023-11-14 19:23:06 L2023-11-14 19:23:06 oading /gnu/store/kzh1x4y030drw0jrdk08nynvvyasm3c1-shepherd.conf. --8<---------------cut here---------------end--------------->8--- shepherd.log (working machine): --8<---------------cut here---------------start------------->8--- 2023-11-14 19:43:39 Spawning systemd-style service /gnu/store/2zgdxhbnkz8fgsb1l4xydm3nbvj66mih-gnupg-2.2.39/bin/gpg-agent. 2023-11-14 19:43:39 Running value of service gpg-agent changed to 611. 2023-11-14 19:43:39 [gpg-agent] using fd 3 for ssh socket (/run/user/1000/gnupg/S.gpg-agent.ssh) 2023-11-14 19:43:39 [gpg-agent] using fd 4 for browser socket (/run/user/1000/gnupg/S.gpg-agent.browser) 2023-11-14 19:43:39 [gpg-agent] using fd 5 for extra socket (/run/user/1000/gnupg/S.gpg-agent.extra) 2023-11-14 19:43:39 [gpg-agent] using fd 6 for std socket (/run/user/1000/gnupg/S.gpg-agent) 2023-11-14 19:43:39 [gpg-agent] listing on: std=6 extra=5 browser=4 ssh=3) --8<---------------cut here---------------end--------------->8--- For some reason shepherd is rereading its configuration file instead of properly spawning the gpg-agent service. shepherd.conf and shepherd-gpg-agent-ssh-agent.scm (a file that appears in shepherd.conf) are identical between the two machines. shepherd.conf (working and nonworking machine): --8<---------------cut here---------------start------------->8--- (begin (use-modules (srfi srfi-34) (system repl error-handling)) (apply register-services (map (lambda (file) (load file)) (quote ("/gnu/store/6zcvlihqs5mniw2vly4w7z39lhai2grz-shepherd-gpg-agent-ssh-agent.scm")))) (action (quote root) (quote daemonize)) (format #t "Starting services...~%") (let ((services-to-start (quote (gpg-agent ssh-agent)))) (if (defined? (quote start-in-the-background)) (start-in-the-background services-to-start) (for-each start services-to-start)) (redirect-port (open-input-file "/dev/null") (current-input-port)))) --8<---------------cut here---------------end--------------->8--- Sorry if this is too much or not helpful! First time on the mailing list.