From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id cGg7KO/tmmSzsAAASxT56A (envelope-from ) for ; Tue, 27 Jun 2023 16:10:55 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 0AJ5J+/tmmSYfQAAG6o9tA (envelope-from ) for ; Tue, 27 Jun 2023 16:10:55 +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 176AC25D18 for ; Tue, 27 Jun 2023 16:10:37 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=inria.fr header.s=dc header.b=hMCtG8kr; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1687875037; a=rsa-sha256; cv=none; b=jp4xMZZM07sQxkuHxWUMcxkpKKtoPgbI44sIgDbtmcsD3yIaOEIgLuLtsQ6hnoip6DIj2R NAMWGt2AjEnIazjXXuBEsyEWngUJeCE1WZROBcD2dHy57B1V4oVwJQ2oKQ+W/O2KZsCyBr ellR6k/DsPVaFngfcybnhlIfzpHMwwTTr7TZpho2mzQ3xprPZyjlAFZyU9A38+myfyMPQa oPj25Q3pTCHNxnqnFgoCLI1+pmYFb8ByUbO7JOuU7sy3JxoQWaCK3bk+Ux2VyeCJqfFXse 9ZnCNwjUK1PFMKBZFr+ZJtsRzj1VeMDWXsPPUeMwc5bq+juofOhozX9Upm/EpQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=inria.fr header.s=dc header.b=hMCtG8kr; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1687875037; 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=0Jn97HEX0XF9NjxOEC0eMiwdSSDjcJlume+0DQDZYsk=; b=oOhy+13oAknNP6mGm5yQFUty4KbRZZN+dmiFsw+bacRyl7PQl/QrQRPj6EjYLdKjptbPxY KOVbRL9nUs1qv5wPLDYBrWZy+Azsq77c4eclCAPEPc1tc8Nl4Kh0w1OnmYoKNdQnPhGiLa L47WYzLGFsWo/h/5MvIiwxuylPKsN2lZJGyTvg4JMftIDpr9X6NlcfkSVx0CeDHgIYkSvY vi8u9CwURD6DQHZWlupBr6Vs9jRpxew6kxBQg7cSUQ4StBlEthF1bhDmiPBQXBojohX2+E yanfL/NlM/5VAX66wXg2TrLLY0N2sxQPOMn2jMUuYYVdJuuD8ktSICTjqFWqtw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qE9ON-0005yw-S4; Tue, 27 Jun 2023 10:10:03 -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 1qE9OM-0005yS-Os for bug-guix@gnu.org; Tue, 27 Jun 2023 10:10:02 -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 1qE9OM-0006Uf-Fl for bug-guix@gnu.org; Tue, 27 Jun 2023 10:10:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qE9OM-0001GE-5b for bug-guix@gnu.org; Tue, 27 Jun 2023 10:10:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#64317: [Cuirass] Download products can disappear, leading to HTTP 500 Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 27 Jun 2023 14:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 64317 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 64317@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16878749744788 (code B ref -1); Tue, 27 Jun 2023 14:10:02 +0000 Received: (at submit) by debbugs.gnu.org; 27 Jun 2023 14:09:34 +0000 Received: from localhost ([127.0.0.1]:49330 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qE9Nt-0001F9-QP for submit@debbugs.gnu.org; Tue, 27 Jun 2023 10:09:34 -0400 Received: from lists.gnu.org ([209.51.188.17]:42518) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qE9Nm-0001Ei-MK for submit@debbugs.gnu.org; Tue, 27 Jun 2023 10:09:30 -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 1qE9Nj-0005t8-Pq for bug-guix@gnu.org; Tue, 27 Jun 2023 10:09:24 -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 1qE9Ng-0006Pp-Lo for bug-guix@gnu.org; Tue, 27 Jun 2023 10:09:22 -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=0Jn97HEX0XF9NjxOEC0eMiwdSSDjcJlume+0DQDZYsk=; b=hMCtG8krEhnVL96In23h7HMzQHueeU6RlcVM6SF19FwYpOMK8Dc2wp5L eDkxd4evj1JbIsogVv6Ui3/VhMOMYrHqGasM+xt8KULupqOcMQUGaJI3i wUERdO1SDu/0ofdmBlLc3+iZrXOgqqgG4xqUQon2o7E1B6y+w8F5t7nAc E=; X-IronPort-AV: E=Sophos;i="6.01,162,1684792800"; d="scan'208";a="114927147" Received: from unknown (HELO ribbon) ([193.50.110.213]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jun 2023 16:09:15 +0200 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Nonidi 9 Messidor an 231 de la =?UTF-8?Q?R=C3=A9volution, ?= jour de l'Absinthe 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: Tue, 27 Jun 2023 16:09:16 +0200 Message-ID: <87bkh1uhdf.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, 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -2.56 X-Migadu-Queue-Id: 176AC25D18 X-Spam-Score: -2.56 X-TUID: Cb19HzN+e4I6 The /download endpoint refers directly to store items. However, they can be GC=E2=80=99d in the meantime, in which case the HTTP handler fails gracelessly (HTTP 500 or so) as shown here: --8<---------------cut here---------------start------------->8--- 2023-06-27 16:02:24 GET /download/718 2023-06-27 16:02:24 Uncaught exception in task: 2023-06-27 16:02:24 In fibers.scm: 2023-06-27 16:02:24 172:8 1 (_) 2023-06-27 16:02:24 In ice-9/boot-9.scm: 2023-06-27 16:02:24 1685:16 0 (raise-exception _ #:continuable? _) 2023-06-27 16:02:24 ice-9/boot-9.scm:1685:16: In procedure raise-exception: 2023-06-27 16:02:24 In procedure open-file: No such file or directory: "/gn= u/store/bnsh1yk4l913af8swqi3x7xp1xsa8gq7-guix-binary.tar.xz" --8<---------------cut here---------------end--------------->8--- The solution IMO is to (1) register GC roots for these, (2) periodically remove old GC roots, and (3) return 404 when the file has vanished. Ludo=E2=80=99.