Siduction Forum

Siduction Forum => Software - Support => Topic started by: seasons on 2020/08/31, 01:57:34

Title: cups-browsed.service Hanging at Shutdown
Post by: seasons on 2020/08/31, 01:57:34
Recently, my system has taken a while to shut down. From the log, it looks like cups-browsed was taking the maximum 90 seconds to try and stop/sigterm (and still failed, resulting in sigkill).

Code: [Select]
Aug 29 14:39:41 hostname avahi-daemon[648]: Disconnected from D-Bus, exiting.
Aug 29 14:41:09 hostname systemd[1]: cups-browsed.service: State 'stop-sigterm' timed out. Killing.
Aug 29 14:41:09 hostname systemd[1]: cups-browsed.service: Main process exited, code=killed, status=9/KILL
I've since changed systemd's max service timeout to 10 seconds to reduce the pain, but has anyone else had issues with cups-browsed since cups-filters package was updated this week?
Title: Re: cups-browsed.service Hanging at Shutdown
Post by: Mister00X on 2020/08/31, 22:52:42
I can confirm this.
My system has been doing the same since I made a d-u today.

My log looks pretty similar to yours
Code: [Select]
Aug 31 22:10:40 systemd[1]: cups-browsed.service: State 'stop-sigterm' timed out. Killing.
Aug 31 22:10:40 systemd[1]: cups-browsed.service: Killing process 825 (cups-browsed) with signal SIGKILL.
Aug 31 22:10:40 systemd[1]: cups-browsed.service: Killing process 897 (gdbus) with signal SIGKILL.
Aug 31 22:10:40 systemd[1]: cups-browsed.service: Main process exited, code=killed, status=9/KILL
Aug 31 22:10:40 systemd[1]: cups-browsed.service: Failed with result 'timeout'.
Aug 31 22:10:40 systemd[1]: Stopped Make remote CUPS printers available locally.
Aug 31 22:10:40 systemd[1]: Stopping CUPS Scheduler...
Aug 31 22:10:40 systemd[1]: cups.service: Succeeded.
Aug 31 22:10:40 systemd[1]: Stopped CUPS Scheduler.

Greetings
Mister00X

EDIT: I've realized that this behaviour on shutdown only occurs if my network printer is on. So apparently turning your printer off reduces the shutdown time by 90s now.
Title: Re: cups-browsed.service Hanging at Shutdown
Post by: der_bud on 2020/09/01, 13:29:57
Apparently that is  Debian Bug #969355 - cups-browsed.service Hangs on Shutdown (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=969355)

(Just seen the reporter uses siduction, towo-Kernel, did one of you both report that ;) ?)
Title: Re: cups-browsed.service Hanging at Shutdown
Post by: seasons on 2020/09/01, 16:19:38
@der_bud: It was me. (If you can't tell, I copy/pasted part of the description from here  8) ).
@Mister00X: Thank you for confirming. It makes me feel better about this kind of bug report when I am not the only one hit with it.

Title: Re: cups-browsed.service Hanging at Shutdown
Post by: seasons on 2020/09/13, 07:32:37
May be same as or related to: https://github.com/OpenPrinting/cups-filters/issues/298 (https://github.com/OpenPrinting/cups-filters/issues/298The)
The fix is included in cups-filters 1.28.2, which is now available in sid.
I will keep an eye on shutdown it to see if it's fixed.