all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#54919: Guix hangs near the end of ‘home’ operations
@ 2022-04-13 19:43 Brian Cully
  2022-04-20 15:23 ` Ludovic Courtès
  0 siblings, 1 reply; 4+ messages in thread
From: Brian Cully @ 2022-04-13 19:43 UTC (permalink / raw)
  To: 54919


	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




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

* bug#54919: Guix hangs near the end of ‘home’ operations
  2022-04-13 19:43 bug#54919: Guix hangs near the end of ‘home’ operations Brian Cully
@ 2022-04-20 15:23 ` Ludovic Courtès
  2022-04-20 15:26   ` Ludovic Courtès
  0 siblings, 1 reply; 4+ messages in thread
From: Ludovic Courtès @ 2022-04-20 15:23 UTC (permalink / raw)
  To: Brian Cully; +Cc: 54919

Hi Brian,

Brian Cully <bjc@spork.org> skribis:

> 	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’.




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

* bug#54919: Guix hangs near the end of ‘home’ operations
  2022-04-20 15:23 ` Ludovic Courtès
@ 2022-04-20 15:26   ` Ludovic Courtès
  2022-04-20 22:11     ` Ludovic Courtès
  0 siblings, 1 reply; 4+ messages in thread
From: Ludovic Courtès @ 2022-04-20 15:26 UTC (permalink / raw)
  To: Brian Cully; +Cc: 54919

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

Ludovic Courtès <ludo@gnu.org> skribis:

> 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’.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 673 bytes --]

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)))
 

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

* bug#54919: Guix hangs near the end of ‘home’ operations
  2022-04-20 15:26   ` Ludovic Courtès
@ 2022-04-20 22:11     ` Ludovic Courtès
  0 siblings, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2022-04-20 22:11 UTC (permalink / raw)
  To: Brian Cully; +Cc: 54919-done

Turns out the issue was also being discussed at
<https://issues.guix.gnu.org/54779>.  Fixed now!

Thanks,
Ludo’.




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

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

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-13 19:43 bug#54919: Guix hangs near the end of ‘home’ operations Brian Cully
2022-04-20 15:23 ` Ludovic Courtès
2022-04-20 15:26   ` Ludovic Courtès
2022-04-20 22:11     ` Ludovic Courtès

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.