From unknown Tue Jun 17 22:01:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#55820: Substitute server errors lead to client crashes Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 06 Jun 2022 12:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 55820 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 55820@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16545197185571 (code B ref -1); Mon, 06 Jun 2022 12:49:02 +0000 Received: (at submit) by debbugs.gnu.org; 6 Jun 2022 12:48:38 +0000 Received: from localhost ([127.0.0.1]:34617 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nyC9t-0001Rn-Qw for submit@debbugs.gnu.org; Mon, 06 Jun 2022 08:48:38 -0400 Received: from lists.gnu.org ([209.51.188.17]:45848) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nyC9p-0001RP-6x for submit@debbugs.gnu.org; Mon, 06 Jun 2022 08:48:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52736) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nyC9m-0005gw-EW for bug-guix@gnu.org; Mon, 06 Jun 2022 08:48:31 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:3987) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nyC9j-0005SK-0K for bug-guix@gnu.org; Mon, 06 Jun 2022 08:48:29 -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=KV2nPwj2u7GNpo3j1VNd91VcQOulGYqMxV6iM5tjKjE=; b=GSaakOyFSjZ9oVkeFe3NXj65LYskwk6yEwECuRJd2ReFWbM3CLH+bWFH cBq3KOHiO0nftmWP60YI2eisSDvRGp+9yPOk5cFZSSisDnRNfTx35tzbk RjhQOzPxWGIDcCKQqkZrBdfwshXzg9vBEAcdShCC1AI/e1xe3xafM57Ib I=; 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.91,280,1647298800"; d="scan'208";a="39642405" Received: from 91-160-117-201.subs.proxad.net (HELO ribbon) ([91.160.117.201]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jun 2022 14:48:23 +0200 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Octidi 18 Prairial an 230 de la =?UTF-8?Q?R=C3=A9volution,?= jour du Pavot 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, 06 Jun 2022 14:48:22 +0200 Message-ID: <87mteqc609.fsf@inria.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) 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 (--) Here=E2=80=99s an example of a substitute server issue that leads to ugly c= lient crashes: --8<---------------cut here---------------start------------->8--- $ guix upgrade [=E2=80=A6] guix substitute: warning: while fetching https://bordeaux.guix.gnu.org/nar/= lzip/fan4wanq1138ds9pj0s63f2iv4qygng0-dstat-0.7.4: server is somewhat slow guix substitute: warning: try `--no-substitutes' if the problem persists Backtrace: In ice-9/boot-9.scm: 1752:10 19 (with-exception-handler _ _ #:unwind? _ # _) In unknown file: 18 (apply-smob/0 #) In ice-9/boot-9.scm: 724:2 17 (call-with-prompt _ _ #) In ice-9/eval.scm: 619:8 16 (_ #(#(#))) In guix/ui.scm: 2206:7 15 (run-guix . _) 2169:10 14 (run-guix-command _ . _) In ice-9/boot-9.scm: 1752:10 13 (with-exception-handler _ _ #:unwind? _ # _) 1752:10 12 (with-exception-handler _ _ #:unwind? _ # _) In guix/scripts/substitute.scm: 771:15 11 (_) In ice-9/exceptions.scm: 406:15 10 (process-substitution # _ "/gnu/store/=C3=A2= =C2=A6" =C3=A2=C2=A6) In ice-9/boot-9.scm: 1752:10 9 (with-exception-handler _ _ #:unwind? _ # _) In guix/scripts/substitute.scm: 479:9 8 (_) In ice-9/boot-9.scm: 1747:15 7 (with-exception-handler # =C3=A2=C2=A6) 1685:16 6 (raise-exception _ #:continuable? _) 1683:16 5 (raise-exception _ #:continuable? _) 1685:16 4 (raise-exception _ #:continuable? _) 1780:13 3 (_ #<&compound-exception components: (#<&error> #<&irri=C3=A2= =C2=A6>) 1685:16 2 (raise-exception _ #:continuable? _) 1683:16 1 (raise-exception _ #:continuable? _) 1685:16 0 (raise-exception _ #:continuable? _) ice-9/boot-9.scm:1685:16: In procedure raise-exception: ERROR: 1. &http-get-error: uri: #< scheme: https userinfo: #f host: "bordeaux.guix.gnu.org"= port: #f path: "/nar/lzip/fan4wanq1138ds9pj0s63f2iv4qygng0-dstat-0.7.4" qu= ery: #f fragment: #f> code: 502 reason: "Bad Gateway" 2. &message: "https://bordeaux.guix.gnu.org/nar/lzip/fan4wanq1138ds9pj0s6= 3f2iv4qygng0-dstat-0.7.4: HTTP download failed: 502 (\"Bad Gateway\")" substitution of /gnu/store/fan4wanq1138ds9pj0s63f2iv4qygng0-dstat-0.7.4 fai= led guix upgrade: error: corrupt input while restoring archive from socket --8<---------------cut here---------------end--------------->8--- This should be handled gracefully. Also, in this case, =E2=80=98--fallback=E2=80=99 appears to have no effect. Ludo=E2=80=99. From unknown Tue Jun 17 22:01:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#55820: bug#55932: error report / bug#55820: Substitute server errors lead to client crashes Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 13 Jun 2022 02:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55820 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Anedroid , 55932@debbugs.gnu.org, 55820@debbugs.gnu.org Received: via spool by 55820-submit@debbugs.gnu.org id=B55820.165508575025499 (code B ref 55820); Mon, 13 Jun 2022 02:03:02 +0000 Received: (at 55820) by debbugs.gnu.org; 13 Jun 2022 02:02:30 +0000 Received: from localhost ([127.0.0.1]:56792 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o0ZPR-0006dD-Uo for submit@debbugs.gnu.org; Sun, 12 Jun 2022 22:02:30 -0400 Received: from baptiste.telenet-ops.be ([195.130.132.51]:38682) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o0ZPQ-0006d5-Gc for 55820@debbugs.gnu.org; Sun, 12 Jun 2022 22:02:28 -0400 Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by baptiste.telenet-ops.be with bizsmtp id iS2S2700D4UW6Th01S2Stv; Mon, 13 Jun 2022 04:02:27 +0200 Message-ID: <344c89a58f395b81e09e46ba66f96e972da93387.camel@telenet.be> From: Maxime Devos Date: Mon, 13 Jun 2022 04:02:26 +0200 In-Reply-To: References: Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-lLWX56p6ilXSPPYebo5a" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1655085747; bh=96fNOKakFw1KmoEW9LZrmEaAFCigIZUP8f9vVcFTtCQ=; h=Subject:From:To:Date:In-Reply-To:References; b=hVZKdZ1T+Pf3Fzwmq7BHIPQzG9TRFRo/C+qYf/aKF0kemnT05tmiACZNJ6QcLNuSh FTp7d9gIqawtad/vgLvlKkOmyOIFXc9iyXxGKG0Wnb9NiiLifRbeJx4nhWwWFEuGSL KV34cKH6CpAeelIoEKPw6C6Lg/vQUJlqPf8FJS26JzaZbMk68jg9RPUeSPvOMO5KVO W23WtnE2g1hVvHBVBrUMJJln3PO16o3wuD7fKHv0M3/rSO6BGWyfoC7RWiULSCyadL I9hiVBWNZXLFNYG/39bSFfz9NgPLGPkvpjDdvSUiG5ffLA9zBb6hxLIbgVvG5OZRYR UF4t7vPoaEz6Q== X-Spam-Score: -0.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: -1.0 (-) --=-lLWX56p6ilXSPPYebo5a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable retitle 55932 Substitute server errors lead to client crashes merge 55820 55392 thanks Duplicate of . Also relevant: . --=-lLWX56p6ilXSPPYebo5a Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYqaashccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7hOGAP9rwa34D5Ua1mcXUnlgKGf/FIyU V3ssUTUUcw3APs9TpAEAs0Bl5d3rm1JCzSWtdIEl7CRZcouTjFKtcJlYCDQ33AA= =b3Sc -----END PGP SIGNATURE----- --=-lLWX56p6ilXSPPYebo5a-- From debbugs-submit-bounces@debbugs.gnu.org Mon May 22 03:57:15 2023 Received: (at control) by debbugs.gnu.org; 22 May 2023 07:57:15 +0000 Received: from localhost ([127.0.0.1]:33439 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q10Pq-00007J-WF for submit@debbugs.gnu.org; Mon, 22 May 2023 03:57:15 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:56103) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q10Pp-000075-HS for control@debbugs.gnu.org; Mon, 22 May 2023 03:57:14 -0400 Authentication-Results: mail2-relais-roc.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=ludo@gnu.org; dmarc=fail (p=none dis=none) d=gnu.org X-IronPort-AV: E=Sophos;i="6.00,183,1681164000"; d="scan'208";a="108960172" Received: from unknown (HELO ribbon) ([193.50.110.247]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 May 2023 09:57:07 +0200 Date: Mon, 22 May 2023 09:57:06 +0200 Message-Id: <87pm6sztm5.fsf@gnu.org> To: control@debbugs.gnu.org From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: control message for bug #55820 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: control 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 (--) severity 55820 important quit From unknown Tue Jun 17 22:01:15 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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#55820: closed (Re: bug#63634: nar 404 leads to hard =?UTF-8?Q?=E2=80=98guix_?= =?UTF-8?Q?substitute=E2=80=99?= crash) Message-ID: References: <878rdgwg4a.fsf@gnu.org> <87mteqc609.fsf@inria.fr> X-Gnu-PR-Message: they-closed 55820 X-Gnu-PR-Package: guix Reply-To: 55820@debbugs.gnu.org Date: Mon, 22 May 2023 15:18:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1684768682-17347-1" This is a multi-part message in MIME format... ------------=_1684768682-17347-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #55820: Substitute server errors lead to client crashes 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 55820@debbugs.gnu.org. --=20 55820: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D55820 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1684768682-17347-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 55820-done) by debbugs.gnu.org; 22 May 2023 15:17:02 +0000 Received: from localhost ([127.0.0.1]:35866 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q17HS-0004U9-8y for submit@debbugs.gnu.org; Mon, 22 May 2023 11:17:02 -0400 Received: from eggs.gnu.org ([209.51.188.92]:55956) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q17HR-0004TS-2k; Mon, 22 May 2023 11:17:01 -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 1q17HL-0006HL-Jx; Mon, 22 May 2023 11:16:55 -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=WTfP0B+dncrOchcJ2ypxMTQbZSV1RPCd+LFjLJKi7IU=; b=fdEMbz18edQ10QaEv7fM PI9ymM6J84WYIEwqyfBC1PI6cX+SIZuUCZQPkIbfGCpkyflcShTT/Pp0cAaJxy7iIj+3nthZPrzqD QFFz9lZ73gZf27UatdBJB3UtXnWm64sB/8iq0pXvFwjDgo+P6HmNztLCHYOCiQpg0yScakMmBb8qc ubEhbphl8BRyz6+ruOnF/J8wrg/WtoS+dRZ0IbX4mpL7x4Ms+I0VYmcDjRivqEdLMd+skBue9dC7/ NLAO7bHW9pJhmoZzLQ8oeTUKIY7h5C0LqHt9FoDFC4s5hZUmerlkmqZO8lPXXqkHJLdCBMNWDXSG+ YbGL+nLs643anA==; Received: from [193.50.110.247] (helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q17HL-0001x0-44; Mon, 22 May 2023 11:16:55 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: 63634@debbugs.gnu.org, 55820-done@debbugs.gnu.org Subject: Re: bug#63634: nar 404 leads to hard =?utf-8?Q?=E2=80=98guix_subs?= =?utf-8?Q?titute=E2=80=99?= crash References: <87cz2ttju2.fsf@inria.fr> Date: Mon, 22 May 2023 17:16:53 +0200 In-Reply-To: <87cz2ttju2.fsf@inria.fr> ("Ludovic =?utf-8?Q?Court=C3=A8s=22?= =?utf-8?Q?'s?= message of "Mon, 22 May 2023 00:12:37 +0200") Message-ID: <878rdgwg4a.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: 55820-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 (---) Hi, Ludovic Court=C3=A8s skribis: > 646:2 10 (process-substitution _ _ _ #:cache-urls _ #:acl _ # _ # =E2= =80=A6) > In ice-9/boot-9.scm: > 1752:10 9 (with-exception-handler _ _ #:unwind? _ # _) > In guix/scripts/substitute.scm: > 463:7 8 (download-nar #< path: "/gnu/store/dg0rm1mp9q=E2=80= =A6> =E2=80=A6) > In ice-9/boot-9.scm: > 1747:15 7 (with-exception-handler # =E2=80=A6) > 1685:16 6 (raise-exception _ #:continuable? _) > 1683:16 5 (raise-exception _ #:continuable? _) > 1685:16 4 (raise-exception _ #:continuable? _) > 1780:13 3 (_ #<&compound-exception components: (#<&error> #<&irri=E2= =80=A6>) > 1685:16 2 (raise-exception _ #:continuable? _) > 1683:16 1 (raise-exception _ #:continuable? _) > 1685:16 0 (raise-exception _ #:continuable? _) > > ice-9/boot-9.scm:1685:16: In procedure raise-exception: > ERROR: > 1. &http-get-error: > uri: #< scheme: https userinfo: #f host: "bordeaux.guix.gnu.or= g" port: #f path: "/nar/zstd/dg0rm1mp9qvjhvlwra5mc8dz5pfky4hj-guile-coloriz= ed-0.1" query: #f fragment: #f> > code: 404 > reason: "Not Found" > headers: ((server . "nginx") (date . #) (content= -type text/plain (charset . "utf-8")) (content-length . 3) (connection keep= -alive)) > 2. &message: "https://bordeaux.guix.gnu.org/nar/zstd/dg0rm1mp9qvjhvlwra= 5mc8dz5pfky4hj-guile-colorized-0.1: HTTP download failed: 404 (\"Not Found\= ")" > substitution of /gnu/store/dg0rm1mp9qvjhvlwra5mc8dz5pfky4hj-guile-coloriz= ed-0.1 failed [...] > This might be related to 8bd4126917f59f4af9a4323c3d5699201862dca2. The > two =E2=80=98download-nar=E2=80=99 calls are guarded against =E2=80=98htt= p-get-error?=E2=80=99 though. That the exception went through despite the =E2=80=98network-error?=E2=80= =99 guard is fixed by 3f59fd6d114548480c719d4b8f8509bdf3e8dcca. The reason was that the =E2=80=98&http-get-error=E2=80=99 condition was get= ting wrapped in a =E2=80=98kind-and-args=E2=80=99 exception upon rethrow, as illustrated= here: --8<---------------cut here---------------start------------->8--- scheme@(guile-user)> (catch #t (lambda () (raise-exception (condition (&message (message "boo")))= )) (lambda args args)) $5 =3D (%exception #<&message message: "boo">) scheme@(guile-user)> (with-exception-handler (lambda (e) e) (lambda () (apply throw $5)) #:unwind? #t) $6 =3D #<&compound-exception components: (#<&error> #<&irritants irritants:= (#<&message message: "boo">)> #<&exception-with-kind-and-args kind: %excep= tion args: (#<&message message: "boo">)>)> scheme@(guile-user)> (message-condition? $6) $7 =3D #f --8<---------------cut here---------------end--------------->8--- Ludo=E2=80=99. ------------=_1684768682-17347-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 6 Jun 2022 12:48:38 +0000 Received: from localhost ([127.0.0.1]:34617 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nyC9t-0001Rn-Qw for submit@debbugs.gnu.org; Mon, 06 Jun 2022 08:48:38 -0400 Received: from lists.gnu.org ([209.51.188.17]:45848) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nyC9p-0001RP-6x for submit@debbugs.gnu.org; Mon, 06 Jun 2022 08:48:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52736) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nyC9m-0005gw-EW for bug-guix@gnu.org; Mon, 06 Jun 2022 08:48:31 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:3987) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nyC9j-0005SK-0K for bug-guix@gnu.org; Mon, 06 Jun 2022 08:48:29 -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=KV2nPwj2u7GNpo3j1VNd91VcQOulGYqMxV6iM5tjKjE=; b=GSaakOyFSjZ9oVkeFe3NXj65LYskwk6yEwECuRJd2ReFWbM3CLH+bWFH cBq3KOHiO0nftmWP60YI2eisSDvRGp+9yPOk5cFZSSisDnRNfTx35tzbk RjhQOzPxWGIDcCKQqkZrBdfwshXzg9vBEAcdShCC1AI/e1xe3xafM57Ib I=; 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.91,280,1647298800"; d="scan'208";a="39642405" Received: from 91-160-117-201.subs.proxad.net (HELO ribbon) ([91.160.117.201]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jun 2022 14:48:23 +0200 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: bug-guix@gnu.org Subject: Substitute server errors lead to client crashes X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Octidi 18 Prairial an 230 de la =?utf-8?Q?R=C3=A9vol?= =?utf-8?Q?ution=2C?= jour du Pavot 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, 06 Jun 2022 14:48:22 +0200 Message-ID: <87mteqc609.fsf@inria.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (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, T_SCC_BODY_TEXT_LINE=-0.01 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 (--) Here=E2=80=99s an example of a substitute server issue that leads to ugly c= lient crashes: --8<---------------cut here---------------start------------->8--- $ guix upgrade [=E2=80=A6] guix substitute: warning: while fetching https://bordeaux.guix.gnu.org/nar/= lzip/fan4wanq1138ds9pj0s63f2iv4qygng0-dstat-0.7.4: server is somewhat slow guix substitute: warning: try `--no-substitutes' if the problem persists Backtrace: In ice-9/boot-9.scm: 1752:10 19 (with-exception-handler _ _ #:unwind? _ # _) In unknown file: 18 (apply-smob/0 #) In ice-9/boot-9.scm: 724:2 17 (call-with-prompt _ _ #) In ice-9/eval.scm: 619:8 16 (_ #(#(#))) In guix/ui.scm: 2206:7 15 (run-guix . _) 2169:10 14 (run-guix-command _ . _) In ice-9/boot-9.scm: 1752:10 13 (with-exception-handler _ _ #:unwind? _ # _) 1752:10 12 (with-exception-handler _ _ #:unwind? _ # _) In guix/scripts/substitute.scm: 771:15 11 (_) In ice-9/exceptions.scm: 406:15 10 (process-substitution # _ "/gnu/store/=C3=A2= =C2=A6" =C3=A2=C2=A6) In ice-9/boot-9.scm: 1752:10 9 (with-exception-handler _ _ #:unwind? _ # _) In guix/scripts/substitute.scm: 479:9 8 (_) In ice-9/boot-9.scm: 1747:15 7 (with-exception-handler # =C3=A2=C2=A6) 1685:16 6 (raise-exception _ #:continuable? _) 1683:16 5 (raise-exception _ #:continuable? _) 1685:16 4 (raise-exception _ #:continuable? _) 1780:13 3 (_ #<&compound-exception components: (#<&error> #<&irri=C3=A2= =C2=A6>) 1685:16 2 (raise-exception _ #:continuable? _) 1683:16 1 (raise-exception _ #:continuable? _) 1685:16 0 (raise-exception _ #:continuable? _) ice-9/boot-9.scm:1685:16: In procedure raise-exception: ERROR: 1. &http-get-error: uri: #< scheme: https userinfo: #f host: "bordeaux.guix.gnu.org"= port: #f path: "/nar/lzip/fan4wanq1138ds9pj0s63f2iv4qygng0-dstat-0.7.4" qu= ery: #f fragment: #f> code: 502 reason: "Bad Gateway" 2. &message: "https://bordeaux.guix.gnu.org/nar/lzip/fan4wanq1138ds9pj0s6= 3f2iv4qygng0-dstat-0.7.4: HTTP download failed: 502 (\"Bad Gateway\")" substitution of /gnu/store/fan4wanq1138ds9pj0s63f2iv4qygng0-dstat-0.7.4 fai= led guix upgrade: error: corrupt input while restoring archive from socket --8<---------------cut here---------------end--------------->8--- This should be handled gracefully. Also, in this case, =E2=80=98--fallback=E2=80=99 appears to have no effect. Ludo=E2=80=99. ------------=_1684768682-17347-1--