Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: [EN] cups-browsed.service Hanging at Shutdown  (Read 3153 times)

Offline seasons

  • User
  • Posts: 269
[EN] cups-browsed.service Hanging at Shutdown
« 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?
« Last Edit: 2020/08/31, 09:41:21 by seasons »

Offline Mister00X

  • User
  • Posts: 198
Re: cups-browsed.service Hanging at Shutdown
« Reply #1 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.
« Last Edit: 2020/09/01, 11:04:49 by Mister00X »
Arguing that you don't care about the right to privacy because you have nothing to hide is no different than saying you don't care about free speech because you have nothing to say. – Edward Snowden

Offline der_bud

  • User
  • Posts: 1.072
  • member
Re: cups-browsed.service Hanging at Shutdown
« Reply #2 on: 2020/09/01, 13:29:57 »
Apparently that is  Debian Bug #969355 - cups-browsed.service Hangs on Shutdown

(Just seen the reporter uses siduction, towo-Kernel, did one of you both report that ;) ?)
Du lachst? Wieso lachst du? Das ist doch oft so, Leute lachen erst und dann sind sie tot.

Offline seasons

  • User
  • Posts: 269
Re: cups-browsed.service Hanging at Shutdown
« Reply #3 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.


Offline seasons

  • User
  • Posts: 269
Re: cups-browsed.service Hanging at Shutdown
« Reply #4 on: 2020/09/13, 07:32:37 »
May be same as or related to: https://github.com/OpenPrinting/cups-filters/issues/298
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.