unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#54831: guix home reconfigure fails with “rmdir: No such file or directory”
@ 2022-04-09 23:53 Brian Cully
  2022-04-10 12:12 ` bug#54831: guix home: error: rmdir: No such file or directory Madhavan Krishnan
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Brian Cully @ 2022-04-09 23:53 UTC (permalink / raw)
  To: 54831


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/zmp2brsdr0nvrhpbk4kqqc6y8jx90kb1-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
	⋮
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-configuration.scm

$ guix home reconfigure /gnu/store/k90xv2x75nfc1wyxbw4171m6wxykqck6-configuration.scm
Cleaning up symlinks from previous home at /gnu/store/zmp2brsdr0nvrhpbk4kqqc6y8jx90kb1-home.

guix home: error: rmdir: No such file or directory
---[snip]---

-bjc




^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#54831: guix home: error: rmdir: No such file or directory
  2022-04-09 23:53 bug#54831: guix home reconfigure fails with “rmdir: No such file or directory” Brian Cully
@ 2022-04-10 12:12 ` Madhavan Krishnan
  2022-04-10 15:47 ` bug#54831: Unhandled ENOENT exception Christopher Rodriguez
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Madhavan Krishnan @ 2022-04-10 12:12 UTC (permalink / raw)
  To: 54831

[-- Attachment #1: Type: text/plain, Size: 279 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 483 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#54831: Unhandled ENOENT exception
  2022-04-09 23:53 bug#54831: guix home reconfigure fails with “rmdir: No such file or directory” Brian Cully
  2022-04-10 12:12 ` bug#54831: guix home: error: rmdir: No such file or directory Madhavan Krishnan
@ 2022-04-10 15:47 ` Christopher Rodriguez
  2022-04-10 15:47 ` Christopher Rodriguez
  2022-04-11 20:46 ` bug#54831: guix home reconfigure fails with “rmdir: No such file or directory” Ludovic Courtès
  3 siblings, 0 replies; 5+ messages in thread
From: Christopher Rodriguez @ 2022-04-10 15:47 UTC (permalink / raw)
  To: 54831


[-- Attachment #1.1.1: Type: text/plain, Size: 941 bytes --]

Christopher Rodriguez


Table of Contents
─────────────────




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.

[-- Attachment #1.1.2: Type: text/html, Size: 913 bytes --]

[-- Attachment #1.2: Type: text/plain, Size: 26 bytes --]

--

Christopher Rodriguez

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#54831: Unhandled ENOENT exception
  2022-04-09 23:53 bug#54831: guix home reconfigure fails with “rmdir: No such file or directory” Brian Cully
  2022-04-10 12:12 ` bug#54831: guix home: error: rmdir: No such file or directory Madhavan Krishnan
  2022-04-10 15:47 ` bug#54831: Unhandled ENOENT exception Christopher Rodriguez
@ 2022-04-10 15:47 ` Christopher Rodriguez
  2022-04-11 20:46 ` bug#54831: guix home reconfigure fails with “rmdir: No such file or directory” Ludovic Courtès
  3 siblings, 0 replies; 5+ messages in thread
From: Christopher Rodriguez @ 2022-04-10 15:47 UTC (permalink / raw)
  To: 54831


[-- Attachment #1.1.1: Type: text/plain, Size: 941 bytes --]

Christopher Rodriguez


Table of Contents
─────────────────




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.

[-- Attachment #1.1.2: Type: text/html, Size: 913 bytes --]

[-- Attachment #1.2: Type: text/plain, Size: 26 bytes --]

--

Christopher Rodriguez

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#54831: guix home reconfigure fails with “rmdir: No such file or directory”
  2022-04-09 23:53 bug#54831: guix home reconfigure fails with “rmdir: No such file or directory” Brian Cully
                   ` (2 preceding siblings ...)
  2022-04-10 15:47 ` Christopher Rodriguez
@ 2022-04-11 20:46 ` Ludovic Courtès
  3 siblings, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2022-04-11 20:46 UTC (permalink / raw)
  To: Brian Cully, Madhavan Krishnan, Christopher Rodriguez; +Cc: 54831-done

Hi all,

Brian Cully <bjc@spork.org> 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/zmp2brsdr0nvrhpbk4kqqc6y8jx90kb1-home.
>
> guix home: error: rmdir: No such file or directory
> ---[snip]---

Christopher Rodriguez <yewscion@gmail.com> 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
<https://issues.guix.gnu.org/52808> but had not been applied.  Apologies
for the breakage.

Thanks,
Ludo’.




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-04-11 20:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-09 23:53 bug#54831: guix home reconfigure fails with “rmdir: No such file or directory” Brian Cully
2022-04-10 12:12 ` bug#54831: guix home: error: rmdir: No such file or directory Madhavan Krishnan
2022-04-10 15:47 ` bug#54831: Unhandled ENOENT exception Christopher Rodriguez
2022-04-10 15:47 ` Christopher Rodriguez
2022-04-11 20:46 ` bug#54831: guix home reconfigure fails with “rmdir: No such file or directory” Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).