* Re: error running container: mingetty cannot find ttys
[not found] ` <20190126192150.GD11329@macbook41>
@ 2019-02-06 12:16 ` Giovanni Biscuolo
2019-02-11 22:20 ` bug#34211: " Ludovic Courtès
0 siblings, 1 reply; 4+ messages in thread
From: Giovanni Biscuolo @ 2019-02-06 12:16 UTC (permalink / raw)
To: guix-devel, 34211; +Cc: help-guix
[-- Attachment #1: Type: text/plain, Size: 8848 bytes --]
Hi!
plase is there someone else that could reproduce this issue with "guix
system container": https://issues.guix.info/issue/34211 ?
I'm still not able to run a container built using "guix system container
container-minimal.scm -r container-minimal"
I'm on guix commit: 4aeb7f34c948f32363f2ae29c6942c6328df758c
this is the simple container.scm I'm using:
--8<---------------cut here---------------start------------->8---
;; This is an operating system configuration template
;; to test containers via guix system (also on foregin distros)
;; see https://www.gnu.org/software/guix/manual/en/html_node/Invoking-guix-system.html
(use-modules (gnu))
(use-service-modules networking ssh)
(use-package-modules screen ssh emacs)
(operating-system
(host-name "test-container")
(timezone "Europe/Rome")
(locale "en_US.utf8")
;; Boot in "legacy" BIOS mode
(bootloader (bootloader-configuration
(bootloader grub-bootloader)
(target "/dev/sda")))
(file-systems (cons (file-system
(device (file-system-label "guixsd"))
(mount-point "/")
(type "ext4"))
%base-file-systems))
;; This is where user accounts are specified. The "root"
;; account is implicit, and is initially created with the
;; empty password.
(users (cons (user-account
(name "gbiscuolo")
(comment "Giovanni Biscuolo (admin)")
(group "users")
(supplementary-groups '("wheel" "audio" "video"))
(home-directory "/home/gbiscuolo"))
%base-user-accounts))
;; Globally-installed packages.
(packages (cons* screen openssh emacs %base-packages))
;; Add services to the baseline: a DHCP client and
;; an SSH server.
(services (cons* (service dhcp-client-service-type)
(service openssh-service-type
(openssh-configuration
(x11-forwarding? #t)
(permit-root-login 'without-password)
(port-number 22)))
%base-services)))
--8<---------------cut here---------------end--------------->8---
and this are the messages I got on running the container:
--8<---------------cut here---------------start------------->8---
registering public key '/gnu/store/4v6cxail1ajinjqsgfblan132fbw06m4-guix-0.16.0-9.4bddd12/share/guix/hydra.gnu.org.pub'...
registering public key '/gnu/store/4v6cxail1ajinjqsgfblan132fbw06m4-guix-0.16.0-9.4bddd12/share/guix/berlin.guixsd.org.pub'...
ssh-keygen: generating new host keys: RSA DSA ECDSA ED25519
nscd: 166 monitoring file `/etc/hosts` (1)
nscd: 166 monitoring directory `/etc` (2)
nscd: 166 monitoring file `/etc/resolv.conf` (3)
nscd: 166 monitoring directory `/etc` (2)
nscd: 166 monitoring file `/etc/services` (4)
nscd: 166 monitoring directory `/etc` (2)
failed to start service 'console-font-tty1'
failed to start service 'console-font-tty2'
failed to start service 'console-font-tty3'
failed to start service 'console-font-tty4'
failed to start service 'console-font-tty5'
failed to start service 'console-font-tty6'
Feb 6 12:45:18 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[181]: tty3: No such file or directory
Feb 6 12:45:18 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[180]: tty4: No such file or directory
Feb 6 12:45:18 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[178]: tty6: No such file or directory
Feb 6 12:45:18 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[179]: tty5: No such file or directory
Feb 6 12:45:18 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[183]: tty1: No such file or directory
Feb 6 12:45:18 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[182]: tty2: No such file or directory
Feb 6 12:45:24 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[190]: tty4: No such file or directory
Feb 6 12:45:24 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[188]: tty6: No such file or directory
Feb 6 12:45:24 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[189]: tty5: No such file or directory
Feb 6 12:45:24 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[191]: tty3: No such file or directory
Feb 6 12:45:24 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[193]: tty1: No such file or directory
Feb 6 12:45:24 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[192]: tty2: No such file or directory
Feb 6 12:45:29 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[195]: tty6: No such file or directory
Feb 6 12:45:29 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[194]: tty4: No such file or directory
Feb 6 12:45:29 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[197]: tty5: No such file or directory
Feb 6 12:45:29 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[198]: tty3: No such file or directory
Feb 6 12:45:29 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[199]: tty1: No such file or directory
Feb 6 12:45:29 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[200]: tty2: No such file or directory
Feb 6 12:45:34 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[201]: tty6: No such file or directory
Feb 6 12:45:34 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[203]: tty5: No such file or directory
Feb 6 12:45:34 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[202]: tty4: No such file or directory
Feb 6 12:45:34 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[204]: tty3: No such file or directory
Feb 6 12:45:34 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[205]: tty1: No such file or directory
Feb 6 12:45:34 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[206]: tty2: No such file or directory
Feb 6 12:45:39 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[209]: tty4: No such file or directory
Feb 6 12:45:39 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[208]: tty6: No such file or directory
Feb 6 12:45:39 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[210]: tty5: No such file or directory
Feb 6 12:45:39 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[211]: tty3: No such file or directory
Feb 6 12:45:39 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[213]: tty2: No such file or directory
Feb 6 12:45:39 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[212]: tty1: No such file or directory
Feb 6 12:45:44 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[214]: tty4: No such file or directory
Feb 6 12:45:44 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[217]: tty5: No such file or directory
Feb 6 12:45:44 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[216]: tty6: No such file or directory
Feb 6 12:45:44 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[218]: tty3: No such file or directory
Feb 6 12:45:44 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[219]: tty2: No such file or directory
Feb 6 12:45:44 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[220]: tty1: No such file or directory
--8<---------------cut here---------------end--------------->8---
I have to TERM the the container since the "ttN: No such file or
directory" message loops indefinitely
Efraim Flashner was able to reproduce the issue: is my container
configuration broken
Efraim Flashner <efraim@flashner.co.il> writes:
[...]
> I tested the config (after removing the references to your ssh key) on
> commit fc9c47bd7cdfd6265681e6b2c48fdb7889672bcc and I got the same
> issue. Forwarding on to bug-guix
please any hint on how to solve this issue?
Thanks!
Giovanni
--
Giovanni Biscuolo
Xelera IT Infrastructures
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: bug#34211: error running container: mingetty cannot find ttys
2019-02-06 12:16 ` error running container: mingetty cannot find ttys Giovanni Biscuolo
@ 2019-02-11 22:20 ` Ludovic Courtès
2019-02-12 10:25 ` Giovanni Biscuolo
0 siblings, 1 reply; 4+ messages in thread
From: Ludovic Courtès @ 2019-02-11 22:20 UTC (permalink / raw)
To: Giovanni Biscuolo; +Cc: guix-devel, help-guix, 34211
Hi Giovanni,
Giovanni Biscuolo <g@xelera.eu> skribis:
> plase is there someone else that could reproduce this issue with "guix
> system container": https://issues.guix.info/issue/34211 ?
[...]
> Feb 6 12:45:44 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[217]: tty5: No such file or directory
> Feb 6 12:45:44 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[216]: tty6: No such file or directory
> Feb 6 12:45:44 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[218]: tty3: No such file or directory
> Feb 6 12:45:44 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[219]: tty2: No such file or directory
> Feb 6 12:45:44 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[220]: tty1: No such file or directory
>
> I have to TERM the the container since the "ttN: No such file or
> directory" message loops indefinitely
I also get this behavior.
What happens is that the /dev/ttyN nodes do not exist (understandably),
and thus the ‘console-font-ttyN’ Shepherd services fail to start, and
get restarted, indefinitely.
The container is working as expected though. If you find the PID of the
container’s ‘shepherd’ process (its PID 1, which obviously has a
different PID outside the container), then you can do:
guix container exec NNN /bin/sh
where NNN is that PID of that ‘shepherd’ process (I use ‘pstree’ to find
the PID… not very convenient.)
In that shell, you can do:
--8<---------------cut here---------------start------------->8---
sh-4.4# . /etc/profile
sh-4.4# ls
bin dev etc gnu home proc root run sys tmp var
sh-4.4# herd status
Started:
+ containerized-shepherd
+ file-systems
+ guix-daemon
+ host-name
+ loopback
+ nscd
+ root
+ root-file-system
+ ssh-daemon
+ syslogd
+ term-tty1
+ term-tty2
+ term-tty3
+ term-tty4
+ term-tty5
+ term-tty6
+ udev
+ urandom-seed
+ user-file-systems
+ user-processes
+ virtual-terminal
Stopped:
- console-font-tty1
- console-font-tty2
- console-font-tty3
- console-font-tty4
- console-font-tty5
- console-font-tty6
- networking
- term-auto
- user-homes
--8<---------------cut here---------------end--------------->8---
So in that sense everything is working “as expected.”
Now, it would make more sense to simply remove those ‘console-font-ttyN’
services in a container and everything that depends on them. Not sure
if we should do that automatically.
Thoughts?
Thanks,
Ludo’.
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#34211: error running container: mingetty cannot find ttys
2019-02-11 22:20 ` bug#34211: " Ludovic Courtès
@ 2019-02-12 10:25 ` Giovanni Biscuolo
2019-02-13 17:19 ` Giovanni Biscuolo
0 siblings, 1 reply; 4+ messages in thread
From: Giovanni Biscuolo @ 2019-02-12 10:25 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: guix-devel, 34211, help-guix
[-- Attachment #1: Type: text/plain, Size: 2397 bytes --]
Hi Ludo'
thank you for looking into this issue!
Ludovic Courtès <ludo@gnu.org> writes:
[...]
> I also get this behavior.
OK, so this is deterministic now :-)
> What happens is that the /dev/ttyN nodes do not exist (understandably),
> and thus the ‘console-font-ttyN’ Shepherd services fail to start, and
> get restarted, indefinitely.
actually they do fail but they are not respawned, the services that get
respawned are term-tty[1..6]
> The container is working as expected though. If you find the PID of the
> container’s ‘shepherd’ process (its PID 1, which obviously has a
> different PID outside the container), then you can do:
>
> guix container exec NNN /bin/sh
I have to use "sudo" to be able to start and "guix container exec" a
shell in it (I mean: sudo guix container exec...)
I used that command in another terminal so I could see the console
messages from the container
> where NNN is that PID of that ‘shepherd’ process (I use ‘pstree’ to find
> the PID… not very convenient.)
oh yes! I did not realized that my container was there waiting for me
:-)
...I also did not realized thet the container is started as a foreground
process, so we nees to background
I used pstree too, we need a better way to interact with a container (by
name and not by PID); sorry but I still cannot help here, my Guile
proficency is still too low; anyway this is tangent to this bug
> In that shell, you can do:
[...]
> So in that sense everything is working “as expected.”
yes, I see: I stopped term-tty[1..6] and the failure messages disappeared
> Now, it would make more sense to simply remove those ‘console-font-ttyN’
> services in a container and everything that depends on them.
as pointed above the faining services are term-tty[1..6],
console-font-tty[1..6] fails but do not get respawned do they are not
the real issue
> Not sure if we should do that automatically.
I'll try to remove term-tty[1..6] manually from services declaration, if
I manage to "manually" solve this I'll report here
> Thoughts?
since mingetty does not make sense in a container I'd remove
term-tty[1..6] (and console-font-tty[1..6]) automatically and by default
when we create a container via "guix system container..."
Thanks!
Giovanni
--
Giovanni Biscuolo
Xelera IT Infrastructures
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: bug#34211: error running container: mingetty cannot find ttys
2019-02-12 10:25 ` Giovanni Biscuolo
@ 2019-02-13 17:19 ` Giovanni Biscuolo
0 siblings, 0 replies; 4+ messages in thread
From: Giovanni Biscuolo @ 2019-02-13 17:19 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: guix-devel, help-guix, 34211
[-- Attachment #1: Type: text/plain, Size: 1292 bytes --]
Hello,
Giovanni Biscuolo <g@xelera.eu> writes:
[...]
> I'll try to remove term-tty[1..6] manually from services declaration, if
> I manage to "manually" solve this I'll report here
I tried but failed, I'm removing both mingetty and console-font from
%base-services list:
--8<---------------cut here---------------start------------->8---
(services (cons* (service dhcp-client-service-type)
(service openssh-service-type
(openssh-configuration
(x11-forwarding? #t)
(permit-root-login 'without-password)
(authorized-keys
`(("gbiscuolo" ,(local-file "ssh-authorized-keys/gbiscuolo.pub"))))
(port-number 22)))
(remove (lambda (service)
(eq? (service-kind service) mingetty-service-type)
(eq? (service-kind service) console-font-service-type))
%base-services))))
--8<---------------cut here---------------end--------------->8---
but term-tty[1..6] and console-font-tty[1..6] processes still get
installed and started by herd
please any hint on how to "manually" remove those two failing services?
Thanks!
Giovanni
--
Giovanni Biscuolo
Xelera IT Infrastructures
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-02-13 17:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <874l9wbpfb.fsf@roquette.mug.biscuolo.net>
[not found] ` <20190126192150.GD11329@macbook41>
2019-02-06 12:16 ` error running container: mingetty cannot find ttys Giovanni Biscuolo
2019-02-11 22:20 ` bug#34211: " Ludovic Courtès
2019-02-12 10:25 ` Giovanni Biscuolo
2019-02-13 17:19 ` Giovanni Biscuolo
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).