Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1545317

Summary: User switching leads to failed session scopes
Product: [Fedora] Fedora Reporter: Mike Gerber <mike>
Component: lightdm-gtkAssignee: Alternative GTK desktop environments <alt-gtk-de-sig>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 27CC: alt-gtk-de-sig, christoph.wickert, fedora, leigh123linux, rdieter
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: lightdm-gtk-2.0.4-1.fc27 lightdm-gtk-2.0.4-1.fc26 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-03-15 15:27:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mike Gerber 2018-02-14 15:53:49 UTC
Description of problem:

User switching using "dm-tool switch-to-greeter" leads to failed session scopes:

# sudo journalctl -u session-c3.scope -b
-- Logs begin at Tue 2017-05-30 08:31:32 CEST, end at Wed 2018-02-14 16:48:16 CET. --
Feb 14 14:11:51 rowling.lan.rwsr-xr-x.de systemd[1]: Started Session c3 of user lightdm.
Feb 14 14:11:57 rowling.lan.rwsr-xr-x.de systemd[1]: session-c3.scope: Killing process 3961 (lightdm) wit
Feb 14 14:11:57 rowling.lan.rwsr-xr-x.de systemd[1]: session-c3.scope: Killing process 3972 (lightdm-gtk-
Feb 14 14:11:57 rowling.lan.rwsr-xr-x.de systemd[1]: Stopping Session c3 of user lightdm.
Feb 14 14:13:27 rowling.lan.rwsr-xr-x.de systemd[1]: session-c3.scope: Stopping timed out. Killing.
Feb 14 14:13:27 rowling.lan.rwsr-xr-x.de systemd[1]: session-c3.scope: Killing process 3961 (lightdm) wit
Feb 14 14:13:27 rowling.lan.rwsr-xr-x.de systemd[1]: session-c3.scope: Killing process 3972 (lightdm-gtk-
Feb 14 14:13:27 rowling.lan.rwsr-xr-x.de systemd[1]: Stopped Session c3 of user lightdm.
Feb 14 14:13:27 rowling.lan.rwsr-xr-x.de systemd[1]: session-c3.scope: Unit entered failed state.

Version-Release number of selected component (if applicable):
lightdm-gtk-2.0.3-4

How reproducible:
Steps to Reproduce:
1. Login with one user
2. /usr/bin/dm-tool switch-to-greeter
3. Login with another user
4. check systemctl --failed

Actual results:
Failed state of session-cX.scope

Expected results:
No failed state

Additional info:

Comment 1 Mike Gerber 2018-02-14 15:54:43 UTC
Configuring lightdm-gtk using --enable-kill-on-sigterm fixes this.

Comment 2 Fedora Update System 2018-03-06 15:15:30 UTC
lightdm-gtk-2.0.4-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2018-55ed35375d

Comment 3 Fedora Update System 2018-03-06 15:15:48 UTC
lightdm-gtk-2.0.4-1.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-78c76f6d86

Comment 4 Fedora Update System 2018-03-07 15:00:42 UTC
lightdm-gtk-2.0.4-1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-55ed35375d

Comment 5 Fedora Update System 2018-03-07 15:35:12 UTC
lightdm-gtk-2.0.4-1.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-78c76f6d86

Comment 6 Mike Gerber 2018-03-13 14:05:52 UTC
lightdm-gtk-2.0.4-1.fc27 fixes this for me!

Comment 7 Fedora Update System 2018-03-15 15:27:52 UTC
lightdm-gtk-2.0.4-1.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2018-03-15 17:17:54 UTC
lightdm-gtk-2.0.4-1.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.