GNU bug report logs - #55820
Substitute server errors lead to client crashes

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: Ludovic Courtès <ludovic.courtes@HIDDEN>; dated Mon, 6 Jun 2022 12:49:02 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at 55820 <at> debbugs.gnu.org:


Received: (at 55820) by debbugs.gnu.org; 13 Jun 2022 02:02:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 12 22:02:30 2022
Received: from localhost ([127.0.0.1]:56792 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1o0ZPR-0006dD-Uo
	for submit <at> 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 <maximedevos@HIDDEN>) id 1o0ZPQ-0006d5-Gc
 for 55820 <at> 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@HIDDEN>
Subject: Re: bug#55932: error report / bug#55820: Substitute server errors
 lead to client crashes
From: Maxime Devos <maximedevos@HIDDEN>
To: Anedroid <anedroid@HIDDEN>, 55932 <at> debbugs.gnu.org, 
 55820 <at> debbugs.gnu.org
Date: Mon, 13 Jun 2022 04:02:26 +0200
In-Reply-To: <f81c7c47b441dddde01410be3fdf9d106f25ce3f.camel@HIDDEN>
References: <f81c7c47b441dddde01410be3fdf9d106f25ce3f.camel@HIDDEN>
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-Debbugs-Envelope-To: 55820
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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 <https://issues.guix.gnu.org/55820>.
Also relevant: <https://issues.guix.gnu.org/50238>.

--=-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--





Information forwarded to bug-guix@HIDDEN:
bug#55820; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 6 Jun 2022 12:48:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jun 06 08:48:38 2022
Received: from localhost ([127.0.0.1]:34617 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nyC9t-0001Rn-Qw
	for submit <at> 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 <ludovic.courtes@HIDDEN>) id 1nyC9p-0001RP-6x
 for submit <at> 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 <ludovic.courtes@HIDDEN>)
 id 1nyC9m-0005gw-EW
 for bug-guix@HIDDEN; 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 <ludovic.courtes@HIDDEN>)
 id 1nyC9j-0005SK-0K
 for bug-guix@HIDDEN; 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@HIDDEN;
 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?= <ludovic.courtes@HIDDEN>
To: bug-guix@HIDDEN
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@HIDDEN>
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@HIDDEN;
 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 <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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 #<thunk 7f0e562b2f60>)
In ice-9/boot-9.scm:
    724:2 17 (call-with-prompt _ _ #<procedure default-prompt-handle=C3=A2=
=C2=A6>)
In ice-9/eval.scm:
    619:8 16 (_ #(#(#<directory (guile-user) 7f0e562acc80>)))
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 #<output: file 4> _ "/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 #<procedure 7f0e53925f00 at ic=C3=A2=
=C2=A6> =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: #<<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.




Acknowledgement sent to Ludovic Courtès <ludovic.courtes@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#55820; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 13 Jun 2022 02:15:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.