From unknown Thu Aug 14 21:51:50 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#48240 <48240@debbugs.gnu.org> To: bug#48240 <48240@debbugs.gnu.org> Subject: Status: =?UTF-8?Q?=E2=80=9Cguix_?= =?UTF-8?Q?copy=E2=80=9D?= to host with daemon listening on TCP fails Reply-To: bug#48240 <48240@debbugs.gnu.org> Date: Fri, 15 Aug 2025 04:51:50 +0000 retitle 48240 =E2=80=9Cguix copy=E2=80=9D to host with daemon listening on = TCP fails reassign 48240 guix submitter 48240 Ricardo Wurmus severity 48240 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed May 05 12:04:49 2021 Received: (at submit) by debbugs.gnu.org; 5 May 2021 16:04:49 +0000 Received: from localhost ([127.0.0.1]:33040 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1leK13-0003lR-KL for submit@debbugs.gnu.org; Wed, 05 May 2021 12:04:49 -0400 Received: from lists.gnu.org ([209.51.188.17]:59220) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1leK10-0003lI-PZ for submit@debbugs.gnu.org; Wed, 05 May 2021 12:04:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58984) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1leK10-0003bi-Iz for bug-guix@gnu.org; Wed, 05 May 2021 12:04:46 -0400 Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21196) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1leK0p-00018f-68 for bug-guix@gnu.org; Wed, 05 May 2021 12:04:46 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1620230668; cv=none; d=zohomail.com; s=zohoarc; b=BjKKE2rApNou7LHDMwObRA+mgDZLqNfkZZmHPhJaAbwpN4Lm9y/QWxv+De6Wf3CiO7bIno8HHES+wIxHyWk4G1ZNO3u+ea4xvyZYkrQ3HDIXy8hvM5o8i2FwrkSZ9YHw3tLCFb3oZ6vfR8AjesYdonnVrIyI0BPQYq5J8ljHyes= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1620230668; h=Content-Type:Content-Transfer-Encoding:Date:From:MIME-Version:Message-ID:Subject:To; bh=1eQFKXe3fWOXMUtMmTRE0EvxyCJV0U8wYQtaVsVHs0A=; b=ObBMJut+swWUcF8NCfwi+BK5IhUJyxaK5FSu74nT3xG0OMpI6r+WNZpvx5IhWF0e8nMaRgVOLm/62l1KkUI1SXPXG5FBummVhafAQwA11a8HbXMHrfFQU5TcCcp9dq01nhqwWdfswxQgYYEgmPhxM6i+UNLtEHEJsBiiGbc25R0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1620230668; s=zoho; d=elephly.net; i=rekado@elephly.net; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=1eQFKXe3fWOXMUtMmTRE0EvxyCJV0U8wYQtaVsVHs0A=; b=K0KShcfQK7gWmhip2o1IfN0NP6CtwziYpTZoVTuxdMcFfDWMb+UclHpeopf2D1nA APFVwFpoX/Ugyt79bn/Xr+HkU+iXHW62pvEGr4dTfL1OLqB4BcJakv3KzY8m7f94mls ZIjWwFlrAdMogtgXJNj/RovOOHADVw5M89D/8Jts= Received: from localhost (p54ad4e01.dip0.t-ipconnect.de [84.173.78.1]) by mx.zohomail.com with SMTPS id 1620230660052205.82539432529268; Wed, 5 May 2021 09:04:20 -0700 (PDT) User-agent: mu4e 1.4.15; emacs 27.2 From: Ricardo Wurmus To: bug-guix@gnu.org Subject: =?utf-8?B?4oCcZ3VpeCBjb3B54oCd?= to host with daemon listening on TCP fails X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Wed, 05 May 2021 18:04:16 +0200 Message-ID: <87a6p9rwu7.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.51; envelope-from=rekado@elephly.net; helo=sender4-of-o51.zoho.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=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.3 (-) 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.3 (--) There are two hosts running Guix. The target host runs=20 =E2=80=9Cguix-daemon=E2=80=9D with =E2=80=9C--listen=3D0.0.0.0:9999=E2=80= =9D; it does not listen on=20 a local socket file. Trying to copy store items to the target=20 host fails with this backtrace: --8<---------------cut here---------------start------------->8--- [me@here:~] (1028) $ guix copy --to=3Dthere /gnu/store/=E2=80=A6-profile Backtrace: 12 (primitive-load=20 "/gnu/store/9qjkzhlwj2792iczsyfx9n7c23g=E2=80=A6") In guix/ui.scm: 2165:12 11 (run-guix-command _ . _) In ice-9/boot-9.scm: 1736:10 10 (with-exception-handler _ _ #:unwind? _ # _) 1731:15 9 (with-exception-handler # =E2=80=A6) 1736:10 8 (with-exception-handler _ _ #:unwind? _ # _) In guix/store.scm: 636:37 7 (thunk) 1305:8 6 (call-with-build-handler _ _) 1305:8 5 (call-with-build-handler # =E2=80=A6) In guix/status.scm: 799:4 4 (call-with-status-report _ _) In guix/scripts/copy.scm: 76:25 3 (_) In guix/ssh.scm: 485:39 2 (send-files # _=20 #f =E2=80=A6) In ice-9/boot-9.scm: 1669:16 1 (raise-exception _ #:continuable? _) 1669:16 0 (raise-exception _ #:continuable? _) ice-9/boot-9.scm:1669:16: In procedure raise-exception: In procedure struct-vtable: Wrong type argument in position 1=20 (expecting struct): #f --8<---------------cut here---------------end--------------->8--- The (guix ssh) appears to assume that the remote daemon listens on=20 a socket file. Telling the daemon to also listen on a socket file=20 works around this problem<. --=20 Ricardo From debbugs-submit-bounces@debbugs.gnu.org Wed May 05 17:32:23 2021 Received: (at 48240) by debbugs.gnu.org; 5 May 2021 21:32:23 +0000 Received: from localhost ([127.0.0.1]:34614 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1leP83-0004q3-2D for submit@debbugs.gnu.org; Wed, 05 May 2021 17:32:23 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35686) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1leP82-0004pv-4t for 48240@debbugs.gnu.org; Wed, 05 May 2021 17:32:22 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:33912) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1leP7w-0007r0-QW; Wed, 05 May 2021 17:32:16 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=56410 helo=gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1leP7w-0005m1-JH; Wed, 05 May 2021 17:32:16 -0400 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= To: 48240@debbugs.gnu.org Subject: [PATCH 2/4] ssh: 'connect-to-remote-daemon' raises a nicer message upon error. Date: Wed, 5 May 2021 23:32:03 +0200 Message-Id: <20210505213205.28519-2-ludo@gnu.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210505213205.28519-1-ludo@gnu.org> References: <87a6p9rwu7.fsf@elephly.net> <20210505213205.28519-1-ludo@gnu.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 48240 Cc: =?UTF-8?q?Ludovic=20Court=C3=A8s?= 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 (---) * guix/ssh.scm (connect-to-remote-daemon): Catch 'store-connection-error?' and rethrow. --- guix/ssh.scm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/guix/ssh.scm b/guix/ssh.scm index 457d1890f9..b39b90f733 100644 --- a/guix/ssh.scm +++ b/guix/ssh.scm @@ -302,8 +302,13 @@ EXP never returns or calls 'primitive-exit' when it's done." "/var/guix/daemon-socket/socket")) "Connect to the remote build daemon listening on SOCKET-NAME over SESSION, an SSH session. Return a object." - (open-connection #:port (remote-daemon-channel session socket-name))) - + (guard (c ((store-connection-error? c) + ;; Raise a more focused error condition. + (raise (formatted-message + (G_ "failed to connect over SSH to daemon at '~a', socket ~a") + (session-get session 'host) + socket-name)))) + (open-connection #:port (remote-daemon-channel session socket-name)))) (define (store-import-channel session) "Return an output port to which archives to be exported to SESSION's store -- 2.31.1 From debbugs-submit-bounces@debbugs.gnu.org Wed May 05 17:32:25 2021 Received: (at 48240) by debbugs.gnu.org; 5 May 2021 21:32:25 +0000 Received: from localhost ([127.0.0.1]:34618 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1leP85-0004qP-8u for submit@debbugs.gnu.org; Wed, 05 May 2021 17:32:25 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35670) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1leP81-0004pu-HJ for 48240@debbugs.gnu.org; Wed, 05 May 2021 17:32:23 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:33910) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1leP7w-0007pw-9K; Wed, 05 May 2021 17:32:16 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=56410 helo=gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1leP7w-0005m1-25; Wed, 05 May 2021 17:32:16 -0400 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= To: 48240@debbugs.gnu.org Subject: [PATCH 1/4] store: 'open-connection' never returns #f. Date: Wed, 5 May 2021 23:32:02 +0200 Message-Id: <20210505213205.28519-1-ludo@gnu.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <87a6p9rwu7.fsf@elephly.net> References: <87a6p9rwu7.fsf@elephly.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 48240 Cc: =?UTF-8?q?Ludovic=20Court=C3=A8s?= 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 (---) * guix/store.scm (open-connection)[handshake-error]: New procedure. Call it in code paths that would previously return #f. --- guix/store.scm | 66 +++++++++++++++++++++++++++----------------------- 1 file changed, 36 insertions(+), 30 deletions(-) diff --git a/guix/store.scm b/guix/store.scm index 37ae6cfedd..315ae4cdce 100644 --- a/guix/store.scm +++ b/guix/store.scm @@ -548,13 +548,16 @@ space on the file system so that the garbage collector can still operate, should the disk become full. When CPU-AFFINITY is true, it must be an integer corresponding to an OS-level CPU number to which the daemon's worker process for this connection will be pinned. Return a server object." + (define (handshake-error) + (raise (condition + (&store-connection-error (file (or port uri)) + (errno EPROTO)) + (&message (message "build daemon handshake failed"))))) + (guard (c ((nar-error? c) ;; One of the 'write-' or 'read-' calls below failed, but this is ;; really a connection error. - (raise (condition - (&store-connection-error (file (or port uri)) - (errno EPROTO)) - (&message (message "build daemon handshake failed")))))) + (handshake-error))) (let*-values (((port) (or port (connect-to-daemon uri))) ((output flush) @@ -562,32 +565,35 @@ for this connection will be pinned. Return a server object." (make-bytevector 8192)))) (write-int %worker-magic-1 port) (let ((r (read-int port))) - (and (= r %worker-magic-2) - (let ((v (read-int port))) - (and (= (protocol-major %protocol-version) - (protocol-major v)) - (begin - (write-int %protocol-version port) - (when (>= (protocol-minor v) 14) - (write-int (if cpu-affinity 1 0) port) - (when cpu-affinity - (write-int cpu-affinity port))) - (when (>= (protocol-minor v) 11) - (write-int (if reserve-space? 1 0) port)) - (letrec* ((built-in-builders - (delay (%built-in-builders conn))) - (conn - (%make-store-connection port - (protocol-major v) - (protocol-minor v) - output flush - (make-hash-table 100) - (make-hash-table 100) - vlist-null - built-in-builders))) - (let loop ((done? (process-stderr conn))) - (or done? (process-stderr conn))) - conn))))))))) + (unless (= r %worker-magic-2) + (handshake-error)) + + (let ((v (read-int port))) + (unless (= (protocol-major %protocol-version) + (protocol-major v)) + (handshake-error)) + + (write-int %protocol-version port) + (when (>= (protocol-minor v) 14) + (write-int (if cpu-affinity 1 0) port) + (when cpu-affinity + (write-int cpu-affinity port))) + (when (>= (protocol-minor v) 11) + (write-int (if reserve-space? 1 0) port)) + (letrec* ((built-in-builders + (delay (%built-in-builders conn))) + (conn + (%make-store-connection port + (protocol-major v) + (protocol-minor v) + output flush + (make-hash-table 100) + (make-hash-table 100) + vlist-null + built-in-builders))) + (let loop ((done? (process-stderr conn))) + (or done? (process-stderr conn))) + conn)))))) (define* (port->connection port #:key (version %protocol-version)) -- 2.31.1 From debbugs-submit-bounces@debbugs.gnu.org Wed May 05 17:32:26 2021 Received: (at 48240) by debbugs.gnu.org; 5 May 2021 21:32:26 +0000 Received: from localhost ([127.0.0.1]:34620 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1leP86-0004qW-Iz for submit@debbugs.gnu.org; Wed, 05 May 2021 17:32:26 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35694) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1leP84-0004px-11 for 48240@debbugs.gnu.org; Wed, 05 May 2021 17:32:24 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:33914) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1leP7x-0007rj-Bh; Wed, 05 May 2021 17:32:18 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=56410 helo=gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1leP7x-0005m1-4J; Wed, 05 May 2021 17:32:17 -0400 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= To: 48240@debbugs.gnu.org Subject: [PATCH 3/4] store: Export 'connect-to-daemon'. Date: Wed, 5 May 2021 23:32:04 +0200 Message-Id: <20210505213205.28519-3-ludo@gnu.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210505213205.28519-1-ludo@gnu.org> References: <87a6p9rwu7.fsf@elephly.net> <20210505213205.28519-1-ludo@gnu.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 48240 Cc: =?UTF-8?q?Ludovic=20Court=C3=A8s?= 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 (---) * guix/store.scm (connect-to-daemon): Make public. Improve docstring. --- guix/store.scm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/guix/store.scm b/guix/store.scm index 315ae4cdce..9d706ae590 100644 --- a/guix/store.scm +++ b/guix/store.scm @@ -90,6 +90,7 @@ hash-algo build-mode + connect-to-daemon open-connection port->connection close-connection @@ -501,7 +502,10 @@ (define (connect-to-daemon uri) "Connect to the daemon at URI, a string that may be an actual URI or a file -name." +name, and return an input/output port. + +This is a low-level procedure that does not perform the initial handshake with +the daemon. Use 'open-connection' for that." (define (not-supported) (raise (condition (&store-connection-error (file uri) -- 2.31.1 From debbugs-submit-bounces@debbugs.gnu.org Wed May 05 17:32:27 2021 Received: (at 48240) by debbugs.gnu.org; 5 May 2021 21:32:27 +0000 Received: from localhost ([127.0.0.1]:34622 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1leP86-0004qY-Pi for submit@debbugs.gnu.org; Wed, 05 May 2021 17:32:27 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35690) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1leP84-0004pw-0u for 48240@debbugs.gnu.org; Wed, 05 May 2021 17:32:24 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:33916) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1leP7x-0007ru-St; Wed, 05 May 2021 17:32:18 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=56410 helo=gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1leP7x-0005m1-Le; Wed, 05 May 2021 17:32:17 -0400 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= To: 48240@debbugs.gnu.org Subject: [PATCH 4/4] ssh: Honor GUIX_DAEMON_SOCKET on the target machine. Date: Wed, 5 May 2021 23:32:05 +0200 Message-Id: <20210505213205.28519-4-ludo@gnu.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210505213205.28519-1-ludo@gnu.org> References: <87a6p9rwu7.fsf@elephly.net> <20210505213205.28519-1-ludo@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 48240 Cc: =?UTF-8?q?Ludovic=20Court=C3=A8s?= 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 (---) Fixes . Reported by Ricardo Wurmus . * guix/ssh.scm (remote-daemon-channel)[redirect]: Define 'connect-to-daemon'. Use the same-named procedure from (guix store) when available, and honor GUIX_DAEMON_SOCKET. --- guix/ssh.scm | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/guix/ssh.scm b/guix/ssh.scm index b39b90f733..77a9732ce5 100644 --- a/guix/ssh.scm +++ b/guix/ssh.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright © 2016, 2017, 2018, 2019, 2020 Ludovic Courtès +;;; Copyright © 2016, 2017, 2018, 2019, 2020, 2021, 2021 Ludovic Courtès ;;; ;;; This file is part of GNU Guix. ;;; @@ -253,7 +253,22 @@ EXP never returns or calls 'primitive-exit' when it's done." (use-modules (ice-9 match) (rnrs io ports) (rnrs bytevectors)) - (let ((sock (socket AF_UNIX SOCK_STREAM 0)) + (define connect-to-daemon + ;; XXX: 'connect-to-daemon' used to be private and before that it + ;; didn't even exist, hence these shenanigans. + (let ((connect-to-daemon + (false-if-exception (module-ref (resolve-module '(guix store)) + 'connect-to-daemon)))) + (lambda (uri) + (if connect-to-daemon + (connect-to-daemon uri) + (let ((sock (socket AF_UNIX SOCK_STREAM 0))) + (connect sock AF_UNIX ,socket-name) + sock))))) + + ;; Use 'connect-to-daemon' to honor GUIX_DAEMON_SOCKET. + (let ((sock (connect-to-daemon (or (getenv "GUIX_DAEMON_SOCKET") + socket-name))) (stdin (current-input-port)) (stdout (current-output-port)) (select* (lambda (read write except) @@ -272,8 +287,6 @@ EXP never returns or calls 'primitive-exit' when it's done." (setvbuf stdin 'block 65536) (setvbuf sock 'block 65536) - (connect sock AF_UNIX ,socket-name) - (let loop () (match (select* (list stdin sock) '() '()) ((reads () ()) -- 2.31.1 From debbugs-submit-bounces@debbugs.gnu.org Sat May 08 09:10:47 2021 Received: (at 48240-done) by debbugs.gnu.org; 8 May 2021 13:10:47 +0000 Received: from localhost ([127.0.0.1]:50228 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfMjH-00018U-8n for submit@debbugs.gnu.org; Sat, 08 May 2021 09:10:47 -0400 Received: from eggs.gnu.org ([209.51.188.92]:48292) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfMjG-00018J-0Y for 48240-done@debbugs.gnu.org; Sat, 08 May 2021 09:10:46 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:33480) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lfMjA-0002IP-Mx; Sat, 08 May 2021 09:10:40 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=55000 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lfMjA-0007Pl-Cd; Sat, 08 May 2021 09:10:40 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Ricardo Wurmus Subject: Re: bug#48240: =?utf-8?B?4oCcZ3VpeCBjb3B54oCd?= to host with daemon listening on TCP fails References: <87a6p9rwu7.fsf@elephly.net> Date: Sat, 08 May 2021 15:10:39 +0200 In-Reply-To: <87a6p9rwu7.fsf@elephly.net> (Ricardo Wurmus's message of "Wed, 05 May 2021 18:04:16 +0200") Message-ID: <875yzt8j74.fsf@gnu.org> 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: -2.3 (--) X-Debbugs-Envelope-To: 48240-done Cc: 48240-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, Ricardo Wurmus skribis: > There are two hosts running Guix. The target host runs=20 > =E2=80=9Cguix-daemon=E2=80=9D with =E2=80=9C--listen=3D0.0.0.0:9999=E2=80= =9D; it does not listen on=20 > a local socket file. Trying to copy store items to the target=20 > host fails with this backtrace: I pushed the four patches as 3270308eebe82075d2f02517c5a2b1599928495c. Let me know if anything=E2=80=99s amiss! Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Tue May 11 04:42:53 2021 Received: (at 48240) by debbugs.gnu.org; 11 May 2021 08:42:53 +0000 Received: from localhost ([127.0.0.1]:34874 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgNyf-0002Ag-7P for submit@debbugs.gnu.org; Tue, 11 May 2021 04:42:53 -0400 Received: from smtprelay02.ispgateway.de ([80.67.31.40]:47972) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgNyd-0002AT-Nj for 48240@debbugs.gnu.org; Tue, 11 May 2021 04:42:52 -0400 Received: from [2.247.250.224] (helo=milk) by smtprelay02.ispgateway.de with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1lgNyL-0002XL-BZ; Tue, 11 May 2021 10:42:33 +0200 From: Simon Streit To: 48240@debbugs.gnu.org Subject: =?utf-8?B?4oCcZ3VpeF8gY29weeKAnQ==?= to host with daemon listening on TCP fails Gcc: nnfolder+archive:sent.2021-05 Date: Tue, 11 May 2021 10:43:26 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Df-Sender: bGlzdHNAbmV0cGFuaWMub3Jn X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 48240 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! After reinstalling my system last night, I run into this problem too, that I couldn't offload. Then it was suggested I checkout to commit dd14678b9b9843be20e2bbb98ceb30d2433dab82 and force downgrade my new system. While doing so, I noticed that guix-daemon would still offload, while if I'd type in `guix offload test`, I'd get a response: --8<---------------cut here---------------start------------->8--- guix offload: testing 1 build machines defined in '/etc/guix/machines.scm'... guix offload: Guix is usable on 'host' (test returned "/gnu/store/883yjkl46dxw9mzykykmbs0yzwyxm17z-test") guix offload: 'host' is running GNU Guile 3.0.5 guix offload: error: failed to connect over SSH to daemon at 'host', socket /var/guix/daemon-socket/socket --8<---------------cut here---------------end--------------->8--- Anyway, back to this old commit offloading works for all users. The commit with this broken behaviour is at: 87b4b0e4385149b40ee87ae2d57712679452746b. Cheers Simon From debbugs-submit-bounces@debbugs.gnu.org Tue May 11 05:56:45 2021 Received: (at 48240) by debbugs.gnu.org; 11 May 2021 09:56:45 +0000 Received: from localhost ([127.0.0.1]:35043 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgP89-0004UH-A2 for submit@debbugs.gnu.org; Tue, 11 May 2021 05:56:45 -0400 Received: from eggs.gnu.org ([209.51.188.92]:49556) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgP87-0004U2-Hk for 48240@debbugs.gnu.org; Tue, 11 May 2021 05:56:43 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:44058) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgP81-0000jQ-PS; Tue, 11 May 2021 05:56:37 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=41576 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgP7z-0007ZP-Sj; Tue, 11 May 2021 05:56:37 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Simon Streit Subject: Re: bug#48240: =?utf-8?B?4oCcZ3VpeCBjb3B54oCd?= to host with daemon listening on TCP fails References: <87a6p9rwu7.fsf@elephly.net> Date: Tue, 11 May 2021 11:56:34 +0200 In-Reply-To: (Simon Streit's message of "Tue, 11 May 2021 10:43:26 +0200") Message-ID: <87pmxx386l.fsf_-_@gnu.org> 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: -2.3 (--) X-Debbugs-Envelope-To: 48240 Cc: 48240@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, Simon Streit skribis: > Then it was suggested I checkout to commit > dd14678b9b9843be20e2bbb98ceb30d2433dab82 and force downgrade my new > system. While doing so, I noticed that guix-daemon would still offload, > while if I'd type in `guix offload test`, I'd get a response: > > guix offload: testing 1 build machines defined in '/etc/guix/machines.scm= '... > guix offload: Guix is usable on 'host' (test returned "/gnu/store/883yjkl= 46dxw9mzykykmbs0yzwyxm17z-test") > guix offload: 'host' is running GNU Guile 3.0.5 > guix offload: error: failed to connect over SSH to daemon at 'host', sock= et /var/guix/daemon-socket/socket > > Anyway, back to this old commit offloading works for all users.=20 Is the socket file name displayed above correct? Or did you specify something else in the record? Is the =E2=80=98GUIX_DAEMON_SOCKET=E2=80=99 environment variable defined on= that machine? How do you run guix-daemon on the head node? The patches discussed here haven=E2=80=99t made it into the =E2=80=98guix=E2=80=99 package yet AFAIK. Thanks for reporting the issue! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Tue May 11 06:52:22 2021 Received: (at 48240) by debbugs.gnu.org; 11 May 2021 10:52:23 +0000 Received: from localhost ([127.0.0.1]:35148 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgPzy-0006IK-OY for submit@debbugs.gnu.org; Tue, 11 May 2021 06:52:22 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35812) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgPzx-0006I6-8G for 48240@debbugs.gnu.org; Tue, 11 May 2021 06:52:21 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:45274) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgPzs-0008Ld-0B; Tue, 11 May 2021 06:52:16 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=41974 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgPzr-0007za-DW; Tue, 11 May 2021 06:52:15 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Simon Streit Subject: Re: bug#48240: =?utf-8?B?4oCcZ3VpeCBjb3B54oCd?= to host with daemon listening on TCP fails References: <87a6p9rwu7.fsf@elephly.net> Date: Tue, 11 May 2021 12:52:14 +0200 In-Reply-To: (Simon Streit's message of "Tue, 11 May 2021 10:43:26 +0200") Message-ID: <87cztx1r1d.fsf_-_@gnu.org> 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: -2.3 (--) X-Debbugs-Envelope-To: 48240 Cc: 48240@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, Simon Streit skribis: > Then it was suggested I checkout to commit > dd14678b9b9843be20e2bbb98ceb30d2433dab82 and force downgrade my new > system. While doing so, I noticed that guix-daemon would still offload, > while if I'd type in `guix offload test`, I'd get a response: > > guix offload: testing 1 build machines defined in '/etc/guix/machines.scm= '... > guix offload: Guix is usable on 'host' (test returned "/gnu/store/883yjkl= 46dxw9mzykykmbs0yzwyxm17z-test") > guix offload: 'host' is running GNU Guile 3.0.5 > guix offload: error: failed to connect over SSH to daemon at 'host', sock= et /var/guix/daemon-socket/socket > > Anyway, back to this old commit offloading works for all users.=20 > > The commit with this broken behaviour is at: > 87b4b0e4385149b40ee87ae2d57712679452746b. Fixed in da28efef36af8925bcd9e40a81cbf552cf8c2d02. Let me know if it works for you! Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Tue May 11 10:04:19 2021 Received: (at submit) by debbugs.gnu.org; 11 May 2021 14:04:19 +0000 Received: from localhost ([127.0.0.1]:36974 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgSzf-00061j-6v for submit@debbugs.gnu.org; Tue, 11 May 2021 10:04:19 -0400 Received: from lists.gnu.org ([209.51.188.17]:38868) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgSzY-00061O-IP for submit@debbugs.gnu.org; Tue, 11 May 2021 10:04:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39626) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgSzY-00026I-5C for bug-guix@gnu.org; Tue, 11 May 2021 10:04:08 -0400 Received: from knopi.disroot.org ([178.21.23.139]:45304) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgSzS-0006El-3q; Tue, 11 May 2021 10:04:07 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id E37F653B44; Tue, 11 May 2021 16:03:59 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with UTF8SMTP id KWugJagkpOqB; Tue, 11 May 2021 16:03:58 +0200 (CEST) References: <87a6p9rwu7.fsf@elephly.net> <87cztx1r1d.fsf_-_@gnu.org> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1620741809; bh=2CPspR33HQ/sjKM6nR+pNxUhWTCXMb8egSrbgpBwLkM=; h=References:From:To:Cc:Subject:In-reply-to:Date; b=deG81rbLxVs7jLkKCUUkHiYWg1hOAhHbS5CRDjA0G6luBEAUghxfUMCNjXnx5XmJR DUu2+KhYmJ3N8pcbjkcQrvcz33fPt66w2Kf37mEV/J2WoNg4B/LD0zd/U/ojxcRF15 /tmRppOh8Bi9NHxFOmmf4kyqPerRCyzXr/asdDToYRSuh46s5znlLG+FsUnhn1Ji/8 wTXOSDkb0hv/bBDbzXbdXcUj4tFVgkzfxEtUBQzYqOiimrfKgFAYUmc/mgpofevQG7 8Hir2Om6gBFLXOX5Zohc3ZnvmO2jLB9TMnJYZt/Of3Xeer2IbUiWr7UuR9uSAZZTxB zdwW1JOaHTvEw== From: Bone Baboon To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#48240: =?utf-8?B?4oCcZ3VpeCBjb3B54oCd?= to host with daemon listening on TCP fails In-reply-to: <87cztx1r1d.fsf_-_@gnu.org> Date: Tue, 11 May 2021 10:01:50 -0400 Message-ID: <87fsytfjxt.fsf@disroot.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=178.21.23.139; envelope-from=bone.baboon@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit Cc: Simon Streit , bug-guix@gnu.org, 48240@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: -2.4 (--) Ludovic Court=C3=A8s writes: > Fixed in da28efef36af8925bcd9e40a81cbf552cf8c2d02. Let me know if it > works for you! This commit appears to have fixed a problem with guix copy that I was having yesterday. I was getting this error "guix copy: error: failed to connect over SSH to daemon at '', socket /var/guix/daemon-socket/socket". Now I can successfully run guix copy. From debbugs-submit-bounces@debbugs.gnu.org Tue May 11 17:22:45 2021 Received: (at submit) by debbugs.gnu.org; 11 May 2021 21:22:46 +0000 Received: from localhost ([127.0.0.1]:37662 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgZq1-0006eW-OO for submit@debbugs.gnu.org; Tue, 11 May 2021 17:22:45 -0400 Received: from lists.gnu.org ([209.51.188.17]:45366) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgZpz-0006eN-Nh for submit@debbugs.gnu.org; Tue, 11 May 2021 17:22:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48920) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgZpz-0004Gx-I9 for bug-guix@gnu.org; Tue, 11 May 2021 17:22:43 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:38436) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgZpy-0004o7-Pi; Tue, 11 May 2021 17:22:42 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=33442 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgZpx-00034k-Dc; Tue, 11 May 2021 17:22:42 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Bone Baboon Subject: Re: bug#48240: =?utf-8?B?4oCcZ3VpeCBjb3B54oCd?= to host with daemon listening on TCP fails References: <87a6p9rwu7.fsf@elephly.net> <87cztx1r1d.fsf_-_@gnu.org> <87fsytfjxt.fsf@disroot.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 22 =?utf-8?Q?Flor=C3=A9al?= an 229 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Tue, 11 May 2021 23:22:40 +0200 In-Reply-To: <87fsytfjxt.fsf@disroot.org> (Bone Baboon's message of "Tue, 11 May 2021 10:01:50 -0400") Message-ID: <87cztxufrz.fsf@gnu.org> 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: -2.3 (--) X-Debbugs-Envelope-To: submit Cc: Simon Streit , bug-guix@gnu.org, 48240@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 (---) Bone Baboon skribis: > Ludovic Court=C3=A8s writes: >> Fixed in da28efef36af8925bcd9e40a81cbf552cf8c2d02. Let me know if it >> works for you! > > This commit appears to have fixed a problem with guix copy that I was > having yesterday. I was getting this error "guix copy: error: failed to > connect over SSH to daemon at '', socket > /var/guix/daemon-socket/socket". > > Now I can successfully run guix copy. Thanks for confirming! From debbugs-submit-bounces@debbugs.gnu.org Wed May 12 03:47:29 2021 Received: (at 48240) by debbugs.gnu.org; 12 May 2021 07:47:29 +0000 Received: from localhost ([127.0.0.1]:38067 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgjab-0008PM-Dy for submit@debbugs.gnu.org; Wed, 12 May 2021 03:47:29 -0400 Received: from smtprelay03.ispgateway.de ([80.67.18.15]:58622) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgjaa-0008PC-8G for 48240@debbugs.gnu.org; Wed, 12 May 2021 03:47:28 -0400 Received: from [2.247.248.193] (helo=milk) by smtprelay03.ispgateway.de with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1lgjae-0007Im-44; Wed, 12 May 2021 09:47:32 +0200 From: Simon Streit To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#48240: =?utf-8?B?4oCcZ3VpeCBjb3B54oCd?= to host with daemon listening on TCP fails References: <87a6p9rwu7.fsf@elephly.net> <87pmxx386l.fsf_-_@gnu.org> Gcc: nnfolder+archive:sent.2021-05 Date: Wed, 12 May 2021 09:48:04 +0200 In-Reply-To: <87pmxx386l.fsf_-_@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s?= =?utf-8?Q?=22's?= message of "Tue, 11 May 2021 11:56:34 +0200") Message-ID: 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-Df-Sender: bGlzdHNAbmV0cGFuaWMub3Jn X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 48240 Cc: 48240@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: -1.0 (-) Ludovic Court=C3=A8s writes: > Simon Streit skribis: >> Anyway, back to this old commit offloading works for all users.=20 > > Is the socket file name displayed above correct? Or did you specify > something else in the record? No, nothing that I'm aware about. I haven't made any special changes.=20 > > Is the =E2=80=98GUIX_DAEMON_SOCKET=E2=80=99 environment variable defined = on that > machine? No. > > How do you run guix-daemon on the head node? The patches discussed here > haven=E2=80=99t made it into the =E2=80=98guix=E2=80=99 package yet AFAIK. That is a Guix system, where I've got an extra user with no extra group permisions that takes the requests for offloading the clients make. Thinking about it, the host isn't fully updated. Its current checkout is, or was at the time of reporting to this issue: 407e0af6aa465479d08dafb125d06d50109f1822 Cheers! From debbugs-submit-bounces@debbugs.gnu.org Wed May 12 03:48:55 2021 Received: (at 48240) by debbugs.gnu.org; 12 May 2021 07:48:55 +0000 Received: from localhost ([127.0.0.1]:38071 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgjby-0008Rf-SI for submit@debbugs.gnu.org; Wed, 12 May 2021 03:48:54 -0400 Received: from smtprelay08.ispgateway.de ([134.119.228.107]:42719) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgjbx-0008RV-AF for 48240@debbugs.gnu.org; Wed, 12 May 2021 03:48:54 -0400 Received: from [2.247.248.193] (helo=milk) by smtprelay08.ispgateway.de with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1lgjbd-000217-JD; Wed, 12 May 2021 09:48:33 +0200 From: Simon Streit To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#48240: =?utf-8?B?4oCcZ3VpeCBjb3B54oCd?= to host with daemon listening on TCP fails References: <87a6p9rwu7.fsf@elephly.net> <87cztx1r1d.fsf_-_@gnu.org> Gcc: nnfolder+archive:sent.2021-05 Date: Wed, 12 May 2021 09:49:30 +0200 In-Reply-To: <87cztx1r1d.fsf_-_@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s?= =?utf-8?Q?=22's?= message of "Tue, 11 May 2021 12:52:14 +0200") Message-ID: 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-Df-Sender: bGlzdHNAbmV0cGFuaWMub3Jn X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 48240 Cc: 48240@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: -1.0 (-) Ludovic Court=C3=A8s writes: > Fixed in da28efef36af8925bcd9e40a81cbf552cf8c2d02. Let me know if it > works for you! I'll try it later. I missed this mail yesterday. Cheers!=20 From debbugs-submit-bounces@debbugs.gnu.org Wed May 12 15:44:16 2021 Received: (at 48240) by debbugs.gnu.org; 12 May 2021 19:44:16 +0000 Received: from localhost ([127.0.0.1]:40636 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgumG-0004Y2-Ha for submit@debbugs.gnu.org; Wed, 12 May 2021 15:44:16 -0400 Received: from smtprelay07.ispgateway.de ([134.119.228.97]:19052) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgumE-0004Xr-0h for 48240@debbugs.gnu.org; Wed, 12 May 2021 15:44:14 -0400 Received: from [91.40.245.20] (helo=milk) by smtprelay07.ispgateway.de with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1lguli-0001VQ-IJ; Wed, 12 May 2021 21:43:42 +0200 From: Simon Streit To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#48240: =?utf-8?B?4oCcZ3VpeCBjb3B54oCd?= to host with daemon listening on TCP fails References: <87a6p9rwu7.fsf@elephly.net> <87cztx1r1d.fsf_-_@gnu.org> Gcc: nnfolder+archive:sent.2021-05 Date: Wed, 12 May 2021 21:44:51 +0200 In-Reply-To: <87cztx1r1d.fsf_-_@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s?= =?utf-8?Q?=22's?= message of "Tue, 11 May 2021 12:52:14 +0200") Message-ID: 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-Df-Sender: bGlzdHNAbmV0cGFuaWMub3Jn X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 48240 Cc: 48240@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: -1.0 (-) Ludovic Court=C3=A8s writes: > Hi, > > Simon Streit skribis: > >> Then it was suggested I checkout to commit >> dd14678b9b9843be20e2bbb98ceb30d2433dab82 and force downgrade my new >> system. While doing so, I noticed that guix-daemon would still offload, >> while if I'd type in `guix offload test`, I'd get a response: >> >> guix offload: testing 1 build machines defined in '/etc/guix/machines.sc= m'... >> guix offload: Guix is usable on 'host' (test returned "/gnu/store/883yjk= l46dxw9mzykykmbs0yzwyxm17z-test") >> guix offload: 'host' is running GNU Guile 3.0.5 >> guix offload: error: failed to connect over SSH to daemon at 'host', soc= ket /var/guix/daemon-socket/socket >> >> Anyway, back to this old commit offloading works for all users. >> >> The commit with this broken behaviour is at: >> 87b4b0e4385149b40ee87ae2d57712679452746b. > > Fixed in da28efef36af8925bcd9e40a81cbf552cf8c2d02. Let me know if it > works for you! Offloading works with this commit! Thanks > > Thanks, > Ludo=E2=80=99. From unknown Thu Aug 14 21:51:50 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 10 Jun 2021 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator