From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id MAX6ET/aZWD3yAAAgWs5BA (envelope-from ) for ; Thu, 01 Apr 2021 16:35:43 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id oLraCz/aZWAyIwAA1q6Kng (envelope-from ) for ; Thu, 01 Apr 2021 14:35:43 +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 8B70524F4F for ; Thu, 1 Apr 2021 16:35:42 +0200 (CEST) Received: from localhost ([::1]:53596 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lRyQ8-0005sN-LN for larch@yhetil.org; Thu, 01 Apr 2021 10:35:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60356) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lRyQ3-0005oF-5h for guix-science@gnu.org; Thu, 01 Apr 2021 10:35:35 -0400 Received: from elegua.eauchat.org ([91.224.149.118]:46104 helo=eauchat.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lRyQ0-0003LV-UP for guix-science@gnu.org; Thu, 01 Apr 2021 10:35:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eauchat.org; s=mail; t=1617287728; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=epsfmRfqGAoGTy4ZbWoRY4RV4f+kl7PYaOkR5V4qmhs=; b=IZdETDMKOKWGQe6ohQE7dK+UYC3myjWOgf2czgRLwcCGxfpQW9KORwqtnze0bCgI9FwG6I nAXvX2zpUFCVmBONGgxbvhR0mYQeMW6hr01HTjncyExLPUTsrGmplwBXu0VYVnZ/uvVmcz OwfhCvkFK0uhMGoEDNi2S1Ry0DctY48= References: <878s6pds9t.fsf@eauchat.org> <87zgz3c17o.fsf@eauchat.org> <8735wva2p9.fsf@gnu.org> <87r1kdci49.fsf@eauchat.org> <877dlucsur.fsf@eauchat.org> <87k0pqrwub.fsf@inria.fr> <87blb1wgna.fsf@eauchat.org> <87o8f1jee2.fsf@inria.fr> <87ft0bvqv5.fsf@eauchat.org> <87mtui1jxn.fsf@gnu.org> From: =?utf-8?Q?S=C3=A9bastien?= Lerique To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-science@gnu.org, zimoun Subject: Re: Introducing Guix to HPC at my institution In-reply-to: <87mtui1jxn.fsf@gnu.org> Message-ID: <87k0pmysyk.fsf@eauchat.org> Date: Thu, 01 Apr 2021 23:34:12 +0900 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=91.224.149.118; envelope-from=sl@eauchat.org; helo=eauchat.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-science@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-science-bounces+larch=yhetil.org@gnu.org Sender: "Guix-Science" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1617287742; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=epsfmRfqGAoGTy4ZbWoRY4RV4f+kl7PYaOkR5V4qmhs=; b=iwpcrYnpDc6ZBYjcVnpeJaDGc+wbMWysgb9Ne7wZP4O6A3Hd0HcsqF2SUbie0AxrRQLvr6 UEWJvGkKcDwkIE5W6fyyhI/xJ+l1U4X/DWGXzyK2Jndaj6Hc0cSMTXCJs6EgDT/+T6NIQf aQivduhXvlsSE6QrKhCwsFWldirj4sKwSXxeKWdD/MyeFCjjv12Oxeo2OYJ8poRfStsk0B EEM9p+KAwMp5kUXL3QtcgGKj99RyIRUDwPRFav1oLdz0pV6cBUCu31ZbumEoHfvJpGIcQJ wXhiFv1hJ2YmSD7dRw8V/a7slTJG98rBJvAz9RhAJHNHhogFqe8V7dChQGJoVA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1617287742; a=rsa-sha256; cv=none; b=E5FdidMgm6b98x9Lk/TkGRKoetLtz0YEQSqrMl+EK+oZ/YD5POZVQXELH0fsCSnF9GCcm8 QnfWmwIFQ3RL9M+p2ifBKWOfeY2S6fR7mK4vJfgJZmB5LQDuy2Ywk4FDDfQqHwLgeNNX7h tqXr9LvBdDEuJsdwTP9yVYIjjb31Kdj/ipqKHvrm6SiiLqDaiLwr77AEDzbLL1+a8+ms17 Ct8S5BHltU9xOTiqfNpR4qTjuPzz/Qmf1K3Gy/n2jcDHrqyaDvTGmlF5gniu+5I5FoKMIL DuacYWqspKr7MBUbdJD/NOozMG1l9edSH4XrrqSQVZQys08ZvFS1YletDXjMIA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=eauchat.org header.s=mail header.b=IZdETDMK; dmarc=fail reason="SPF not aligned (relaxed)" header.from=eauchat.org (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-science-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-science-bounces@gnu.org X-Migadu-Spam-Score: -1.33 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=eauchat.org header.s=mail header.b=IZdETDMK; dmarc=fail reason="SPF not aligned (relaxed)" header.from=eauchat.org (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-science-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-science-bounces@gnu.org X-Migadu-Queue-Id: 8B70524F4F X-Spam-Score: -1.33 X-Migadu-Scanner: scn0.migadu.com X-TUID: 58JSH6DYGoOz Hello! On 01 Apr 2021 at 17:35, Ludovic Court=C3=A8s=20 wrote: >> Case 1: with substitutes, on a local (non-NFS) folder >> ----------------------------------------------------- >> [snip] > > Can you run guix-daemon like so? > > LC_ALL=3Den_US.utf8 guix-daemon --disable-chroot & Then: $ guix install hello --no-offload [... dowloading ...] 13.3 MB will be downloaded substitution of=20 /gnu/store/395pvii4bcjqxvdv7h0drq10lxi01sv1-glibc-utf8-locales-2.31=20 failed guix install: error: some substitutes for the outputs of=20 derivation=20 `/gnu/store/b2jkmg71m0dpf3i6hvskb32ra48lls28-glibc-utf8-locales-2.31.drv'= =20 failed (usually happens due to networking issues); try=20 `--fallback' to build derivation from source Restarting from scratch and using `--fallback` then leads to the=20 bzip2-mesboot failure of Case 2. If, instead of resarting from scratch, I just run again `guix=20 install hello --no-offload`, I then get: guix install: error: got unexpected path=20 `/gnu/store/pwcp239kjf7lnj5i4lkdzcfcxwcfyk72-bash-minimal-5.0.16/bin/bash= :=20 warning: setlocale: LC_ALL: cannot change locale (en_US.utf8)'=20 from substituter And indeed once again lib/locale is a dead symlink, as the=20 glibc-utf8-locales packaged in my tar.gz has been removed from the=20 store. Why is that? I had a look through the same commands with=20 --debug=3D4 or 5, but to no insight (aside from seeing locale=20 derivations being deleted at some stage). I posted the end of the=20 log produced by `guix install hello --no-offload --debug=3D4`,=20 starting with the failed substitution, here:=20 https://paste.debian.net/1191991/ . > The =E2=80=9Cunexpected substitute message=E2=80=9D thing is a bug: it tu= rns out=20 > that > stderr of =E2=80=98guix substitute=E2=80=99 is consumed directly by the d= aemon=20 > at this > point, which it shouldn=E2=80=99t (similar to the issue fixed by > ee3226e9d54891c7e696912245e4904435be191c). Ok, I'll file a bug for that then :) >> Case 2: from source (no substitutes), on a local (non-NFS)=20 >> folder >> ----------------------------------------------------------------- >> [snip] > > The problem is that =E2=80=98--disable-chroot=E2=80=99 is a bit of the wi= ld=20 > west: build > processes can access the whole file system and what you do as a=20 > user can > interfere with them. > > It could be that the bzip2 build failure above is just that: the=20 > build > process picks something from /usr/lib or /usr/bin, and that=20 > breaks > everything. > > I think =E2=80=98--disable-chroot=E2=80=99 is OK if you=E2=80=99re going = to use=20 > substitutes for > almost everything. Otherwise, it=E2=80=99s not good. Your use case=20 > calls for > built-in support; that way, the daemon could take still=20 > advantage of > user namespaces to set up a chroot and all. I see. By the way, starting guix-daemon without `--disable-chroot`=20 (and without substitutes) leads to: guix build: error: cannot change ownership of=20 =E2=80=98/gnu/store/0dn61y4n8ig333b23hmc80hvlcy8gdli-guile-bootstrap-2.0.= drv.chroot=E2=80=99:=20 Invalid argument so --disable-chroot is indeed still necessary! I am interested in=20 working on this built-in support once I get the substitutes case=20 working (although I will probably come ask for guidance for that)=20 :) Thanks! S=C3=A9bastien