[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1099333: printing to HP OfficeJet Pro 8132e via USB sometimes fails



Package: cups
Version: 2.4.2-3+deb12u8



When trying to print a PDF file from evince (or a text from libreoffice), sometimes printing fails: the printer shows no activity. Here's what happens when we try to print a single page from evince:
dmesg shows
…
[21592.361451] audit: type=1400 audit(1740916787.204:203): apparmor="DENIED" operation="open" profile="/usr/bin/evince" name="/var/lib/snapd/desktop/applications/mimeinfo.cache" pid=67294 comm="evince" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
[21640.554277] usb 1-12: usbfs: process 1147 (ipp-usb) did not claim interface 0 before use
[21640.554304] usb 1-12: usbfs: usb_submit_urb returned -2
[21640.554738] usb 1-12: usbfs: usb_submit_urb returned -2
…


In /var/log/syslog we see
2025-03-02T13:10:43.982014+01:00 AnonymousHost kernel: [22249.135072] usb 1-12: usbfs: usb_submit_urb returned -2
2025-03-02T13:10:43.982034+01:00 AnonymousHost kernel: [22249.135953] usb 1-12: usbfs: usb_submit_urb returned -2


Visiting http://localhost:631/jobs in a Web browser yields the following status:
 	angehalten seit
Sun Mar 2 13:10:43 2025
"No suitable destination host found by cups-browsed."

For an unknown reason, the number of pages that are to be printed is shown as 2 in http://localhost:631/jobs, whereas in reality, only 1 page is to be printed.


As opposed to that, services print nothing relevant:

# systemctl status cups cups-browsed
● cups.service - CUPS Scheduler
     Loaded: loaded (/lib/systemd/system/cups.service; enabled; preset: enabled)
     Active: active (running) since Sun 2025-03-02 00:00:01 CET; 13h ago
TriggeredBy: ● cups.socket
             ● cups.path
       Docs: man:cupsd(8)
   Main PID: 34360 (cupsd)
     Status: "Scheduler is running..."
      Tasks: 2 (limit: 38024)
     Memory: 3.8M
        CPU: 414ms
     CGroup: /system.slice/cups.service
             ├─34360 /usr/sbin/cupsd -l
             └─34384 /usr/lib/cups/notifier/dbus dbus://

Mär 02 00:00:01 AnonymousHost systemd[1]: Starting cups.service - CUPS Scheduler...
Mär 02 00:00:01 AnonymousHost systemd[1]: Started cups.service - CUPS Scheduler.

● cups-browsed.service - Make remote CUPS printers available locally
     Loaded: loaded (/lib/systemd/system/cups-browsed.service; enabled; preset: enabled)
     Active: active (running) since Sun 2025-03-02 00:00:01 CET; 13h ago
   Main PID: 34363 (cups-browsed)
      Tasks: 3 (limit: 38024)
     Memory: 6.2M
        CPU: 378ms
     CGroup: /system.slice/cups-browsed.service
             └─34363 /usr/sbin/cups-browsed

Mär 02 00:00:01 AnonymousHost systemd[1]: Started cups-browsed.service - Make remote CUPS printers available locally.


The journal has the same
Mär 02 13:10:43 AnonymousHost kernel: usb 1-12: usbfs: usb_submit_urb returned -2
Mär 02 13:10:43 AnonymousHost kernel: usb 1-12: usbfs: usb_submit_urb returned -2


In /var/log/cups/error_log we see
E [02/Mar/2025:13:10:43 +0100] [Job 488] No suitable destination host found by cups-browsed.
W [02/Mar/2025:13:10:43 +0100] [Job 488] Backend returned status 6 (retry job later)


In /var/log/cups/access_log there is nothing relevant:
localhost - root [02/Mar/2025:13:15:44 +0100] "POST /admin/ HTTP/1.1" 200 243 CUPS-Add-Modify-Printer successful-ok


In the Gnome dialog for the printers, the printer is shown as “HP_OfficeJet_Pro_8130e_series_SerialIdentifier_USB”, and its model is shown as “HP HP OfficeJet Pro 8130e series” (yes, with two “HP”s).


Printing to the same physical printer via its WiFi interface succeeds much more often than via its USB interface. In the Gnome dialog for the printers, the WiFi interface for the printer is shown as “HP_OfficeJet_Pro_8130e_series_SerialIdentifier”, and its model is shown as “HP OfficeJet Pro 8130e series” (with a single “HP”).


Reply to: