From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id KKzaBWe/ol8mEgAA0tVLHw (envelope-from ) for ; Wed, 04 Nov 2020 14:49:11 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id QP+lAWe/ol9pawAAbx9fmQ (envelope-from ) for ; Wed, 04 Nov 2020 14:49:11 +0000 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 9EEE29402A5 for ; Wed, 4 Nov 2020 14:49:10 +0000 (UTC) Received: from localhost ([::1]:36848 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kaK61-0007BM-Gf for larch@yhetil.org; Wed, 04 Nov 2020 09:49:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:50910) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kaK5u-0007Ah-Ow for bug-guix@gnu.org; Wed, 04 Nov 2020 09:49:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:36530) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kaK5u-00045K-Fg for bug-guix@gnu.org; Wed, 04 Nov 2020 09:49:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kaK5u-0007xi-BE for bug-guix@gnu.org; Wed, 04 Nov 2020 09:49:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#44442: =?UTF-8?Q?=E2=80=98guix?= publish =?UTF-8?Q?--cache=E2=80=99?= can lose its daemon connection Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 04 Nov 2020 14:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 44442 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 44442@debbugs.gnu.org X-Debbugs-Original-To: Received: via spool by submit@debbugs.gnu.org id=B.160450133830594 (code B ref -1); Wed, 04 Nov 2020 14:49:02 +0000 Received: (at submit) by debbugs.gnu.org; 4 Nov 2020 14:48:58 +0000 Received: from localhost ([127.0.0.1]:48076 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kaK5q-0007xO-1F for submit@debbugs.gnu.org; Wed, 04 Nov 2020 09:48:58 -0500 Received: from lists.gnu.org ([209.51.188.17]:53780) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kaK5n-0007xD-U4 for submit@debbugs.gnu.org; Wed, 04 Nov 2020 09:48:56 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:50864) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kaK5n-00077m-Lz for bug-guix@gnu.org; Wed, 04 Nov 2020 09:48:55 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:40801) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kaK5n-00044d-Cq for bug-guix@gnu.org; Wed, 04 Nov 2020 09:48:55 -0500 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=39850 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kaK5m-0000jT-86 for bug-guix@gnu.org; Wed, 04 Nov 2020 09:48:54 -0500 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 14 Brumaire an 229 de la =?UTF-8?Q?R=C3=A9volution?= 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: Wed, 04 Nov 2020 15:48:52 +0100 Message-ID: <87lffh9nzf.fsf@inria.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -3.3 (---) 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-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: -0.01 X-TUID: wM99owqY4F3D With the introduction of =E2=80=9Ccache bypass=E2=80=9D for =E2=80=98guix p= ublish --cache=E2=80=99 in commit 2b2ab7796ac186d88060793b8873fc0e21462758, =E2=80=98guix publish=E2= =80=99 can crash like so: --8<---------------cut here---------------start------------->8--- $ sudo guix publish -u ludo --cache=3D/tmp/cache --cache-bypass-threshold= =3D30M guix publish: publishing /gnu/store on 0.0.0.0, port 8080 guix publish: using 'gzip' compression method, level 3 C-c C-z [1]+ Haltigita sudo guix publish -u ludo --cache=3D/tmp/cach= e --cache-bypass-threshold=3D30M $ bg [1]+ sudo guix publish -u ludo --cache=3D/tmp/cache --cache-bypass-threshol= d=3D30M & $ wget -O - http://localhost:8080/nar/gzip/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee= -foo --2020-11-04 15:42:50-- http://localhost:8080/nar/gzip/eeeeeeeeeeeeeeeeeee= eeeeeeeeeeeee-foo Ni solvigas localhost (localhost)... 127.0.0.1 Konektado al localhost (localhost)|127.0.0.1|:8080... konektita. HTTP peto sendita, ni atendas respondon... GET /nar/gzip/eeeeeeeeeeeeeeeeee= eeeeeeeeeeeeee-foo 404 Not Found 2020-11-04 15:42:50 ERARO 404: Not Found. $ wget -O - http://localhost:8080/n8awazyldv9hbzb7pjcw76hiifmvrpvd.narinfo --2020-11-04 15:43:13-- http://localhost:8080/n8awazyldv9hbzb7pjcw76hiifmv= rpvd.narinfo Ni solvigas localhost (localhost)... 127.0.0.1 Konektado al localhost (localhost)|127.0.0.1|:8080... konektita. HTTP peto sendita, ni atendas respondon... GET /n8awazyldv9hbzb7pjcw76hiifm= vrpvd.narinfo In guix/scripts/publish.scm: 455:4 5 (render-narinfo/cached # =E2=80=A6) 460:12 4 (_ . _) In guix/store.scm: 1020:9 3 (_ # "n8awazyldv9=E2=80= =A6") 916:4 2 (flush) In unknown file: 1 (put-bytevector # #vu8(29 0 =E2=80=A6= ) =E2=80=A6) In ice-9/boot-9.scm: 1669:16 0 (raise-exception _ #:continuable? _) In procedure fport_write: Rompita dukto 500 Internal Server Error 2020-11-04 15:43:13 ERARO 500: Internal Server Error. $ wget -O - http://localhost:8080/n8awazyldv9hbzb7pjcw76hiifmvrpvd.narinfo --2020-11-04 15:43:15-- http://localhost:8080/n8awazyldv9hbzb7pjcw76hiifmv= rpvd.narinfo Ni solvigas localhost (localhost)... 127.0.0.1 Konektado al localhost (localhost)|127.0.0.1|:8080... konektita. HTTP peto sendita, ni atendas respondon... GET /n8awazyldv9hbzb7pjcw76hiifm= vrpvd.narinfo In guix/scripts/publish.scm: 455:4 5 (render-narinfo/cached # =E2=80=A6) 460:12 4 (_ . _) In guix/store.scm: 1020:9 3 (_ # "n8awazyldv9=E2=80= =A6") 916:4 2 (flush) In unknown file: 1 (put-bytevector # #vu8(29 0 =E2=80=A6= ) =E2=80=A6) In ice-9/boot-9.scm: 1669:16 0 (raise-exception _ #:continuable? _) In procedure fport_write: Rompita dukto 500 Internal Server Error 2020-11-04 15:43:15 ERARO 500: Internal Server Error. --8<---------------cut here---------------end--------------->8--- The first wget here, leads to this call in =E2=80=98render-nar/cached=E2=80= =99: (hash-part->path store "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee") =E2=87=92 "" and in turn to: (bypass-cache? store "") (query-path-info store "") at which point the daemon throws and closes the connection. Further attempts to access the store all lead to EPIPE as shown above. At this point, =E2=80=98guix publish=E2=80=99 can only serve what=E2=80=99s= already cached. Ludo=E2=80=99.