您尚未登录。

#1 2023-03-13 22:46:04

sheepfish5
会员
注册时间: 2023-03-13
帖子: 4

关机或重启时显示“A stop job is running for User Manager for UID 1000 (35s / no

7c43c1ff1693c595.jpg
二月份的时候重装了一次arch,最近总是在关机的显示A stop job is running for User Manager for UID 1000 (XXs / no limit)
第一阶段是稳定卡1分30秒,过了这个时间后就会继续关机了。
经过排查journalctl日志,是在等Code-OSS关闭:(部分日志)

3月 12 11:22:57 archLinux sddm[443]: Running display stop script  "/usr/share/sddm/scripts/Xstop"
3月 12 11:22:57 archLinux sddm[443]: QProcess: Destroyed while process ("/usr/lib/sddm/sddm-helper") is still running.
3月 12 11:22:57 archLinux systemd[1]: sddm.service: Deactivated successfully.
3月 12 11:22:57 archLinux systemd[1]: Stopped Simple Desktop Display Manager.
3月 12 11:22:57 archLinux systemd[1]: sddm.service: Consumed 6min 57.784s CPU time.
3月 12 11:22:57 archLinux systemd[1]: Stopping User Login Management...
3月 12 11:22:57 archLinux systemd[1]: systemd-logind.service: Deactivated successfully.
3月 12 11:22:57 archLinux systemd[1]: Stopped User Login Management.
3月 12 11:24:23 archLinux systemd[630]: app-code\x2doss-e2637d222b3b425f9c96dbfaa8a2b6a9.scope: Stopping timed out. Killing.
3月 12 11:24:23 archLinux systemd[630]: app-code\x2doss-e2637d222b3b425f9c96dbfaa8a2b6a9.scope: Killing process 3531 (bash) with signal SIGKILL.
3月 12 11:24:23 archLinux systemd[630]: app-code\x2doss-c5251fd69723492ba7c182177c524a10.scope: Stopping timed out. Killing.
3月 12 11:24:23 archLinux systemd[630]: app-code\x2doss-c5251fd69723492ba7c182177c524a10.scope: Killing process 37248 (bash) with signal SIGKILL.
3月 12 11:24:23 archLinux systemd[630]: app-code\x2doss-c5251fd69723492ba7c182177c524a10.scope: Failed with result 'timeout'.
3月 12 11:24:23 archLinux systemd[630]: Stopped Code - OSS - Text Editor.
3月 12 11:24:23 archLinux systemd[630]: app-code\x2doss-c5251fd69723492ba7c182177c524a10.scope: Consumed 14min 43.282s CPU time.
3月 12 11:24:23 archLinux systemd[630]: app-code\x2doss-e2637d222b3b425f9c96dbfaa8a2b6a9.scope: Failed with result 'timeout'.
3月 12 11:24:23 archLinux systemd[630]: Stopped Code - OSS - Text Editor.
3月 12 11:24:23 archLinux systemd[630]: app-code\x2doss-e2637d222b3b425f9c96dbfaa8a2b6a9.scope: Consumed 4min 50.781s CPU time.
3月 12 11:24:23 archLinux systemd[630]: Removed slice User Application Slice.
3月 12 11:24:23 archLinux systemd[630]: app.slice: Consumed 44min 42.631s CPU time.
3月 12 11:24:23 archLinux systemd[630]: Reached target Shutdown.
3月 12 11:24:23 archLinux systemd[630]: Finished Exit the Session.
3月 12 11:24:23 archLinux systemd[630]: Reached target Exit the Session.
3月 12 11:24:23 archLinux (sd-pam)[631]: pam_warn(systemd-user:setcred): function=[pam_sm_setcred] flags=0x8004 service=[systemd-user] terminal=[] user=[sheepfish] ruser=[<unknown>] rhost=[<unknown>]
3月 12 11:24:23 archLinux systemd[1]: user@1000.service: Deactivated successfully.
3月 12 11:24:23 archLinux systemd[1]: Stopped User Manager for UID 1000.
3月 12 11:24:23 archLinux systemd[1]: user@1000.service: Consumed 1h 1min 29.097s CPU time.
3月 12 11:24:23 archLinux systemd[1]: Stopping Permit User Sessions...

从11:22:57到11:24:23,差不多一分半,关机都一直卡在这里。
开机的时候我确实用了Code-OSS,但关机前确定已经把他关了。
找到这里后,我还多次关机/重启,每次只打开Code-OSS然后快速关机,每次都稳定出现这同一个问题,日志也是一样的情况,再尝试开机后什么都不做,或打开其他软件,再关机,就没有这个问题。
我当时就直接把Code-OSS卸载了,换了aur上的visual-studio-code-bin,觉得问题应该就直接解决了。
但是到了晚上,当我关电脑的时候,又是在关机的时候出现同一个问题:A stop job is running for User Manager for UID 1000 (XXs / no limit):
d74dc7d624a5ceca.jpg
这回是第二阶段了,大概持续30秒,查看日志显示的是plasma-plasmashell.service超时关闭:

3月 12 22:47:31 archLinux sddm[467]: Display server stopped.
3月 12 22:47:31 archLinux sddm[467]: Running display stop script  "/usr/share/sddm/scripts/Xstop"
3月 12 22:47:31 archLinux sddm[467]: QProcess: Destroyed while process ("/usr/lib/sddm/sddm-helper") is still running.
3月 12 22:47:31 archLinux systemd[1]: sddm.service: Deactivated successfully.
3月 12 22:47:32 archLinux systemd[1]: Stopped Simple Desktop Display Manager.
3月 12 22:47:32 archLinux systemd[1]: sddm.service: Consumed 20min 56.992s CPU time.
3月 12 22:47:32 archLinux systemd[1]: Stopping User Login Management...
3月 12 22:47:32 archLinux systemd[1]: systemd-logind.service: Deactivated successfully.
3月 12 22:47:32 archLinux systemd[1]: Stopped User Login Management.
3月 12 22:47:32 archLinux systemd[1]: systemd-logind.service: Consumed 1.380s CPU time.
3月 12 22:48:07 archLinux systemd[626]: plasma-plasmashell.service: State 'final-sigterm' timed out. Killing.
3月 12 22:48:07 archLinux systemd[626]: plasma-plasmashell.service: Killing process 21867 (bash) with signal SIGKILL.
3月 12 22:48:07 archLinux systemd[626]: plasma-plasmashell.service: Killing process 41581 (bash) with signal SIGKILL.
3月 12 22:48:07 archLinux systemd[626]: plasma-plasmashell.service: Killing process 79446 (bash) with signal SIGKILL.
3月 12 22:48:07 archLinux systemd[626]: plasma-plasmashell.service: Killing process 80155 (bash) with signal SIGKILL.
3月 12 22:48:07 archLinux systemd[626]: plasma-plasmashell.service: Killing process 86424 (bash) with signal SIGKILL.
3月 12 22:48:07 archLinux systemd[626]: plasma-plasmashell.service: Killing process 87387 (bash) with signal SIGKILL.
3月 12 22:48:07 archLinux systemd[626]: plasma-plasmashell.service: Killing process 88016 (bash) with signal SIGKILL.
3月 12 22:48:07 archLinux systemd[626]: plasma-plasmashell.service: Failed with result 'timeout'.
3月 12 22:48:07 archLinux systemd[626]: Stopped KDE Plasma Workspace.
3月 12 22:48:07 archLinux systemd[626]: plasma-plasmashell.service: Consumed 1h 33min 57.599s CPU time.
3月 12 22:48:07 archLinux systemd[626]: Removed slice User Core Session Slice.
3月 12 22:48:07 archLinux systemd[626]: session.slice: Consumed 2h 6min 54.213s CPU time.
3月 12 22:48:07 archLinux systemd[626]: Stopped target Basic System.
3月 12 22:48:07 archLinux systemd[626]: Stopped target Paths.
3月 12 22:48:07 archLinux systemd[626]: Stopped target Sockets.
3月 12 22:48:07 archLinux systemd[626]: Stopped target Timers.
3月 12 22:48:07 archLinux systemd[626]: Closed D-Bus User Message Bus Socket.
3月 12 22:48:07 archLinux systemd[626]: Closed GnuPG network certificate management daemon.
3月 12 22:48:07 archLinux systemd[626]: Closed GCR ssh-agent wrapper.
3月 12 22:48:07 archLinux systemd[626]: Closed GnuPG cryptographic agent and passphrase cache (access for web browsers).
3月 12 22:48:07 archLinux systemd[626]: Closed GnuPG cryptographic agent and passphrase cache (restricted).
3月 12 22:48:07 archLinux systemd[626]: Closed GnuPG cryptographic agent (ssh-agent emulation).

从22:47:32到22:48:07,关了半分钟。
我试过反复开关机,不能复现问题,今天下午我用了一段时间电脑,再次关机的时候这个问题同样出现了,再次查看日志,也是plasma-plasmashell.service的问题,也是30秒多。
我不清楚这些是应用的问题还是系统的问题,我不知道该怎么办。
我希望能解决现在plasma-plasmashell.service关机的问题,更希望以后关机不会再出现这样的问题。

每次出问题后,我会立即开机记录下3分钟以内的日志,也有5分钟和10分钟以内的,如果需要我后续会贴出。
下面是我的系统信息,如果有帮助的话:

OS: Arch Linux x86_64 
Host: Swift SF314-511 V1.13 
Kernel: 6.1.18-1-lts 
Uptime: 58 mins 
Packages: 1321 (pacman) 
Shell: bash 5.1.16 
Resolution: 1920x1080, 900x1440 
DE: Plasma 5.27.2 
WM: KWin 
WM Theme: Breeze 微风 
Theme: [Plasma], Breeze [GTK2/3] 
Icons: [Plasma], breeze-dark [GTK2/3] 
Terminal: konsole 
Terminal Font: Cascadia Code 10 
CPU: 11th Gen Intel i5-1135G7 (8) @ 4.200GHz 
GPU: Intel TigerLake-LP GT2 [Iris Xe Graphics] 
Memory: 3794MiB / 15792MiB 

平常还要上课,只有晚上和中午有时间开电脑,见谅。

离线

#2 2023-03-14 14:48:45

北城已旧无故人
会员
注册时间: 2022-07-12
帖子: 16

Re: 关机或重启时显示“A stop job is running for User Manager for UID 1000 (35s / no

sddm + plasma wayland场景下的老问题了,一直没有解决。先注销用户,再关机就不会等待了

离线

#3 2023-03-14 18:12:24

sheepfish5
会员
注册时间: 2023-03-13
帖子: 4

Re: 关机或重启时显示“A stop job is running for User Manager for UID 1000 (35s / no

北城已旧无故人 说:

sddm + plasma wayland场景下的老问题了,一直没有解决。先注销用户,再关机就不会等待了

好吧,那就只能这样了。
非常感谢!

离线

#4 2023-03-14 18:16:53

sheepfish5
会员
注册时间: 2023-03-13
帖子: 4

Re: 关机或重启时显示“A stop job is running for User Manager for UID 1000 (35s / no

kaminyan2323 说:

可以在systemd的配置文件里修改关机的超时时间,我设置成了10s,超过就会强行停止。
/etc/systemd/system.conf
/etc/systemd/user.conf

把“DefaultTimeoutStopSec=”这一行去掉注释,设置为你想要的时间。

好的,我先暂时也改成10秒。
非常感谢!

离线

#5 2023-03-14 23:18:52

Nirlvy
会员
注册时间: 2022-07-06
帖子: 57

Re: 关机或重启时显示“A stop job is running for User Manager for UID 1000 (35s / no

其实不是kde也是,现在用的hyprland,每次关机或重启前都手动注销怪麻烦的,想着抛弃sddm算了

离线

#6 2023-03-15 23:13:20

sheepfish5
会员
注册时间: 2023-03-13
帖子: 4

Re: 关机或重启时显示“A stop job is running for User Manager for UID 1000 (35s / no

Nirlvy 说:

其实不是kde也是,现在用的hyprland,每次关机或重启前都手动注销怪麻烦的,想着抛弃sddm算了

想换就试试吧,大不了再换回来。
之后有空我也想多试试别的桌面甚至是发行版。

最近编辑记录 sheepfish5 (2023-03-15 23:21:55)

离线

#7 2023-04-03 11:00:18

escape0707
会员
注册时间: 2022-03-18
帖子: 3

Re: 关机或重启时显示“A stop job is running for User Manager for UID 1000 (35s / no

Gnome Wayland 也遇到了同样的问题。应该不是 KDE 的锅。

 4月 02 23:52:18 JayChu-Laptop systemd[1400]: app-gnome-code\x2doss-2688.scope: Stopping timed out. Killing.
 4月 02 23:52:18 JayChu-Laptop systemd[1400]: app-gnome-code\x2doss-2688.scope: Killing process 3082 (bash) with signal SIGKILL.
 4月 02 23:52:18 JayChu-Laptop systemd[1400]: app-gnome-code\x2doss-2688.scope: Failed with result 'timeout'.
 4月 02 23:52:18 JayChu-Laptop systemd[1400]: Stopped Application launched by gnome-shell.

最近编辑记录 escape0707 (2023-04-03 11:05:18)

离线

页脚