Lightdm switches to manual login on startup (randomly)
Dear community,
I've been having an issue where sometimes when lightdm starts, it will lands on manual login mode (the mode that requires the user to enter both username and password, which appears as "Other"). This happens randomly and I don't know how to reproduce it, but I have captured a log file (/var/log/lightdm.log)
[+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.32.0, UID=0 PID=6305
[+0.00s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf
[+0.00s] DEBUG: Registered seat module local
[+0.00s] DEBUG: Registered seat module xremote
[+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.00s] DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’
[+0.00s] DEBUG: Monitoring logind for seats
[+0.00s] DEBUG: New seat added from logind: seat0
[+0.00s] DEBUG: Seat seat0: Loading properties from config section Seat:*
[+0.00s] DEBUG: Seat seat0 has property CanMultiSession=no
[+0.00s] DEBUG: Seat seat0: Starting
[+0.00s] DEBUG: Seat seat0: Creating greeter session
[+0.00s] DEBUG: Seat seat0: Creating display server of type x
[+0.00s] DEBUG: Could not run plymouth --ping: Failed to execute child process “plymouth” (No such file or directory)
[+0.00s] DEBUG: Using VT 7
[+0.00s] DEBUG: Seat seat0: Starting local X display on VT 7
[+0.00s] DEBUG: XServer 0: Logging to /var/log/lightdm/x-0.log
[+0.00s] DEBUG: XServer 0: Writing X server authority to /var/run/lightdm/root/:0
[+0.00s] DEBUG: XServer 0: Launching X Server
[+0.00s] DEBUG: Launching process 6315: /usr/bin/X :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+0.00s] DEBUG: XServer 0: Waiting for ready signal from X server :0
[+0.00s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+0.00s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+0.00s] DEBUG: Loading users from org.freedesktop.Accounts
[+0.00s] DEBUG: User /org/freedesktop/Accounts/User1000 added
[+0.47s] DEBUG: Got signal 10 from process 6315
[+0.47s] DEBUG: XServer 0: Got signal from X server :0
[+0.47s] DEBUG: XServer 0: Connecting to XServer :0
[+0.51s] DEBUG: Seat seat0: Display server ready, starting session authentication
[+0.51s] DEBUG: Session pid=6329: Started with service 'lightdm-greeter', username 'lightdm'
[+0.60s] DEBUG: Session pid=6329: Authentication complete with return value 0: Success
[+0.60s] DEBUG: Seat seat0: Session authenticated, running command
[+0.60s] DEBUG: Session pid=6329: Running command /usr/bin/lightdm-gtk-greeter
[+0.60s] DEBUG: Creating shared data directory /var/lib/lightdm-data/lightdm
[+0.60s] DEBUG: Session pid=6329: Logging to /var/log/lightdm/seat0-greeter.log
[+0.62s] DEBUG: Activating VT 7
[+0.62s] DEBUG: Activating login1 session c15
[+0.62s] DEBUG: Seat seat0 changes active session to c15
[+0.62s] DEBUG: Session c15 is already active
[+0.70s] DEBUG: Greeter connected version=1.32.0 api=1 resettable=false
[+0.76s] DEBUG: Greeter start authentication
[+0.77s] DEBUG: Session pid=6367: Started with service 'lightdm', username '(null)'
[+0.77s] DEBUG: Session pid=6367: Got 1 message(s) from PAM
[+0.77s] DEBUG: Prompt greeter with 1 message(s)
[+7.39s] DEBUG: Greeter start authentication for tb
[+7.39s] DEBUG: Session pid=6367: Sending SIGTERM
[+7.39s] DEBUG: Session pid=6376: Started with service 'lightdm', username 'tb'
[+7.39s] DEBUG: Session pid=6367: Terminated with signal 15
[+7.39s] DEBUG: Session: Failed during authentication
[+7.39s] DEBUG: Seat seat0: Session stopped
[+7.39s] DEBUG: Launching process 6377: /usr/bin/pkill -9 -u tb
[+7.40s] DEBUG: Process 6377 exited with return value 1
[+7.40s] DEBUG: Seat seat0: Exit status of /usr/bin/pkill -9 -u tb: 1
[+7.40s] DEBUG: Session pid=6376: Got 1 message(s) from PAM
[+7.40s] DEBUG: Prompt greeter with 1 message(s)
[+9.11s] DEBUG: Continue authentication
[+9.13s] DEBUG: Session pid=6376: Authentication complete with return value 0: Success
[+9.13s] DEBUG: Authenticate result for user tb: Success
[+9.13s] DEBUG: User tb authorized
[+9.13s] DEBUG: Greeter requests session xfce
[+9.13s] DEBUG: Seat seat0: Stopping greeter; display server will be re-used for user session
[+9.13s] DEBUG: Terminating login1 session c15
[+9.13s] DEBUG: Session pid=6329: Sending SIGTERM
[+9.14s] DEBUG: Seat seat0 changes active session to
[+9.14s] DEBUG: Greeter closed communication channel
[+9.14s] DEBUG: Session pid=6329: Exited with return value 1
[+9.14s] DEBUG: Seat seat0: Session stopped
[+9.14s] DEBUG: Seat seat0: Greeter stopped, running session
[+9.14s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session0
[+9.14s] DEBUG: Session pid=6376: Running command /etc/lightdm/Xsession startxfce4
[+9.14s] DEBUG: Creating shared data directory /var/lib/lightdm-data/tb
[+9.14s] DEBUG: Session pid=6376: Logging to .xsession-errors
[+9.15s] DEBUG: Activating VT 7
[+9.15s] DEBUG: Activating login1 session c16
[+9.15s] DEBUG: Seat seat0 changes active session to c16
[+9.15s] DEBUG: Session c16 is already active
and also the old log file when it happen (for reference)
[+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.32.0, UID=0 PID=6212
[+0.00s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf
[+0.00s] DEBUG: Registered seat module local
[+0.00s] DEBUG: Registered seat module xremote
[+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.00s] DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’
[+0.00s] DEBUG: Monitoring logind for seats
[+0.00s] DEBUG: New seat added from logind: seat0
[+0.00s] DEBUG: Seat seat0: Loading properties from config section Seat:*
[+0.00s] DEBUG: Seat seat0 has property CanMultiSession=no
[+0.00s] DEBUG: Seat seat0: Starting
[+0.00s] DEBUG: Seat seat0: Creating greeter session
[+0.00s] DEBUG: Seat seat0: Creating display server of type x
[+0.00s] DEBUG: Could not run plymouth --ping: Failed to execute child process “plymouth” (No such file or directory)
[+0.00s] DEBUG: Using VT 7
[+0.00s] DEBUG: Seat seat0: Starting local X display on VT 7
[+0.00s] DEBUG: XServer 0: Logging to /var/log/lightdm/x-0.log
[+0.00s] DEBUG: XServer 0: Writing X server authority to /var/run/lightdm/root/:0
[+0.00s] DEBUG: XServer 0: Launching X Server
[+0.00s] DEBUG: Launching process 6222: /usr/bin/X :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+0.00s] DEBUG: XServer 0: Waiting for ready signal from X server :0
[+0.00s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+0.00s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+0.06s] DEBUG: Loading users from org.freedesktop.Accounts
[+0.06s] DEBUG: User /org/freedesktop/Accounts/User1000 added
[+0.46s] DEBUG: Got signal 10 from process 6222
[+0.46s] DEBUG: XServer 0: Got signal from X server :0
[+0.46s] DEBUG: XServer 0: Connecting to XServer :0
[+0.51s] DEBUG: Seat seat0: Display server ready, starting session authentication
[+0.51s] DEBUG: Session pid=6235: Started with service 'lightdm-greeter', username 'lightdm'
[+0.59s] DEBUG: Session pid=6235: Authentication complete with return value 0: Success
[+0.59s] DEBUG: Seat seat0: Session authenticated, running command
[+0.59s] DEBUG: Session pid=6235: Running command /usr/bin/lightdm-gtk-greeter
[+0.59s] DEBUG: Creating shared data directory /var/lib/lightdm-data/lightdm
[+0.59s] DEBUG: Session pid=6235: Logging to /var/log/lightdm/seat0-greeter.log
[+0.60s] DEBUG: Activating VT 7
[+0.60s] DEBUG: Activating login1 session c14
[+0.60s] DEBUG: Seat seat0 changes active session to c14
[+0.60s] DEBUG: Session c14 is already active
[+0.69s] DEBUG: Greeter connected version=1.32.0 api=1 resettable=false
[+0.74s] DEBUG: Greeter start authentication
[+0.74s] DEBUG: Session pid=6271: Started with service 'lightdm', username '(null)'
[+0.74s] DEBUG: Session pid=6271: Got 1 message(s) from PAM
[+0.74s] DEBUG: Prompt greeter with 1 message(s)
[+3.33s] DEBUG: Seat seat0 changes active session to
[+5.50s] DEBUG: Seat seat0 changes active session to 6
[+46.64s] DEBUG: Got signal 15 from process 1555
[+46.64s] DEBUG: Caught Terminated signal, shutting down
[+46.64s] DEBUG: Stopping display manager
[+46.64s] DEBUG: Seat seat0: Stopping
[+46.64s] DEBUG: Seat seat0: Stopping display server
[+46.64s] DEBUG: Sending signal 15 to process 6222
[+46.64s] DEBUG: Seat seat0: Stopping session
[+46.64s] DEBUG: Terminating login1 session c14
[+46.64s] DEBUG: Session pid=6235: Sending SIGTERM
[+46.64s] DEBUG: Seat seat0: Stopping session
[+46.64s] DEBUG: Session pid=6271: Sending SIGTERM
[+46.64s] DEBUG: Session pid=6271: Terminated with signal 15
[+46.64s] DEBUG: Session: Failed during authentication
[+46.64s] DEBUG: Seat seat0: Session stopped
[+46.64s] DEBUG: Launching process 6302: /usr/bin/pkill -9 -u tb
[+46.65s] DEBUG: Process 6302 exited with return value 0
[+46.65s] DEBUG: Seat seat0: Exit status of /usr/bin/pkill -9 -u tb: 0
[+46.65s] DEBUG: Greeter closed communication channel
[+46.65s] DEBUG: Session pid=6235: Exited with return value 1
[+46.65s] DEBUG: Seat seat0: Session stopped
[+46.65s] DEBUG: Seat seat0 changes active session to
[+46.66s] DEBUG: Process 6222 exited with return value 0
[+46.66s] DEBUG: XServer 0: X server stopped
[+46.66s] DEBUG: Releasing VT 7
[+46.66s] DEBUG: XServer 0: Removing X server authority /var/run/lightdm/root/:0
[+46.66s] DEBUG: Seat seat0: Display server stopped
[+46.66s] DEBUG: Seat seat0: Stopped
[+46.66s] DEBUG: Display manager stopped
[+46.66s] DEBUG: Stopping daemon
[+46.66s] DEBUG: Exiting with return value 0
Entering the username or switching to my user isn't that inconvenient but other people that use my computer don't know how to read English nor know that they can switch to the tb user
Thanks.
Edit:
this is the config (/etc/lightdm/lightdm.conf)
#
# General configuration
#
# start-default-seat = True to always start one seat if none are defined in the configuration
# greeter-user = User to run greeter as
# minimum-display-number = Minimum display number to use for X servers
# minimum-vt = First VT to run displays on
# lock-memory = True to prevent memory from being paged to disk
# user-authority-in-system-dir = True if session authority should be in the system location
# guest-account-script = Script to be run to setup guest account
# logind-check-graphical = True to on start seats that are marked as graphical by logind
# log-directory = Directory to log information to
# run-directory = Directory to put running state in
# cache-directory = Directory to cache to
# sessions-directory = Directory to find sessions
# remote-sessions-directory = Directory to find remote sessions
# greeters-directory = Directory to find greeters
# backup-logs = True to move add a .old suffix to old log files when opening new ones
# dbus-service = True if LightDM provides a D-Bus service to control it
#
[LightDM]
#start-default-seat=true
#greeter-user=lightdm
#minimum-display-number=0
#minimum-vt=7
#lock-memory=true
#user-authority-in-system-dir=false
#guest-account-script=guest-account
#logind-check-graphical=true
#log-directory=/var/log/lightdm
#run-directory=/var/run/lightdm
#cache-directory=/var/cache/lightdm
#sessions-directory=/usr/share/lightdm/sessions:/usr/share/xsessions:/usr/share/wayland-sessions
#remote-sessions-directory=/usr/share/lightdm/remote-sessions
#greeters-directory=$XDG_DATA_DIRS/lightdm/greeters:$XDG_DATA_DIRS/xgreeters
#backup-logs=true
#dbus-service=true
#
# Seat configuration
#
# Seat configuration is matched against the seat name glob in the section, for example:
# [Seat:*] matches all seats and is applied first.
# [Seat:seat0] matches the seat named "seat0".
# [Seat:seat-thin-client*] matches all seats that have names that start with "seat-thin-client".
#
# type = Seat type (local, xremote)
# pam-service = PAM service to use for login
# pam-autologin-service = PAM service to use for autologin
# pam-greeter-service = PAM service to use for greeters
# xserver-command = X server command to run (can also contain arguments e.g. X -special-option)
# xmir-command = Xmir server command to run (can also contain arguments e.g. Xmir -special-option)
# xserver-config = Config file to pass to X server
# xserver-layout = Layout to pass to X server
# xserver-allow-tcp = True if TCP/IP connections are allowed to this X server
# xserver-share = True if the X server is shared for both greeter and session
# xserver-hostname = Hostname of X server (only for type=xremote)
# xserver-display-number = Display number of X server (only for type=xremote)
# xdmcp-manager = XDMCP manager to connect to (implies xserver-allow-tcp=true)
# xdmcp-port = XDMCP UDP/IP port to communicate on
# xdmcp-key = Authentication key to use for XDM-AUTHENTICATION-1 (stored in keys.conf)
# greeter-session = Session to load for greeter
# greeter-hide-users = True to hide the user list
# greeter-allow-guest = True if the greeter should show a guest login option
# greeter-show-manual-login = True if the greeter should offer a manual login option
# greeter-show-remote-login = True if the greeter should offer a remote login option
# user-session = Session to load for users
# allow-user-switching = True if allowed to switch users
# allow-guest = True if guest login is allowed
# guest-session = Session to load for guests (overrides user-session)
# session-wrapper = Wrapper script to run session with
# greeter-wrapper = Wrapper script to run greeter with
# guest-wrapper = Wrapper script to run guest sessions with
# display-setup-script = Script to run when starting a greeter session (runs as root)
# display-stopped-script = Script to run after stopping the display server (runs as root)
# greeter-setup-script = Script to run when starting a greeter (runs as root)
# session-setup-script = Script to run when starting a user session (runs as root)
# session-cleanup-script = Script to run when quitting a user session (runs as root)
# autologin-guest = True to log in as guest by default
# autologin-user = User to log in with by default (overrides autologin-guest)
# autologin-user-timeout = Number of seconds to wait before loading default user
# autologin-session = Session to load for automatic login (overrides user-session)
# autologin-in-background = True if autologin session should not be immediately activated
# exit-on-failure = True if the daemon should exit if this seat fails
#
[Seat:*]
#type=local
#pam-service=lightdm
#pam-autologin-service=lightdm-autologin
#pam-greeter-service=lightdm-greeter
#xserver-command=X
#xmir-command=Xmir
#xserver-config=
#xserver-layout=
#xserver-allow-tcp=false
#xserver-share=true
#xserver-hostname=
#xserver-display-number=
#xdmcp-manager=
#xdmcp-port=177
#xdmcp-key=
greeter-session=lightdm-gtk-greeter
greeter-hide-users=false
greeter-allow-guest=false
greeter-show-manual-login=false
#greeter-show-remote-login=true
user-session=startxfce4
#allow-user-switching=true
allow-guest=false
#guest-session=slick-greeter
session-wrapper=/etc/lightdm/Xsession
#greeter-wrapper=
#guest-wrapper=
#display-setup-script=
#display-stopped-script=
#greeter-setup-script=
#session-setup-script=/etc/X11/Xsession
#session-cleanup-script=/usr/bin/pkill -9 -u tb
#autologin-guest=false
#autologin-user=
#autologin-user-timeout=0
#autologin-in-background=false
#autologin-session=
#exit-on-failure=false
#
# XDMCP Server configuration
#
# enabled = True if XDMCP connections should be allowed
# port = UDP/IP port to listen for connections on
# listen-address = Host/address to listen for XDMCP connections (use all addresses if not present)
# key = Authentication key to use for XDM-AUTHENTICATION-1 or blank to not use authentication (stored in keys.conf)
# hostname = Hostname to report to XDMCP clients (defaults to system hostname if unset)
#
# The authentication key is a 56 bit DES key specified in hex as 0xnnnnnnnnnnnnnn. Alternatively
# it can be a word and the first 7 characters are used as the key.
#
[XDMCPServer]
#enabled=false
#port=177
#listen-address=
#key=
#hostname=
#
# VNC Server configuration
#
# enabled = True if VNC connections should be allowed
# command = Command to run Xvnc server with
# port = TCP/IP port to listen for connections on
# listen-address = Host/address to listen for VNC connections (use all addresses if not present)
# width = Width of display to use
# height = Height of display to use
# depth = Color depth of display to use
#
[VNCServer]
#enabled=false
#command=Xvnc
#port=5900
#listen-address=
#width=1024
#height=768
#depth=8
I commented out the clean up command, hoping that it can solve the problem, but I'm not sure. IT WAS NOT COMMENTED WHEN I CAUGHT THE PROBLEM