Slow shutdown: A stop job is running for User Manager for UID 1000

Options
ecruz1986
ecruz1986 Posts: 1
edited November 2021 in Linux only

Hi,

I'm on Arch Linux with TeamViewer 15.23.9. Sometimes, not always, during shutdown/reboot I get this message:

A stop job is running for User Manager for UID 1000

And I have to wait for its 2 minute timeout until it resumes shutdown.

In journalctl I see this log portion:

nov 19 09:22:27 ECRUZ-PC systemd[1]: teamviewerd.service: Deactivated successfully.

nov 19 09:22:27 ECRUZ-PC systemd[1]: Stopped TeamViewer remote control daemon.

nov 19 09:22:27 ECRUZ-PC audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=teamviewerd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'

nov 19 09:22:27 ECRUZ-PC systemd[1]: teamviewerd.service: Consumed 7.034s CPU time.

nov 19 09:22:27 ECRUZ-PC kernel: kauditd_printk_skb: 19 callbacks suppressed

nov 19 09:22:27 ECRUZ-PC kernel: audit: type=1131 audit(1637324547.346:227): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=teamviewerd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'

nov 19 09:22:27 ECRUZ-PC systemd[1]: Stopped target Network is Online.

nov 19 09:22:27 ECRUZ-PC systemd[1]: NetworkManager-wait-online.service: Deactivated successfully.

nov 19 09:22:27 ECRUZ-PC systemd[1]: Stopped Network Manager Wait Online.

nov 19 09:22:27 ECRUZ-PC audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-wait-online comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'

nov 19 09:22:27 ECRUZ-PC kernel: audit: type=1131 audit(1637324547.349:228): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-wait-online comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'

nov 19 09:22:55 ECRUZ-PC kernel: fbcon: Taking over console

nov 19 09:22:55 ECRUZ-PC kernel: Console: switching to colour frame buffer device 160x45

nov 19 09:23:52 ECRUZ-PC systemd[2771]: dbus.service: State 'final-sigterm' timed out. Killing.

nov 19 09:23:52 ECRUZ-PC systemd[2771]: dbus.service: Killing process 2823 (TeamViewer) with signal SIGKILL.

nov 19 09:23:52 ECRUZ-PC systemd[2771]: dbus.service: Killing process 2854 (QQmlThread) with signal SIGKILL.

nov 19 09:23:52 ECRUZ-PC systemd[2771]: dbus.service: Failed with result 'timeout'.


Which seems to indicate that TeamViewer together with QQmlThread were the process that were hanging and had to be killed with SIGKILL after the timeout.

I'm using SDDM + KDE Plasma, and usually I'm logged in with two users, each with their graphical session. I think this "two users logged in" scenario makes it more likely for the bug to occur.

Any light on this? Maybe this needs to be patched by the TeamViewer team?