From unknown Fri Jun 13 10:21:19 2025 X-Loop: help-debbugs@gnu.org Subject: bug#33897: 'guix publish' is unable to serve narinfos for dead items Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 28 Dec 2018 21:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 33897 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 33897@debbugs.gnu.org X-Debbugs-Original-To: Bug Guix Received: via spool by submit@debbugs.gnu.org id=B.154603412222678 (code B ref -1); Fri, 28 Dec 2018 21:56:02 +0000 Received: (at submit) by debbugs.gnu.org; 28 Dec 2018 21:55:22 +0000 Received: from localhost ([127.0.0.1]:40689 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gd06D-0005th-OO for submit@debbugs.gnu.org; Fri, 28 Dec 2018 16:55:21 -0500 Received: from eggs.gnu.org ([208.118.235.92]:47873) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gd06C-0005tV-AN for submit@debbugs.gnu.org; Fri, 28 Dec 2018 16:55:20 -0500 Received: from lists.gnu.org ([208.118.235.17]:54014) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gd066-0002Ua-B9 for submit@debbugs.gnu.org; Fri, 28 Dec 2018 16:55:14 -0500 Received: from eggs.gnu.org ([208.118.235.92]:42374) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gd065-0003TC-Cg for bug-guix@gnu.org; Fri, 28 Dec 2018 16:55:14 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20 autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gd014-0001mi-0R for bug-guix@gnu.org; Fri, 28 Dec 2018 16:50:03 -0500 Received: from hera.aquilenet.fr ([2a0c:e300::1]:41798) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gd013-0001fj-Oc for bug-guix@gnu.org; Fri, 28 Dec 2018 16:50:01 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 6567E14E5 for ; Fri, 28 Dec 2018 22:50:00 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AgZhcJcbgs-z for ; Fri, 28 Dec 2018 22:49:59 +0100 (CET) Received: from ribbon (unknown [IPv6:2a01:e0a:1d:7270:af76:b9b:ca24:c465]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 67034FA9 for ; Fri, 28 Dec 2018 22:49:59 +0100 (CET) From: Ludovic =?UTF-8?Q?Court=C3=A8s?= X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 8 =?UTF-8?Q?Niv=C3=B4se?= an 227 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: Fri, 28 Dec 2018 22:49:58 +0100 Message-ID: <87k1jt8gop.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a0c:e300::1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) Hello, =E2=80=98render-narinfo/cached=E2=80=99 in =E2=80=98guix publish=E2=80=99 u= ses =E2=80=98hash-part->path=E2=80=99 to go from /xyz.narinfo to, say, /gnu/store/xyz-guile-2.2.4. The problem is that =E2=80=98hash-part->path=E2=80=99 is an RPC that works = only if xyz corresponds to a live item; in other cases, it returns the empty string. Consequently, if /gnu/store/xyz-guile-2.2.4 has been GC=E2=80=99d, =E2=80=98guix publish=E2=80=99 returns 404 for /xyz.narinfo, even if it act= ually has the narinfo somewhere in cache. This defeats the intended behavior of =E2=80=98--cache=E2=80=99 and =E2=80= =98--ttl=E2=80=99. Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 09 15:32:36 2019 Received: (at control) by debbugs.gnu.org; 9 Jan 2019 20:32:36 +0000 Received: from localhost ([127.0.0.1]:52566 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ghKWi-00076p-7K for submit@debbugs.gnu.org; Wed, 09 Jan 2019 15:32:36 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:50128) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ghKWg-00076h-K7 for control@debbugs.gnu.org; Wed, 09 Jan 2019 15:32:34 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 18D6B157E for ; Wed, 9 Jan 2019 21:32:34 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zWGlWC2d8xxV for ; Wed, 9 Jan 2019 21:32:33 +0100 (CET) Received: from ribbon (unknown [IPv6:2a01:e0a:1d:7270:af76:b9b:ca24:c465]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 66356104E for ; Wed, 9 Jan 2019 21:32:33 +0100 (CET) Date: Wed, 09 Jan 2019 21:32:32 +0100 Message-Id: <87lg3t3733.fsf@gnu.org> To: control@debbugs.gnu.org From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: control message for bug #33897 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) severity 33897 important From unknown Fri Jun 13 10:21:19 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#33897: closed (Re: bug#33897: 'guix publish' is unable to serve narinfos for dead items) Message-ID: References: <87r28mnm0s.fsf@gnu.org> <87k1jt8gop.fsf@gnu.org> X-Gnu-PR-Message: they-closed 33897 X-Gnu-PR-Package: guix Reply-To: 33897@debbugs.gnu.org Date: Sat, 25 May 2019 23:38:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1558827482-11023-1" This is a multi-part message in MIME format... ------------=_1558827482-11023-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #33897: 'guix publish' is unable to serve narinfos for dead items which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 33897@debbugs.gnu.org. --=20 33897: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D33897 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1558827482-11023-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 33897-done) by debbugs.gnu.org; 25 May 2019 23:37:56 +0000 Received: from localhost ([127.0.0.1]:49905 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hUgEe-0002rU-G5 for submit@debbugs.gnu.org; Sat, 25 May 2019 19:37:56 -0400 Received: from eggs.gnu.org ([209.51.188.92]:54503) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hUgEc-0002rB-G4 for 33897-done@debbugs.gnu.org; Sat, 25 May 2019 19:37:54 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:37511) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hUgEW-0001kQ-Kw for 33897-done@debbugs.gnu.org; Sat, 25 May 2019 19:37:49 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=52678 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hUgEQ-0007hB-66 for 33897-done@debbugs.gnu.org; Sat, 25 May 2019 19:37:44 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: 33897-done@debbugs.gnu.org Subject: Re: bug#33897: 'guix publish' is unable to serve narinfos for dead items References: <87k1jt8gop.fsf@gnu.org> Date: Sun, 26 May 2019 01:37:39 +0200 In-Reply-To: <87k1jt8gop.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Fri, 28 Dec 2018 22:49:58 +0100") Message-ID: <87r28mnm0s.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 33897-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Ludovic Court=C3=A8s skribis: > =E2=80=98render-narinfo/cached=E2=80=99 in =E2=80=98guix publish=E2=80=99= uses =E2=80=98hash-part->path=E2=80=99 to go > from /xyz.narinfo to, say, /gnu/store/xyz-guile-2.2.4. > > The problem is that =E2=80=98hash-part->path=E2=80=99 is an RPC that work= s only if xyz > corresponds to a live item; in other cases, it returns the empty > string. Consequently, if /gnu/store/xyz-guile-2.2.4 has been GC=E2=80=99= d, > =E2=80=98guix publish=E2=80=99 returns 404 for /xyz.narinfo, even if it a= ctually has the > narinfo somewhere in cache. > > This defeats the intended behavior of =E2=80=98--cache=E2=80=99 and =E2= =80=98--ttl=E2=80=99. Fixed in 493375cdb23fc1416348da584f17bec7171faadd. Ludo=E2=80=99. ------------=_1558827482-11023-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 28 Dec 2018 21:55:22 +0000 Received: from localhost ([127.0.0.1]:40689 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gd06D-0005th-OO for submit@debbugs.gnu.org; Fri, 28 Dec 2018 16:55:21 -0500 Received: from eggs.gnu.org ([208.118.235.92]:47873) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gd06C-0005tV-AN for submit@debbugs.gnu.org; Fri, 28 Dec 2018 16:55:20 -0500 Received: from lists.gnu.org ([208.118.235.17]:54014) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gd066-0002Ua-B9 for submit@debbugs.gnu.org; Fri, 28 Dec 2018 16:55:14 -0500 Received: from eggs.gnu.org ([208.118.235.92]:42374) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gd065-0003TC-Cg for bug-guix@gnu.org; Fri, 28 Dec 2018 16:55:14 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20 autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gd014-0001mi-0R for bug-guix@gnu.org; Fri, 28 Dec 2018 16:50:03 -0500 Received: from hera.aquilenet.fr ([2a0c:e300::1]:41798) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gd013-0001fj-Oc for bug-guix@gnu.org; Fri, 28 Dec 2018 16:50:01 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 6567E14E5 for ; Fri, 28 Dec 2018 22:50:00 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AgZhcJcbgs-z for ; Fri, 28 Dec 2018 22:49:59 +0100 (CET) Received: from ribbon (unknown [IPv6:2a01:e0a:1d:7270:af76:b9b:ca24:c465]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 67034FA9 for ; Fri, 28 Dec 2018 22:49:59 +0100 (CET) From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Bug Guix Subject: 'guix publish' is unable to serve narinfos for dead items X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 8 =?utf-8?Q?Niv=C3=B4se?= an 227 de la =?utf-8?Q?R?= =?utf-8?Q?=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: Fri, 28 Dec 2018 22:49:58 +0100 Message-ID: <87k1jt8gop.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a0c:e300::1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) Hello, =E2=80=98render-narinfo/cached=E2=80=99 in =E2=80=98guix publish=E2=80=99 u= ses =E2=80=98hash-part->path=E2=80=99 to go from /xyz.narinfo to, say, /gnu/store/xyz-guile-2.2.4. The problem is that =E2=80=98hash-part->path=E2=80=99 is an RPC that works = only if xyz corresponds to a live item; in other cases, it returns the empty string. Consequently, if /gnu/store/xyz-guile-2.2.4 has been GC=E2=80=99d, =E2=80=98guix publish=E2=80=99 returns 404 for /xyz.narinfo, even if it act= ually has the narinfo somewhere in cache. This defeats the intended behavior of =E2=80=98--cache=E2=80=99 and =E2=80= =98--ttl=E2=80=99. Ludo=E2=80=99. ------------=_1558827482-11023-1--