Slow shutdown of version 15 workstation and gateway

@Patrick:
The segfault, right, should be reported, sure, when I get my Whonix system hardened I might do this (will let you know by that time). But the original aim of reporting the console messages was to tackle the slow shutdown. So was the “stop job” with the timer the culprit here?

Possibly.

Taking a long time on the screenshot. And just before that, the segfault.

I might be able to say more when systemd journal logs are provided as per Slow shutdown of version 15 workstation and gateway - #2 by Patrick

@Patrick
I got the journals, but I cannot post them here: “Body is limited to 50000 characters; you entered 453602.”

1 Like

Use https://paste.debian.net or similar.

@rk1 Thank you for also speaking up about this issue and picking up where I left off :slight_smile: re giving the journal logs.

@Patrick
The files were too big for paste.debian also. So you can download them here:

with password: 6WkznRLkYhs3bXQ

Please don’t share otd (libre office or so) files. Plain text much better. However the workstation log was plain text and it gave another lead.

Last OK message:

Jan 24 11:12:08 host systemd[1]: Stopped Encrypted Swap File Creator.

Then takes a long time. Then:

Jan 24 11:13:38 host systemd[1]: session-1.scope: Stopping timed out. Killing.
Jan 24 11:13:38 host systemd[1]: session-1.scope: Killing process 1956 (lightdm) with signal SIGKILL.
Jan 24 11:13:38 host systemd[1]: session-1.scope: Failed with result ‘timeout’.
Jan 24 11:13:38 host systemd[1]: Stopped Session 1 of user user.

Would require debugging lightdm.

Quote LightDM - Debian Wiki

lightdm is developed at Canonical by Robert Ancell

Added some instruction on how to get a lightdm debug log just now:

Troubleshooting - Whonix

1 Like

@Patrick
The light-dm Gateway log:

– Logs begin at Fri 2020-01-24 10:49:21 UTC, end at Sat 2020-01-25 07:59:34 UTC. –
Jan 25 07:56:45 host systemd[1]: Condition check resulted in Light Display Manager being skipped.
Jan 25 07:56:51 host systemd[1]: Starting Light Display Manager…
Jan 25 07:56:51 host lightdm[769]: [+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
Jan 25 07:56:51 host lightdm[769]: [+0.00s] DEBUG: Starting Light Display Manager 1.26.0, UID=0 PID=769
Jan 25 07:56:51 host lightdm[769]: [+0.00s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
Jan 25 07:56:51 host lightdm[769]: [+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/01_debian.conf
Jan 25 07:56:51 host lightdm[769]: [+0.00s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d
Jan 25 07:56:51 host lightdm[769]: [+0.00s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d
Jan 25 07:56:51 host lightdm[769]: [+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf.d/autologin.conf
Jan 25 07:56:51 host lightdm[769]: [+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf.d/whonix-autologin.conf
Jan 25 07:56:51 host lightdm[769]: [+0.00s] DEBUG: [SeatDefaults] is now called [Seat:], please update this configuration
Jan 25 07:56:51 host lightdm[769]: [+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf
Jan 25 07:56:51 host lightdm[769]: [+0.00s] DEBUG: Registered seat module local
Jan 25 07:56:51 host lightdm[769]: [+0.00s] DEBUG: Registered seat module xremote
Jan 25 07:56:51 host lightdm[769]: [+0.00s] DEBUG: Registered seat module unity
Jan 25 07:56:51 host lightdm[769]: [+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
Jan 25 07:56:51 host lightdm[769]: [+0.01s] DEBUG: Monitoring logind for seats
Jan 25 07:56:51 host lightdm[769]: [+0.01s] DEBUG: New seat added from logind: seat0
Jan 25 07:56:51 host lightdm[769]: [+0.01s] DEBUG: Seat seat0: Loading properties from config section Seat:

Jan 25 07:56:51 host lightdm[769]: [+0.01s] DEBUG: Seat seat0: Starting
Jan 25 07:56:51 host lightdm[769]: [+0.01s] DEBUG: Seat seat0: Creating user session
Jan 25 07:56:51 host lightdm[769]: [+0.02s] 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
Jan 25 07:56:51 host lightdm[769]: [+0.02s] DEBUG: Loading user config from /etc/lightdm/users.conf
Jan 25 07:56:51 host lightdm[769]: [+0.02s] DEBUG: User user added
Jan 25 07:56:51 host lightdm[769]: [+0.02s] DEBUG: Seat seat0: Creating display server of type x
Jan 25 07:56:51 host lightdm[769]: [+0.02s] DEBUG: posix_spawn avoided (fd close requested)
Jan 25 07:56:51 host systemd[1]: Started Light Display Manager.
Jan 25 07:56:51 host lightdm[769]: [+0.03s] DEBUG: Could not run plymouth --ping: Failed to execute child process ?plymouth? (No such file or directory)
Jan 25 07:56:51 host lightdm[769]: [+0.03s] DEBUG: Using VT 7
Jan 25 07:56:51 host lightdm[769]: [+0.03s] DEBUG: Seat seat0: Starting local X display on VT 7
Jan 25 07:56:51 host lightdm[769]: [+0.03s] DEBUG: XServer 0: Logging to /var/log/lightdm/x-0.log
Jan 25 07:56:51 host lightdm[769]: [+0.03s] DEBUG: XServer 0: Writing X server authority to /var/run/lightdm/root/:0
Jan 25 07:56:51 host lightdm[769]: [+0.03s] DEBUG: XServer 0: Launching X Server
Jan 25 07:56:51 host lightdm[769]: [+0.03s] DEBUG: Launching process 776: /usr/bin/X :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
Jan 25 07:56:51 host lightdm[769]: [+0.03s] DEBUG: XServer 0: Waiting for ready signal from X server :0
Jan 25 07:56:51 host lightdm[769]: [+0.03s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
Jan 25 07:56:51 host lightdm[769]: [+0.03s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
Jan 25 07:56:52 host lightdm[769]: [+0.58s] DEBUG: Got signal 10 from process 776
Jan 25 07:56:52 host lightdm[769]: [+0.58s] DEBUG: XServer 0: Got signal from X server :0
Jan 25 07:56:52 host lightdm[769]: [+0.58s] DEBUG: XServer 0: Connecting to XServer :0
Jan 25 07:56:52 host lightdm[769]: [+0.59s] DEBUG: posix_spawn avoided (fd close requested) (child_setup specified)
Jan 25 07:56:52 host lightdm[769]: [+0.59s] DEBUG: Seat seat0: Display server ready, starting session authentication
Jan 25 07:56:52 host lightdm[769]: [+0.59s] DEBUG: Session pid=788: Started with service ‘lightdm-autologin’, username ‘user’
Jan 25 07:56:52 host lightdm[788]: 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
Jan 25 07:56:52 host lightdm[769]: [+0.61s] DEBUG: Session pid=788: Authentication complete with return value 0: Success
Jan 25 07:56:52 host lightdm[769]: [+0.61s] DEBUG: Seat seat0: Session authenticated, running command
Jan 25 07:56:52 host lightdm[769]: [+0.61s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session0
Jan 25 07:56:52 host lightdm[769]: [+0.61s] DEBUG: posix_spawn avoided (fd close requested) (child_setup specified)
Jan 25 07:56:52 host lightdm[769]: [+0.61s] DEBUG: Session pid=788: Running command /etc/X11/Xsession startxfce4
Jan 25 07:56:52 host lightdm[769]: [+0.61s] DEBUG: Creating shared data directory /var/lib/lightdm/data/user
Jan 25 07:56:52 host lightdm[769]: [+0.61s] DEBUG: Session pid=788: Logging to .xsession-errors
Jan 25 07:56:52 host lightdm[788]: pam_unix(lightdm-autologin:session): session opened for user user by (uid=0)
Jan 25 07:56:52 host lightdm[792]: pam_exec(lightdm-autologin:session): Calling /usr/lib/security-misc/permission-lockdown …
Jan 25 07:56:52 host lightdm[769]: [+0.94s] DEBUG: Activating VT 7
Jan 25 07:56:52 host lightdm[769]: [+0.94s] DEBUG: Activating login1 session 1
Jan 25 07:56:52 host lightdm[769]: [+0.95s] DEBUG: Seat seat0 changes active session to 1
Jan 25 07:56:52 host lightdm[769]: [+0.95s] DEBUG: Session 1 is already active
Jan 25 07:58:53 host systemd[1]: Stopping Light Display Manager…
Jan 25 07:58:53 host lightdm[769]: [+74.86s] DEBUG: Got signal 15 from process 1
Jan 25 07:58:53 host lightdm[769]: [+74.86s] DEBUG: Caught Terminated signal, shutting down
Jan 25 07:58:53 host lightdm[769]: [+74.86s] DEBUG: Stopping display manager
Jan 25 07:58:53 host lightdm[769]: [+74.86s] DEBUG: Seat seat0: Stopping
Jan 25 07:58:53 host lightdm[769]: [+74.86s] DEBUG: Seat seat0: Stopping display server
Jan 25 07:58:53 host lightdm[769]: [+74.86s] DEBUG: Sending signal 15 to process 776
Jan 25 07:58:53 host lightdm[769]: [+74.86s] DEBUG: Seat seat0: Stopping session
Jan 25 07:58:53 host lightdm[769]: [+74.86s] DEBUG: Terminating login1 session 1
Jan 25 07:58:53 host lightdm[769]: [+74.87s] DEBUG: Session pid=788: Sending SIGTERM
Jan 25 07:58:53 host lightdm[769]: [+74.87s] DEBUG: Session pid=788: Exited with return value 0
Jan 25 07:58:53 host lightdm[769]: [+74.87s] DEBUG: Seat seat0: Session stopped
Jan 25 07:58:53 host lightdm[769]: [+74.96s] DEBUG: Process 776 exited with return value 0
Jan 25 07:58:53 host lightdm[769]: [+74.96s] DEBUG: XServer 0: X server stopped
Jan 25 07:58:53 host lightdm[769]: [+74.96s] DEBUG: Releasing VT 7
Jan 25 07:58:53 host lightdm[769]: [+74.96s] DEBUG: XServer 0: Removing X server authority /var/run/lightdm/root/:0
Jan 25 07:58:53 host lightdm[769]: [+74.96s] DEBUG: Seat seat0: Display server stopped
Jan 25 07:58:53 host lightdm[769]: [+74.96s] DEBUG: Seat seat0: Stopped
Jan 25 07:58:53 host lightdm[769]: [+74.96s] DEBUG: Display manager stopped
Jan 25 07:58:53 host lightdm[769]: [+74.96s] DEBUG: Stopping daemon
Jan 25 07:58:53 host lightdm[769]: [+74.96s] DEBUG: Exiting with return value 0
Jan 25 07:58:53 host systemd[1]: lightdm.service: Succeeded.
Jan 25 07:58:53 host systemd[1]: Stopped Light Display Manager.
Jan 25 07:59:10 host systemd[1]: Starting Light Display Manager…
Jan 25 07:59:10 host lightdm[2238]: [+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
Jan 25 07:59:10 host lightdm[2238]: [+0.00s] DEBUG: Starting Light Display Manager 1.26.0, UID=0 PID=2238
Jan 25 07:59:10 host lightdm[2238]: [+0.00s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
Jan 25 07:59:10 host lightdm[2238]: [+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/01_debian.conf
Jan 25 07:59:10 host lightdm[2238]: [+0.00s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d
Jan 25 07:59:10 host lightdm[2238]: [+0.00s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d
Jan 25 07:59:10 host lightdm[2238]: [+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf.d/autologin.conf
Jan 25 07:59:10 host lightdm[2238]: [+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf.d/whonix-autologin.conf
Jan 25 07:59:10 host lightdm[2238]: [+0.00s] DEBUG: [SeatDefaults] is now called [Seat:], please update this configuration
Jan 25 07:59:10 host lightdm[2238]: [+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf
Jan 25 07:59:10 host lightdm[2238]: [+0.00s] DEBUG: Registered seat module local
Jan 25 07:59:10 host lightdm[2238]: [+0.00s] DEBUG: Registered seat module xremote
Jan 25 07:59:10 host lightdm[2238]: [+0.00s] DEBUG: Registered seat module unity
Jan 25 07:59:10 host lightdm[2238]: [+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
Jan 25 07:59:10 host lightdm[2238]: [+0.00s] DEBUG: Monitoring logind for seats
Jan 25 07:59:10 host lightdm[2238]: [+0.01s] DEBUG: New seat added from logind: seat0
Jan 25 07:59:10 host lightdm[2238]: [+0.01s] DEBUG: Seat seat0: Loading properties from config section Seat:

Jan 25 07:59:10 host lightdm[2238]: [+0.01s] DEBUG: Seat seat0: Starting
Jan 25 07:59:10 host lightdm[2238]: [+0.01s] DEBUG: Seat seat0: Creating user session
Jan 25 07:59:10 host lightdm[2238]: [+0.01s] 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
Jan 25 07:59:10 host lightdm[2238]: [+0.01s] DEBUG: Loading user config from /etc/lightdm/users.conf
Jan 25 07:59:10 host lightdm[2238]: [+0.01s] DEBUG: User user added
Jan 25 07:59:10 host lightdm[2238]: [+0.01s] DEBUG: Seat seat0: Creating display server of type x
Jan 25 07:59:10 host lightdm[2238]: [+0.01s] DEBUG: posix_spawn avoided (fd close requested)
Jan 25 07:59:10 host lightdm[2238]: [+0.01s] DEBUG: Could not run plymouth --ping: Failed to execute child process ?plymouth? (No such file or directory)
Jan 25 07:59:10 host lightdm[2238]: [+0.01s] DEBUG: Using VT 7
Jan 25 07:59:10 host lightdm[2238]: [+0.01s] DEBUG: Seat seat0: Starting local X display on VT 7
Jan 25 07:59:10 host lightdm[2238]: [+0.01s] DEBUG: XServer 0: Logging to /var/log/lightdm/x-0.log
Jan 25 07:59:10 host lightdm[2238]: [+0.01s] DEBUG: XServer 0: Writing X server authority to /var/run/lightdm/root/:0
Jan 25 07:59:10 host lightdm[2238]: [+0.01s] DEBUG: XServer 0: Launching X Server
Jan 25 07:59:10 host lightdm[2238]: [+0.01s] DEBUG: Launching process 2244: /usr/bin/X :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
Jan 25 07:59:10 host lightdm[2238]: [+0.01s] DEBUG: XServer 0: Waiting for ready signal from X server :0
Jan 25 07:59:10 host lightdm[2238]: [+0.01s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
Jan 25 07:59:10 host lightdm[2238]: [+0.01s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
Jan 25 07:59:10 host systemd[1]: Started Light Display Manager.
Jan 25 07:59:10 host lightdm[2238]: [+0.16s] DEBUG: Got signal 10 from process 2244
Jan 25 07:59:10 host lightdm[2238]: [+0.16s] DEBUG: XServer 0: Got signal from X server :0
Jan 25 07:59:10 host lightdm[2238]: [+0.16s] DEBUG: XServer 0: Connecting to XServer :0
Jan 25 07:59:10 host lightdm[2238]: [+0.17s] DEBUG: posix_spawn avoided (fd close requested) (child_setup specified)
Jan 25 07:59:10 host lightdm[2238]: [+0.17s] DEBUG: Seat seat0: Display server ready, starting session authentication
Jan 25 07:59:10 host lightdm[2238]: [+0.17s] DEBUG: Session pid=2251: Started with service ‘lightdm-autologin’, username ‘user’
Jan 25 07:59:10 host lightdm[2251]: 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
Jan 25 07:59:10 host lightdm[2238]: [+0.18s] DEBUG: Session pid=2251: Authentication complete with return value 0: Success
Jan 25 07:59:10 host lightdm[2238]: [+0.18s] DEBUG: Seat seat0: Session authenticated, running command
Jan 25 07:59:10 host lightdm[2238]: [+0.18s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session0
Jan 25 07:59:10 host lightdm[2238]: [+0.18s] DEBUG: posix_spawn avoided (fd close requested) (child_setup specified)
Jan 25 07:59:10 host lightdm[2238]: [+0.18s] DEBUG: Session pid=2251: Running command /etc/X11/Xsession startxfce4
Jan 25 07:59:10 host lightdm[2238]: [+0.18s] DEBUG: Creating shared data directory /var/lib/lightdm/data/user
Jan 25 07:59:10 host lightdm[2238]: [+0.18s] DEBUG: Session pid=2251: Logging to .xsession-errors
Jan 25 07:59:10 host lightdm[2251]: pam_unix(lightdm-autologin:session): session opened for user user by (uid=0)
Jan 25 07:59:10 host lightdm[2255]: pam_exec(lightdm-autologin:session): Calling /usr/lib/security-misc/permission-lockdown …
Jan 25 07:59:10 host lightdm[2238]: [+0.23s] DEBUG: Activating VT 7
Jan 25 07:59:10 host lightdm[2238]: [+0.23s] DEBUG: Activating login1 session 4
Jan 25 07:59:10 host lightdm[2238]: [+0.23s] DEBUG: Seat seat0 changes active session to 4
Jan 25 07:59:10 host lightdm[2238]: [+0.23s] DEBUG: Session 4 is already active


and the Workstation log:

– Logs begin at Fri 2020-01-24 11:09:41 UTC, end at Sat 2020-01-25 08:15:23 UTC. –
Jan 25 08:14:09 host systemd[1]: Condition check resulted in Light Display Manager being skipped.
Jan 25 08:14:09 host systemd[1]: Starting Light Display Manager…
Jan 25 08:14:09 host lightdm[673]: [+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
Jan 25 08:14:09 host lightdm[673]: [+0.00s] DEBUG: Starting Light Display Manager 1.26.0, UID=0 PID=673
Jan 25 08:14:09 host lightdm[673]: [+0.00s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
Jan 25 08:14:09 host lightdm[673]: [+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/01_debian.conf
Jan 25 08:14:09 host lightdm[673]: [+0.00s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d
Jan 25 08:14:09 host lightdm[673]: [+0.00s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d
Jan 25 08:14:09 host lightdm[673]: [+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf.d/autologin.conf
Jan 25 08:14:09 host lightdm[673]: [+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf.d/whonix-autologin.conf
Jan 25 08:14:09 host lightdm[673]: [+0.00s] DEBUG: [SeatDefaults] is now called [Seat:], please update this configuration
Jan 25 08:14:09 host lightdm[673]: [+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf
Jan 25 08:14:09 host lightdm[673]: [+0.00s] DEBUG: Registered seat module local
Jan 25 08:14:09 host lightdm[673]: [+0.00s] DEBUG: Registered seat module xremote
Jan 25 08:14:09 host lightdm[673]: [+0.00s] DEBUG: Registered seat module unity
Jan 25 08:14:09 host lightdm[673]: [+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
Jan 25 08:14:09 host lightdm[673]: [+0.01s] DEBUG: Monitoring logind for seats
Jan 25 08:14:09 host lightdm[673]: [+0.01s] DEBUG: New seat added from logind: seat0
Jan 25 08:14:09 host lightdm[673]: [+0.01s] DEBUG: Seat seat0: Loading properties from config section Seat:

Jan 25 08:14:09 host lightdm[673]: [+0.01s] DEBUG: Seat seat0: Starting
Jan 25 08:14:09 host lightdm[673]: [+0.01s] DEBUG: Seat seat0: Creating user session
Jan 25 08:14:09 host lightdm[673]: [+0.01s] 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
Jan 25 08:14:09 host lightdm[673]: [+0.01s] DEBUG: Loading user config from /etc/lightdm/users.conf
Jan 25 08:14:09 host lightdm[673]: [+0.01s] DEBUG: User user added
Jan 25 08:14:09 host lightdm[673]: [+0.01s] DEBUG: Seat seat0: Creating display server of type x
Jan 25 08:14:09 host lightdm[673]: [+0.01s] DEBUG: posix_spawn avoided (fd close requested)
Jan 25 08:14:09 host lightdm[673]: [+0.02s] DEBUG: Could not run plymouth --ping: Failed to execute child process ?plymouth? (No such file or directory)
Jan 25 08:14:09 host lightdm[673]: [+0.02s] DEBUG: Using VT 7
Jan 25 08:14:09 host lightdm[673]: [+0.02s] DEBUG: Seat seat0: Starting local X display on VT 7
Jan 25 08:14:09 host lightdm[673]: [+0.02s] DEBUG: XServer 0: Logging to /var/log/lightdm/x-0.log
Jan 25 08:14:09 host lightdm[673]: [+0.02s] DEBUG: XServer 0: Writing X server authority to /var/run/lightdm/root/:0
Jan 25 08:14:09 host lightdm[673]: [+0.02s] DEBUG: XServer 0: Launching X Server
Jan 25 08:14:09 host lightdm[673]: [+0.02s] DEBUG: Launching process 684: /usr/bin/X :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
Jan 25 08:14:09 host lightdm[673]: [+0.02s] DEBUG: XServer 0: Waiting for ready signal from X server :0
Jan 25 08:14:09 host lightdm[673]: [+0.02s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
Jan 25 08:14:09 host lightdm[673]: [+0.02s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
Jan 25 08:14:09 host systemd[1]: Started Light Display Manager.
Jan 25 08:14:10 host lightdm[673]: [+0.66s] DEBUG: Got signal 10 from process 684
Jan 25 08:14:10 host lightdm[673]: [+0.66s] DEBUG: XServer 0: Got signal from X server :0
Jan 25 08:14:10 host lightdm[673]: [+0.66s] DEBUG: XServer 0: Connecting to XServer :0
Jan 25 08:14:10 host lightdm[673]: [+0.66s] DEBUG: posix_spawn avoided (fd close requested) (child_setup specified)
Jan 25 08:14:10 host lightdm[673]: [+0.67s] DEBUG: Seat seat0: Display server ready, starting session authentication
Jan 25 08:14:10 host lightdm[673]: [+0.67s] DEBUG: Session pid=762: Started with service ‘lightdm-autologin’, username ‘user’
Jan 25 08:14:10 host lightdm[762]: 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
Jan 25 08:14:10 host lightdm[673]: [+0.73s] DEBUG: Session pid=762: Authentication complete with return value 0: Success
Jan 25 08:14:10 host lightdm[673]: [+0.73s] DEBUG: Seat seat0: Session authenticated, running command
Jan 25 08:14:10 host lightdm[673]: [+0.73s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session0
Jan 25 08:14:10 host lightdm[673]: [+0.73s] DEBUG: posix_spawn avoided (fd close requested) (child_setup specified)
Jan 25 08:14:10 host lightdm[673]: [+0.73s] DEBUG: Session pid=762: Running command /etc/X11/Xsession startxfce4
Jan 25 08:14:10 host lightdm[673]: [+0.73s] DEBUG: Creating shared data directory /var/lib/lightdm/data/user
Jan 25 08:14:10 host lightdm[673]: [+0.73s] DEBUG: Session pid=762: Logging to .xsession-errors
Jan 25 08:14:10 host lightdm[762]: pam_unix(lightdm-autologin:session): session opened for user user by (uid=0)
Jan 25 08:14:10 host lightdm[769]: pam_exec(lightdm-autologin:session): Calling /usr/lib/security-misc/permission-lockdown …
Jan 25 08:14:10 host lightdm[673]: [+1.01s] DEBUG: Activating VT 7
Jan 25 08:14:10 host lightdm[673]: [+1.01s] DEBUG: Activating login1 session 1
Jan 25 08:14:10 host lightdm[673]: [+1.01s] DEBUG: Seat seat0 changes active session to 1
Jan 25 08:14:10 host lightdm[673]: [+1.01s] DEBUG: Session 1 is already active

1 Like

That log looks very similar to mine and I don’t see any errors there. Looks like proper termination.

I have no idea.

I suggest to report a bug against Debian.

And/or upstream original developers.

They might ask for a backtrace.

(similar this post Slow shutdown of version 15 workstation and gateway - #10 by Patrick)

@Patrick
I want to report the bug like you suggested, but how to do so is not crystal clear. First problem I have is you say it is a lightdm bug. How do you know it is? Second when I go to launchpad -> robert-ancell, I see lightdm is one of his packages. But everywhere it says lightdm in Ubuntu. And the problem of slow shutdown arises in Whonix. Or you mean to say that lightdm as used in Whonix is the same lightdm used in Ubuntu?

Because the log contains:

This means systemd sends the usual sigterm signal which lightdm ignores and then when that didn’t work it sends the sigkill command. I.e. lightdm does not react to sigterm for some reason.

No. Lightdm from Debian Debian -- Details of package lightdm in buster

You could report to Debian too and the Debian maintainer should in theory forward the bug upstream. But my experience is this takes a long time. It is useful to report bugs to Debian. Often the maintainer or someone knows something. But contacting the upstream developer directly makes sense too.

Don’t assume it’s more clear to me. :wink:
Just contact upstream somehow. Then see how it goes. Preferably in public to have a reference and give others to share their thoughts well. I’d open a bug on launchpad even if’s not 100% correct that’s not a crime. If it is the wrong place, someone will point out a better place.

1 Like

Ok, filed a bug-report on launchpad with Robert Ancell.

Link?

link bug (slow shutdown Whonix) on launchpad:

1 Like

I am currently avoiding the problem by just forcing shutdown for WS/GW. It is ugly but I only use read-only version so dataloss is not an issue.

1 Like

Me too bro.

Hey guys, heads up, I have found the solution.

Just up your ram to 2gigs. It has solved the issue for me.

I wanted to increase specs on the workstation for other reasons and noticed this problem was not occuring any more and so upped it to 2gb on the gateway as well and it seems to have fixed it there too.

EDIT: Just switching to 2 gig didn’t seem to do it, but increasing cpu too seems to have worked, if not that then keep upping them til it does as the workstation works consistently and I have that at 4 cpu/4 gig I think.

Though it depends how much you wanna use just to solve that issue :). My local machine rarely is needed for much so I can afford to use it for the short instances I want to run whonix.

If you are increasing cpu count while pinned then you won;t be really getting any increased perf benefit.

Whonix 16 moved away from lightdm (because auto login was broken, heisenbug, non-responsive upstream) to gdm3. Let me know if this is still an issue on Whonix 16 after upgrades.