From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#33897: 'guix publish' is unable to serve narinfos for dead items Date: Fri, 28 Dec 2018 22:49:58 +0100 Message-ID: <87k1jt8gop.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:43150) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gd06y-0004XC-Nx for bug-guix@gnu.org; Fri, 28 Dec 2018 16:56:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gd06v-0003TZ-1y for bug-guix@gnu.org; Fri, 28 Dec 2018 16:56:08 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:43402) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gd06s-0003Rc-JH for bug-guix@gnu.org; Fri, 28 Dec 2018 16:56:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gd06s-0005uu-EB for bug-guix@gnu.org; Fri, 28 Dec 2018 16:56:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: 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 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) 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) List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 33897@debbugs.gnu.org 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.