From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 2KN7IcYCnmLPfgEAbAwnHQ (envelope-from ) for ; Mon, 06 Jun 2022 15:36:06 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id OGBaIcYCnmIVbAEAauVa8A (envelope-from ) for ; Mon, 06 Jun 2022 15:36:06 +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 aspmx1.migadu.com (Postfix) with ESMTPS id A01741726A for ; Mon, 6 Jun 2022 15:36:01 +0200 (CEST) Received: from localhost ([::1]:43724 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nyCtk-00012T-6O for larch@yhetil.org; Mon, 06 Jun 2022 09:36:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52876) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nyCAJ-0005mK-Sc for bug-guix@gnu.org; Mon, 06 Jun 2022 08:49:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:40720) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nyCAI-0005UL-Op for bug-guix@gnu.org; Mon, 06 Jun 2022 08:49:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nyCAI-0001Su-No for bug-guix@gnu.org; Mon, 06 Jun 2022 08:49:02 -0400 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=; 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-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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1654522561; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=KV2nPwj2u7GNpo3j1VNd91VcQOulGYqMxV6iM5tjKjE=; b=sqcPdWU6Ox/WLJDSs7RcLsHmmMOTd9DDabhfR87BYbNTvNwTHmrRxs+WKWzrAw1Ad6loD1 C/a4nsHfM9EfhGu6798MhGh/e9gcG1D56WvQyiEWBSrYpF5sCttBraSUSAQFlIaTeidCPG 0fNuZmsCc4RKVxdebXKJkMVSY+PgagHHmTVCWin04D7JELTAOz3t4ZZoR5DPYZ2wXt8Elg 4/bHBPOJVVFVUJephZ//KnKXTEmXKYMU9GHJC6Lz6MN7ZuxRkXyX5WZRWGAMmXPK3RTasp 6I6rixu0lsx2Arj1BtP0CI7guBvTQnf3jCi+6eF3m+S9wCxWNz35LrK4vlHpYw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1654522561; a=rsa-sha256; cv=none; b=mDr/JmQD+Xar8I8vzUNxmTYodQz2aJzUmcBklktk+R7lZxXn1d+QBhIYzYvC1cInqUNWm0 vos3rO08dArtYLWK1jen0EZssu5TacIlaRBbel6pKPClRepUhqd9sQCpGnL4u27DMu92bk BYi5OzNOxulmTehVKUvztrcekLOnq0hBcFuUAzStTr8l/QsGlIVad6gcG5dqdSS6an5tag IMUpo/OLuKspQrpQ84/kEKQYY/V2p6+x9jXFLoImA3RY29NBJ0Kn9ODeTWUWiLXILMIoUP 4ztp0vcFDYkDebhIaV+VDy7/jl/T4GNvvX7FMqVf/461tO0jNqlu9uBe5ZwDkg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=inria.fr header.s=dc header.b=GSaakOyF; dmarc=fail reason="SPF not aligned (relaxed)" header.from=inria.fr (policy=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" X-Migadu-Spam-Score: 4.69 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=inria.fr header.s=dc header.b=GSaakOyF; dmarc=fail reason="SPF not aligned (relaxed)" header.from=inria.fr (policy=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" X-Migadu-Queue-Id: A01741726A X-Spam-Score: 4.69 X-Migadu-Scanner: scn0.migadu.com X-TUID: hgK4xqa71aXW 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.