On 9/13/20 5:45 PM, Rodney Baker wrote:
Hi all,
For some time I've been seeing shutdown delays of up to 2min 30 sec on Tumbleweed. The system reports, "A stop job is running for /run/user/<user_id> min:sec (counting down)", where min:sec can be anywhere up to 2-3 minutes.
Once this timer runs down, shutdown proceeds as normal. If I log out of the desktop session first, then log into a VTY session as root and enter "Poweroff", shutdown takes less than 10 seconds.
My guess is that there is a race condition going on with some process still holding a file open in /run/user/<user_id> (whcih is a tmpfs file system, when the system is attempting to destroy it, but I have been so far completely unsuccessful in identifying what that could be. I've even tried enabling a debug terminal session on VTY9 but that's given no clue, either.
How should I go about debugging this? So far, I don't even have enough information to raise a useful bug report (if one is even justified, given that it could be a local config issue rather than something systemic with Tumbleweed).
It may not be a bug, openSUSE is configured so that when you log out graphically any background tasks and programs that you have running will remain running. This is useful for people who use screen etc and keep background processes running, however if you want to make sure that when someone logs out any of there remaining processes are killed you can set KillUserProcesses=yes in /etc/systemd/logind.conf This may be a quick and easy way of resolving the issue. -- Simon Lees (Simotek) http://simotek.net Emergency Update Team keybase.io/simotek SUSE Linux Adelaide Australia, UTC+10:30 GPG Fingerprint: 5B87 DB9D 88DC F606 E489 CEC5 0922 C246 02F0 014B