[Bug 1170619] New: GDM fails to start wayland session for sway (CAP_SYS_ADMIN missing)
http://bugzilla.suse.com/show_bug.cgi?id=1170619 Bug ID: 1170619 Summary: GDM fails to start wayland session for sway (CAP_SYS_ADMIN missing) Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.2 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: GNOME Assignee: os.gnome.maintainers@gmail.com Reporter: daniel.molkentin@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Reproducer: 1. Install openSUSE 15.2 2. Install sway 3. Pick sway as session type from gdm login (gear icon) Result: GDM returns to login. journal shows: Apr 27 18:26:13 workhorse /usr/lib/gdm/gdm-wayland-session[14076]: 2020-04-27 18:26:13 - [backend/session/direct-ipc.c:35] Do not have CAP_SYS_ADMIN; cannot become DRM master Apr 27 18:26:13 workhorse /usr/lib/gdm/gdm-wayland-session[14076]: 2020-04-27 18:26:13 - [backend/session/session.c:96] Failed to load session backend Apr 27 18:26:13 workhorse /usr/lib/gdm/gdm-wayland-session[14076]: 2020-04-27 18:26:13 - [backend/backend.c:286] Failed to start a DRM session Apr 27 18:26:13 workhorse /usr/lib/gdm/gdm-wayland-session[14076]: 2020-04-27 18:26:13 - [sway/server.c:47] Unable to create backend Expected: wayland session starting -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1170619 Lubos Kocman <lubos.kocman@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P2 - High CC| |lubos.kocman@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1170619 Denis Kondratenko <denis.kondratenko@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |denis.kondratenko@suse.com Assignee|os.gnome.maintainers@gmail. |denis.kondratenko@suse.com |com | QA Contact|qa-bugs@suse.de | -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1170619 http://bugzilla.suse.com/show_bug.cgi?id=1170619#c1 --- Comment #1 from Denis Kondratenko <denis.kondratenko@suse.com> --- Hi Daniel, https://github.com/swaywm/sway/issues/5099 it might be systemd issue, could you please check version of you systemd and maybe try fix: https://github.com/systemd/systemd/pull/15111/files Thanks, Denis -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1170619 http://bugzilla.suse.com/show_bug.cgi?id=1170619#c2 --- Comment #2 from Denis Kondratenko <denis.kondratenko@suse.com> --- if it still doesn't start, could you please gather debug logs? also, does it it run from tty ? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1170619 http://bugzilla.suse.com/show_bug.cgi?id=1170619#c3 Daniel Molkentin <daniel.molkentin@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fbui@suse.com Flags| |needinfo?(denis.kondratenko | |@suse.com) --- Comment #3 from Daniel Molkentin <daniel.molkentin@suse.com> --- So I build a package based on the current Update repo with the patch included. I modified it, so it would build (include file missing). Also, the cherry-pick took care of some file renamings. https://build.opensuse.org/package/view_file/home:dmolkentin:branches:SUSE:S... I installed the resulting package, but the result is still the same. running sway from tty by calling "sway" gives the same error. This is the error from the journal log again: Jun 09 13:28:49 workhorse.suse.de /usr/lib/gdm/gdm-wayland-session[4559]: 2020-06-09 13:28:49 - [backend/session/direct-ipc.c:35] Do not have CAP_SYS_ADMIN; cannot become DRM master Jun 09 13:28:49 workhorse.suse.de /usr/lib/gdm/gdm-wayland-session[4559]: 2020-06-09 13:28:49 - [backend/session/session.c:96] Failed to load session backend Jun 09 13:28:49 workhorse.suse.de /usr/lib/gdm/gdm-wayland-session[4559]: 2020-06-09 13:28:49 - [backend/backend.c:286] Failed to start a DRM session Jun 09 13:28:49 workhorse.suse.de /usr/lib/gdm/gdm-wayland-session[4559]: 2020-06-09 13:28:49 - [sway/server.c:47] Unable to create backend My user has: $ id uid=1000(dmolkentin) gid=100(users) groups=100(users),452(libvirt),484(video) So, in theory it should be able to access the DRM devices: $ ls /dev/dri -l total 0 drwxr-xr-x 2 root root 120 Jun 9 13:27 by-path crw-rw----+ 1 root video 226, 0 Jun 9 13:27 card0 crw-rw----+ 1 root video 226, 1 Jun 9 13:27 card1 crw-rw----+ 1 root video 226, 128 Jun 9 13:27 renderD128 crw-rw----+ 1 root video 226, 129 Jun 9 13:27 renderD129 That said, I am am currently runngin what was advertised as the GNOME wayland session (not the fallback), but regardless: $ loginctl show-session 6 -p Type Type=x11 (Didn't know there was a silent fallback). Anything more I can trace the behavior? Franck: Is is possible that the patch runs dry because of something else? It seems to be right systemd (buildlog confirms that the patch gets applied): $ rpm -q --changelog systemd|head -n3 * Mon Jun 08 2020 daniel.molkentin@suse.com - Test fix for bsc#1170619 adds 0001-logind-check-PolicyKit-before-allowing-VT-switch.patch -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1170619 http://bugzilla.suse.com/show_bug.cgi?id=1170619#c4 --- Comment #4 from Denis Kondratenko <denis.kondratenko@suse.com> --- Hi Daniel,
Anything more I can trace the behavior?
does it run from tty ? could you run sway with debug log ? That issue could be different in the debug logs, I had it because there was no Mesa installed (which probably not your case). Thanks, Denis -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1170619 http://bugzilla.suse.com/show_bug.cgi?id=1170619#c5 --- Comment #5 from Daniel Molkentin <daniel.molkentin@suse.com> --- Created attachment 838636 --> http://bugzilla.suse.com/attachment.cgi?id=838636&action=edit sway -Vd output -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1170619 http://bugzilla.suse.com/show_bug.cgi?id=1170619#c6 --- Comment #6 from Daniel Molkentin <daniel.molkentin@suse.com> --- Created attachment 838637 --> http://bugzilla.suse.com/attachment.cgi?id=838637&action=edit installed mesa packages -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1170619 http://bugzilla.suse.com/show_bug.cgi?id=1170619#c7 Daniel Molkentin <daniel.molkentin@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(denis.kondratenko | |@suse.com) | --- Comment #7 from Daniel Molkentin <daniel.molkentin@suse.com> --- (In reply to Denis Kondratenko from comment #4)
Hi Daniel,
Anything more I can trace the behavior?
does it run from tty ?
nope, as stated above
could you run sway with debug log ?
attached. Is there a way to get more debug ouput, e.g. which card it wants to attach to? I have both an intel and an nivida card, but I chose to remove all the proprietary nivida drivers.
That issue could be different in the debug logs, I had it because there was no Mesa installed (which probably not your case).
looks it's there. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1170619 https://bugzilla.suse.com/show_bug.cgi?id=1170619#c8 --- Comment #8 from Denis Kondratenko <denis.kondratenko@suse.com> --- I am able to reproduce on VM with fresh Leap 15.2 install, will investigate. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1170619 https://bugzilla.suse.com/show_bug.cgi?id=1170619#c9 --- Comment #9 from Denis Kondratenko <denis.kondratenko@suse.com> --- I have no idea what is going on with logind and polkit ... It is a little bit too much to dig into it. But looks like that is not sway issue. You could workaround it with:
sudo chmod a+s /usr/bin/sway
More info here: https://github.com/swaywm/wlroots/issues/2236 https://bugs.gentoo.org/708680 I would like to ask systemd experts to help here. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1170619 Lubos Kocman <lubos.kocman@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|GNOME |Basesystem Assignee|denis.kondratenko@suse.com |systemd-maintainers@suse.de -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1170619 https://bugzilla.suse.com/show_bug.cgi?id=1170619#c11 --- Comment #11 from Lubos Kocman <lubos.kocman@suse.com> --- Hello team, Dennis mentioned that the issue is most likely systemd/logind related. Therefore reassigning to systemd-maintainers. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1170619 https://bugzilla.suse.com/show_bug.cgi?id=1170619#c12 Franck Bui <fbui@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|Basesystem |GNOME Assignee|systemd-maintainers@suse.de |denis.kondratenko@suse.com --- Comment #12 from Franck Bui <fbui@suse.com> --- Well given the fact that support for logind has been turned OFF: # rpm -q --changelog libwlroots5 | head * Thu Mar 12 2020 Max Lin <mlin@suse.com> - Disable logind support in Leap 15, we don't have systemd >= 237, neither elogind. I have doubts about systemd being the culprit. So I'm reassigning this back to Denis who was the first investigator. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1170619 Denis Kondratenko <denis.kondratenko@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|denis.kondratenko@suse.com |denis.kondratenko@gmail.com -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1170619 Ignacio Taranto <ignacio_taranto@protonmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC|itaranto7@gmail.com | -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1170619 Matej Cepl <mcepl@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mcepl@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1170619 https://bugzilla.suse.com/show_bug.cgi?id=1170619#c13 Franck Bui <fbui@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sleep_walker@opensuse.org Flags| |needinfo?(sleep_walker@open | |suse.org) --- Comment #13 from Franck Bui <fbui@suse.com> --- Just tried sway on Leap 15.3 and it fails the same way. But apparently the versions of sway/wlroots shipped here are pretty old and upgrading to the versions shipped by Factory fixes the issue. I created an OBS project that contains the relevant packages updated.They are built for Leap 15.3: https://build.opensuse.org/project/show/home:fbui:branches:X11:Wayland and once installed sway can be launched just fine. Are there any plan to update sway/wlroots for Leap 15.3 or at last resort for Leap 15.4 ? -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1170619 https://bugzilla.suse.com/show_bug.cgi?id=1170619#c14 --- Comment #14 from Denys Kondratenko <stdden@opensuse.org> --- Hi Franck, as for plan: https://code.opensuse.org/leap/features/issue/68 -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1170619 https://bugzilla.suse.com/show_bug.cgi?id=1170619#c15 --- Comment #15 from Franck Bui <fbui@suse.com> --- Leap 15.4 will have sway version 1.6.1 [1], which should fix this issue. Hence I think this bug should be closed as WONTFIX and a new report should be created if there's still something wrong with 15.4. [1] https://build.opensuse.org/request/show/935970 -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1170619 https://bugzilla.suse.com/show_bug.cgi?id=1170619#c16 Denys Kondratenko <stdden@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |WONTFIX --- Comment #16 from Denys Kondratenko <stdden@opensuse.org> --- Thanks Franck! -- You are receiving this mail because: You are on the CC list for the bug.
participants (2)
-
bugzilla_noreply@novell.com
-
bugzilla_noreply@suse.com