GNU bug report logs - #23697
guix system reconfigure hangs, shows repl in messages

Previous Next

Package: guix;

Reported by: Jan Nieuwenhuizen <janneke <at> gnu.org>

Date: Sun, 5 Jun 2016 09:53:01 UTC

Severity: important

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 23697 in the body.
You can then email your comments to 23697 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#23697; Package guix. (Sun, 05 Jun 2016 09:53:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jan Nieuwenhuizen <janneke <at> gnu.org>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sun, 05 Jun 2016 09:53:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jan Nieuwenhuizen <janneke <at> gnu.org>
To: bug-guix <at> gnu.org
Subject: guix system reconfigure hangs, shows repl in messages
Date: Sun, 05 Jun 2016 11:52:13 +0200
[Message part 1 (text/plain, inline)]
Hi,

Not sure this qualifies as a bug, sending per request.

As a preparation to move from Debian to GuixSD, I have been dual
booting between Debian and GuixSD.

Using Debian as my main system with this layout

    /dev/sda3 "debian" /
    /dev/sda1          /guix
    /dev/sda4          /home

I did

    guix system init drakenvlieg.scm /guix

see attached, and then booted into GuixSD.  GuixSD still using its own
/home on its sda1 root.

On GuixSD, I ran Gnome and mounted the home I had been using with Debian

    /dev/sda1 "guix"   /
    /dev/sda3 "debian" /debian
    /dev/sda4          /hoom    <--manual mount

I set $HOME /to /hoom/janneke and checked that some things like wifi,
fonts, ssh, gnus, openvpn, touchpad etc. worked good enough to switch
over.

Then, I uncommented the /home section in drakenvlieg.scm, like so

    ;; Switch to GuixSD
    (file-system (device "home")
                 (title 'label)
                 (mount-point "/home")
                 (type "ext4"))
    (file-system (device (label "Debian")) (title 'label) (mount-point "/debian") (type "ext4") (flags '(read-only)))

and (without considering I had mounted /hoom and set $HOME there) ran

    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:55:20 Service root has been started.
    2016-06-01 19:55:20 starting services...
    2016-06-01 19:55:20 Service root-file-system has been started.
    2016-06-01 19:55:20 waiting for udevd...
    2016-06-01 19:55:23 Service udev has been started.
    2016-06-01 19:55:23 Service swap-/dev/sda2 has been started.
    2016-06-01 19:55:23 Service file-system-/sys/fs/cgroup has been started.
    2016-06-01 19:55:23 Service file-system-/sys/fs/cgroup/hugetlb has been started.
    2016-06-01 19:55:23 Service file-system-/sys/fs/cgroup/perf_event has been started.
    2016-06-01 19:55:23 Service file-system-/sys/fs/cgroup/blkio has been started.
    2016-06-01 19:55:23 Service file-system-/sys/fs/cgroup/freezer has been started.
    2016-06-01 19:55:23 Service file-system-/sys/fs/cgroup/devices has been started.
    2016-06-01 19:55:23 Service file-system-/sys/fs/cgroup/memory has been started.
    2016-06-01 19:55:23 Service file-system-/sys/fs/cgroup/cpuacct has been started.
    2016-06-01 19:55:23 Service file-system-/sys/fs/cgroup/cpu has been started.
    2016-06-01 19:55:23 Service file-system-/sys/fs/cgroup/cpuset has been started.
    2016-06-01 19:55:23 Service file-system-/sys/fs/cgroup/elogind has been started.
    2016-06-01 19:55:23 Service file-system-/run/user has been started.
    2016-06-01 19:55:23 Service file-system-/run/systemd has been started.
    2016-06-01 19:55:23 Service file-system-/gnu/store has been started.
    2016-06-01 19:55:23 Service file-system-/dev/shm has been started.
    2016-06-01 19:55:23 Service file-system-/dev/pts has been started.
    2016-06-01 19:55:23 Service user-file-systems has been started.
    2016-06-01 19:55:23 Service user-processes has been started.
    2016-06-01 19:55:23 Service host-name has been started.
    2016-06-01 19:55:23 Service nscd has been started.
    2016-06-01 19:55:23 Service guix-daemon has been started.
    2016-06-01 19:55:23 Service syslogd has been started.
    2016-06-01 19:55:23 Service loopback has been started.
    2016-06-01 19:55:23 Service term-tty6 has been started.
    2016-06-01 19:55:23 Service term-tty5 has been started.
    2016-06-01 19:55:23 Service term-tty4 has been started.
    2016-06-01 19:55:23 Service term-tty3 has been started.
    2016-06-01 19:55:23 Service term-tty2 has been started.
    2016-06-01 19:55:23 Service term-tty1 has been started.
    2016-06-01 19:55:23 Service console-font-tty6 has been started.
    2016-06-01 19:55:23 Service console-font-tty5 has been started.
    2016-06-01 19:55:23 Service console-font-tty4 has been started.
    2016-06-01 19:55:23 Service console-font-tty3 has been started.
    2016-06-01 19:55:23 Service console-font-tty2 has been started.
    2016-06-01 19:55:23 Service console-font-tty1 has been started.
    2016-06-01 19:55:23 Service dbus-system has been started.
    2016-06-01 19:55:23 Service networking has been started.
    2016-06-01 19:55:23 Service ntpd has been started.
    2016-06-01 19:55:23 Service upower-daemon has been started.
    2016-06-01 19:55:23 Service avahi-daemon has been started.
    2016-06-01 19:55:23 Service xorg-server has been started.
    2016-06-01 19:55:23 Service postgres has been started.
    2016-06-01 19:55:23 Service ssh-daemon has been started.
    2016-06-01 19:55:23 Service console-keymap has been started.
    2016-06-01 19:55:23 Respawning upower-daemon.
    2016-06-01 19:55:23 Service upower-daemon has been started.
    2016-06-01 19:55:23 Respawning avahi-daemon.
    2016-06-01 19:55:23 Service avahi-daemon has been started.
    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.

Greetings,
Jan

PS: I booted into Debian, did a new system init into /guix and am
    running GuixSD now.

[drakenvlieg.scm (application/octet-stream, attachment)]
[Message part 3 (text/plain, inline)]
-- 
Jan Nieuwenhuizen <janneke <at> gnu.org> | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | Avatar®  http://AvatarAcademy.nl  

Information forwarded to bug-guix <at> gnu.org:
bug#23697; Package guix. (Mon, 06 Jun 2016 08:29:01 GMT) Full text and rfc822 format available.

Message #8 received at 23697 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Jan Nieuwenhuizen <janneke <at> gnu.org>
Cc: 23697 <at> debbugs.gnu.org
Subject: Re: bug#23697: guix system reconfigure hangs, shows repl in messages
Date: Mon, 06 Jun 2016 10:27:27 +0200
Jan Nieuwenhuizen <janneke <at> gnu.org> skribis:

> Then, I uncommented the /home section in drakenvlieg.scm, like so
>
>     ;; Switch to GuixSD
>     (file-system (device "home")
>                  (title 'label)
>                  (mount-point "/home")
>                  (type "ext4"))
>     (file-system (device (label "Debian")) (title 'label) (mount-point "/debian") (type "ext4") (flags '(read-only)))
>
> and (without considering I had mounted /hoom and set $HOME there) ran
>
>     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.

The rescue REPL is a good idea when booting the system; see for
instance:

  http://bugs.gnu.org/22588

However, in the case of an upgrade, we need a way to say “no REPL
please”.  Or maybe a way to make the ‘start’ method idempotent by
checking whether the thing is already mounted.

Thoughts?

Ludo’.




Severity set to 'important' from 'normal' Request was from ludo <at> gnu.org (Ludovic Courtès) to control <at> debbugs.gnu.org. (Wed, 11 Jan 2017 22:28:02 GMT) Full text and rfc822 format available.

Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Tue, 18 Dec 2018 15:40:03 GMT) Full text and rfc822 format available.

Notification sent to Jan Nieuwenhuizen <janneke <at> gnu.org>:
bug acknowledged by developer. (Tue, 18 Dec 2018 15:40:03 GMT) Full text and rfc822 format available.

Message #15 received at 23697-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Jan Nieuwenhuizen <janneke <at> gnu.org>
Cc: Ricardo Wurmus <rekado <at> elephly.net>, 23697-done <at> debbugs.gnu.org
Subject: Re: bug#23697: guix system reconfigure hangs, shows repl in messages
Date: Tue, 18 Dec 2018 16:39:04 +0100
Hello!

ludo <at> gnu.org (Ludovic Courtès) skribis:

> Jan Nieuwenhuizen <janneke <at> 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’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 16 Jan 2019 12:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 73 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.