system container gathering entropy takes forever

  • Open
  • quality assurance status badge
Details
3 participants
  • Jurij
  • Ludovic Courtès
  • oscar.quijano
Owner
unassigned
Submitted by
oscar.quijano
Severity
normal
O
O
oscar.quijano wrote on 9 Sep 2023 23:40
(address . bug-guix@gnu.org)
169429560260.33.10975489889094933630@startmail.com
New containers get stuck with a message similar to the following one:


guile: warning: failed to install locale

system container is running as PID 85878W

ARNING: (guile-user): imported module (guix build utils) overrides core
binding `delete'

Run 'sudo guix container exec 85878 /run/current-system/profile/bin/bash
--login'

or run 'sudo nsenter -a -t 85878' to get a shell into it.


WARNING: (guile-user): imported module (guix build utils) overrides core
binding `delete'

making '/gnu/store/gkqmm80naf3zw2n20ml11q7xb2nbnglg-system' the current
system...

WARNING: (guile-user): imported module (guix build utils) overrides core
binding `delete'

setting up setuid programs in '/run/setuid-programs'...

populating /etc from /gnu/store/wigi6gny24gpk2inqy19xswsbplqa6fc-etc...

WARNING: (guile-user): imported module (guix build utils) overrides core
binding `delete'

WARNING: (guile-user): imported module (guix build utils) overrides core
binding `delete'

Please wait while gathering entropy to generate the key pair;

this may take time...


and the message stays there forever, I have left it running even for more than
half an hour and it doesn't move from there. This is happening even with basic
system container definitions. The previos message was generated when running a
system container with the following system definition:


(use-modules (gnu)

(gnu services web))


(operating-system


(host-name "container")


(timezone "Europe/Berlin")


(file-systems (cons (file-system

(device (file-system-label "does-not-matter"))

(mount-point "/")

(type "ext4"))

%base-file-systems))


(bootloader (bootloader-configuration

(bootloader grub-bootloader)

(targets '("/dev/sdX"))))


(services %base-services))



I also tried sharing /dev/random and /dev/urandom with the host and it still
gets stuck there.

Any ideas about what could be causing this?
Attachment: file
J
I think it's running
(address . 65847@debbugs.gnu.org)
dfdeb901-7e0f-8ea5-3854-8e1d599ed5ae@kompot.si
Your container is running.

Try to reach it, via:
sudo nsenter -a -t <PID> sh
L
L
Ludovic Courtès wrote on 12 Feb 15:18 +0100
Re: bug#65847: system container gathering entropy takes forever
(name . Jurij)(address . jurij@kompot.si)(address . 65847@debbugs.gnu.org)
87a5o5epga.fsf_-_@gnu.org
Hi,

Jurij <jurij@kompot.si> skribis:

Toggle quote (5 lines)
> Your container is running.
>
> Try to reach it, via:
> sudo nsenter -a -t <PID> sh

Indeed. The problem is that the “entry point” (in Docker parlance) of
images created by ‘guix system image -t docker’ is shepherd (PID 1), and
shepherd never exits.

Ludo’.
?
Your comment

Commenting via the web interface is currently disabled.

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

To respond to this issue using the mumi CLI, first switch to it
mumi current 65847
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