From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id +GknF9LAqmO48AAAbAwnHQ (envelope-from ) for ; Tue, 27 Dec 2022 10:54:26 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id MOM0F9LAqmNWFAAA9RJhRA (envelope-from ) for ; Tue, 27 Dec 2022 10:54:26 +0100 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 CDDC025B65 for ; Tue, 27 Dec 2022 10:54:25 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pA6er-0000gv-9L; Tue, 27 Dec 2022 04:54:05 -0500 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 1pA6eo-0000gE-O5 for bug-guix@gnu.org; Tue, 27 Dec 2022 04:54:03 -0500 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 1pA6eo-0005op-CH for bug-guix@gnu.org; Tue, 27 Dec 2022 04:54:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pA6eo-0005Bq-3Y for bug-guix@gnu.org; Tue, 27 Dec 2022 04:54:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#48468: substitute server connection timeout Resent-From: Mathieu Othacehe Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 27 Dec 2022 09:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48468 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 48468@debbugs.gnu.org Received: via spool by 48468-submit@debbugs.gnu.org id=B48468.167213478419864 (code B ref 48468); Tue, 27 Dec 2022 09:54:02 +0000 Received: (at 48468) by debbugs.gnu.org; 27 Dec 2022 09:53:04 +0000 Received: from localhost ([127.0.0.1]:54740 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pA6dr-0005AI-Tl for submit@debbugs.gnu.org; Tue, 27 Dec 2022 04:53:04 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43808) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pA6dp-00059l-OK for 48468@debbugs.gnu.org; Tue, 27 Dec 2022 04:53:02 -0500 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 1pA6dj-0005hj-J7; Tue, 27 Dec 2022 04:52:55 -0500 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=Du6ptv6lLBXUXrdtL2hDOU5Efll8XCc6SJgPnuEdRc0=; b=jBUqewPuXBsBj+EzTEkc V9XvXsyllsxAtgt+yKOUDoITTkgNsXZHNyl0X4RKkDdE9MJQ8TJNfDnrCokJ8iSdfmi+46vmSW68z 25SQtJgYvIIe3WeULy3FfezXz5XlalIwkIm0sQWd2SdXg1rMZ3/khJNd/9xulHtusm590M9bDguhZ gaZeOSlede4KAP2rmUC7qOUWO7x0V7yecJXx6TMcYi4KHFxNJ1OFxcAWw2xbJZZWQuoBoRSZiW8Jp S3ObgHTefRhWT2q/swG2e9dP7jEnsKjXyybJNMa5WQYP9/uFh7yHWt6CMkYpb0+fFMDaQv/sLHvJT MgJG0psvfOZgiQ==; Received: from [2a01:cb18:832e:5f00:3563:417e:2a38:86d8] (helo=meije) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pA6dh-0003Mh-Te; Tue, 27 Dec 2022 04:52:55 -0500 From: Mathieu Othacehe References: <87lf8e4l42.fsf@gnu.org> <87im2bfj3i.fsf@gnu.org> <87sg108vl5.fsf@gnu.org> <87lenmrnos.fsf@gnu.org> <87cz8v8s66.fsf@gnu.org> <87cz8vjpv2.fsf@gnu.org> <878rjj8eun.fsf@gnu.org> <87wn72fay3.fsf@gnu.org> <87fsdn5xzb.fsf@gnu.org> Date: Tue, 27 Dec 2022 10:52:51 +0100 In-Reply-To: <87fsdn5xzb.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Sat, 10 Dec 2022 11:55:52 +0100") Message-ID: <87sfh1mavg.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1672134866; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=Du6ptv6lLBXUXrdtL2hDOU5Efll8XCc6SJgPnuEdRc0=; b=pNXF5wmGBTjFBYE+bKmWD+ruzIsg6Su93trYAa+LdLZ6PtQ0fUT7kE45ZNYSDNAQVa8t0Y Aj+Vyh4BStrmAtmsTBXv2jh68swpt1SKelUwo/wcTyiogut4zX8uvhYWohSSoebRwPx1TJ 8w0bbVj/K9PHZ7MhsYzXkYXNXspbOuWZQ6DOHgadHq7dzqG9plk6vilpAsV4wky0fdJXm4 3LBHZbX59PvF6l+U2wPxejacxS9+a9bjYheCHLv32KUlkMlp0OMWLhokFnaKuN7yisboz5 GEsXi6sytz5/D8mJUxUDwWZ1iD0oenumywDz2Nl7gIbxEQ3evHFdZqP7/Hh8lQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=jBUqewPu; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1672134866; a=rsa-sha256; cv=none; b=oBjmznzZfCY3InqruB0Djs5haNtxgQHanrB6+AC3/b1Bhdxx6LCNKB3j3KhDNMSVxwleoI BFJTS0uTLbSyyK40TN5iXoBpnFJE5rHhjC2MgGdMFBWUhQ8RYc639bjuKqXuGsxWaAuAEO 58vI+ZZoT1+h59DZVtZQt2OxyA6DOeGXPCa7nPr/cHtcykNbGykIdvQwj89MAfVakul1as rnqIdFL5SH39z/kZjcd9kAeGVG/1biZa1FQ6cTF2Xqgjih3MZzUHlrc3zsft7MFgsCKzin sylMO7L08wSW01gDwFNO5YQDro8KRW+VO7tNK8pzb3NVKySrY88+vEHnfhwNxg== X-Spam-Score: -2.43 X-Migadu-Queue-Id: CDDC025B65 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=jBUqewPu; 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"; dmarc=pass (policy=none) header.from=gnu.org X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -2.43 X-TUID: W+2Kyc/ObbFJ --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hey Ludo, > That=E2=80=99s still below the 100=C2=A0MiB cache bypass threshold of the= main =E2=80=98guix > publish=E2=80=99 instance though. Right. Just to be on the safe side here, what about applying this patch to have log lines when we are replying 404 due to baking? Thanks, Mathieu --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-scripts-publish-Add-a-log-when-replying-404-due-to-b.patch >From 725d5ba21a0fc0108b60c37bbc8d947fab6ac938 Mon Sep 17 00:00:00 2001 From: Mathieu Othacehe Date: Tue, 27 Dec 2022 10:49:04 +0100 Subject: [PATCH 1/1] scripts: publish: Add a log when replying 404 due to baking. * guix/scripts/publish.scm (render-narinfo/cached): Add it. --- guix/scripts/publish.scm | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/guix/scripts/publish.scm b/guix/scripts/publish.scm index 3bf3bd9c7c..a2048c98fd 100644 --- a/guix/scripts/publish.scm +++ b/guix/scripts/publish.scm @@ -586,9 +586,13 @@ (define (delete-entry narinfo) #:ttl 300 ;temporary #:nar-path nar-path #:compressions compressions) - (not-found request - #:phrase "We're baking it" - #:ttl 300))) ;should be available within 5m + (begin + (format #t (G_ "~a ~a: 404 (baking)~%") + (request-method request) + (uri-path (request-uri request))) + (not-found request + #:phrase "We're baking it" + #:ttl 300)))) ;should be available within 5m (else (not-found request #:phrase "" #:ttl negative-ttl))))) -- 2.38.1 --=-=-=--