unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: Jan Nieuwenhuizen <janneke@gnu.org>
Cc: 23697-done@debbugs.gnu.org
Subject: bug#23697: guix system reconfigure hangs, shows repl in messages
Date: Tue, 18 Dec 2018 16:39:04 +0100	[thread overview]
Message-ID: <87sgyug7zb.fsf@gnu.org> (raw)
In-Reply-To: <87vb1m4t8w.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Mon, 06 Jun 2016 10:27:27 +0200")

Hello!

ludo@gnu.org (Ludovic Courtès) skribis:

> Jan Nieuwenhuizen <janneke@gnu.org> skribis:

[...]

>>     guix system reconfigure drakenvlieg.scm
>>
>> which eventually printed
>>
>>     ...
>>     guix system: loading new services: file-system-/home urandom-seed ntpd avahi-daemon ssh-daemon...
>>     shepherd: Evaluating user expression (register-services (primitive-load "/gn...") ...).
>>
>> In /var/log/messages I found some clue as to why this did not return
>
> [...]
>
>>     2016-06-01 19:59:57 Evaluating user expression (register-services (primitive-load "/gn...") #).
>>     2016-06-01 19:59:57 GNU Guile 2.0.11
>>     2016-06-01 19:59:57 Copyright (C) 1995-2014 Free Software Foundation, Inc.
>>     2016-06-01 19:59:57 
>>     2016-06-01 19:59:57 Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
>>     2016-06-01 19:59:57 This program is free software, and you are welcome to redistribute it
>>     2016-06-01 19:59:57 under certain conditions; type `,show c' for details.
>>     2016-06-01 19:59:57 
>>     2016-06-01 19:59:57 Enter `,help' for help.
>
> What happens is that it failed to fsck /home (since it was already
> mounted), and stupidly started a rescue REPL that you couldn’t see.

A simple way to reproduce this is to run:

  # herd eval root '(begin (use-modules (gnu build file-systems)) (check-file-system "/dev/foo" "ext2"))'

That command does not return because PID 1 is stuck in read(0, …), where
stdin is connected to the console.  You can type “,q” in the console
(usually tty1) and it should be fine.  Of course if you try this
on a remote machine, you’re screwed…

Anyway, commit 6ea6e1476ff4a18d4b4b864c3065d18ed99c69af fixes it, at last.

Thanks,
Ludo’.

      reply	other threads:[~2018-12-18 15:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-05  9:52 bug#23697: guix system reconfigure hangs, shows repl in messages Jan Nieuwenhuizen
2016-06-06  8:27 ` Ludovic Courtès
2018-12-18 15:39   ` Ludovic Courtès [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sgyug7zb.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=23697-done@debbugs.gnu.org \
    --cc=janneke@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).