From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 13 09:02:59 2021 Received: (at 45828) by debbugs.gnu.org; 13 Jan 2021 14:02:59 +0000 Received: from localhost ([127.0.0.1]:34716 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kzgji-00020g-PV for submit@debbugs.gnu.org; Wed, 13 Jan 2021 09:02:59 -0500 Received: from eggs.gnu.org ([209.51.188.92]:54932) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kzgjh-00020S-9B for 45828@debbugs.gnu.org; Wed, 13 Jan 2021 09:02:57 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:56514) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kzgjb-00029T-0m; Wed, 13 Jan 2021 09:02:51 -0500 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=38560 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kzgjZ-0001aZ-7U; Wed, 13 Jan 2021 09:02:50 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Christopher Baines Subject: Re: bug#45828: guix build: error: got unexpected path `Backtrace:' from substituter References: <87turlai45.fsf@cbaines.net> Date: Wed, 13 Jan 2021 15:02:48 +0100 In-Reply-To: <87turlai45.fsf@cbaines.net> (Christopher Baines's message of "Tue, 12 Jan 2021 22:46:34 +0000") Message-ID: <87a6tdaq9j.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-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 45828 Cc: 45828@debbugs.gnu.org, Leo Famulari 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 (---) Hi Chris, Christopher Baines skribis: > I might have managed to reproduce the error happening on the daemon > side: > > =E2=86=92 /gnu/store/4j8vn0gbqz5adj1y02nnwcfwmqsjgj8s-guix-1.2.0-6.799f06= 6/bin/guix substitute --query > info /gnu/store/3c01q1f16kljfry70qjg6cs6k8winfzg-guix-package-cache /gnu/= store/6lk8anal4s62gk3d30vgxppykbd5jcfj-guix-85e97c969 /gnu/store/9zl2zbh3q2= jnbfvxgnhw8j3f637ni7z4-guix-cli /gnu/store/ihricijvy16zwkd2n671xlyrn02sqhf9= -guix-manual /gnu/store/m3j427qnlp81vsdj3x9ds7s4i051r1vz-guix-system-tests = /gnu/store/mbv9j7wwqvwnr5awzbi126jdsj3h64h5-guix-packages /gnu/store/n2m1ay= 7kpa5f4fls4vvcy46ar1fdl0wk-guix-system /gnu/store/p4q9ajlb3l7x8xglqs6fflch2= iwjqwaj-guix-module-union /gnu/store/snhx33fgjj2xnc5vy96sr3c8jqw9c7s0-guix-= 85e97c969-modules /gnu/store/vnrlvz9pxl5qrpy5x8y51v6awz7yzn8q-guix-packages= -base /gnu/store/z4wj18vyzaas2yqb0577cc3japy4fi7z-guix-config /gnu/store/zd= jfbsj1a94vdbbg9r0cx4jcqnwxazxs-guix-translated-texinfo > Backtrace: > In ice-9/boot-9.scm: > 1736:10 5 (with-exception-handler _ _ #:unwind? _ # _) > In unknown file: > 4 (apply-smob/0 #) > In ice-9/boot-9.scm: > 718:2 3 (call-with-prompt _ _ #) > In ice-9/eval.scm: > 619:8 2 (_ #(#(#))) > In guix/ui.scm: > 2127:12 1 (run-guix-command _ . _) > In guix/scripts/substitute.scm: > 1256:4 0 (guix-substitute . _) > > guix/scripts/substitute.scm:1256:4: In procedure guix-substitute: > Throw to key `bad-response' with args `("Bad Response-Line: ~s" (""))'. It=E2=80=99s interesting that we=E2=80=99re not seeing 500 here, but a bad = response. I tried reproducing it locally (running =E2=80=9Csudo killall guix-daemon= =E2=80=9D after I had started =E2=80=9Cguix publish=E2=80=9D, and then running a command si= milar to the one above) but I failed: I get a proper 500 response, which =E2=80=98guix substitute=E2=80=99 gracefully interprets as a transient error. We could be defensive and catch 'bad-response. The problem is that there are other exceptions thrown by (web http) et al. and they=E2=80=99re = not quite documented so it=E2=80=99s not clear to me how to do it nicely. Thoughts? Ludo=E2=80=99.