From unknown Sun Jun 15 14:00:30 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#20163 <20163@debbugs.gnu.org> To: bug#20163 <20163@debbugs.gnu.org> Subject: Status: substitute-binary fails when attempting to reconfigure Reply-To: bug#20163 <20163@debbugs.gnu.org> Date: Sun, 15 Jun 2025 21:00:30 +0000 retitle 20163 substitute-binary fails when attempting to reconfigure reassign 20163 guix submitter 20163 Mark H Weaver severity 20163 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 21 22:52:56 2015 Received: (at submit) by debbugs.gnu.org; 22 Mar 2015 02:52:56 +0000 Received: from localhost ([127.0.0.1]:60198 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YZW0V-0008Ni-RL for submit@debbugs.gnu.org; Sat, 21 Mar 2015 22:52:56 -0400 Received: from eggs.gnu.org ([208.118.235.92]:42017) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YZW0T-0008NS-MD for submit@debbugs.gnu.org; Sat, 21 Mar 2015 22:52:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YZW0N-0001G7-Bj for submit@debbugs.gnu.org; Sat, 21 Mar 2015 22:52:48 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:49950) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YZW0N-0001G1-8U for submit@debbugs.gnu.org; Sat, 21 Mar 2015 22:52:47 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43730) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YZW0M-0005LC-2N for bug-guix@gnu.org; Sat, 21 Mar 2015 22:52:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YZW0H-00010k-C8 for bug-guix@gnu.org; Sat, 21 Mar 2015 22:52:46 -0400 Received: from world.peace.net ([50.252.239.5]:49981) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YZW0H-0000zO-7v for bug-guix@gnu.org; Sat, 21 Mar 2015 22:52:41 -0400 Received: from [10.1.10.78] (helo=jojen) by world.peace.net with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1YZW09-00082Y-BM; Sat, 21 Mar 2015 22:52:33 -0400 From: Mark H Weaver To: bug-guix@gnu.org Subject: substitute-binary fails when attempting to reconfigure Date: Sat, 21 Mar 2015 22:53:02 -0400 Message-ID: <87a8z5agkx.fsf@netris.org> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -5.0 (-----) Running "guix system reconfigure" with substitutes enabled now consistently fails for me with the following backtrace: --8<---------------cut here---------------start------------->8--- root:~# ~mhw/bin/guix system reconfigure ~mhw/jojen.scm substitute-binary: Backtrace: substitute-binary: In ice-9/boot-9.scm: substitute-binary: 157: 17 [catch #t # ...] substitute-binary: In unknown file: substitute-binary: ?: 16 [apply-smob/1 #] substitute-binary: In ice-9/boot-9.scm: substitute-binary: 63: 15 [call-with-prompt prompt0 ...] substitute-binary: In ice-9/eval.scm: substitute-binary: 432: 14 [eval # #] substitute-binary: In ice-9/boot-9.scm: substitute-binary: 2401: 13 [save-module-excursion #] substitute-binary: 4050: 12 [#] substitute-binary: 1724: 11 [%start-stack load-stack ...] substitute-binary: 1729: 10 [#] substitute-binary: In unknown file: substitute-binary: ?: 9 [primitive-load "/gnu/store/lhwsnbq2h05m604zpw9wvglkaif8y41h-guix-0.8.1.07157e8/bin/guix"] substitute-binary: In guix/ui.scm: substitute-binary: 838: 8 [run-guix-command substitute-binary "--query"] substitute-binary: In ice-9/boot-9.scm: substitute-binary: 157: 7 [catch misc-error # ...] substitute-binary: 2864: 6 [resolve-interface (guix scripts substitute-binary) #:select ...] substitute-binary: 2789: 5 [# # ...] substitute-binary: 3065: 4 [try-module-autoload (guix scripts substitute-binary) #f] substitute-binary: 2401: 3 [save-module-excursion #] substitute-binary: 3085: 2 [#] substitute-binary: In unknown file: substitute-binary: ?: 1 [primitive-load-path "guix/scripts/substitute-binary" ...] substitute-binary: In guix/scripts/substitute-binary.scm: substitute-binary: 634: 0 [#] substitute-binary: substitute-binary: guix/scripts/substitute-binary.scm:634:2: In procedure #: substitute-binary: guix/scripts/substitute-binary.scm:634:2: Throw to key `match-error' with args `("match" "no matching pattern" ())'. guix system: error: build failed: unexpected end-of-file root:~# --8<---------------cut here---------------end--------------->8--- Running the same command with --no-substitutes works: --8<---------------cut here---------------start------------->8--- root:~# ~mhw/bin/guix system reconfigure ~mhw/jojen.scm --no-substitutes The following derivations will be built: /gnu/store/zshpy31rx9bisi6w64hljrrysd0jqrk9-grub-2.00.drv /gnu/store/hm02q0iy3jjr995cgyy6pq0fjxkywm7i-grub.cfg.drv /gnu/store/gzylnn8kq40s9day9h3xassqv2jnbkck-grub-2.00.tar.xz.drv /gnu/store/ld352ranb4xl1x882zkl2ax8w4581xcl-xorriso-1.3.8.drv /gnu/store/pp5ci0lnd8ib9n3wkrpxj788zyrw6fla-qemu-headless-1.3.1.drv /gnu/store/5lhhp3ypph0vvdsp7fbfk07arr77c4ms-gtkmm-2.24.2.drv /gnu/store/vzxd6l9qxslnslgy538kxq6v7akbi25x-inkscape-0.91.drv /gnu/store/sdfydjqpbp2vr7p87cz35zxxhn7g25df-grub-image.png.drv /gnu/store/1y0xirbizfvj7p7ps2awlcb3vs35jsii-grub-image.resized.png.drv grub-2.00/ grub-2.00/po/ grub-2.00/po/LINGUAS grub-2.00/po/stamp-po grub-2.00/po/grub.pot [...] --8<---------------cut here---------------end--------------->8--- Running other commands including "guix system build" and "guix package" with substitutes enabled works properly. The 'guix' command being run here is using 'pre-inst-env' within a git checkout that's on 9d297fa but with some local commits added including 'wip-http-pipelining'. The 'guix-daemon' being run is from guix-0.8.1.07157e8, which I suppose is using its own copy of 'guix substitute' (right?). Mark From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 22 10:03:06 2015 Received: (at 20163) by debbugs.gnu.org; 22 Mar 2015 14:03:07 +0000 Received: from localhost ([127.0.0.1]:60724 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YZgT4-00004u-II for submit@debbugs.gnu.org; Sun, 22 Mar 2015 10:03:06 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:59383 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YZgT2-0008WR-A7 for 20163@debbugs.gnu.org; Sun, 22 Mar 2015 10:03:04 -0400 Received: from reverse-83.fdn.fr ([80.67.176.83]:59125 helo=pluto) by fencepost.gnu.org with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1YZgT1-0004v4-GJ; Sun, 22 Mar 2015 10:03:03 -0400 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Mark H Weaver Subject: Re: bug#20163: substitute-binary fails when attempting to reconfigure References: <87a8z5agkx.fsf@netris.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 2 Germinal an 223 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu Date: Sun, 22 Mar 2015 15:03:00 +0100 In-Reply-To: <87a8z5agkx.fsf@netris.org> (Mark H. Weaver's message of "Sat, 21 Mar 2015 22:53:02 -0400") Message-ID: <87k2y9165n.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 20163 Cc: 20163@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -5.0 (-----) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mark H Weaver skribis: > substitute-binary: In guix/scripts/substitute-binary.scm: > substitute-binary: 634: 0 [#] > substitute-binary:=20 > substitute-binary: guix/scripts/substitute-binary.scm:634:2: In procedure= #: > substitute-binary: guix/scripts/substitute-binary.scm:634:2: Throw to key= `match-error' with args `("match" "no matching pattern" ())'. This sounds possibly related to commit 41c45e7. > The 'guix' command being run here is using 'pre-inst-env' within a git > checkout that's on 9d297fa but with some local commits added including > 'wip-http-pipelining'. The 'guix-daemon' being run is from > guix-0.8.1.07157e8, which I suppose is using its own copy of 'guix > substitute' (right?). Yes, on GuixSD the daemon is using its own copy of =E2=80=98guix substitute= =E2=80=99, that is 07157e8. So the problem could have to do with what the client passes with =E2=80=98set-build-options=E2=80=99, although I don=E2=80=99t know what=E2= =80=99s going on. Could you try something like this: --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/guix/store.scm b/guix/store.scm index 45c555b..35cb680 100644 --- a/guix/store.scm +++ b/guix/store.scm @@ -487,7 +487,7 @@ encoding conversion errors." (let ((pairs `(,@(if timeout `(("build-timeout" . ,(number->string timeout))) '()) - ("substitute-urls" . ,(string-join substitute-urls))))) + ("substitute-urls" . ,(pk 'surls (string-join substitute-urls)))))) (send (string-pairs pairs)))) (let loop ((done? (process-stderr server))) (or done? (process-stderr server))))) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: base64 DQpUaGFua3MsDQpMdWRv4oCZLg0K --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 22 18:45:51 2015 Received: (at 20163-done) by debbugs.gnu.org; 22 Mar 2015 22:45:51 +0000 Received: from localhost ([127.0.0.1]:32792 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YZocw-0005sT-Qn for submit@debbugs.gnu.org; Sun, 22 Mar 2015 18:45:51 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:48321 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YZocv-0005sL-AF for 20163-done@debbugs.gnu.org; Sun, 22 Mar 2015 18:45:49 -0400 Received: from reverse-83.fdn.fr ([80.67.176.83]:60816 helo=pluto) by fencepost.gnu.org with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1YZocu-0004PX-D7; Sun, 22 Mar 2015 18:45:48 -0400 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Mark H Weaver Subject: Re: bug#20163: substitute-binary fails when attempting to reconfigure References: <87a8z5agkx.fsf@netris.org> Date: Sun, 22 Mar 2015 23:45:46 +0100 In-Reply-To: <87a8z5agkx.fsf@netris.org> (Mark H. Weaver's message of "Sat, 21 Mar 2015 22:53:02 -0400") Message-ID: <87lhioy7l1.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 20163-done Cc: 20163-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -5.0 (-----) This is fixed by commit 4d58122. The problem was that for clients running as =E2=80=98root=E2=80=99, the =E2=80=9Csubstitute-urls=E2=80=9D value that the client passes overrides th= at of the daemon. And the client=E2=80=99s default value was the empty list, which =E2=80=98substitute-binary=E2=80=99 currently rejects. Thank you! Ludo=E2=80=99. From unknown Sun Jun 15 14:00:30 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 20 Apr 2015 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator