[Pkg-xfce-devel] Bug#829348: lightdm: LightDM + MATE: switching users fails, unable to connect to D-Bus

Steve Cotton steve at s.cotton.clara.co.uk
Sat Jul 2 15:57:23 UTC 2016


Package: lightdm
Version: 1.18.2-1
Severity: normal

Hi,

When trying to switch users, the second one can log in, but only gets
two dialogs, and then the X session terminates.  The errors are "Could
not connect to session bus: Failed to connect to socket /tmp/dbus-...
Connection refused" followed by "Could not aquire name on session bus".

This bug is introduced in 1.18.2-1, it's a workaround to downgrade both
lightdm and liblightdm-gobject-1-0 to 1.18.1-1 and then reboot.

Creating a new user "testldm" and trying to log in shows the same
problem as for the existing accounts.  MATE is the default desktop
environment on this laptop.

BR,
Steve

-- Contents of .xsession-errors

Xsession: X session started for testldm at Sat  2 Jul 17:37:47 CEST 2016
localuser:testldm being added to access control list
dbus-update-activation-environment: error: unable to connect to D-Bus: Failed to connect to socket /tmp/dbus-4FNqvJQI9Q: Connection refused
OpenGL version: 3.
dbus-update-activation-environment: error: unable to connect to D-Bus: Failed to connect to socket /tmp/dbus-4FNqvJQI9Q: Connection refused
x-session-manager[2281]: WARNING: Could not make bus activated clients aware of XDG_CURRENT_DESKTOP=MATE environment variable: Failed to connect to socket /tmp/dbus-4FNqvJQI9Q: Connection refused
x-session-manager[2281]: WARNING: Could not make bus activated clients aware of DISPLAY=:1 environment variable: Failed to connect to socket /tmp/dbus-4FNqvJQI9Q: Connection refused
x-session-manager[2281]: WARNING: Could not make bus activated clients aware of MATE_DESKTOP_SESSION_ID=this-is-deprecated environment variable: Failed to connect to socket /tmp/dbus-4FNqvJQI9Q: Connection refused
x-session-manager[2281]: dconf-WARNING: failed to commit changes to dconf: Could not connect: Connection refused
x-session-manager[2281]: WARNING: Could not make bus activated clients aware of SESSION_MANAGER=local/lisar:@/tmp/.ICE-unix/2281,unix/lisar:/tmp/.ICE-unix/2281 environment variable: Failed to connect to socket /tmp/dbus-4FNqvJQI9Q: Connection refused
x-session-manager[2281]: Gtk-CRITICAL: gtk_main_quit: assertion 'main_loops != NULL' failed
x-session-manager[2281]: CRITICAL: dbus_g_proxy_new_for_name: assertion 'connection != NULL' failed
x-session-manager[2281]: Gtk-CRITICAL: gtk_main_quit: assertion 'main_loops != NULL' failed
x-session-manager[2281]: GLib-GObject-CRITICAL: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
x-session-manager[2281]: WARNING: Could not make bus activated clients aware of GTK_OVERLAY_SCROLLING=0 environment variable: Failed to connect to socket /tmp/dbus-4FNqvJQI9Q: Connection refused
x-session-manager[2281]: CRITICAL: error getting session bus: Failed to connect to socket /tmp/dbus-4FNqvJQI9Q: Connection refused
x-session-manager[2281]: WARNING: Unable to register presence with session bus
x-session-manager[2281]: CRITICAL: dbus_g_proxy_new_for_name: assertion 'connection != NULL' failed
x-session-manager[2281]: CRITICAL: error getting session bus: Failed to connect to socket /tmp/dbus-4FNqvJQI9Q: Connection refused

-- From lightdm.log

[+1423.57s] DEBUG: Seat seat0: Switching to existing greeter
[+1423.57s] DEBUG: Activating VT 8
[+1423.73s] DEBUG: Locking login1 session 2
[+1423.73s] DEBUG: Activating login1 session c3
[+1423.74s] DEBUG: Seat seat0 changes active session to c3
[+1423.74s] DEBUG: Session c3 is already active
[+1426.85s] DEBUG: Greeter start authentication for testldm
[+1426.85s] DEBUG: Session pid=1715: Sending SIGTERM
[+1426.85s] DEBUG: Session pid=2268: Started with service 'lightdm', username 'testldm'
[+1426.85s] DEBUG: Session pid=1715: Terminated with signal 15
[+1426.85s] DEBUG: Session: Failed during authentication
[+1426.85s] DEBUG: Seat seat0: Session stopped
[+1426.85s] DEBUG: Session pid=2268: Got 1 message(s) from PAM
[+1426.85s] DEBUG: Prompt greeter with 1 message(s)
[+1427.40s] DEBUG: Continue authentication
[+1427.43s] DEBUG: Session pid=2268: Authentication complete with return value 0: Success
[+1427.43s] DEBUG: Authenticate result for user testldm: Success
[+1427.43s] DEBUG: User testldm authorized
[+1427.51s] DEBUG: Greeter sets language en_GB.utf8
[+1427.53s] DEBUG: Writing /home/testldm/.dmrc
[+1427.72s] DEBUG: Greeter requests session lightdm-xsession
[+1427.74s] DEBUG: Writing /home/testldm/.dmrc
[+1427.76s] DEBUG: Seat seat0: Stopping greeter; display server will be re-used for user session
[+1427.76s] DEBUG: Session pid=1414: Sending SIGTERM
[+1427.78s] DEBUG: Greeter closed communication channel
[+1427.78s] DEBUG: Session pid=1414: Exited with return value 0
[+1427.78s] DEBUG: Seat seat0: Session stopped
[+1427.78s] DEBUG: Seat seat0: Greeter stopped, running session
[+1427.78s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session2
[+1427.78s] DEBUG: Session pid=2268: Running command /etc/X11/Xsession default
[+1427.78s] DEBUG: Creating shared data directory /var/lib/lightdm/data/testldm
[+1427.78s] DEBUG: Session pid=2268: Logging to .xsession-errors
[+1427.83s] DEBUG: Activating VT 8
[+1427.83s] DEBUG: Activating login1 session 7
[+1431.93s] DEBUG: Session pid=2268: Exited with return value 0
[+1431.93s] DEBUG: Seat seat0: Session stopped
[+1431.93s] DEBUG: Seat seat0: Stopping display server, no sessions require it
[+1431.93s] DEBUG: Sending signal 15 to process 1404
[+1432.13s] DEBUG: Process 1404 exited with return value 0
[+1432.13s] DEBUG: DisplayServer x-1: X server stopped
[+1432.13s] DEBUG: Releasing VT 8
[+1432.13s] DEBUG: DisplayServer x-1: Removing X server authority /var/run/lightdm/root/:1
[+1432.13s] DEBUG: Seat seat0: Display server stopped
[+1432.13s] DEBUG: Seat seat0: Active display server stopped, starting greeter
[+1432.13s] DEBUG: Seat seat0: Creating greeter session
[+1432.13s] DEBUG: Seat seat0: Creating display server of type x
[+1432.13s] DEBUG: Using VT 8
[+1432.13s] DEBUG: Seat seat0: Starting local X display on VT 8
[+1432.13s] DEBUG: DisplayServer x-1: Logging to /var/log/lightdm/x-1.log
[+1432.13s] DEBUG: DisplayServer x-1: Writing X server authority to /var/run/lightdm/root/:1
[+1432.13s] DEBUG: DisplayServer x-1: Launching X Server
[+1432.13s] DEBUG: Launching process 2323: /usr/bin/X :1 -seat seat0 -auth /var/run/lightdm/root/:1 -nolisten tcp vt8 -novtswitch
[+1432.13s] DEBUG: DisplayServer x-1: Waiting for ready signal from X server :1
[+1432.75s] DEBUG: Got signal 10 from process 2323
[+1432.75s] DEBUG: DisplayServer x-1: Got signal from X server :1
[+1432.75s] DEBUG: DisplayServer x-1: Connecting to XServer :1
[+1432.75s] DEBUG: Seat seat0: Display server ready, starting session authentication
[+1432.75s] DEBUG: Session pid=2330: Started with service 'lightdm-greeter', username 'lightdm'
[+1432.76s] DEBUG: Session pid=2330: Authentication complete with return value 0: Success
[+1432.76s] DEBUG: Seat seat0: Session authenticated, running command
[+1432.76s] DEBUG: Session pid=2330: Running command /usr/sbin/lightdm-gtk-greeter
[+1432.76s] DEBUG: Creating shared data directory /var/lib/lightdm/data/lightdm
[+1432.76s] DEBUG: Session pid=2330: Logging to /var/log/lightdm/seat0-greeter.log
[+1432.78s] DEBUG: Activating VT 8
[+1432.78s] DEBUG: Activating login1 session c4
[+1432.84s] DEBUG: Greeter connected version=1.18.2 resettable=false
[+1433.35s] DEBUG: Greeter start authentication
[+1433.35s] DEBUG: Session pid=2350: Started with service 'lightdm', username '(null)'
[+1433.35s] DEBUG: Session pid=2350: Got 1 message(s) from PAM
[+1433.35s] DEBUG: Prompt greeter with 1 message(s)
[+1435.11s] DEBUG: Seat seat0 changes active session to 2
[+1435.11s] DEBUG: Activating session 2

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.6.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages lightdm depends on:
ii  adduser                                3.115
ii  dbus                                   1.10.8-1
ii  debconf [debconf-2.0]                  1.5.59
ii  libaudit1                              1:2.6.1-1
ii  libc6                                  2.22-13
ii  libgcrypt20                            1.7.1-2
ii  libglib2.0-0                           2.48.1-1
ii  libpam-systemd                         230-3
ii  libpam0g                               1.1.8-3.3
ii  libxcb1                                1.11.1-1
ii  libxdmcp6                              1:1.1.2-1.1
ii  lightdm-gtk-greeter [lightdm-greeter]  2.0.1-2

Versions of packages lightdm recommends:
ii  xserver-xorg  1:7.7+15

Versions of packages lightdm suggests:
ii  accountsservice  0.6.40-3
ii  upower           0.99.4-3

-- debconf information:
* shared/default-x-display-manager: lightdm
  lightdm/daemon_name: /usr/sbin/lightdm



More information about the Pkg-xfce-devel mailing list