CUPS fails to print to autodetected printers because of cups-browsed error

Bug #1855595 reported by emk2203
66
This bug affects 13 people
Affects Status Importance Assigned to Milestone
cups-filters (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

When trying to autodetected IPP printers, print job stays in queue.

lpstat -l:

HP_LaserJet_CM1415fn_44A808_-23 erik 30720 So 08 Dez 2019 15:50:20 CET
        Status: No suitable destination host found by cups-browsed.
        Alarme: resources-are-not-ready
        in Warteschlange eingereiht für HP_LaserJet_CM1415fn_44A808_

Removing the print job, restarting cups-browsed with `service cups-browsed restart` followed by `service cups restart` enables printing for one print job; the next one fails again with the same issue.

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: cups-browsed 1.25.13-1
ProcVersionSignature: Ubuntu 5.3.0-24.26-generic 5.3.10
Uname: Linux 5.3.0-24-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.11-0ubuntu13
Architecture: amd64
CurrentDesktop: LXQt
Date: Sun Dec 8 16:06:02 2019
InstallationDate: Installed on 2019-10-19 (50 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Alpha amd64 (20191019)
Lpstat:
 device for HP_LaserJet_CM1415fn_44A808_: implicitclass://HP_LaserJet_CM1415fn_44A808_/
 device for Samsung_C48x_Series_SEC84251900EE44_: implicitclass://Samsung_C48x_Series_SEC84251900EE44_/
MachineType: Dell Inc. Latitude E6530
Papersize: a4
PpdFiles:
 Error: command ['fgrep', '-H', '*NickName', '/etc/cups/ppd/HP_LaserJet_CM1415fn_44A808_.ppd', '/etc/cups/ppd/Samsung_C48x_Series_SEC84251900EE44_.ppd'] failed with exit code 2: grep: /etc/cups/ppd/HP_LaserJet_CM1415fn_44A808_.ppd: Permission denied
 grep: /etc/cups/ppd/Samsung_C48x_Series_SEC84251900EE44_.ppd: Permission denied
ProcKernelCmdLine: BOOT_IMAGE=/BOOT/ubuntu_utwd0l@/vmlinuz-5.3.0-24-generic root=ZFS=rpool/ROOT/ubuntu_utwd0l ro quiet splash vt.handoff=1
SourcePackage: cups-filters
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 11/30/2018
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A22
dmi.board.name: 07Y85M
dmi.board.vendor: Dell Inc.
dmi.board.version: A00
dmi.chassis.type: 9
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvrA22:bd11/30/2018:svnDellInc.:pnLatitudeE6530:pvr01:rvnDellInc.:rn07Y85M:rvrA00:cvnDellInc.:ct9:cvr:
dmi.product.name: Latitude E6530
dmi.product.sku: Latitude E6530
dmi.product.version: 01
dmi.sys.vendor: Dell Inc.

Revision history for this message
emk2203 (emk2203) wrote :
Revision history for this message
Sean (ursanoctua) wrote :

I've run into a similar issue. I've found running 'cups-browsed' as my user in a terminal allows me to get several print runs through. Any queued jobs will immediately print after I start up the process.

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

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

Changed in cups-filters (Ubuntu):
status: New → Confirmed
Revision history for this message
Mark Smith (mas94) wrote :

Adding some cross-linking to help people who encounter this in the future, and perhaps also help the devs:

This is discussed in the Ask Ubuntu post: https://askubuntu.com/questions/1128164/no-suitable-destination-host-found-by-cups-browsed

The solution there (which worked for me) is to `apt remove cups-browsed` and add the printer manually.

Revision history for this message
Anthea West (sw4nlake) wrote :

Have tried all the workarounds here without success. Ubuntu 20.04, HP Deskjet 2700

Revision history for this message
Gerlando Lo Savio (gerlos) wrote :

I experienced exactly the same problem on Ubuntu 20.04. I solved this way:

1. First I stopped cups-browsed: systemctl stop cups-browsed
2. Then I manually added my printer (an HP OfficeJet 6950) clicking on the "Add.." button in the Preferences, and manually selected the name from the database, so it won't use any driverless print protocol. Did a test print and it worked.
3. I removed the automatically created printer
4. Restarted cups-browsed: systemctl start cups-browsed

After that, the printer worked as expected and wasn't automatically added any more, even after a system reboot.

The only minor issue is that for some reason I can't rename the printer from the Preferences, but since it's my only I can live with it for now.

Revision history for this message
neo (csae2608) wrote :

can confirm that am affected also with Epson Ecotank ET-4750 and Kubuntu 20.04 - error message for automatically added printer is "idle - no suitable destination host found by cups-browsed"
printing was functioning on 18.04 - adding the printer manually fails to bring the printer to print - the workaround by @gerlosgm does not function here.

Revision history for this message
Jürgen Gmach (jugmac00) wrote :

Same for me - printing is working on Ubuntu 18.04, but hardly (and then only after a fresh reboot) working on Ubuntu 20.04. My printer: Brother 8510DN.

Revision history for this message
Lawrence (bigchipmunk) wrote :

Same issue on Linux Mint 20.3.

sudo systemctl stop cups-browsed
sudo systemctl disable cups-browsed

that got rid of the defective autocreated printers. When I went into Printers and did Add, I had much more specific options: LPD, IPP, and driverless IPP. I chose IPP network printer via DNS-SD and everything works great now :-)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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