Client slowing shutdown on Ubuntu
I noticed that PIA is hanging when I'm shutting down (or rebooting) Ubuntu.
With a verbose Splash, I can see :
"A stop job is running for session 1..." with a 1min30 timer.
If I exit PIA before shutdown, everything is fine.
Did anyone has a fix for that?
Can we exit PIA through a script, just at shutdown?
Comments
I'm very sorry that you're running into this. For now, I'd recommend clicking (or right-clicking) on the PIA tray icon and pressing Exit before shutting down. However, this is an issue that we're aware of and should be addressing soon.
altering /etc/systemd/system.conf:
DefaultTimeoutStopSec=10s
or to a time that suits you
In my case it is not session 1, it is session c2 as follows:
A stop job is running for Session c2 of user <removed> (40s/1min30s)
I checked and it's still tracked in our bug tracker.
If you want to speed up the shutdown, as a temporary workaround you can press Ctrl+Alt+Delete 7 times quickly. It signals systemd to abort waiting and to continue shutting down.
I had a systemd service a while ago that also "fixed" it, but this time around it would be nice if we could address the root cause of it and ensure the app dies properly on shutdown.
I'll have to dig deeper into this to really find out what happens but I don't quite have the time to do that now.
I just remembered the timeout is configurable in /etc/systemd/system.conf as well. I think DefaultTimeoutStopSec is the property that controls this, setting it to something like 5-10 seconds could help avoid it getting stuck too long.