shutdown delay because of cups

Bug #1894452 reported by Cliff Carson
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
cups-filters (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Both my desktop and laptop running 20.10 have a 90 second delay shutting down (power off or restart). Getting message;

A stop job is Running for Make remote CUPS printers available locally

After 90 seconds the shutdown continues to completion.

ProblemType: Bug
DistroRelease: Ubuntu 20.10
Package: cups 2.3.3-2ubuntu5
ProcVersionSignature: Ubuntu 5.8.0-18.19-generic 5.8.4
Uname: Linux 5.8.0-18-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu45
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: ubuntu:GNOME
CurrentDmesg: Error: command ['dmesg'] failed with exit code 1: dmesg: read kernel buffer failed: Operation not permitted
Date: Sun Sep 6 18:10:20 2020
InstallationDate: Installed on 2020-08-28 (9 days ago)
InstallationMedia: Ubuntu 20.10 "Groovy Gorilla" - Alpha amd64 (20200826)
KernLog:

Lpstat: device for ENVY_4500: hp:/net/ENVY_4500_series?ip=192.168.1.131
MachineType: CLEVO CO. W35_37ET
Papersize: letter
PpdFiles: Error: command ['fgrep', '-H', '*NickName', '/etc/cups/ppd/ENVY_4500.ppd'] failed with exit code 2: grep: /etc/cups/ppd/ENVY_4500.ppd: Permission denied
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.8.0-18-generic root=UUID=292706c2-98fe-4370-a52f-7e67774018c7 ro quiet splash
SourcePackage: cups
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 12/14/2012
dmi.bios.release: 4.6
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 4.6.5
dmi.board.asset.tag: To be filled by O.E.M.
dmi.board.name: W35_37ET
dmi.board.vendor: CLEVO CO.
dmi.board.version: N/A
dmi.chassis.asset.tag: To Be Filled By O.E.M.
dmi.chassis.type: 9
dmi.chassis.vendor: CLEVO CO.
dmi.chassis.version: N/A
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr4.6.5:bd12/14/2012:br4.6:svnCLEVOCO.:pnW35_37ET:pvrN/A:rvnCLEVOCO.:rnW35_37ET:rvrN/A:cvnCLEVOCO.:ct9:cvrN/A:
dmi.product.family: To be filled by O.E.M.
dmi.product.name: W35_37ET
dmi.product.sku: To be filled by O.E.M.
dmi.product.version: N/A
dmi.sys.vendor: CLEVO CO.

Revision history for this message
Cliff Carson (ccarson1) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in cups (Ubuntu):
status: New → Confirmed
Revision history for this message
shemgp (shemgp) wrote :

Quick fix:

sudo sed -i '/ExecStart=/a ExecStop=/bin/systemctl stop cups.service' /lib/systemd/system/cups-browsed.service

Got the idea from previous 16.04 bug with cups-browsed.service.

Revision history for this message
shemgp (shemgp) wrote :

Work around (the previous one doesn't work):

sudo sed -i '/ExecStart=/a ExecStop=/bin/bash -c "ps -AfH | grep cups-browsed | awk '\''{print $2}'\'' | xargs kill -s 9"' /lib/systemd/system/cups-browsed.service
sudo systemctl daemon-reload
sudo systemctl restart cups-browsed.service

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

The shutdown problem of cups-browsed was already identified and is fixed in the GitHub repository of cups-filters. This fix will be included in cups-filters 1.28.2 which will get released soon.

Changed in cups (Ubuntu):
status: Confirmed → Triaged
affects: cups (Ubuntu) → cups-filters (Ubuntu)
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

I have released cups-filters 1.28.2 upstream yesterday:

https://openprinting.github.io/cups-filters-1.28.2-released/

It also got already uploaded into Debian and I will sync it to Ubuntu as soon as it got processed at Debian.

Changed in cups-filters (Ubuntu):
status: Triaged → In Progress
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

cups-filters 1.28.2 uploaded to Ubuntu.

Changed in cups-filters (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
shemgp (shemgp) wrote :

I can confirm that it's fixed with: cups-filters 1.28.2-1

Thank you.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Thank you very much. So I am closing here now.

Changed in cups-filters (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.