From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#39993: Guix report hash mismatch when underlying cause is ENOSPC Date: Sun, 22 Mar 2020 00:03:07 +0100 Message-ID: <87y2rtux90.fsf@gnu.org> References: <8736ai5lp4.fsf@gmail.com> <878sk91ncm.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 ([2001:470:142:3::10]:35313) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jFn9w-0005UY-9c for bug-guix@gnu.org; Sat, 21 Mar 2020 19:04:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jFn9u-0001VS-W3 for bug-guix@gnu.org; Sat, 21 Mar 2020 19:04:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42435) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jFn9u-0001VN-TL for bug-guix@gnu.org; Sat, 21 Mar 2020 19:04:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jFn9u-0005fh-Pf for bug-guix@gnu.org; Sat, 21 Mar 2020 19:04:02 -0400 Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Message-ID: In-Reply-To: <878sk91ncm.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Mon, 09 Mar 2020 17:53:29 +0100") 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-mx.org@gnu.org Sender: "bug-Guix" To: Maxim Cournoyer Cc: 39993-done@debbugs.gnu.org Hi, Ludovic Court=C3=A8s skribis: > Maxim Cournoyer skribis: > >> Guix should correctly report that it ran out of space instead of falsely >> mentioning hash mismatches and attempting alternative download sources, >> as demonstrated by the Guix output below: >> >> Session: >> >> building /gnu/store/dqzq8hbk8gqx5lhmnxsl5vl0c6s3i0a2-tcpdump-4.9.3.tar.g= z.drv... >> downloading from https://www.tcpdump.org/release/tcpdump-4.9.3.tar.gz... > > Could you post the log returned by =E2=80=98guix build --log-file > /gnu/store/dqzq8hbk8gqx5lhmnxsl5vl0c6s3i0a2-tcpdump-4.9.3.tar.gz.drv=E2= =80=99? I was able to reproduce it with a hack and that gives: --8<---------------cut here---------------start------------->8--- $ ./pre-inst-env guix build -S tcpdump --check=20 accepted connection from pid 32022, user ludo The following derivation will be built: /gnu/store/3y4zkzpkx799cvph0qi8kvkh26l8kfww-tcpdump-4.9.3.tar.gz.drv building /gnu/store/3y4zkzpkx799cvph0qi8kvkh26l8kfww-tcpdump-4.9.3.tar.gz.d= rv... Starting download of /gnu/store/124q26gkdyls859sblabz3f60grfvvdl-tcpdump-4.= 9.3.tar.gz >From https://www.tcpdump.org/release/tcpdump-4.9.3.tar.gz... In procedure fport_write: Ne havi=C4=9Das plu da spaco sur aparato Starting download of /gnu/store/124q26gkdyls859sblabz3f60grfvvdl-tcpdump-4.= 9.3.tar.gz >From https://ci.guix.gnu.org/file/tcpdump-4.9.3.tar.gz/sha256/0434vdcnbqaia= 672rggjzdn4bb8p8dchz559yiszzdk0sjrprm1c... In procedure fport_write: Ne havi=C4=9Das plu da spaco sur aparato Starting download of /gnu/store/124q26gkdyls859sblabz3f60grfvvdl-tcpdump-4.= 9.3.tar.gz >From https://tarballs.nixos.org/sha256/0434vdcnbqaia672rggjzdn4bb8p8dchz559= yiszzdk0sjrprm1c... following redirection to `https://tarballs.nixos.org/sha512/3aec673f78b996a= 4df884b1240e5d0a26a2ca81ee7aca8a2e6d50255bb53476e008a5ced4409e278a956710d8a= 4d31d85bbb800c9f1aab92b0b1046b59292a22'... In procedure fport_write: Ne havi=C4=9Das plu da spaco sur aparato Starting download of /gnu/store/124q26gkdyls859sblabz3f60grfvvdl-tcpdump-4.= 9.3.tar.gz >From https://archive.softwareheritage.org/api/1/content/sha256:2cd47cb3d460= b6ff75f4a9940f594317ad456cfbf2bd2c8e5151e16559db6410/raw/... In procedure fport_write: Ne havi=C4=9Das plu da spaco sur aparato failed to download "/gnu/store/124q26gkdyls859sblabz3f60grfvvdl-tcpdump-4.9= .3.tar.gz" from "https://www.tcpdump.org/release/tcpdump-4.9.3.tar.gz" warning: rewriting hashes in `/gnu/store/mv33j0si1n75q9kdimhvyrjn05pbxz5b-t= cpdump-4.9.3.tar.gz'; cross fingers sha256 hash mismatch for /gnu/store/mv33j0si1n75q9kdimhvyrjn05pbxz5b-tcpdum= p-4.9.3.tar.gz: expected hash: 0434vdcnbqaia672rggjzdn4bb8p8dchz559yiszzdk0sjrprm1c actual hash: 0mdqa9w1p6cmli6976v4wi0sw9r4p5prkj7lzfd1877wk11c9c73 hash mismatch for store item '/gnu/store/mv33j0si1n75q9kdimhvyrjn05pbxz5b-t= cpdump-4.9.3.tar.gz' --8<---------------cut here---------------end--------------->8--- > The root cause is that =E2=80=98false-if-exception*=E2=80=99 as used in (= guix build > download) is too coarse-grain. I came up with a fix in 4a6ec23a9780bd75a7e527bd0dfb1943347869bb. Thanks, Ludo=E2=80=99.