Guix hangs near the end of ‘home’ operations

  • Done
  • quality assurance status badge
Details
2 participants
  • Brian Cully
  • Ludovic Courtès
Owner
unassigned
Submitted by
Brian Cully
Severity
important
Merged with
B
B
Brian Cully wrote on 13 Apr 2022 21:43
(address . bug-guix@gnu.org)
87v8vcydd6.fsf@ditto.jhoto.spork.org
During ‘home reconfigure’ after it says ‘Finished updating symlinks.’,
guix hangs forever. Attempting to interrupt with ^C failed, and I had to
force-close my ssh session.

Logging back in, ‘home list-generations’ claims to have
installed a new generation and moved forward. I no longer knew the state
of this generation, since I had to forcefully quit the previous
operation, so I felt it safest to try to roll back my home.

Again, ‘home roll-back’ got to ‘Finished updating symlinks’ and
hard hung. I probably don’t need to tell anyone how this makes me feel
about the stability of this system or any guarantees of atomicity in
transactions.

-bjc
L
L
Ludovic Courtès wrote on 20 Apr 2022 17:20
control message for bug #54919
(address . control@debbugs.gnu.org)
87wnfjok7e.fsf@gnu.org
severity 54919 important
quit
L
L
Ludovic Courtès wrote on 20 Apr 2022 17:23
Re: bug#54919: Guix hangs near the end of ‘home ’ operations
(name . Brian Cully)(address . bjc@spork.org)(address . 54919@debbugs.gnu.org)
87r15rok21.fsf@gnu.org
Hi Brian,

Brian Cully <bjc@spork.org> skribis:

Toggle quote (4 lines)
> During ‘home reconfigure’ after it says ‘Finished updating symlinks.’,
> guix hangs forever. Attempting to interrupt with ^C failed, and I had to
> force-close my ssh session.

I’ve experienced this hang too: it occurs while ‘guix system
reconfigure’ is running ‘herd load root …’ to reload the shepherd
services (so the upgrade did take place, as can be seen in ‘guix home
describe’, but shepherd services may not have been upgraded).

I believe this has to do with commit
22ab90146665ad4e624421f297dd284f00ebe6ce.

We can probably fix it by avoiding the use of ‘start-in-the-background’.

Ludo’.
L
L
Ludovic Courtès wrote on 20 Apr 2022 17:26
(name . Brian Cully)(address . bjc@spork.org)(address . 54919@debbugs.gnu.org)
87mtgfojxd.fsf@gnu.org
Ludovic Courtès <ludo@gnu.org> skribis:

Toggle quote (2 lines)
> We can probably fix it by avoiding the use of ‘start-in-the-background’.

Specifically, the proposed fix is attached below. I cannot test it
right now so I’m happy if somebody else can confirm the intuition in the
meantime :-) by applying the patch and running:

./pre-inst-env guix home reconfigure …

from there.

Ludo’.
Toggle diff (14 lines)
diff --git a/gnu/home/services/shepherd.scm b/gnu/home/services/shepherd.scm
index df6bbb30e6..3ac29cb005 100644
--- a/gnu/home/services/shepherd.scm
+++ b/gnu/home/services/shepherd.scm
@@ -82,9 +82,7 @@ (define config
'#$(append-map shepherd-service-provision
(filter shepherd-service-auto-start?
services))))
- (if (defined? 'start-in-the-background)
- (start-in-the-background services-to-start)
- (for-each start services-to-start)))))
+ (for-each start services-to-start))))
(scheme-file "shepherd.conf" config)))
L
L
Ludovic Courtès wrote on 20 Apr 2022 23:52
control message for bug #54779
(address . control@debbugs.gnu.org)
87czhbmngp.fsf@gnu.org
merge 54779 54919
quit
L
L
Ludovic Courtès wrote on 20 Apr 2022 23:53
(address . control@debbugs.gnu.org)
87a6cfmng4.fsf@gnu.org
merge 54779 54919
quit
L
L
Ludovic Courtès wrote on 21 Apr 2022 00:11
Re: bug#54919: Guix hangs near the end of ‘home ’ operations
(name . Brian Cully)(address . bjc@spork.org)(address . 54919-done@debbugs.gnu.org)
87zgkfl811.fsf@gnu.org
Turns out the issue was also being discussed at

Thanks,
Ludo’.
Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 54919@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 54919
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch