From unknown Sun Aug 17 06:57:57 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#62476 <62476@debbugs.gnu.org> To: bug#62476 <62476@debbugs.gnu.org> Subject: Status: =?UTF-8?Q?=E2=80=98guix_?= =?UTF-8?Q?substitute=E2=80=99?= poorly handles premature TLS termination Reply-To: bug#62476 <62476@debbugs.gnu.org> Date: Sun, 17 Aug 2025 13:57:57 +0000 retitle 62476 =E2=80=98guix substitute=E2=80=99 poorly handles premature TL= S termination reassign 62476 guix submitter 62476 Ludovic Court=C3=A8s severity 62476 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 27 04:14:57 2023 Received: (at submit) by debbugs.gnu.org; 27 Mar 2023 08:14:57 +0000 Received: from localhost ([127.0.0.1]:46429 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pgi0H-0002fG-EO for submit@debbugs.gnu.org; Mon, 27 Mar 2023 04:14:57 -0400 Received: from lists.gnu.org ([209.51.188.17]:36586) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pgi0G-0002f9-7M for submit@debbugs.gnu.org; Mon, 27 Mar 2023 04:14:56 -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 1pgi0F-00060b-Vc for bug-guix@gnu.org; Mon, 27 Mar 2023 04:14:55 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pgi0E-0000lM-6r for bug-guix@gnu.org; Mon, 27 Mar 2023 04:14:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=duQgiv0qJ7HSmVIuccxIiXg8Vv4g1hTCs1QhAZKMWLM=; b=nLe5lgKA4ZwafbJ3ynCWmO8Is5QNxGTxvLm3VOAwYpsvBUwkfvrbOduS j9XlJeD+ViADfBkJicQM68WTXFWenF6eFLxmeKqrBAmfGeIdta3iPqC4w KZuD5tryC6NOdAavfCSC1HVxZae1XyRC10piCDdKnwcmo0Zm866iUMRvf U=; Authentication-Results: mail2-relais-roc.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=ludovic.courtes@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="5.98,294,1673910000"; d="scan'208";a="99221051" Received: from unknown (HELO ribbon) ([193.50.110.81]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Mar 2023 10:14:52 +0200 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: bug-guix@gnu.org Subject: =?utf-8?Q?=E2=80=98guix_substitute=E2=80=99?= poorly handles premature TLS termination X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Septidi 7 Germinal an 231 de la =?utf-8?Q?R=C3=A9vol?= =?utf-8?Q?ution=2C?= jour du Bouleau 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: Mon, 27 Mar 2023 10:14:51 +0200 Message-ID: <87lejik3us.fsf@inria.fr> 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 Received-SPF: pass client-ip=192.134.164.83; envelope-from=ludovic.courtes@inria.fr; helo=mail2-relais-roc.national.inria.fr X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, 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 (--) 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.guix= .gnu.org =C2=BB... 0.0 %guix substitute: erreur : Erreur TLS dans la proc= =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-co= mmand 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 rat= e =E2=80=98guix substitute=E2=80=99 shouldn=E2=80=99t error out when that happens; preferably, it should skip t= hat substitute server and keep going, like it does for other transient networking errors in =E2=80=98call-with-connection-error-handling=E2=80=99. Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 28 11:24:24 2023 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: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: 62476-done@debbugs.gnu.org Subject: Re: bug#62476: =?utf-8?Q?=E2=80=98guix_substitute=E2=80=99?= poorly handles premature TLS termination 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=22?= =?utf-8?Q?'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-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 62476-done 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 (---) 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. From unknown Sun Aug 17 06:57:57 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 26 Apr 2023 11:24:08 +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