GDM doesn't start

  • Done
  • quality assurance status badge
Details
One participant
  • Maxime Devos
Owner
unassigned
Submitted by
Maxime Devos
Severity
normal
M
M
Maxime Devos wrote on 14 Sep 2021 14:46
(address . bug-guix@gnu.org)
f1301fbf8a011bf4d12b31cf9f7e81338c91b0d3.camel@telenet.be
Hi,

The GDM service doesn't start anymore. To test, you can use the attached
xorg-repro.tmpl (guix system vm xorg-repro.tml && run the resulting script).
QEMU will start, and it will start booting, but nothing graphical will start.
If you switch to the last virtual terminal, you will see

[date] localhost shepherd[1]: Respawning xorg-server.
[date] localhost shepherd[1]: Service host-name has been started.
[date] localhost shepherd[1]: Service xorg-server has been started.
[date] localhost shepherd[1]: Respawning xorg-server.
[date] localhost shepherd[1]: Service host-name has been started.
[date] localhost shepherd[1]: Service xorg-server has been started.
[date] localhost shepherd[1]: Respawning xorg-server.
[date] localhost shepherd[1]: Service host-name has been started.
[date] localhost shepherd[1]: Service xorg-server has been started.
[date] localhost shepherd[1]: Respawning xorg-server.
[date] localhost shepherd[1]: Service host-name has been started.
[date] localhost shepherd[1]: Service xorg-server has been started.
[date] localhost shepherd[1]: Respawning xorg-server.
[date] localhost shepherd[1]: Service host-name has been started.
[date] localhost shepherd[1]: Service xorg-server has been started.
[date] localhost shepherd[1]: Respawning xorg-server.
[date]
localhost shepherd[1]: Service host-name has been started.
[date] localhost shepherd[1]: Service xorg-server has been started.
[date] localhost shepherd[1]: (Respawning too fast.)

GDM used to work for me with commit 75a3413b4e5c1f7443eb944a36ff364f4c4085f4,
but was broken with e9b87da1c3000c53cf9dbf5e737aa4d6546bd909. To be bisected?

Greetings,
Maxime.

(xorg-repro.templ is based on the vm-image.tmpl configuration)
;; This is an operating system configuration for a VM image.
;; Modify it as you see fit and instantiate the changes by running:
;;
;; guix system reconfigure /etc/config.scm
;;

(use-modules (gnu) (guix) (srfi srfi-1))
(use-service-modules desktop mcron networking spice ssh xorg)
(use-package-modules bootloaders certs fonts nvi
package-management wget xorg)

(define vm-image-motd (plain-file "motd" "
\x1b[1;37mThis is the GNU system. Welcome!\x1b[0m

This instance of Guix is a template for virtualized environments.
You can reconfigure the whole system by adjusting /etc/config.scm
and running:

guix system reconfigure /etc/config.scm

Run '\x1b[1;37minfo guix\x1b[0m' to browse documentation.

\x1b[1;33mConsider setting a password for the 'root' and 'guest' \
accounts.\x1b[0m
"))

;;; XXX: Xfce does not implement what is needed for the SPICE dynamic
;;; resolution to work (see:
;;; by manually invoking xrandr every second.
#;
(define auto-update-resolution-crutch
#~(job '(next-second)
(lambda ()
(setenv "DISPLAY" ":0.0")
(setenv "XAUTHORITY" "/home/guest/.Xauthority")
(execl (string-append #$xrandr "/bin/xrandr") "xrandr" "-s" "0"))
#:user "guest"))

(operating-system
(host-name "gnu")
(timezone "Etc/UTC")
(locale "en_US.utf8")
(keyboard-layout (keyboard-layout "us" "altgr-intl"))

;; Label for the GRUB boot menu.
(label (string-append "GNU Guix " (package-version guix)))

(firmware '())

;; Below we assume /dev/vda is the VM's hard disk.
;; Adjust as needed.
(bootloader (bootloader-configuration
(bootloader grub-bootloader)
(targets '("/dev/vda"))
(terminal-outputs '(console))))
(file-systems (cons (file-system
(mount-point "/")
(device "/dev/vda1")
(type "ext4"))
%base-file-systems))

(users (cons (user-account
(name "guest")
(comment "GNU Guix Live")
(password "") ;no password
(group "users")
(supplementary-groups '("wheel" "netdev"
"audio" "video")))
%base-user-accounts))

;; Our /etc/sudoers file. Since 'guest' initially has an empty password,
;; allow for password-less sudo.
(sudoers-file (plain-file "sudoers" "\
root ALL=(ALL) ALL
%wheel ALL=NOPASSWD: ALL\n"))

(services
(append (list (service xfce-desktop-service-type)

;; Uncomment the line below to add an SSH server.
;;(service openssh-service-type)

;; Add support for the SPICE protocol, which enables dynamic
;; resizing of the guest screen resolution, clipboard
;; integration with the host, etc.
;;(service spice-vdagent-service-type)

;;(simple-service 'cron-jobs mcron-service-type
;; (list auto-update-resolution-crutch))

;; Use the DHCP client service rather than NetworkManager.
(service dhcp-client-service-type))

;; Remove [...], ModemManager, NetworkManager, and wpa-supplicant,
;; which don't make sense in a VM.
(remove (lambda (service)
(let ((type (service-kind service)))
(or (memq type
(list
wpa-supplicant-service-type
cups-pk-helper-service-type
network-manager-service-type
modem-manager-service-type))
(eq? 'network-manager-applet
(service-type-name type)))))
(modify-services %desktop-services
(login-service-type config =>
(login-configuration
(inherit config)
(motd vm-image-motd)))))))

;; Allow resolution of '.local' host names with mDNS.
#;(name-service-switch %mdns-host-lookup-nss))
-----BEGIN PGP SIGNATURE-----

iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYUCZvhccbWF4aW1lZGV2
b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7ll8AQDOXNH67yN4/nvMksmG+Li8hgDA
BYY7MN7xQjE8HRIihQD/aGqIfKNcEmYEYqBUZPCQFOZQ9rcEo5lIW+zObBRSlQw=
=Jk2e
-----END PGP SIGNATURE-----


M
M
Maxime Devos wrote on 15 Sep 2021 11:25
(address . bug-guix@gnu.org)
8f042bfd960d5114111cb882f5dd33cb05496ffa.camel@telenet.be
Maxime Devos schreef op di 14-09-2021 om 14:46 [+0200]:
Toggle quote (3 lines)
> GDM used to work for me with commit 75a3413b4e5c1f7443eb944a36ff364f4c4085f4,
> but was broken with e9b87da1c3000c53cf9dbf5e737aa4d6546bd909. To be bisected?

The second commit is wrong. Prsumably it should have been
9875f9bca3976bf3576eab9be42164fde454597e.

Toggle quote (4 lines)
> Greetings,
> Maxime.
>
> (xorg-repro.templ is based on the vm-image.tmpl configuration)
-----BEGIN PGP SIGNATURE-----

iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYUG8FxccbWF4aW1lZGV2
b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7ghIAQCB2aPTBCQu2//BG/XS2nMgNrh3
WKBy5RDGP/Z8j11nCQEA1o/xxVyObmfnvhGOzaIfjjHHMMnKECxoBOJ0+KPmcwU=
=OhQ/
-----END PGP SIGNATURE-----


M
M
Maxime Devos wrote on 15 Sep 2021 13:39
Re: bug#50580: GDM doesn't start
(address . 50580@debbugs.gnu.org)
b6a0664a8257dfde559a4de5a79a7241a19e4a88.camel@telenet.be
Maxime Devos schreef op di 14-09-2021 om 14:46 [+0200]:
Toggle quote (16 lines)
> Hi,
>
> The GDM service doesn't start anymore. To test, you can use the attached
> xorg-repro.tmpl (guix system vm xorg-repro.tml && run the resulting script).
> QEMU will start, and it will start booting, but nothing graphical will start.
> If you switch to the last virtual terminal, you will see
>
> [date] localhost shepherd[1]: Respawning xorg-server.
> [date] localhost shepherd[1]: Service host-name has been started.
> [date] localhost shepherd[1]: Service xorg-server has been started.
> [..]
> [date] localhost shepherd[1]: (Respawning too fast.)
>
> GDM used to work for me with commit 75a3413b4e5c1f7443eb944a36ff364f4c4085f4,
> but was broken with e9b87da1c3000c53cf9dbf5e737aa4d6546bd909. To be bisected?

I did some bisecting. 9cd89b1206cf9288fc26b09f3f34883c6e309824 is a bad commit

commit 9cd89b1206cf9288fc26b09f3f34883c6e309824
Author: Tobias Geerinckx-Rice <me@tobias.gr>
Date: Fri Sep 3 20:45:34 2021 +0200

gnu: hplip: Update to 3.21.6.

* gnu/packages/cups.scm (hplip): Update to 3.21.6.

and the previous commit 7be258c0ddae175450622884920d42a758bbced6 is good.

Toggle quote (2 lines)
> Greetings,
> Maxime.
-----BEGIN PGP SIGNATURE-----

iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYUHbdRccbWF4aW1lZGV2
b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7imDAQCafUsRBNTHIXXJfO8L+gWa6Har
OXCThMRlm+icOSr1FAEA0SvdFB5frr2I/2JGJKU8s3JBWLWF/AGv9TLfofbT2gs=
=nHnf
-----END PGP SIGNATURE-----


M
M
Maxime Devos wrote on 15 Sep 2021 16:06
Re: GDM doesn't start
(address . 50580@debbugs.gnu.org)
b3b5e393c997ee3e6a07ecd2663bf1dfbe8b979e.camel@telenet.be
Possibly related to:

https://issues.guix.gnu.org/35296‘gdm doesn't start at boot’

The message in Xorg.1.log is similar.

It seems suspicious to me that 'gdm-shepherd-service' doesn't have 'elogind'
in its requirements, but 'sddm-shepherd-service' does. I tried adding
'elogind' but that didn't fix anything.

There's something else that seems suspicious to me: elogind can be started
by two methods: by 'elogind-shepherd-service' and via D-Bus. It appears that,
if elogind is started via D-Bus, then it can't be started via elogind-shepherd-service
anymore, so herd can think elogind failed to start even though it was started with
D-Bus? That didn't seem the case on the test VM though ...

Greetings,
Maxime.
-----BEGIN PGP SIGNATURE-----

iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYUH9+BccbWF4aW1lZGV2
b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7txBAPkBv7ltwW0DX610MW8zKstR/AtL
SggPoxPaJ3rDyGy4qgEA0y1pNi/HZ0g3oku9Z/DkQjMFY2ZRBBz4mWjoXPy6ogo=
=m4R4
-----END PGP SIGNATURE-----


M
M
Maxime Devos wrote on 7 Oct 2021 10:33
Re: bug#50580: GDM doesn't start
(address . 50580-done@debbugs.gnu.org)
c07b3f570609f01924f976e50fbe376ac6996014.camel@telenet.be
Maxime Devos schreef op di 14-09-2021 om 14:46 [+0200]:
Toggle quote (7 lines)
> Hi,
>
> The GDM service doesn't start anymore. To test, you can use the attached
> xorg-repro.tmpl (guix system vm xorg-repro.tml && run the resulting script).
> QEMU will start, and it will start booting, but nothing graphical will start.
> [...]

I'm not encountering the issue ‘in the wild’ anymore,
and this test doesn't reproduce the issue anymore, so I'm
closing the issue.

Greetings,
Maxime.
-----BEGIN PGP SIGNATURE-----

iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYV6w4BccbWF4aW1lZGV2
b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7gGRAQD8K7yo8SKijOc8VLfGY2dc2KE2
BEhwgEP7DjWU20+mOgD6A4G1RUE1MAtU6sAZvltsX+xplKxMSIBHPdyVnOSRmw4=
=ezkq
-----END PGP SIGNATURE-----


Closed
?