From debbugs-submit-bounces@debbugs.gnu.org Thu May 23 23:29:04 2024 Received: (at submit) by debbugs.gnu.org; 24 May 2024 03:29:04 +0000 Received: from localhost ([127.0.0.1]:34455 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sALc8-0002dA-1O for submit@debbugs.gnu.org; Thu, 23 May 2024 23:29:04 -0400 Received: from lists.gnu.org ([209.51.188.17]:42698) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sALc3-0002cl-4N for submit@debbugs.gnu.org; Thu, 23 May 2024 23:29:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sALbv-00015H-Uj for bug-guix@gnu.org; Thu, 23 May 2024 23:28:51 -0400 Received: from mail-108-mta197.mxroute.com ([136.175.108.197]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sALbt-00007c-UV for bug-guix@gnu.org; Thu, 23 May 2024 23:28:51 -0400 Received: from filter006.mxroute.com ([136.175.111.3] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta197.mxroute.com (ZoneMTA) with ESMTPSA id 18fa8a4c959000efce.001 for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Fri, 24 May 2024 03:28:42 +0000 X-Zone-Loop: 3e29813a96ed33b2b46262c99fde438f1644bb364d4d X-Originating-IP: [136.175.111.3] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=freakingpenguin.com; s=x; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-ID:Date:Subject:To:From:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=UREd9tazqNJN1RunXOdu71kv/gh8+N9OgJwW/XpmQtw=; b=l8ES6Gkgiun5XwIPNJ98C+HAuP RCP4yA7bGHVU8F14XkFtcxKrXYx31loKg26rMVmpKuvrZv+Eqh9sw/H23iPh8dFVvjGUPpGzwgcCo HPgX5viZXF1/0ir0blK4YiqF10XJEhXqdazLiQNZdmYeXp/d7eQDgUPqMNcTHkHEgonLE26eYmO7V Zx6EAAZ3Qo3KpCW4wfsO1eOEG0F/ZIivDNHuDLUGNP3DEeMBPdgbL2uWiAW3yRK/79p10NeFMTJ5/ yi0aRTx1v1maScxDYzE/bckGqq27UhIIuMNV3+6KqaCvYs2oFHPtP16h/ZPxWS7eQd2YO/w5ncXXk OIszxOqw==; From: Richard Sent To: bug-guix@gnu.org Subject: --fallback and (fallback #t) do not apply when receiving a corrupt nar Date: Thu, 23 May 2024 23:28:33 -0400 Message-ID: <87fru7vqfy.fsf@freakingpenguin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Authenticated-Id: richard@freakingpenguin.com Received-SPF: pass client-ip=136.175.108.197; envelope-from=richard@freakingpenguin.com; helo=mail-108-mta197.mxroute.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) 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: -2.4 (--) Hi Guix! As part of building linux-libre-arm64-generic, Guix tries substituting linux-libre-arm64-generic.tar.xz. Unfortunately it looks like a corrupt nar snuck into bordeaux. --8<---------------cut here---------------start------------->8--- root@lifeline ~# guix build linux-libre-arm64-generic --system=3Daarch64-li= nux --fallback The following derivations will be built: /gnu/store/9626zaczwl5x4ypxmmdklvkclqx2dlpi-linux-libre-arm64-generic-6.8= .10.drv /gnu/store/1wi10rg7236ck8k5vdrdfap5l7a9s9z0-linux-libre-6.8.10-guix.tar.x= z.drv 199.7 MB will be downloaded: # Snip /gnu/store/y813phs2n9xnb7zbcr07g0j9509bzbsb-linux-libre-6.8.10-guix.tar.xz substituting /gnu/store/0jfsx4hljddyand45z7i77ynpvr0mhb5-module-import-comp= iled... downloading from https://bordeaux.guix.gnu.org/nar/lzip/0jfsx4hljddyand45z7= i77ynpvr0mhb5-module-import-compiled ... module-import-compiled 171KiB = 676KiB/s 00:00 =E2=96=95=E2=96=88= =E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2= =96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96= =88=E2=96=8F 100.0% substituting /gnu/store/y813phs2n9xnb7zbcr07g0j9509bzbsb-linux-libre-6.8.10= -guix.tar.xz... downloading from https://bordeaux.guix.gnu.org/nar/none/y813phs2n9xnb7zbcr0= 7g0j9509bzbsb-linux-libre-6.8.10-guix.tar.xz ... linux-libre-6.8.10-guix.tar.xz 136.5MiB = 20.5MiB/s 00:06 =E2=96=95=E2=96=88= =E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2= =96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96= =8C=E2=96=8F 97.6%guix substitute: error: corrupt input while restoring '/= gnu/store/y813phs2n9xnb7zbcr07g0j9509bzbsb-linux-libre-6.8.10-guix.tar.xz' = from # substitution of /gnu/store/y813phs2n9xnb7zbcr07g0j9509bzbsb-linux-libre-6.8= .10-guix.tar.xz failed guix build: error: corrupt input while restoring archive from # root@lifeline ~#=20 --8<---------------cut here---------------end--------------->8--- Trying to pass --fallback on the command line has no effect, even though both the documentation and [1] imply that should work. Similarly with Cuirass, I have a spec that tries to build an operating-system with a linux-libre-arm64-generic kernel. Even though cuirass-configuration has (fallback #t), no attempt is made to recover by building the derivation locally. --8<---------------cut here---------------start------------->8--- ;; In config (define %rsent-cuirass-service (service cuirass-service-type (cuirass-configuration (specifications %rsent-cuirass-specs) (host "0.0.0.0") (fallback? #t)))) ;; From /var/log/cuirass.log 2024-05-23 22:23:36 Uncaught exception in task: 2024-05-23 22:23:36 In fibers.scm: 2024-05-23 22:23:36 172:8 8 (_) 2024-05-23 22:23:36 In ice-9/boot-9.scm: 2024-05-23 22:23:36 1752:10 7 (with-exception-handler _ _ #:unwind? _ # = _) 2024-05-23 22:23:36 In guix/store.scm: 2024-05-23 22:23:36 684:37 6 (thunk) 2024-05-23 22:23:36 In cuirass/base.scm: 2024-05-23 22:23:36 421:14 5 (_ _) 2024-05-23 22:23:36 267:10 4 (spawn-builds # _ ?) 2024-05-23 22:23:36 In ice-9/boot-9.scm: 2024-05-23 22:23:36 1752:10 3 (with-exception-handler _ _ #:unwind? _ # = _) 2024-05-23 22:23:36 1685:16 2 (raise-exception _ #:continuable? _) 2024-05-23 22:23:36 1683:16 1 (raise-exception _ #:continuable? _) 2024-05-23 22:23:36 1685:16 0 (raise-exception _ #:continuable? _) 2024-05-23 22:23:36 ice-9/boot-9.scm:1685:16: In procedure raise-exception: 2024-05-23 22:23:36 ERROR: 2024-05-23 22:23:36 1. &nar-error: 2024-05-23 22:23:36 file: #f 2024-05-23 22:23:36 port: # --8<---------------cut here---------------end--------------->8--- I'm no rocket scientist, but that error looks very similar to the error found when building from the CLI. Given that cuirass-configuration has fallback #t, it should be recoverable. Possibly related: [2] and [3] [1]: https://issues.guix.gnu.org/23103 [2]: https://issues.guix.gnu.org/55820 [3]: Guix 3f59fd6d114548480c719d4b8f8509bdf3e8dcca --=20 Take it easy, Richard Sent Making my computer weirder one commit at a time. From debbugs-submit-bounces@debbugs.gnu.org Sat May 25 22:06:44 2024 Received: (at 71160) by debbugs.gnu.org; 26 May 2024 02:06:44 +0000 Received: from localhost ([127.0.0.1]:52648 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sB3HX-0004Bq-U6 for submit@debbugs.gnu.org; Sat, 25 May 2024 22:06:44 -0400 Received: from mail-108-mta232.mxroute.com ([136.175.108.232]:41965) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sB3HU-00044x-GK for 71160@debbugs.gnu.org; Sat, 25 May 2024 22:06:41 -0400 Received: from filter006.mxroute.com ([136.175.111.3] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta232.mxroute.com (ZoneMTA) with ESMTPSA id 18fb2a64179000efce.001 for <71160@debbugs.gnu.org> (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Sun, 26 May 2024 02:06:31 +0000 X-Zone-Loop: c659cb44e673136df99615ad35e179ec87bd97e1a910 X-Originating-IP: [136.175.111.3] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=freakingpenguin.com; s=x; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-ID:Date:References:In-Reply-To:Subject:To:From:Sender: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=aWB6ghv3+AhhUau7uzKB64GAO9udSDo1foG8AsQYcfE=; b=qO/eLaEdfhk/zMBGr/MT1FDLPw SDAi/4wJWJZvzFzylWe/xPgCMoE0L5vg4Vt7pvlzYWRCVSNw0FChClm2gBQ/B6EmkICKiOjujMUl7 mDpBejNw1iqgenFyh4lJd1i3Tp44tSiqrk9OCJYuGSaWiY9oPIlcFXGGkSCko542hoVEupvbGmMep Zu67Bxr3n0HvANxt+4pmULng+ypdVjFnww+dqzpF/Hb5/lUyPHKLQrZfm838Bzi+gvR7H4Nby9WNT 0uaSsCQgv/VYn1gtvZOU2TrwKszsdz9UNMrQvNagjVnL2N2frtNC5gaMxBD/nDtWv6qxepJUE//kb a+Q/0E3A==; From: Richard Sent To: 71160@debbugs.gnu.org Subject: Re: bug#71160: --fallback and (fallback #t) do not apply when receiving a corrupt nar In-Reply-To: <87fru7vqfy.fsf@freakingpenguin.com> (Richard Sent's message of "Thu, 23 May 2024 23:28:33 -0400") References: <87fru7vqfy.fsf@freakingpenguin.com> Date: Sat, 25 May 2024 22:06:26 -0400 Message-ID: <87h6els4wt.fsf@freakingpenguin.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Authenticated-Id: richard@freakingpenguin.com X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 71160 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: -1.0 (-) Richard Sent writes: > Trying to pass --fallback on the command line has no effect, even though > both the documentation and [1] imply that should work. This issue might have some spiciness to it. I have two machines with identical guix commits and --fallback works on one but not the other. --8<---------------cut here---------------start------------->8--- # Failing machine: root@lifeline ~# guix describe Generation 2 May 25 2024 21:03:46 (current) guix 94c8cec repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: 94c8cec99969fe9f65777637fde1f05e1c576a3f # Good machine: Generation 3 May 25 2024 21:58:15 (current) guix 94c8cec repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: 94c8cec99969fe9f65777637fde1f05e1c576a3f --8<---------------cut here---------------end--------------->8--- On the failing machine, I get an error like this: --8<---------------cut here---------------start------------->8--- root@lifeline ~# guix build linux-libre-arm64-generic --system=3Daarch64-li= nux --fallback # snip downloading from https://bordeaux.guix.gnu.org/nar/none/y813phs2n9xnb7zbcr0= 7g0j9509bzbsb-linux-libre-6.8.10-guix.tar.xz ... linux-libre-6.8.10-guix.tar.xz 136.5MiB = 19.0MiB/s 00:07 =E2=96=95=E2=96=88= =E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2= =96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96= =89=E2=96=8F 99.9%guix substitute: error: corrupt input while restoring '/= gnu/store/y813phs2n9xnb7zbcr07g0j9509bzbsb-linux-libre-6.8.10-guix.tar.xz' = from # substitution of /gnu/store/y813phs2n9xnb7zbcr07g0j9509bzbsb-linux-libre-6.8= .10-guix.tar.xz failed guix build: error: corrupt input while restoring archive from # root@lifeline ~# logout --8<---------------cut here---------------end--------------->8--- whereas on the good machine: --8<---------------cut here---------------start------------->8--- root@gibraltar ~# guix build linux-libre-arm64-generic --system=3Daarch64-l= inux --fallback # snip downloading from https://bordeaux.guix.gnu.org/nar/none/y813phs2n9xnb7zbcr0= 7g0j9509bzbsb-linux-libre-6.8.10-guix.tar.xz ... linux-libre-6.8.10-guix.tar.xz 136.5MiB = 19.6MiB/s 00:07 =E2=96=95=E2=96=88= =E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2= =96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96= =8A=E2=96=8F 98.8%guix substitute: error: corrupt input while restoring '/= gnu/store/y813phs2n9xnb7zbcr07g0j9509bzbsb-linux-libre-6.8.10-guix.tar.xz' = from # substitution of /gnu/store/y813phs2n9xnb7zbcr07g0j9509bzbsb-linux-libre-6.8= .10-guix.tar.xz failed building /gnu/store/ny56fdcig9cd9bd3pssmlraz2c1q10q8-linux-libre-6.8.10-gui= x.tar.xz.drv... --8<---------------cut here---------------end--------------->8--- I thought perhaps there was some hyper-odd race condition going on here (lifeline is consistently at a higher percent than gibraltar when the error is detected), but I just had a outlier that seems to disprove that, where lifeline had the same error with a 97.2% download progress bar. --=20 Take it easy, Richard Sent Making my computer weirder one commit at a time.