From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 4GL2G+wGI2T7HAAASxT56A (envelope-from ) for ; Tue, 28 Mar 2023 17:25:32 +0200 Received: from aspmx2.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id aCn0GuwGI2TNHQAAG6o9tA (envelope-from ) for ; Tue, 28 Mar 2023 17:25:32 +0200 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 aspmx2.migadu.com (Postfix) with ESMTPS id 089A6413A5 for ; Tue, 28 Mar 2023 17:25:28 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1phBC6-0004J8-B0; Tue, 28 Mar 2023 11:25:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1phBC3-0004IF-4a for bug-guix@gnu.org; Tue, 28 Mar 2023 11:25:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1phBC2-0002rm-Sc for bug-guix@gnu.org; Tue, 28 Mar 2023 11:25:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1phBC2-0004Bv-4o for bug-guix@gnu.org; Tue, 28 Mar 2023 11:25:02 -0400 Subject: bug#62476: =?UTF-8?Q?=E2=80=98guix_?= =?UTF-8?Q?substitute=E2=80=99?= poorly handles premature TLS termination Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Date: Tue, 28 Mar 2023 15:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 62476 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 62476-done@debbugs.gnu.org Mail-Followup-To: 62476@debbugs.gnu.org, ludo@gnu.org, ludovic.courtes@inria.fr Received: via spool by 62476-done@debbugs.gnu.org id=D62476.168001706416046 (code D ref 62476); Tue, 28 Mar 2023 15:25:01 +0000 Received: (at 62476-done) by debbugs.gnu.org; 28 Mar 2023 15:24:24 +0000 Received: from localhost ([127.0.0.1]:50524 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1phBBQ-0004Ak-HZ for submit@debbugs.gnu.org; Tue, 28 Mar 2023 11:24:24 -0400 Received: from eggs.gnu.org ([209.51.188.92]:54388) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1phBBO-0004AS-64 for 62476-done@debbugs.gnu.org; Tue, 28 Mar 2023 11:24:23 -0400 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 1phBBI-0002kz-Kn for 62476-done@debbugs.gnu.org; Tue, 28 Mar 2023 11:24:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=W4i9ah2ahKZkJNqVhVo3g9pvpeU9tnH+vI1i+s2Teq4=; b=gfdmKMLM64mwkCQlQxFf BmWH2OUWftgJyPhsbpV1O+Dsl8sMJfip3Q+tFtiJmmMVg/z/7/8EIvH9vxRZUHKsQfxZb/YkeZ7hK utU6Cz+fmqqlAgKJCpxmWAuZ5Z9d6nyrvixCoE3J/x/53CQrDeckWlOSmPLF2TmUTpfbIrFsdcII3 7/D6opFxPgxpnOKVvfGRFFPBeCQWBw0Go1Q6S13l+vcvG7tQUI4T+utH9tJ4IExdlBCp75tqNNp5d oZzk9r1xMIE3N9HpXjTvm3/D5a6tsKd/CV9RbKf3WXlZMuRZ4frOGDYczGve74Gqox9FDvPp3YOwh Uwibr8SXVuPk1g==; Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1phBBH-0002t2-IW for 62476-done@debbugs.gnu.org; Tue, 28 Mar 2023 11:24:16 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87lejik3us.fsf@inria.fr> Date: Tue, 28 Mar 2023 17:24:13 +0200 In-Reply-To: <87lejik3us.fsf@inria.fr> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Mon, 27 Mar 2023 10:14:51 +0200") Message-ID: <874jq4hpb6.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1680017132; a=rsa-sha256; cv=none; b=A4Sb24X4lX/nEnIfyaJZzggEihaFtlIoi4KGE4A24vNk5TWyHyV6ZEBpouaeXZOGspbUIZ z0gBKT9SZTucsLLUcT7F0SAyGZuvZwRQXfyS6da3ykpVLPC41qF8SI6llW1kcF8FUIrOEy JtSLoh9ZeB9HuJ+NIl6SzypDrH4xjV3ZA1jl62i1C0LHL5fLy9+o+bAloQNZzEgqfec+nG rbl8bLbI2JZDKHCNJGO2hboWd/2T6HQoIPnt+sGt9MN3eEUeko+NkxrE7piRW+FiT97y08 9J3DI2nQ9sE1y0/M03F+ucbu9M7M+odlyOEdnzeb0NMZDgPAdcieT8CRQz7JNw== ARC-Authentication-Results: i=1; aspmx2.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=gfdmKMLM; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx2.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=1680017132; 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-to: 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=W4i9ah2ahKZkJNqVhVo3g9pvpeU9tnH+vI1i+s2Teq4=; b=fLr2pbrwj3QYhFBSh+CKQV3/QYhKX5AJHH4v6PFjEVKfCcfK9O++09CfFCg66hpEPq3jlg ym+ep1DYCMSh7cv+MD4mrhcw602LDegQ8hy3I1FNhg1/PRrrWkIwyr7iXYSGqmAr8UbsKK jpLCA8CQYHAK81QUcrMEXjPdidlOvZMvmWeP3AxNYnDNJri10X7Dt9g63eZ6lKLpxXj3q3 hM2Dfu2t9R0I4DpAa3FR7ofl8oT6aLViVYApcDnjnkHLGyB+VlxLzrqmQa20eKgzx+HqjL IdeT551AIEkjAm55QlVoYft+8clWfx/GrAl8I7M4fHuCcYHhfISedGKlzNd8qA== Authentication-Results: aspmx2.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=gfdmKMLM; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx2.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" X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -2.63 X-Spam-Score: -2.63 X-Migadu-Queue-Id: 089A6413A5 X-TUID: 4Czh2VzJBq+z Ludovic Court=C3=A8s skribis: > I got a report showing this: > >> $ guix shell =E2=80=A6 >> [=E2=80=A6] >> substitute: mise =C3=A0 jour des substituts depuis =C2=AB https://ci.gui= x.gnu.org =C2=BB... 0.0 %guix substitute: erreur : Erreur TLS dans la pro= c=C3=A9dure =C2=AB handshake =C2=BB : La connexion TLS n=E2=80=99a pas =C3= =A9t=C3=A9 termin=C3=A9e correctement. >> guix shell: erreur : `/gnu/store/aca6i8lqgdfy0gwd4m8ql3kv5a0gp6c9-guix-c= ommand substitute' died unexpectedly > > This corresponds to GnuTLS exception =E2=80=98error/premature-termination= =E2=80=99 while > connecting to a substitute server, from =E2=80=98fetch-narinfos=E2=80=99. > > Why =E2=80=98handshake=E2=80=99 fails, I don=E2=80=99t know, but at any r= ate =E2=80=98guix substitute=E2=80=99 > shouldn=E2=80=99t error out when that happens; preferably, it should skip= that > substitute server and keep going, like it does for other transient > networking errors in =E2=80=98call-with-connection-error-handling=E2=80= =99. Fixed in af91c2d540ef437e3f663b2c18c76dc2b94e13d2. Ludo=E2=80=99.