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 +I3yCUb7/l95ZwAA0tVLHw (envelope-from ) for ; Wed, 13 Jan 2021 13:53:10 +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 SPywBUb7/l+zZAAAbx9fmQ (envelope-from ) for ; Wed, 13 Jan 2021 13:53:10 +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 832B49404D9 for ; Wed, 13 Jan 2021 13:53:09 +0000 (UTC) Received: from localhost ([::1]:55032 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kzgaC-0006rs-HR for larch@yhetil.org; Wed, 13 Jan 2021 08:53:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45380) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kzga6-0006pJ-8d for bug-guix@gnu.org; Wed, 13 Jan 2021 08:53:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:51391) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kzga6-0006BF-1p for bug-guix@gnu.org; Wed, 13 Jan 2021 08:53:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kzga5-0001Za-VZ; Wed, 13 Jan 2021 08:53:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#45828: guix build: error: got unexpected path `Backtrace:' from substituter Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 13 Jan 2021 13:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45828 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Mathieu Othacehe Received: via spool by 45828-submit@debbugs.gnu.org id=B45828.16105459235951 (code B ref 45828); Wed, 13 Jan 2021 13:53:01 +0000 Received: (at 45828) by debbugs.gnu.org; 13 Jan 2021 13:52:03 +0000 Received: from localhost ([127.0.0.1]:34701 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kzgZ9-0001Xu-1k for submit@debbugs.gnu.org; Wed, 13 Jan 2021 08:52:03 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51894) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kzgZ7-0001XR-BV for 45828@debbugs.gnu.org; Wed, 13 Jan 2021 08:52:01 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:56348) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kzgZ1-0005eV-Tt; Wed, 13 Jan 2021 08:51:55 -0500 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=38478 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kzgZ0-0002g1-Ih; Wed, 13 Jan 2021 08:51:54 -0500 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87turlai45.fsf@cbaines.net> <20210113011135.760c4faa@tachikoma.lepiller.eu> <87o8htum2e.fsf@gnu.org> Date: Wed, 13 Jan 2021 14:51:52 +0100 In-Reply-To: <87o8htum2e.fsf@gnu.org> (Mathieu Othacehe's message of "Wed, 13 Jan 2021 12:13:13 +0100") Message-ID: <87pn29aqrr.fsf@gnu.org> 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-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: , Cc: 45828@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.86 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-Migadu-Queue-Id: 832B49404D9 X-Spam-Score: -2.86 X-Migadu-Scanner: scn1.migadu.com X-TUID: O+wfHdHevO15 Hi, Mathieu Othacehe skribis: > There are errors in "/var/log/guix-publish.log" that could be the cause > of this problem I think. > > GET /7m6mlzh0d6nifdxhaij7varg4q7lqdj4.narinfo > In guix/scripts/publish.scm: > 482:4 7 (render-narinfo/cached # =E2=80=A6) > 487:12 6 (_ . _) > In guix/store.scm: > 1021:9 5 (_ # "7m6mlzh0d6n=E2= =80=A6") > 619:2 4 (write-buffered-output #) > In unknown file: > 3 (force-output #) > In guix/store.scm: > 917:4 2 (write #vu8(29 0 0 0 0 0 0 0 32 0 0 0 0 0 0 0 55 109 =E2=80= =A6) =E2=80=A6) > 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: Broken pipe As discussed on IRC today, the EPIPE above comes from talking to guix-daemon, meaning that the store connection shown in the backtrace has been closed by guix-daemon. This can happen if guix-daemon was restarted but =E2=80=98guix publish=E2= =80=99 wasn=E2=80=99t: =E2=80=98guix publish=E2=80=99 opens only one connection to the store at st= artup time, and then never tries to re-open it. There was an old bug on this topic: https://issues.guix.gnu.org/26705 Back then I marked it as =E2=80=98wontfix=E2=80=99 because: 1. Losing a connection to the daemon Does Not Happen=E2=84=A2 in normal conditions. Namely, upon =E2=80=98herd restart guix-daemon=E2=80=99, = =E2=80=98guix publish=E2=80=99 is automatically restarted. One situation where =E2= =80=98guix publish=E2=80=99 is not restarted is if one does =E2=80=9Ckillall guix= -daemon=E2=80=9D or similar. (Perhaps that=E2=80=99s something to fix in the Shepherd?) 2. Catching EPIPE in the right place is tricky. Basically we=E2=80=99d probably need to install a 'system-error handler around each RPC (and offer callers a way to choose the EPIPE handling strategy), which would incur additional overhead. Ludo=E2=80=99.