From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id KPurHG1Dh2JSQwAAbAwnHQ (envelope-from ) for ; Fri, 20 May 2022 09:29:49 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id sOWjG21Dh2IVHgEAG6o9tA (envelope-from ) for ; Fri, 20 May 2022 09:29:49 +0200 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 E65FBA90F for ; Fri, 20 May 2022 09:29:47 +0200 (CEST) Received: from localhost ([::1]:50012 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nrx50-0004l4-Ey for larch@yhetil.org; Fri, 20 May 2022 03:29:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58442) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nrwue-00069K-Fy for help-guix@gnu.org; Fri, 20 May 2022 03:19:11 -0400 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]:33649) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nrwuY-0003mq-Dr for help-guix@gnu.org; Fri, 20 May 2022 03:19:04 -0400 Received: by mail-wr1-x42d.google.com with SMTP id f2so10270621wrc.0 for ; Fri, 20 May 2022 00:18:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=SsXItJpFxKhq0qhEG1S7U9mImJ0UY9Zn/l7hWrqtorI=; b=MKTNUW6Xs36OPlHnmW4GboCKJwbBr98398kHtKqvnwI5HTWEbkvN7JqaO6yAovRor7 UoHrJloCFtrSwIlLQiU9+zetXHmGOA2B7de1E0JDDUSu+Zyo+wpreTOjnoA8fXa/GvNJ mRLNWlGrN37lkw4YbWVCXCqv4+j0jfZRatfGAfEPzXt/2Y0BtXeZep5pmTsjB2cww5rV i2QhQi9f+/isMtpyMPNN7ldeBrbdoXYmn1SS+nofE269+frWqavaXBxG9PzI1lFIdZ6Y LisXi4ZEXq/SCBOB1Y6GtWiGXbX/bNjW/1AFODU6zM+qmR6WPkXbybScgT4FgKB71BFP ZkTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=SsXItJpFxKhq0qhEG1S7U9mImJ0UY9Zn/l7hWrqtorI=; b=Hk+atbrSEQiqf5qBplx0NC62J+ClN6AUj3Me41zsEFnjJWZVtaV+8/Pfj+Kae67JVl pht1OMDkwcwBh0XiowyGRztSERktiMuVb0J94SIX+VjBuCaGhmfgj94qt1QCJcqyiu9+ FTh2NkPzSMyTBmOKph+1WQXtaeNg/cFnlPshzPSeMS47SjJTj+yZ8OdbeQKsYYmfRRPU rz4P1+XRXEFhrLb272n/zfyDUeEF3XBfTjLVS427bRBOAteRASb8In+23JDtzwFSuQVV nwNDfcToHTgchZiiLZYJ+vzQA/T/gUokAZH+6puMeZV6sn1EuhimnLFI8d2BRxyuSzGs ycrQ== X-Gm-Message-State: AOAM5331h7IbY+YSCgsdJJsrnm47gDYVPCbpzfh9b2wuVGwgeHOiBE1v 8/rN4SUmFhdVTdN8v+0/dcZuaD+ffVw= X-Google-Smtp-Source: ABdhPJyjkGRtltYIZ3zVHBHd4v09RUK3JoNyveaBDg6JXhoeVmw/smSLFeD+Eq1EXxfvpPOwLLdC2A== X-Received: by 2002:adf:f645:0:b0:20e:652d:2a4e with SMTP id x5-20020adff645000000b0020e652d2a4emr7234812wrp.344.1653031136171; Fri, 20 May 2022 00:18:56 -0700 (PDT) Received: from lili ([146.0.30.100]) by smtp.gmail.com with ESMTPSA id m10-20020adfc58a000000b0020e63ab5d78sm1645090wrg.26.2022.05.20.00.18.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 May 2022 00:18:55 -0700 (PDT) From: zimoun To: Joey Dumont Cc: help-guix@gnu.org Subject: Re: Delete all previous derivations In-Reply-To: References: <87pmkzc0sv.fsf@gmail.com> Date: Fri, 20 May 2022 09:15:07 +0200 Message-ID: <86zgjc7k04.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::42d; envelope-from=zimon.toutoune@gmail.com; helo=mail-wr1-x42d.google.com 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, FREEMAIL_FROM=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1653031788; 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=SsXItJpFxKhq0qhEG1S7U9mImJ0UY9Zn/l7hWrqtorI=; b=Zv07qWuE+gcwoE1xqU1DyZ1Lkjqla7HzICH5rCavYoMFTea54GYgRbGBESBlsUBX64hAK+ 79rqq1GMQ9XEWexrDt5QobDJldBY19Abykvmw7988X0Vnv+NsEo8pGlNCLDB4rC+tdBiqS DHmAyGesnCp5zeoCSwuE+vTNmt9jzH4frcD6aXYfxyIniS3yb21snBW9xZLp27oUJu6rnQ 20fG8yYm1J2O/jMMhk8uibRKd8MEXQ6M808gpqXztNNxA9wDTj9PG+cgvXc9/+WDKLJcaX 8S9mFmYbno2pe9jU47l1OyWS9mesw7E4drkbU5DAxts7E21BN61tsDAFSqcLKA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653031788; a=rsa-sha256; cv=none; b=IMPLl2nvt/I9TzPOb6cStO4qbJLQ/F/YseHeXD/ytmG4BwwGOC7RLF7Qf37WQACOUr2b8r l5hpj6xGeXxGJvc/uxcOKf90MPZnQBEjP74xZ3XRkk/LH7z19yUb0oCKcDIeJq+V+ZrZw1 qv1uKQSy81bOAhOnBrn9oHuUc4e+y6Mh6Y7G1pOjsc89cQT93RFuqbt+2YUpQhm+0tTO5W gmnMrRjXuQzpDxlfGXfsgljxjs4pl0QlDpDNM8rCwuwHnd4kec4wBIX4IR5c2GXEkQAyl+ H3TCNsLWV9KRHKXEQ7kZxodRhmrxqY8TgKTpK+RSwUONluG/KsIB1MV0I/A5kQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=MKTNUW6X; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.04 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=MKTNUW6X; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: E65FBA90F X-Spam-Score: -4.04 X-Migadu-Scanner: scn0.migadu.com X-TUID: wsySHs1Q6K2t Hi, On Thu, 19 May 2022 at 21:14, Joey Dumont wrote: > I was toying around the idea of having guix as a compatibility layer for = an > HPC software stack, similar to what Compute Canada had with nix before th= ey > switched to Gentoo ( > http://users.ugent.be/~kehoste/eum18/easybuild_nix_cvmfs_compute_canada_b= art_oldeman.pdf), > hence the weird setup. I am aware that the Guix HPC guys recently publish= ed > a layer between modules and guix shell, which I find interesting. I am missing why 2 stores (or more) are required for this compatibility layer. > It took a little while to try your command, as I built guix using Arch's > package manager, which doesn't install pre-inst-env. Also, I built in a > chroot, and pre-inst-env contains hard-coded references to the build > directory. I guess I am a very weird user :) It was a question. :-) Thanks for the try and the report. How do you do otherwise to have this multi-store setup? > But even with that I still get the same errors. I don't want to keep the > two stores simultaneously, I'm fine with fully destroying the old one > (although I would be interested in knowing how to properly rollover from > one store to another). Sorry, but I am still missing what you want to achieve. The store is a global cache mounted somewhere. The daemon uses this cache to create a symlinks forest and build some profiles. Now, you create another cache and let the daemon points to it. Therefore, the elements from the previous profiles refers to the first cache location and thus they cannot be reachable. You get this: --8<---------------cut here---------------start------------->8--- guix pull: error: derivation `/cvmfs/ soft.valandil.ca/2022.03/compat/x86_64/linux/pf4z6hc1f9bwddsravnlacnb2i8p9x= yl-guile-3.0.2.tar.xz.drv' has incorrect output `/cvmfs/ soft.valandil.ca/2022.04/compat/x86_64/linux/92ip5misld973bsm73hfazwmd4n9d5= 8z-guile-3.0.2.tar.xz', should be `/cvmfs/ soft.valandil.ca/2022.03/compat/x86_64/linux/9gc2alnhkrilqdch2xzjg0vq9b44is= 43-guile-3.0.2.tar.xz --8<---------------cut here---------------end--------------->8--- It means the profile, say ~/.config/current/guix, had been built using the store located at =E2=80=99soft.valandil.ca/2022.03=E2=80=99. Then, you = reconfigure the daemon to point to another location for the store =E2=80=99soft.valandil.ca/2022.04=E2=80=99. When you pull, the profile ~/.config/current/guix is expecting elements in soft.valandil.ca/2022.03 but they cannot be reachable since you replaced the location of the cache without rewriting the information in the profile. Bang! The question is: what do you want to achieve? Why do you want this various stores based on dates? Maybe I am incorrect, but from my understanding, 1. the store should always be mounted in the same location, 2. =E2=80=99guix gc=E2=80=99 is the only command for managing the store, 3. if you want backup or snapshot of the store, then you should use another tool working with the volumes. A poor man solution for what I understand to your issue could be: a) =E2=80=99guix gc=E2=80=99 for cleaning the current store mounted at /so= ft.ca/store b) copy the volume mounted at /soft.ca/store to another volume c) mount this other volume to /soft.ca/store This way, the necessary elements are kept from one store/volume to the other. Cheers, simon