From unknown Fri Aug 22 01:03:52 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#58640 <58640@debbugs.gnu.org> To: bug#58640 <58640@debbugs.gnu.org> Subject: Status: Garbage collector ('gc') deletes valid user roots when $HOME is inaccessible Reply-To: bug#58640 <58640@debbugs.gnu.org> Date: Fri, 22 Aug 2025 08:03:52 +0000 retitle 58640 Garbage collector ('gc') deletes valid user roots when $HOME = is inaccessible reassign 58640 guix submitter 58640 Felix Lechner severity 58640 normal tag 58640 notabug thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 19 13:14:59 2022 Received: (at submit) by debbugs.gnu.org; 19 Oct 2022 17:14:59 +0000 Received: from localhost ([127.0.0.1]:59950 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1olCeh-0005cB-Fa for submit@debbugs.gnu.org; Wed, 19 Oct 2022 13:14:59 -0400 Received: from lists.gnu.org ([209.51.188.17]:39924) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1olCed-0005c2-W7 for submit@debbugs.gnu.org; Wed, 19 Oct 2022 13:14:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44926) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olCec-0004i7-Gr for bug-guix@gnu.org; Wed, 19 Oct 2022 13:14:55 -0400 Received: from linode.us-core.com ([2600:3c01::f03c:93ff:fe26:6229]:37654) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olCeX-0005O7-E1 for bug-guix@gnu.org; Wed, 19 Oct 2022 13:14:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=2017; bh=rTHJs8beR8JvC44 LK7u+CHaHCNDDszd4bwRPam29fvk=; h=to:subject:date:from; d=lease-up.com; b=oHid/GrCsK/d46mofX5SrER+2wlBj47leqcXm8gKA8AHKd9MVHL7F8Rl2MnSGBWCw5xf ca8xZKiuPqKdGFG1/cVGt1jjQ3UR92aaAxKMOKzqYIkDz3FfQdlKTb0jNROKm+L7Rjg2fQ iFQ/WW9zL8IvnXdqkIQ7ub+pgjGen9hp0= Received: by linode.us-core.com (OpenSMTPD) with ESMTPSA id 5089bf63 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO) for ; Wed, 19 Oct 2022 17:14:46 +0000 (UTC) Received: by mail-lj1-f177.google.com with SMTP id i21so20122284ljh.12 for ; Wed, 19 Oct 2022 10:14:44 -0700 (PDT) X-Gm-Message-State: ACrzQf3+nHMjt2Ewrsw2EeeB8ZyjDvSgNb9HE6ICX+nKxLDF/F78llj6 CwkNW4ABs4dIhfKdqXrNx2kURjfawwSzrXbta2A= X-Google-Smtp-Source: AMsMyM7W7XcRVsK6PNV+GLElShgaPtixv1LcaMwwALUfnE/5uAHFJuUAoREP7c6gmgzJbQYnDULaYmYR1f2HzrjNqEw= X-Received: by 2002:a2e:b8ca:0:b0:26f:c7a1:577a with SMTP id s10-20020a2eb8ca000000b0026fc7a1577amr3566231ljp.77.1666199681596; Wed, 19 Oct 2022 10:14:41 -0700 (PDT) MIME-Version: 1.0 From: Felix Lechner Date: Wed, 19 Oct 2022 10:14:05 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Garbage collector ('gc') deletes valid user roots when $HOME is inaccessible To: bug-guix@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2600:3c01::f03c:93ff:fe26:6229; envelope-from=felix.lechner@lease-up.com; helo=linode.us-core.com X-Spam_score_int: 16 X-Spam_score: 1.6 X-Spam_bar: + X-Spam_report: (1.6 / 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, RCVD_IN_SBL_CSS=3.335, RCVD_IN_XBL=0.375, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 2.2 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi, The Guix garbage collector ('gc') deletes valid user roots when those links are not resolvable via the user's home folder in places such as ~/.cache/guix/profiles/ Content analysis details: (2.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.51.188.17 listed in wl.mailspike.net] -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [209.51.188.17 listed in list.dnswl.org] 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [2600:3c01:0:0:f03c:93ff:fe26:6229 listed in] [zen.spamhaus.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.9 SPF_FAIL SPF: sender does not match SPF record (fail) [SPF failed: Please see http://www.openspf.org/Why?s=mfrom; id=felix.lechner%40lease-up.com; ip=209.51.188.17; r=debbugs.gnu.org] 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: 1.2 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi, The Guix garbage collector ('gc') deletes valid user roots when those links are not resolvable via the user's home folder in places such as ~/.cache/guix/profiles/ Content analysis details: (1.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.51.188.17 listed in wl.mailspike.net] -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [209.51.188.17 listed in list.dnswl.org] 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [2600:3c01:0:0:f03c:93ff:fe26:6229 listed in] [zen.spamhaus.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.9 SPF_FAIL SPF: sender does not match SPF record (fail) [SPF failed: Please see http://www.openspf.org/Why?s=mfrom;id=felix.lechner%40lease-up.com;ip=209.51.188.17;r=debbugs.gnu.org] -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager Hi, The Guix garbage collector ('gc') deletes valid user roots when those links are not resolvable via the user's home folder in places such as ~/.cache/guix/profiles/ which potentially leaves the user without a working profile. Home folders are not always accessible to the root user, and may therefore also not be accessible to the Guix daemon. In some networked setups, for example, home folders can be automounted. In my particular case, the home folder was inaccessible due to my encrypted filesystem's security policies, which are enforced by FUSE when using gocryptfs. [1] The FUSE feature can be turned off [2] and Gocryptfs can 'allow_other' [3] but that is a large concession and may not solve the daemon's alleged (mis-)behavior in the general case. Thank you for reading! Kind regards Felix Lechner [1] https://nuetzlich.net/gocryptfs/ [2] https://unix.stackexchange.com/a/17423 [3] https://manpages.debian.org/bullseye/gocryptfs/gocryptfs.1.en.html From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 20 07:41:13 2022 Received: (at 58640) by debbugs.gnu.org; 20 Oct 2022 11:41:14 +0000 Received: from localhost ([127.0.0.1]:33186 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1olTvF-0005SK-Nr for submit@debbugs.gnu.org; Thu, 20 Oct 2022 07:41:13 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:24209) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1olTvC-0005SA-2z for 58640@debbugs.gnu.org; Thu, 20 Oct 2022 07:41:12 -0400 Received: from lprikler-laptop.ist.intra (gw.ist.tugraz.at [129.27.202.101]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4MtQf82gtKz3wYj; Thu, 20 Oct 2022 13:41:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1666266065; bh=CKQNmzqQNcZ2erkR604EUATS8ajJV/834BEuBTg0Dt0=; h=Subject:From:To:Date:In-Reply-To:References; b=jgf33T5xeiPsDh3Rc1oNmb22xi2laPc/OTNSSTmrpsqt7oSc/M6aus45HwTNj7hSf 6xsCa+nGZpzz9AmXhCAu1vzDNwBkyjCZrzSSFdw8lZTCP5rWU4K7/5NYz45UgVoGg2 MYzvW8Vv5HHGXGMeLAbbOKL1fuSRODvGOfVxFiGA= Message-ID: <56e9b8174db579880cf599a9a136db9bf60a42b1.camel@ist.tugraz.at> Subject: Re: Garbage collector ('gc') deletes valid user roots when $HOME is inaccessible From: Liliana Marie Prikler To: Felix Lechner , 58640@debbugs.gnu.org Date: Thu, 20 Oct 2022 13:41:02 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.0 MIME-Version: 1.0 X-TUG-Backscatter-control: waObeELIUl4ypBWmcn/8wQ X-Spam-Scanner: SpamAssassin 3.003001 X-Spam-Score-relay: -1.9 X-Scanned-By: MIMEDefang 2.74 on 129.27.10.117 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 58640 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: -3.3 (---) Am Mittwoch, dem 19.10.2022 um 10:14 -0700 schrieb Felix Lechner: > Hi, >=20 > The Guix garbage collector ('gc') deletes valid user roots when those > links are not resolvable via the user's home folder in places such as >=20 > =C2=A0=C2=A0=C2=A0 ~/.cache/guix/profiles/ >=20 > which potentially leaves the user without a working profile. The output of `guix gc --list-roots' seems to suggest that the actual garbage collector roots are in /var/guix/profiles (note that root sees the roots of all users, whereas users only see their own). More importantly, all GC roots in /home seem to point to the cache used by guix shell. By definition, everything in XDG_CACHE_HOME should be removable without consequences. Is this not the case here? Cheers From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 21 03:30:37 2022 Received: (at 58640) by debbugs.gnu.org; 21 Oct 2022 07:30:37 +0000 Received: from localhost ([127.0.0.1]:36822 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1olmUH-0005mz-6n for submit@debbugs.gnu.org; Fri, 21 Oct 2022 03:30:37 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47396) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1olmUF-0005mc-4z for 58640@debbugs.gnu.org; Fri, 21 Oct 2022 03:30:35 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olmU9-0007lr-4x; Fri, 21 Oct 2022 03:30:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=WEU7oPnCbQCusZCWdokHF7uq4g1Z77O/lb1Kcd2U2W0=; b=YyiD+NSpmwq5ORMVBty7 OCYxB8hQH4CNrRi7NmCSiJDZ2fdHI8kfPSw3QBB/Bc/5bQQLCHtrh6Jh/Oyvc3pW6qt3VWNp3J/GG Y2KGKXmdt3Cllx4Eefi8XxR28kZ2wZuwgtBEMKSZjg2TUC8sDZCKdW5LVCWmpmlUBKixaVJgFlvVX wSBJd8fbWl2/o4P69jFgpBB7FU1m0TAe/p9jeYo5eNINIeidLBiaxng6PQLNVAFCszSNmtcVjg4YN f2i2SoLNsSpwRZwXSjDpHpa6nuquK4AqSxTLRJnniNB/VBXGlea8DsZHVy//CPsD2PSD6IJFbOXT2 5LUUYgWo0hc3WA==; Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olmU8-0003XZ-HS; Fri, 21 Oct 2022 03:30:28 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Felix Lechner Subject: Re: bug#58640: Garbage collector ('gc') deletes valid user roots when $HOME is inaccessible References: Date: Fri, 21 Oct 2022 09:30:25 +0200 In-Reply-To: (Felix Lechner's message of "Wed, 19 Oct 2022 10:14:05 -0700") Message-ID: <87r0z1ab1q.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 58640 Cc: 58640@debbugs.gnu.org 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: -3.3 (---) Hi Felix, Felix Lechner skribis: > The Guix garbage collector ('gc') deletes valid user roots when those > links are not resolvable via the user's home folder in places such as > > ~/.cache/guix/profiles/ > > which potentially leaves the user without a working profile. > > Home folders are not always accessible to the root user, and may > therefore also not be accessible to the Guix daemon. In some > networked setups, for example, home folders can be automounted. > > In my particular case, the home folder was inaccessible due to my > encrypted filesystem's security policies, which are enforced by FUSE > when using gocryptfs. [1] To complement what Liliana wrote, there are two kinds of GC root: =E2=80=9Cregular roots=E2=80=9D (the symlinks under /var/guix/profiles and /var/guix/gcroots), and =E2=80=9Cindirect roots=E2=80=9D (symlinks created = when you run =E2=80=98guix shell=E2=80=99 or when you run =E2=80=98guix package -p ~/my-= root=E2=80=99). Indirect roots are invisible to the GC if the file system where they live is inaccessible. That=E2=80=99s what you observed. There=E2=80=99s no good solution I can think of, except not storing indirect roots on a file system not visible to the GC. I hope that makes sense! Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 10 05:48:01 2022 Received: (at control) by debbugs.gnu.org; 10 Nov 2022 10:48:01 +0000 Received: from localhost ([127.0.0.1]:42078 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ot56H-0008P1-Dm for submit@debbugs.gnu.org; Thu, 10 Nov 2022 05:48:01 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34082) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ot56F-0008OJ-PE for control@debbugs.gnu.org; Thu, 10 Nov 2022 05:48:00 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ot56A-0003XA-56 for control@debbugs.gnu.org; Thu, 10 Nov 2022 05:47:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:Subject:From:To:Date:in-reply-to: references; bh=Ydy28OMExsfRlIxnSejpGNyRMqLtQpB1KK4xOWKbQuk=; b=bMZqUMDiOR7Y8+ LBuqDst28F7VA5KqrJw69F0MlqJV+o5WfO2fsWHtvGK/95puBs2sPLlInZTEcKqHjtEZkhn0eapGm r1vPZmWycoov8U5vABvczuBcuUGPYHLJPIfq13NlGAe4gCBCOlPjGKsrFMH6UtO5qyA9uu2bvGZsr 6PzYFimBMjvamrlgCxcVFTRCsRBxbvFYDPtAqCrATdleFZSvAnwIMSxjETN7fXWwXpM4hleGuk/rl /jnawcgTbLmKxxqP7dNXjVpHZEOn0dX5TfHZWVIMtTL6SmAnqZdnTRc35t+NXoK0v2dVD+xo6ZBNx 9ufkydQpIASMtIjpiR4A==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ot568-0004ud-Nt for control@debbugs.gnu.org; Thu, 10 Nov 2022 05:47:53 -0500 Date: Thu, 10 Nov 2022 11:47:51 +0100 Message-Id: <87leojjdbc.fsf@gnu.org> To: control@debbugs.gnu.org From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: control message for bug #58640 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control 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: -3.3 (---) tags 58640 notabug close 58640 quit From unknown Fri Aug 22 01:03:52 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 08 Dec 2022 12:24:08 +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