cups-browsed causes shutdown hang/delay in Ubuntu 16.04
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cups-filters (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Xenial |
Fix Released
|
Medium
|
Unassigned |
Bug Description
[SRU justification]
When the system is shut down CUPS and cups-browsed are not shut down in a determined order, but cups-browsed needs CUPS still running to perform its shutdown, for removing the print queues it has generated and for saving information about these queues for use in the next session. With CUPS already shut down cups-browsed simply hangs and gets killed after a certain timeout. This can be fixed by defining the correct relationships in the systemd .service files and so the annoying hang can be avoided.
[Test case]
To reproduce the bug run
sudo systemctl stop cups
and after some seconds
sudo systemctl stop cups-browsed
with the shutdown of cups-browsed hanging.
On system shutdown one gets the hang, but not always as it can happen that on some shutdowns cups-browsed shuts down before cups.
After installing the fixed package, hhutting down cups requires shutting down cups-browsed before, so that the shutdown of cups triggers the shutdown of cups-browsed, making all shutdowns having the two services shut down in the right order avoiding a hang.
[Regression potential]
None. We only define a dependency between two services to make them shit down in the correct order.
[Original report]
Using the debug process found here https:/
I have confirmed this on a virtual machine and a real system. If I disable cups-browsed from ever starting, my problem is fixed.
description: | updated |
description: | updated |
description: | updated |
Changed in cups-filters (Ubuntu Xenial): | |
status: | Triaged → Fix Committed |
Changed in cups-filters (Ubuntu): | |
importance: | Undecided → Medium |
Changed in cups-filters (Ubuntu Xenial): | |
importance: | Undecided → Medium |
Please attach your /etc/cups/ cupsd.conf and /etc/cups/ cups-browsed. conf files and post the output of
lpstat -v
once with cups-browsed running and once with cups-browsed stopped.
Also stop cups-browsed via
sudo service cups-browsed stop
and then start it from the command line via
sudo nohup /usr/sbin/ cups-browsed --debug > /log.txt 2>&1 &
Shut down your system.
After starting your system again, attach /log.txt.
Attach all the files one by one, do not compress them and do not package them together.