From unknown Sun Jun 22 07:47:33 2025 X-Loop: help-debbugs@gnu.org Subject: bug#54831: guix home reconfigure fails with =?UTF-8?Q?=E2=80=9Crmdir:?= No such file or =?UTF-8?Q?directory=E2=80=9D?= Resent-From: Brian Cully Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 10 Apr 2022 01:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 54831 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 54831@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16495536398367 (code B ref -1); Sun, 10 Apr 2022 01:21:02 +0000 Received: (at submit) by debbugs.gnu.org; 10 Apr 2022 01:20:39 +0000 Received: from localhost ([127.0.0.1]:38998 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ndMFr-0002At-77 for submit@debbugs.gnu.org; Sat, 09 Apr 2022 21:20:39 -0400 Received: from lists.gnu.org ([209.51.188.17]:46646) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ndKzx-0008Qm-Si for submit@debbugs.gnu.org; Sat, 09 Apr 2022 20:00:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57984) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndKzw-0006Mh-UQ for bug-guix@gnu.org; Sat, 09 Apr 2022 20:00:09 -0400 Received: from coleridge.kublai.com ([166.84.7.167]:51157 helo=mail.spork.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndKzv-0006IU-31 for bug-guix@gnu.org; Sat, 09 Apr 2022 20:00:08 -0400 Received: from ditto (unknown [IPv6:2001:470:1f07:1b9:8650:a942:ec5e:856b]) by mail.spork.org (Postfix) with ESMTPSA id 62F113374 for ; Sat, 9 Apr 2022 19:59:15 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=spork.org; s=dkim; t=1649548761; bh=9Wet1kETNLeg4tDRX+alp2QOQOjkgQwYQCr6DOnwB94=; h=From:To:Subject:Date; b=gn2kZMfffIXtiBcKkL2BNdzINVglfArgJPhw7SKQCv7uBdFyhmfxxILAT0bao8mRz aAJ8qC6RmoMT7XBvUFl4RYwU24ln9SVfd55ivEMDpmQWGswB1Migjx5VPHHVozwZ06 ojgE6IvYkgjlrq3Wa2cH0U/zk6rCdYG65L5yfG6E= User-agent: mu4e 1.6.10; emacs 29.0.50 From: Brian Cully Date: Sat, 09 Apr 2022 19:53:36 -0400 Message-ID: <878rsdbygd.fsf@ditto.jhoto.spork.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=166.84.7.167; envelope-from=bjc@spork.org; helo=mail.spork.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_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-Spam-Score: -1.3 (-) X-Mailman-Approved-At: Sat, 09 Apr 2022 21:20:37 -0400 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.3 (--) For the last few days, attempting to issue a home reconfigure fails: ---[snip]--- $ guix home reconfigure ./guix-home/config-new.scm substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0% substitute: updating substitutes from 'https://bordeaux.guix.gnu.org'... 10= 0.0% The following derivations will be built: /gnu/store/rbnri9gpvh98qagyk7ws4y5xdvz4skg7-home.drv /gnu/store/hg5whdfsq2ldibfsikhbwppr9pms5vc8-provenance.drv /gnu/store/rsil5s5fs14y2jvysbiv7vi2f0i3gnw2-activate.drv /gnu/store/j85krrfbnc7x6s5wdn0wnp8ikah9gl46-update-symlinks.drv building /gnu/store/hg5whdfsq2ldibfsikhbwppr9pms5vc8-provenance.drv... building /gnu/store/j85krrfbnc7x6s5wdn0wnp8ikah9gl46-update-symlinks.drv... building /gnu/store/rsil5s5fs14y2jvysbiv7vi2f0i3gnw2-activate.drv... building /gnu/store/rbnri9gpvh98qagyk7ws4y5xdvz4skg7-home.drv... Cleaning up symlinks from previous home at /gnu/store/zmp2brsdr0nvrhpbk4kqq= c6y8jx90kb1-home. guix home: error: rmdir: No such file or directory ---[snip]--- This fails in the same way even when using a previously working configuration: ---[snip]--- $ guix home list-generations =E2=8B=AE Generation 27 Apr 05 2022 19:44:03 (current) file name: /var/guix/profiles/per-user/bjc/guix-home-27-link canonical file name: /gnu/store/zmp2brsdr0nvrhpbk4kqqc6y8jx90kb1-home channels: guix: repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: 3b3cc9dfed30afec70a6feaced3710bf79f8b2bc configuration file: /gnu/store/k90xv2x75nfc1wyxbw4171m6wxykqck6-configura= tion.scm $ guix home reconfigure /gnu/store/k90xv2x75nfc1wyxbw4171m6wxykqck6-configu= ration.scm Cleaning up symlinks from previous home at /gnu/store/zmp2brsdr0nvrhpbk4kqq= c6y8jx90kb1-home. guix home: error: rmdir: No such file or directory ---[snip]--- -bjc From unknown Sun Jun 22 07:47:33 2025 X-Loop: help-debbugs@gnu.org Subject: bug#54831: guix home: error: rmdir: No such file or directory References: <878rsdbygd.fsf@ditto.jhoto.spork.org> In-Reply-To: <878rsdbygd.fsf@ditto.jhoto.spork.org> Resent-From: Madhavan Krishnan Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 10 Apr 2022 12:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54831 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 54831@debbugs.gnu.org Received: via spool by 54831-submit@debbugs.gnu.org id=B54831.164959341319786 (code B ref 54831); Sun, 10 Apr 2022 12:24:02 +0000 Received: (at 54831) by debbugs.gnu.org; 10 Apr 2022 12:23:33 +0000 Received: from localhost ([127.0.0.1]:39649 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ndWbM-000592-0j for submit@debbugs.gnu.org; Sun, 10 Apr 2022 08:23:32 -0400 Received: from mail-ot1-f44.google.com ([209.85.210.44]:44973) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ndWQW-0002i3-LB for 54831@debbugs.gnu.org; Sun, 10 Apr 2022 08:12:20 -0400 Received: by mail-ot1-f44.google.com with SMTP id w17-20020a056830111100b005b22c584b93so9423088otq.11 for <54831@debbugs.gnu.org>; Sun, 10 Apr 2022 05:12:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=6U2wLT8Z0/r2q+fgdDvP6ja489GlJtH1apcZBWuGl6c=; b=mkNjKln6y3MCBxPFR5iavBlrmKOZfgI93vvRlykzSCUnQfZRCE4nkNBpDgicxxTWAl caC8RM61hxkJaNPHLx0CSTzPjYrBaY55ColicSlK+cbRhudT17S+DBiv76VQKPP+3h+e otCoNGwq/xUruh79hpGrHaG9M3UYRbwo2CGs5Jb6Lr//dtSlfcsSacTVBzpththNFC9T C/72BTfr3ALombufrZ0NAHX/CFXW2vxG/IfG8Ww7MfMPAa5YfRc6fvcmFEd5sL/8lKZc rT8/XdJcHEo6nKXeLOSYhLunhh2mkdQtVk641u9iErxNDVnqv2STaeRitoBYiVQ9DpxD C7Dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=6U2wLT8Z0/r2q+fgdDvP6ja489GlJtH1apcZBWuGl6c=; b=HWpUGY21JkQOEpxdMLaZO7ZV06HmykyNCf7MNGERx5YD+zRXkvKMFJ68yLSkiiUeBo 3CtiYqbE3CV9A5o5qP5t2SGXz8KdNhjG+X2TiTbQMDg2+07gbJP8FzleZYQu9we+yypb oQvs8O29/sOUV+meWTkcIijzRs4RdLuwW8uy/qadXGYqKw0CGfa8MW6D8s+/5TOg2TZB rIgp141fWROEI9PcREd0APd6wRmI8cfLqikZhd4RV/8+yZ06dIdtvcoXtHFkGePXhJBV bJhLaZVVxryQRVU/RMLM6Q37CoR5Co0jIstMw0xtlCJGEaytE7cz98NsN0/i/dO0DgBp OnQw== X-Gm-Message-State: AOAM530liaKeVfJJPxUnqbz+Nx40u8vCEOdAjDkp3jayW8WPKnAehHNz ZtMIA3/zSc4nGDNhmDoJw6ydgL6SzgrT4e2EdWU1cjyZwbs= X-Google-Smtp-Source: ABdhPJzqDXXQ7RMKYAEwrqi6c0yK+YaZai4Z7tEQ2taf3qy4cg9yD493gTz50cFLaGp+uvXpQfkITAlcNCGhktLmaoU= X-Received: by 2002:a9d:6b02:0:b0:5b2:6a98:75fa with SMTP id g2-20020a9d6b02000000b005b26a9875famr9494940otp.146.1649592735086; Sun, 10 Apr 2022 05:12:15 -0700 (PDT) MIME-Version: 1.0 From: Madhavan Krishnan Date: Sun, 10 Apr 2022 13:12:04 +0100 Message-ID: Content-Type: multipart/alternative; boundary="000000000000ffbb0f05dc4bbccd" X-Spam-Score: -0.0 (/) X-Mailman-Approved-At: Sun, 10 Apr 2022 08:23:30 -0400 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 (-) --000000000000ffbb0f05dc4bbccd Content-Type: text/plain; charset="UTF-8" I am facing the same issue on ec6a585ee2fd91c857276479411eedd0756e0093; and would like to add to this The *build* command for the said config works ie) guix home build config.scm Whereas the reconfigure fails with guix home: error: rmdir: No such file or directory --Madhavan --000000000000ffbb0f05dc4bbccd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I am facing the same issue on ec6= a585ee2fd91c857276479411eedd0756e0093; and would like to add to this=

The build command for the said config works= ie)
guix home build config.scm

<= /div>
Whereas the reconfigure fails with
g= uix home: error: rmdir: No such file or directory

--Madhavan
--000000000000ffbb0f05dc4bbccd-- From unknown Sun Jun 22 07:47:33 2025 X-Loop: help-debbugs@gnu.org Subject: bug#54831: Unhandled ENOENT exception References: <878rsdbygd.fsf@ditto.jhoto.spork.org> In-Reply-To: <878rsdbygd.fsf@ditto.jhoto.spork.org> Resent-From: Christopher Rodriguez Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 10 Apr 2022 16:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54831 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 54831@debbugs.gnu.org Received: via spool by 54831-submit@debbugs.gnu.org id=B54831.164960643927389 (code B ref 54831); Sun, 10 Apr 2022 16:01:02 +0000 Received: (at 54831) by debbugs.gnu.org; 10 Apr 2022 16:00:39 +0000 Received: from localhost ([127.0.0.1]:41169 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ndZzS-00077h-G5 for submit@debbugs.gnu.org; Sun, 10 Apr 2022 12:00:39 -0400 Received: from mail-qv1-f51.google.com ([209.85.219.51]:37594) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ndZzQ-00077R-NQ for 54831@debbugs.gnu.org; Sun, 10 Apr 2022 12:00:37 -0400 Received: by mail-qv1-f51.google.com with SMTP id d9so1803398qvm.4 for <54831@debbugs.gnu.org>; Sun, 10 Apr 2022 09:00:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=user-agent:from:to:subject:date:message-id:mime-version; bh=jN1UKk++xAqzgtBtyoPXeUOVwim21oed9l5ko8WTZeI=; b=T0b2ooS+UgktI299VdNWcliSA8cVsF4pCZehMfZ3KLp6GTGGmAIGLRr6OWisUclWOY yEhtOnvXM60FXMt5UwMMOIfQAio2P9VQQ+OzADBn8F+YsAhC2nYeLemKgh4EA1oefig2 XAEDHFmMs06zKnIA/GnJT5lfMxVCGzCUPmVWY8XUKf0ZOeLz+KQlbwPWFS6Be8smt+VW EE/uEfbrFrv5wbIHTJDjbQiwIBfC1ks/Td+aWjUfG0YNOTve/C0A/YzAput3+m5MMRF3 WIcTgA8FWUa9F0aNJxuIOqxaH7xvRzKTLfO8bQwBQFVmuLO6hlv2SKklgaO+Amqd4OOu C1YQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:user-agent:from:to:subject:date:message-id :mime-version; bh=jN1UKk++xAqzgtBtyoPXeUOVwim21oed9l5ko8WTZeI=; b=SoLhgYlDaC4f1VqU5CRhlFTuaI4i94JjyD8eupzTXyL0zfdeaxCYU5hxv7keRIOlg3 +VfmbZVTVEHit+C+SrMnQfYNyy1LjMLRpPePaHRc2lqfOZc1q8baKutj6IPyD2BIM8Ve CSmgAE9ccckhSVhNAq+NrtbGaxYj+7Gw3bryducodjrzb3ko/lCFtdBnK2qprJtaygVQ LgwtBqSd/v48qywXQiUf/M+89WDWRt+coyRAlXVQ05G3iFlErOZVFtYdPeOPMn53UEnV h7I/uF5AzWjrSVZ94ExYzTzMadv+cLIKlZOYTtaEgevVp21dHBLdDVvUVakMcXXrfuMc t+yg== X-Gm-Message-State: AOAM5320PrS0jvuAIpSae4+a7rAkNLR7GLCIC+TB7GpSp8Q6RoAqCu7R vjZZgxP1LcETVZ7pyboSrFP1ZVp4g0k= X-Google-Smtp-Source: ABdhPJwseYy9fCXd/upYKPuKrGMKpawGmnbYrl7YEZYqA1ILXyo9T2D8Hwbv42Ro73nOQkljmjJwyQ== X-Received: by 2002:a05:6214:20c8:b0:443:f201:aa89 with SMTP id 8-20020a05621420c800b00443f201aa89mr20440973qve.30.1649606430471; Sun, 10 Apr 2022 09:00:30 -0700 (PDT) Received: from gmail.com ([52.94.133.131]) by smtp.gmail.com with ESMTPSA id m14-20020a05622a054e00b002e2072cffe6sm23236771qtx.5.2022.04.10.09.00.29 for <54831@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Apr 2022 09:00:29 -0700 (PDT) User-agent: mu4e 1.6.10; emacs 28.0.50 From: Christopher Rodriguez Date: Sun, 10 Apr 2022 11:47:54 -0400 Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="===-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: -0.0 (/) 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 (-) --===-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: multipart/alternative; boundary="==-=-=" --==-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Christopher Rodriguez Table of Contents =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80 I'd like to add my $0.02 as well. Seems like the issue is during the deployment, as Madhavan said. Specifically, the error message in that form only appears in `gnu/home/services/symlink-manager.scm', in the function `cleanup-symlinks'. It seems that, right now, the issue is that `ENOTEMPTY' and `ENOTDIR' are tested for and handled, but `ENOENT' is not. Ideally, this should be handled and tell the user /which/ file or directory is missing, not halt the entire process. And, since we are testing for a missing file (and thus have no chance of overwriting a user's data), it would probably make the most sense to just create the file that is missing in the next step, without stopping at all. I'll throw together a patch real quick to test with. I could be very off base, but I think this should fix this issue. --==-=-= Content-Type: text/html

I'd like to add my $0.02 as well.

Seems like the issue is during the deployment, as Madhavan said. Specifically, the error message in that form only appears in gnu/home/services/symlink-manager.scm, in the function cleanup-symlinks.

It seems that, right now, the issue is that ENOTEMPTY and ENOTDIR are tested for and handled, but ENOENT is not. Ideally, this should be handled and tell the user which file or directory is missing, not halt the entire process. And, since we are testing for a missing file (and thus have no chance of overwriting a user's data), it would probably make the most sense to just create the file that is missing in the next step, without stopping at all.

I'll throw together a patch real quick to test with. I could be very off base, but I think this should fix this issue.

--==-=-=-- --=-=-= Content-Type: text/plain -- Christopher Rodriguez --=-=-=-- --===-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEJMQbvYVxvZ0eF/84XZ6FgaGVz3sFAmJS/xwACgkQXZ6FgaGV z3s7TxAAx5AtBXvULtlbQN4QI9cyluNv60zXQyX4+I0XakaZ0uICFc2Gd9NB4++8 eZUP6c1Gq1l2Zt38YUDOeiNdt0akkNi5TG0+RGPk2wo230weqnAeBQxlf6Q5WHGx p4L7xlpDwSvyiPZBfGLvZ/vBHT0/e81sffA2vWs/rxDjKQWLic7MvXQotKBm+URg iGYNHEKT9Ew/pyf56Z1enep7/Iq4XpU0jn1zLR7zDd/aBTgWGdPmqKbOIGmAa0Zz 2X3KE0r4j58WQ8bdcug2BImpZMFYOTm8ONxWc5msxJTVE4Vvud5yn1ez0oAzfC9L k9zJ1+tZQj2LdZ3bJ1cc8sO8Dw5W1IpsIPtFsBYjjskzeOgNn/vYw22UX0tyWA+r eR2BRGt0agiSVqnr1DUsCPtPcop/kTo4GlTzg0lUO/7iqYRMp6Z2wiYQjCxuC949 DUYUHimIeP+aZoyhj8VvwI7R/iVcDsqwXEPTpBnEMEyQMFn3/JskJOVsBJUEQRlJ 3FhJK1M5VnFfMPwA9f8iGcR5DE8bKJKie2X42GCu0ZxVL0er2x4BflNIeYoQY0Q6 /bW7Mv4d1W/+eVBAslh8LoZ2k3cl22SlWjLpfaSCIxuKPacbn6FwzgUbqeLoa63L jkWsZhf1L7gI68FEWVPqnd4NjWNP9fW4qn9v85P58Porm6ID+Ko= =uMcE -----END PGP SIGNATURE----- --===-=-=-- From unknown Sun Jun 22 07:47:33 2025 X-Loop: help-debbugs@gnu.org Subject: bug#54831: Unhandled ENOENT exception References: <878rsdbygd.fsf@ditto.jhoto.spork.org> In-Reply-To: <878rsdbygd.fsf@ditto.jhoto.spork.org> Resent-From: Christopher Rodriguez Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 10 Apr 2022 16:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54831 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 54831@debbugs.gnu.org Received: via spool by 54831-submit@debbugs.gnu.org id=B54831.164960649727513 (code B ref 54831); Sun, 10 Apr 2022 16:02:01 +0000 Received: (at 54831) by debbugs.gnu.org; 10 Apr 2022 16:01:37 +0000 Received: from localhost ([127.0.0.1]:41180 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nda0O-00079g-Qq for submit@debbugs.gnu.org; Sun, 10 Apr 2022 12:01:37 -0400 Received: from mail-qv1-f54.google.com ([209.85.219.54]:38855) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nda0N-00079U-1x for 54831@debbugs.gnu.org; Sun, 10 Apr 2022 12:01:35 -0400 Received: by mail-qv1-f54.google.com with SMTP id p8so11476694qvv.5 for <54831@debbugs.gnu.org>; Sun, 10 Apr 2022 09:01:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=user-agent:from:to:subject:date:message-id:mime-version; bh=hFXj9/mC7urmtqViiMta1S580/J+8J52y9A+VA+Etz8=; b=o9xe2O6e7ijo/yqa+Trop9yFTb6Uy6h74J+UpvdhgpY+IpQl94etsKI+4uVLmhDRIL Yr0uYDErP0RjSd/BZmEg/KJOWPWX1oSct7rxGR75te1kFw/8MX3Ib4Kw6uHSy5xQHV0H 0pdD3Qg0xjb311YvljHVy3cUQNyaGcC4ti6L9iJkQAdPaEhfDR0TwoA7jTvr83njDv6H z7gdsivHZIpSAbQuN3iS8fpksqR7xyTFXaXZN25W2mz2S4x6ktFT4MRlf9VBMALHZgLJ /s4PP4WfMlEHF/7eAMkkX067AgxpoClNyygtwzOyAGOighClqXLtZ0TevFYFZrteoKO+ CBTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:user-agent:from:to:subject:date:message-id :mime-version; bh=hFXj9/mC7urmtqViiMta1S580/J+8J52y9A+VA+Etz8=; b=sCxaEXqFYdiCY51exNTpA2wWLVl3DwXEYVoz5IN758b55ppC/R/Tg/14ddpIhD9xqG le1dwBHqzTxSZeDDHH994cLz0P6Z4E27T/3f2Kh5CC2fWNuGUqHBXfYpJghxFJm1SZpE IaspQck2gwHPit2fOcPvvMPwywBWSqbV+4E1ygh6cxn6KSeKyOqdUvJC5rflCULepF3u wox/9tnDHbHXKy9VNczyvmOootANFt8RKJq3tlxEdkJT3i9j7OugVFkMFut0ati/fIFz 2IG6fFHu/xsuZNDNlTI/hA53Un0j4PTrntncpUwBY8FMY86uop2yqmQ6AhqWl9BhiRBL pf4w== X-Gm-Message-State: AOAM5311WlT844ea0eRPphhlZuOkng2Hs/vhTlFm1Y9nl/ZXqIIMJvxX MIjE3/sHWf92hRAvFFXX3+wfS6woSxQ= X-Google-Smtp-Source: ABdhPJy8w9XXEVOcHBrsbodjsnkXaodQGuY6xArFQRdHlTHEpYWSGauJnbkqZfjzgWI19yRckUPucw== X-Received: by 2002:a05:6214:761:b0:441:196:795e with SMTP id f1-20020a056214076100b004410196795emr23482879qvz.67.1649606489069; Sun, 10 Apr 2022 09:01:29 -0700 (PDT) Received: from gmail.com ([52.94.133.131]) by smtp.gmail.com with ESMTPSA id x20-20020ac85f14000000b002e1ee1c56c3sm23802529qta.76.2022.04.10.09.01.28 for <54831@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Apr 2022 09:01:28 -0700 (PDT) User-agent: mu4e 1.6.10; emacs 28.0.50 From: Christopher Rodriguez Date: Sun, 10 Apr 2022 11:47:54 -0400 Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="===-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: -0.0 (/) 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 (-) --===-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: multipart/alternative; boundary="==-=-=" --==-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Christopher Rodriguez Table of Contents =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80 I'd like to add my $0.02 as well. Seems like the issue is during the deployment, as Madhavan said. Specifically, the error message in that form only appears in `gnu/home/services/symlink-manager.scm', in the function `cleanup-symlinks'. It seems that, right now, the issue is that `ENOTEMPTY' and `ENOTDIR' are tested for and handled, but `ENOENT' is not. Ideally, this should be handled and tell the user /which/ file or directory is missing, not halt the entire process. And, since we are testing for a missing file (and thus have no chance of overwriting a user's data), it would probably make the most sense to just create the file that is missing in the next step, without stopping at all. I'll throw together a patch real quick to test with. I could be very off base, but I think this should fix this issue. --==-=-= Content-Type: text/html

I'd like to add my $0.02 as well.

Seems like the issue is during the deployment, as Madhavan said. Specifically, the error message in that form only appears in gnu/home/services/symlink-manager.scm, in the function cleanup-symlinks.

It seems that, right now, the issue is that ENOTEMPTY and ENOTDIR are tested for and handled, but ENOENT is not. Ideally, this should be handled and tell the user which file or directory is missing, not halt the entire process. And, since we are testing for a missing file (and thus have no chance of overwriting a user's data), it would probably make the most sense to just create the file that is missing in the next step, without stopping at all.

I'll throw together a patch real quick to test with. I could be very off base, but I think this should fix this issue.

--==-=-=-- --=-=-= Content-Type: text/plain -- Christopher Rodriguez --=-=-=-- --===-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEJMQbvYVxvZ0eF/84XZ6FgaGVz3sFAmJS/08ACgkQXZ6FgaGV z3txsQ/+OZ42WnjCye/RwDgahEVaGQzs7wYGcUOLQOcFd0tmG32+ytm9YN8pIU7t lCxoELMZ6VNIPkuAX+ugnylM+/nMRDJIovKeRnzOKHekkf7u9OY7vB4LhDR1YtWT dchAk6FcDBSGVvC9lmJS1OZuZcDEkKQMNcEoWok4fOWx0p95hAuzIrBbCkDpuCEH yiiJS7I48ssTPBUAT/1hfxFJIfPmIJvNPmERhf2uBoheEgkegcUA0HfbO3WkSr+D eW4bDW+0r+b53vDdDoGZoS+UxDkAcJwP0TmjJArQTschBcmnBE6cN6uV/qcPRh3/ BceajngpahEvQxe9iBiP9FZhzGXWgd1UdKEbml8WlCZVpfZExjPYh/2dJiJhQ9aq SFtx4gapMOR1Ja0Rf8ofg/nQGaS4KOFlbsu/V/dEMyhqR0hqtVASM8BRx2UFouAW 06GD65Mpugid6A/Nv7iQWLy8pkLEPJ2LCEAWSwt+vo9WS1EvurzyFgK0qBUMtx04 3z4a+Ssd9RSTKenSX9UYibvaz8olRzMIrGxai1Zd+zFWXHvrB9ZZk/HUPDI3k3Tn LoH3DhPtb6O3a/r+cmrx4c8BmnClPVS1pp8BBg0aOpbJTl2hG8d/22ej7m4PK5vk SJGtShRlG9uGc0jDCpnRS9nGKJaNWycMOd5Fd7WEhQ2+xHwlzvk= =RT93 -----END PGP SIGNATURE----- --===-=-=-- From unknown Sun Jun 22 07:47:33 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Brian Cully Subject: bug#54831: closed (Re: bug#54831: guix home reconfigure fails with =?UTF-8?Q?=E2=80=9Crmdir:?= No such file or =?UTF-8?Q?directory=E2=80=9D?=) Message-ID: References: <87bkx7fiv3.fsf@gnu.org> <878rsdbygd.fsf@ditto.jhoto.spork.org> X-Gnu-PR-Message: they-closed 54831 X-Gnu-PR-Package: guix Reply-To: 54831@debbugs.gnu.org Date: Mon, 11 Apr 2022 20:48:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1649710082-17575-1" This is a multi-part message in MIME format... ------------=_1649710082-17575-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #54831: guix home reconfigure fails with =E2=80=9Crmdir: No such file or di= rectory=E2=80=9D which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 54831@debbugs.gnu.org. --=20 54831: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D54831 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1649710082-17575-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 54831-done) by debbugs.gnu.org; 11 Apr 2022 20:47:13 +0000 Received: from localhost ([127.0.0.1]:45880 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ne0wK-0004Fu-QG for submit@debbugs.gnu.org; Mon, 11 Apr 2022 16:47:13 -0400 Received: from eggs.gnu.org ([209.51.188.92]:43488) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ne0wJ-0004AV-JA for 54831-done@debbugs.gnu.org; Mon, 11 Apr 2022 16:47:11 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:49946) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ne0w6-0007Hz-Me; Mon, 11 Apr 2022 16:47:06 -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=J+LoL+mHRo+w5rEyspXw1M5dZS7wXEkbOWQjqIOT24g=; b=YXiLK+FmHVArVHZCRY0i K9n+zepqH6QRzBmVYR+xVe0gkfkSA4zlyCeszrUgQPUEnROZ7kw0upluvaOSNC/VXhhWQUFt5ZwVx NY8A2JaSLtAwWkIME0KWdg1qV/Pz2Hfft6f/Xe23P4SQFIAwaYQ3Tac8IH1tSmHrFtefLnOfR7BVv uRZ3NOt2x4+3nLeKv7/erjX6X1pOATTYK0SvMkBR767jQ300+aGsXD/+2AiY0RyfUT4hQlYIJAE22 2bTOeRHVpD5BDEV5Ik+DpnvcXwD/bdq7ecila+CtImHYJlX11cvJivbKRKOc5oG/aFmVeAC0+jo9u Ke91oTbMEQOfyQ==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:60287 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ne0w6-0006EU-7n; Mon, 11 Apr 2022 16:46:58 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Brian Cully , Madhavan Krishnan , Christopher Rodriguez Subject: Re: bug#54831: guix home reconfigure fails with =?utf-8?Q?=E2=80=9Crmdir=3A?= No such file or =?utf-8?Q?directory=E2=80=9D?= References: <878rsdbygd.fsf@ditto.jhoto.spork.org> Date: Mon, 11 Apr 2022 22:46:56 +0200 In-Reply-To: <878rsdbygd.fsf@ditto.jhoto.spork.org> (Brian Cully's message of "Sat, 09 Apr 2022 19:53:36 -0400") Message-ID: <87bkx7fiv3.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (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: 54831-done Cc: 54831-done@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 all, Brian Cully skribis: > For the last few days, attempting to issue a home reconfigure fails: > > ---[snip]--- > $ guix home reconfigure ./guix-home/config-new.scm > substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0% > substitute: updating substitutes from 'https://bordeaux.guix.gnu.org'... = 100.0% > The following derivations will be built: > /gnu/store/rbnri9gpvh98qagyk7ws4y5xdvz4skg7-home.drv > /gnu/store/hg5whdfsq2ldibfsikhbwppr9pms5vc8-provenance.drv > /gnu/store/rsil5s5fs14y2jvysbiv7vi2f0i3gnw2-activate.drv > /gnu/store/j85krrfbnc7x6s5wdn0wnp8ikah9gl46-update-symlinks.drv > > building /gnu/store/hg5whdfsq2ldibfsikhbwppr9pms5vc8-provenance.drv... > building /gnu/store/j85krrfbnc7x6s5wdn0wnp8ikah9gl46-update-symlinks.drv.= .. > building /gnu/store/rsil5s5fs14y2jvysbiv7vi2f0i3gnw2-activate.drv... > building /gnu/store/rbnri9gpvh98qagyk7ws4y5xdvz4skg7-home.drv... > Cleaning up symlinks from previous home at /gnu/store/zmp2brsdr0nvrhpbk4k= qqc6y8jx90kb1-home. > > guix home: error: rmdir: No such file or directory > ---[snip]--- Christopher Rodriguez skribis: > Seems like the issue is during the deployment, as Madhavan > said. Specifically, the error message in that form only appears in > `gnu/home/services/symlink-manager.scm', in the function > `cleanup-symlinks'. > > It seems that, right now, the issue is that `ENOTEMPTY' and `ENOTDIR' > are tested for and handled, but `ENOENT' is not. Ideally, this should be > handled and tell the user /which/ file or directory is missing, not halt > the entire process. And, since we are testing for a missing file (and > thus have no chance of overwriting a user's data), it would probably > make the most sense to just create the file that is missing in the next > step, without stopping at all. > > I'll throw together a patch real quick to test with. I could be very off > base, but I think this should fix this issue. You were right. This is fixed by commit 435e1cef0025fbe6cbb71b472218e8d132d1681c, pushed yesterday. The patch had been submitted as part of but had not been applied. Apologies for the breakage. Thanks, Ludo=E2=80=99. ------------=_1649710082-17575-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 10 Apr 2022 01:20:39 +0000 Received: from localhost ([127.0.0.1]:38998 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ndMFr-0002At-77 for submit@debbugs.gnu.org; Sat, 09 Apr 2022 21:20:39 -0400 Received: from lists.gnu.org ([209.51.188.17]:46646) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ndKzx-0008Qm-Si for submit@debbugs.gnu.org; Sat, 09 Apr 2022 20:00:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57984) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndKzw-0006Mh-UQ for bug-guix@gnu.org; Sat, 09 Apr 2022 20:00:09 -0400 Received: from coleridge.kublai.com ([166.84.7.167]:51157 helo=mail.spork.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndKzv-0006IU-31 for bug-guix@gnu.org; Sat, 09 Apr 2022 20:00:08 -0400 Received: from ditto (unknown [IPv6:2001:470:1f07:1b9:8650:a942:ec5e:856b]) by mail.spork.org (Postfix) with ESMTPSA id 62F113374 for ; Sat, 9 Apr 2022 19:59:15 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=spork.org; s=dkim; t=1649548761; bh=9Wet1kETNLeg4tDRX+alp2QOQOjkgQwYQCr6DOnwB94=; h=From:To:Subject:Date; b=gn2kZMfffIXtiBcKkL2BNdzINVglfArgJPhw7SKQCv7uBdFyhmfxxILAT0bao8mRz aAJ8qC6RmoMT7XBvUFl4RYwU24ln9SVfd55ivEMDpmQWGswB1Migjx5VPHHVozwZ06 ojgE6IvYkgjlrq3Wa2cH0U/zk6rCdYG65L5yfG6E= User-agent: mu4e 1.6.10; emacs 29.0.50 From: Brian Cully To: bug-guix@gnu.org Subject: guix home reconfigure fails with =?utf-8?Q?=E2=80=9Crmdir=3A?= No such file or =?utf-8?Q?directory=E2=80=9D?= Date: Sat, 09 Apr 2022 19:53:36 -0400 Message-ID: <878rsdbygd.fsf@ditto.jhoto.spork.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=166.84.7.167; envelope-from=bjc@spork.org; helo=mail.spork.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_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-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 09 Apr 2022 21:20:37 -0400 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.3 (--) For the last few days, attempting to issue a home reconfigure fails: ---[snip]--- $ guix home reconfigure ./guix-home/config-new.scm substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0% substitute: updating substitutes from 'https://bordeaux.guix.gnu.org'... 10= 0.0% The following derivations will be built: /gnu/store/rbnri9gpvh98qagyk7ws4y5xdvz4skg7-home.drv /gnu/store/hg5whdfsq2ldibfsikhbwppr9pms5vc8-provenance.drv /gnu/store/rsil5s5fs14y2jvysbiv7vi2f0i3gnw2-activate.drv /gnu/store/j85krrfbnc7x6s5wdn0wnp8ikah9gl46-update-symlinks.drv building /gnu/store/hg5whdfsq2ldibfsikhbwppr9pms5vc8-provenance.drv... building /gnu/store/j85krrfbnc7x6s5wdn0wnp8ikah9gl46-update-symlinks.drv... building /gnu/store/rsil5s5fs14y2jvysbiv7vi2f0i3gnw2-activate.drv... building /gnu/store/rbnri9gpvh98qagyk7ws4y5xdvz4skg7-home.drv... Cleaning up symlinks from previous home at /gnu/store/zmp2brsdr0nvrhpbk4kqq= c6y8jx90kb1-home. guix home: error: rmdir: No such file or directory ---[snip]--- This fails in the same way even when using a previously working configuration: ---[snip]--- $ guix home list-generations =E2=8B=AE Generation 27 Apr 05 2022 19:44:03 (current) file name: /var/guix/profiles/per-user/bjc/guix-home-27-link canonical file name: /gnu/store/zmp2brsdr0nvrhpbk4kqqc6y8jx90kb1-home channels: guix: repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: 3b3cc9dfed30afec70a6feaced3710bf79f8b2bc configuration file: /gnu/store/k90xv2x75nfc1wyxbw4171m6wxykqck6-configura= tion.scm $ guix home reconfigure /gnu/store/k90xv2x75nfc1wyxbw4171m6wxykqck6-configu= ration.scm Cleaning up symlinks from previous home at /gnu/store/zmp2brsdr0nvrhpbk4kqq= c6y8jx90kb1-home. guix home: error: rmdir: No such file or directory ---[snip]--- -bjc ------------=_1649710082-17575-1--