You are not logged in.

#1 2016-06-14 07:57:42

beroal
Member
From: Ukraine
Registered: 2009-06-07
Posts: 325
Website

SystemD stops LightDM when I logout on tty1

My system starts "getty" on VT1 and LightDM on VT6.
"/etc/systemd/logind.conf" is

[Login]
NAutoVTs=5
ReserveVT=1

When I logout on VT1, LightDM stops. (The user working on VT1 was "user".) The SystemD journal is

чер 14 10:32:49 beroal login[3588]: pam_unix(login:session): session closed for user user
чер 14 10:32:49 beroal systemd[1]: getty@tty1.service: Service has no hold-off time, scheduling restart.
чер 14 10:32:49 beroal systemd[1]: Stopping Light Display Manager...
чер 14 10:32:49 beroal systemd-logind[371]: Removed session c44.
чер 14 10:32:49 beroal lightdm[3548]: pam_unix(lightdm-greeter:session): session closed for user lightdm
чер 14 10:32:49 beroal lightdm[3556]: pam_unix(lightdm-greeter:session): session closed for user lightdm
чер 14 10:32:49 beroal systemd-logind[371]: Removed session c43.
чер 14 10:32:49 beroal systemd-logind[371]: Removed session c42.
чер 14 10:32:49 beroal lightdm[3532]: ** (lightdm:3532): CRITICAL **: session_get_login1_session_id: assertion 'session != NULL' failed
чер 14 10:32:49 beroal systemd[1]: Stopped Light Display Manager.
чер 14 10:32:49 beroal systemd[1]: Stopped Getty on tty1.
чер 14 10:32:49 beroal systemd[1]: Started Getty on tty1.

Just like that, "Stopping Light Display Manager..." for no reason. I can't link this behavior to any update because I rarely use VT1, but this behavior appeared about a month ago.

The part of "/var/log/lightdm/lightdm.log" which has appeared after I logout from VT1 is

[+1551.75s] DEBUG: Seat seat0 changes active session to c48
[+1552.72s] DEBUG: Seat seat0 changes active session to c47
[+1552.72s] DEBUG: Session c47 is already active
[+1553.60s] DEBUG: Seat seat0 changes active session to c48
[+1554.60s] DEBUG: Got signal 15 from process 1
[+1554.60s] DEBUG: Caught Terminated signal, shutting down
[+1554.60s] DEBUG: Stopping display manager
[+1554.60s] DEBUG: Seat seat0: Stopping
[+1554.60s] DEBUG: Seat seat0: Stopping display server
[+1554.60s] DEBUG: Sending signal 15 to process 3631
[+1554.60s] DEBUG: Seat seat0: Stopping session
[+1554.60s] DEBUG: Session pid=3680: Sending SIGTERM
[+1554.60s] DEBUG: Seat seat-guest: Stopping
[+1554.60s] DEBUG: Seat seat-guest: Stopping display server
[+1554.60s] DEBUG: Sending signal 15 to process 3632
[+1554.60s] DEBUG: Seat seat-guest: Stopping session
[+1554.60s] DEBUG: Session pid=3641: Sending SIGTERM
[+1554.60s] DEBUG: Seat seat-guest: Stopping session
[+1554.60s] DEBUG: Session pid=3668: Sending SIGTERM
[+1554.60s] DEBUG: Session pid=3668: Terminated with signal 15
[+1554.60s] DEBUG: Session: Failed during authentication
[+1554.60s] DEBUG: Seat seat-guest: Session stopped
[+1554.61s] DEBUG: Seat seat0 changes active session to
[+1554.63s] DEBUG: Session pid=3641: Greeter closed communication channel
[+1554.64s] DEBUG: Session pid=3641: Exited with return value 0
[+1554.64s] DEBUG: Seat seat-guest: Session stopped
[+1554.65s] DEBUG: Seat seat-guest changes active session to
[+1554.65s] CRITICAL: session_get_login1_session_id: assertion 'session != NULL' failed
[+1554.66s] DEBUG: Process 3631 exited with return value 0
[+1554.66s] DEBUG: DisplayServer x-1: X server stopped
[+1554.66s] DEBUG: Releasing VT 6
[+1554.66s] DEBUG: DisplayServer x-1: Removing X server authority /run/lightdm/root/:1
[+1554.66s] DEBUG: Seat seat0: Display server stopped
[+1554.67s] DEBUG: Session pid=3680: Exited with return value 15
[+1554.67s] DEBUG: Seat seat0: Session stopped
[+1554.67s] DEBUG: Seat seat0: Stopped
[+1554.75s] DEBUG: Process 3632 exited with return value 0
[+1554.75s] DEBUG: DisplayServer x-2: X server stopped
[+1554.75s] DEBUG: DisplayServer x-2: Removing X server authority /run/lightdm/root/:2
[+1554.75s] DEBUG: Seat seat-guest: Display server stopped
[+1554.75s] DEBUG: Seat seat-guest: Stopped
[+1554.75s] DEBUG: Display manager stopped
[+1554.75s] DEBUG: Stopping daemon
[+1554.76s] DEBUG: Exiting with return value 0

"process 1" is SystemD, of course.

Something similar happens when I stop and start LightDM: console on VT1 terminates when I start LightDM. (The user working on VT1 was "root".) The SystemD journal is

чер 14 11:11:45 beroal systemd[1]: Stopping Light Display Manager...
чер 14 11:11:45 beroal lightdm[5389]: pam_unix(lightdm-greeter:session): session closed for user lightdm
чер 14 11:11:45 beroal systemd-logind[371]: Removed session c57.
чер 14 11:11:45 beroal lightdm[5071]: pam_unix(lightdm-greeter:session): session closed for user lightdm
чер 14 11:11:45 beroal systemd-logind[371]: Removed session c54.
чер 14 11:11:45 beroal lightdm[5055]: ** (lightdm:5055): CRITICAL **: session_get_login1_session_id: assertion 'session != NULL' failed
чер 14 11:11:45 beroal systemd[1]: Stopped Light Display Manager.
чер 14 11:11:53 beroal systemd[1]: Stopping Getty on tty1...
чер 14 11:11:53 beroal login[5111]: pam_unix(login:session): session closed for user root
чер 14 11:11:53 beroal systemd[1]: Stopped Getty on tty1.
чер 14 11:11:53 beroal systemd[1]: Starting Light Display Manager...
чер 14 11:11:53 beroal systemd-logind[371]: Removed session c58.
чер 14 11:11:53 beroal systemd[1]: Started Light Display Manager.
чер 14 11:11:53 beroal lightdm[5436]: ** (lightdm:5436): WARNING **: Error getting user list from org.freedesktop.Accounts: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Accounts was not provided by any .service files
чер 14 11:11:53 beroal lightdm[5436]: ** (lightdm:5436): CRITICAL **: session_get_login1_session_id: assertion 'session != NULL' failed
чер 14 11:11:53 beroal kernel: nouveau 0000:00:0d.0: bus: MMIO write of 00000000 FAULT at 00b010
чер 14 11:11:53 beroal kernel: nouveau 0000:00:0d.0: bus: MMIO write of 00400001 FAULT at 00b010
чер 14 11:11:54 beroal lightdm[5436]: ** (process:5452): WARNING **: Error getting user list from org.freedesktop.Accounts: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Accounts was not provided by any .service files
чер 14 11:11:54 beroal lightdm[5452]: pam_unix(lightdm-greeter:session): session opened for user lightdm by (uid=0)
чер 14 11:11:54 beroal systemd-logind[371]: New session c59 of user lightdm.
чер 14 11:11:54 beroal systemd[1]: Started Session c59 of user lightdm.
чер 14 11:11:54 beroal lightdm[5436]: ** (process:5460): WARNING **: Error getting user list from org.freedesktop.Accounts: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Accounts was not provided by any .service files
чер 14 11:11:54 beroal lightdm[5460]: pam_unix(lightdm-greeter:session): session opened for user lightdm by (uid=0)
чер 14 11:11:54 beroal systemd-logind[371]: New session c60 of user lightdm.
чер 14 11:11:54 beroal systemd[1]: Started Session c60 of user lightdm.
чер 14 11:11:55 beroal systemd[1]: Started Getty on tty1.

As you can see, "Stopping Getty on tty1..." appears immediately before "Starting Light Display Manager..."

None of this happens with "tty2" on VT2.

"/etc/lightdm/lightdm.conf" is

[LightDM]
minimum-vt=6
minimum-display-number=1
run-directory=/run/lightdm

[Seat:*]
xserver-share=true
greeter-session=lightdm-gtk-greeter
session-wrapper=/etc/lightdm/Xsession
user-session=xfce
allow-guest=false
autologin-guest=false

[Seat:seat0]
# exit-on-failure=false

[Seat:seat-root]
# exit-on-failure=false

[Seat:seat-guest]
# exit-on-failure=false

systemd 230-4
lightdm 1:1.18.1-2

Last edited by beroal (2016-06-14 08:44:59)


we are not condemned to write ugly code

Offline

Board footer

Powered by FluxBB