Bug 478313 - "A stop job is running for User Manager for UID 1000" slows down shutdown
Summary: "A stop job is running for User Manager for UID 1000" slows down shutdown
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Session Management (show other bugs)
Version: master
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: qt6, wayland-only
Depends on:
Blocks:
 
Reported: 2023-12-09 17:16 UTC by semlraug
Modified: 2024-01-10 16:04 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
journalctl log during shutdown (47.55 KB, text/x-log)
2023-12-23 23:22 UTC, bugs
Details

Note You need to log in before you can comment on or make changes to this bug.
Description semlraug 2023-12-09 17:16:53 UTC
SUMMARY
***
At shutdown the process takes longer than normal; there is a countdown of up to 90 seconds at the step:
A stop job is running for User Manager for UID 1000 (xs / 2 min)
***

I'm seeing this in the logs, but don't know if it's related:

dec 08 17:13:07 aspirea31553 systemd[735]: plasma-kded6.service: Failed to kill control group /user.slice/user-1000.slice/user@1000.service/session.slice/plasma-kded6.service, ignoring: Invalid argument
dec 09 16:27:53 aspirea31553 systemd[740]: plasma-kded6.service: Failed to kill control group /user.slice/user-1000.slice/user@1000.service/session.slice/plasma-kded6.service, ignoring: Invalid argument

STEPS TO REPRODUCE
1. shutdown laptop through gui or with cli 'sudo poweroff' 
2. 
3. 

OBSERVED RESULT
Waiting at 'A stop job is running for User Manager for UID 1000

EXPECTED RESULT
No 90 seconds wait.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
Operating System: EndeavourOS 
KDE Plasma Version: 5.90.0
KDE Frameworks Version: 5.246.0
Qt Version: 6.6.1
Kernel Version: 6.6.5-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i5-8250U CPU @ 1.60GHz
Memory: 3.7 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 620
Manufacturer: Acer
Product Name: Aspire A315-53
System Version: V2.02

ADDITIONAL INFORMATION
I'm testing Plasma6/Qt6 on EndeavourOS
Comment 1 Bug Janitor Service 2023-12-13 17:43:00 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kded/-/merge_requests/45
Comment 2 semlraug 2023-12-15 18:13:41 UTC
Perhaps of interest: on my setup I'm noticing that the countdown starts form 0s to 2  minutes, but always ends after 90 seconds. So, even though the countdown seems to want to wait for 2 minutes, it always ends after 1 minute and 30 seconds.
Comment 3 Nate Graham 2023-12-20 19:29:45 UTC
Distros can override the default timeout; I believe Fedora does this, so if you're using Fedora, that could explain it.
Comment 4 semlraug 2023-12-20 19:50:43 UTC
I'm using EndeavorOS, arch based.
Comment 5 bugs 2023-12-23 23:22:02 UTC
Created attachment 164412 [details]
journalctl log during shutdown

This is a sanitized log of my system shutting down when this issue was exhibited. On this boot, I had booted, logged in, opened Firefox, and shut down immediately after. plasma-kded6 was set to time out after 20 seconds.

Other notes:
KDE Plasma Version: 5.91.0
KDE Frameworks Version: 5.247.0
Qt Version: 6.7.0
Distro: Arch Linux -> Using kde-unstable repository.

Using Wayland on NVidia.
Comment 6 Nate Graham 2024-01-10 16:04:03 UTC
Git commit 91a381809cc3f64958fd6cc9c5a034bf6d2318ab by Nate Graham, on behalf of Shubham Arora.
Committed on 10/01/2024 at 16:14.
Pushed by ngraham into branch 'master'.

kded: Add TimeoutStopSec 

M  +1    -0    src/plasma-kded6.service.in

https://invent.kde.org/frameworks/kded/-/commit/91a381809cc3f64958fd6cc9c5a034bf6d2318ab