From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id CHRkHzCUVGKZjAAAgWs5BA (envelope-from ) for ; Mon, 11 Apr 2022 22:48:48 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id ANbzFzCUVGIsMAAAG6o9tA (envelope-from ) for ; Mon, 11 Apr 2022 22:48:48 +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 025B3B5C5 for ; Mon, 11 Apr 2022 22:48:48 +0200 (CEST) Received: from localhost ([::1]:49644 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ne0xq-0005eG-8A for larch@yhetil.org; Mon, 11 Apr 2022 16:48:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37664) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ne0x8-0005cM-Ax for bug-guix@gnu.org; Mon, 11 Apr 2022 16:48:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52020) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ne0x8-0007a5-1f for bug-guix@gnu.org; Mon, 11 Apr 2022 16:48:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ne0x8-0004Zb-0w for bug-guix@gnu.org; Mon, 11 Apr 2022 16:48:02 -0400 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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Date: Mon, 11 Apr 2022 20:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 54831 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Brian Cully , Madhavan Krishnan , Christopher Rodriguez Mail-Followup-To: 54831@debbugs.gnu.org, ludo@gnu.org, bjc@spork.org Received: via spool by 54831-done@debbugs.gnu.org id=D54831.164971003316384 (code D ref 54831); Mon, 11 Apr 2022 20:48:01 +0000 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: Ludovic =?UTF-8?Q?Court=C3=A8s?= 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 54831-done@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-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=1649710128; 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:resent-to: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=J+LoL+mHRo+w5rEyspXw1M5dZS7wXEkbOWQjqIOT24g=; b=IcF0Q7uTzsRgH+yCCd38v42QO2YBwmiKCtbiznmkOCQVtj2SQBNivQX2U5/93pNPdnRnJc N8g2JwQxRouRIuyyjvDTU0NTofZPNCxAyEkuCH4CJrLsmOnKLQ0x2GNSimgqcxGzPTIlG8 a/8NQRIRkpydIA5ici40BkvxTMVcPra8dePEk7Dd5598Polibuf/qdFClMnRav6AfFheR3 KSxESs5c4PKRVfkZM8+GlkqUiQc1zZp75GXlFlRhGDqPO1PdvA+XpDsr15HUQttVm3Zawf 37he17Et4vBmtJNz6OdCkMoF2N6uZ/SW2FEpJwuG7j7Q0+yj8GDp1io3kpk8Nw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1649710128; a=rsa-sha256; cv=none; b=DoMkBk7q+U8KP9tiAlQk+/yp96V4NdtdJwbpizzPj2Mh+DkFd1eVqNyE+RvZtL4F0pyYxO hBhShB8ZApu4GYaKJdei/gVQnHNm2Vn73Vg3ndrPh46BLCh1dLRy1i2XXsXRDa5znI8xv6 0jRTDieMZ315QyYURghb028YQAHoQV6OtmumYbnyBqrh3KPEk/k1trQUZoBTdomAjq3o7s 2a8+MYrQVIztD/EXED5rorRJqnDx5lv/KsQyXhBXTJSmhFhFRl56W0SmUFQuXUcPXnezT2 feOn01U4u6pFtGC+Kp0e74r5Oacfvj+mrWsWwtEq2ehodSHGfVflOU5ggeLZOA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=YXiLK+Fm; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.47 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=YXiLK+Fm; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 025B3B5C5 X-Spam-Score: -1.47 X-Migadu-Scanner: scn0.migadu.com X-TUID: 0MSVKfYW0Rc1 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.