#1033625 cups constantly without timeout connects to network printer, does not print

Package:
cups
Source:
cups
Description:
Common UNIX Printing System(tm) - PPD/driver support, web interface
Submitter:
Johan Kröckel
Date:
2023-04-08 06:57:03 UTC
Severity:
normal
#1033625#5
Date:
2023-03-28 21:01:47 UTC
From:
To:
I am using a Kyocera Ecosys m5526cdw over the network. Printing stopped working (worked with this version before).

Now when I try to start a print job cups ends with a message "Der Druckauftrag wurde nicht angenommen.". BUT:

Now cups connects to the printer (LED on printer lights up as long as the pc is on) but nothing is printed. When I reboot, the LED stops to blink as long as the system is not completely booted, then the connection starts again.

After running cupsctl --debug-logging, error_log grows by around 30 megabytes per hour.

#1033625#10
Date:
2023-03-28 22:20:57 UTC
From:
To:
Thank you for your report, Johan.

Please provude outputs for

  lpstat -l -e
  lpstat -t
  avahi-browse -rt _ipp._tcp
  avahi-browse -rt _uscan._tcp
  driverless
  lpoptions -p PRINTER_NAME

avahi-browse is in the avahi-utils package.

Regards,

Brian.

#1033625#15
Date:
2023-03-29 09:36:50 UTC
From:
To:
root@stockholm:~#  lpstat -l -e
Kyocera_ECOSYS_M5526cdw network none
ipps://Kyocera%20ECOSYS%20M5526cdw._ipps._tcp.local/
root@stockholm:~#   lpstat -t
Zeitplandienst läuft
keine systemvoreingestellten Ziele
Gerät für Kyocera_ECOSYS_M5526cdw: implicitclass://Kyocera_ECOSYS_M5526cdw/
Kyocera_ECOSYS_M5526cdw akzeptiert Anfragen seit Mi 29 Mär 2023 11:33:55
CEST
Drucker Kyocera_ECOSYS_M5526cdw druckt jetzt Kyocera_ECOSYS_M5526cdw-10.
Aktiviert seit Mi 29 Mär 2023 11:33:55 CEST
Sleeping...
Kyocera_ECOSYS_M5526cdw-10 anonymous         1024   Di 28 Mär 2023 21:05:38
CEST
Kyocera_ECOSYS_M5526cdw-11 anonymous         1024   Di 28 Mär 2023 21:08:34
CEST
root@stockholm:~#  avahi-browse -rt _ipp._tcp
+ wlp3s0 IPv6 Kyocera ECOSYS M5526cdw                       Internet
Printer     local
+ wlp3s0 IPv4 Kyocera ECOSYS M5526cdw                       Internet
Printer     local
= wlp3s0 IPv4 Kyocera ECOSYS M5526cdw                       Internet
Printer     local
   hostname = [KM3D81DC.local]
   address = [192.168.178.5]
   port = [631]
   txt = ["TLS=1.2" "air=none" "mopria-certified=2.0" "rp=ipp/print"
"priority=48" "rfo=ipp/faxout" "kind=document,envelope" "PaperMax=legal-A4"
"URF=CP255,DM4,IFU0,IS19-20,OB1-10,PQ4,RS600,SRGB24,V1.4,W8"
"UUID=4509a320-0062-00a6-0101-0025074fc6da" "Color=T" "Scan=T" "Fax=T"
"Duplex=T" "adminurl=https://KM3D81DC.local/airprint" "note="
"usb_MDL=Kyocera ECOSYS M5526cdw (KPDL)" "usb_MFG=Kyocera" "qtotal=1"
"ty=Kyocera ECOSYS M5526cdw" "product=(ECOSYS M5526cdw)"
"pdl=image/pwg-raster,application/octet-stream,application/pdf,image/tiff,image/jpeg,image/urf,application/postscript,application/vnd.hp-PCL,application/vnd.hp-PCLXL,application/vnd.xpsdocument"
"txtvers=1"]
= wlp3s0 IPv6 Kyocera ECOSYS M5526cdw                       Internet
Printer     local
   hostname = [KM3D81DC.local]
   address = [192.168.178.5]
   port = [631]
   txt = ["TLS=1.2" "air=none" "mopria-certified=2.0" "rp=ipp/print"
"priority=48" "rfo=ipp/faxout" "kind=document,envelope" "PaperMax=legal-A4"
"URF=CP255,DM4,IFU0,IS19-20,OB1-10,PQ4,RS600,SRGB24,V1.4,W8"
"UUID=4509a320-0062-00a6-0101-0025074fc6da" "Color=T" "Scan=T" "Fax=T"
"Duplex=T" "adminurl=https://KM3D81DC.local/airprint" "note="
"usb_MDL=Kyocera ECOSYS M5526cdw (KPDL)" "usb_MFG=Kyocera" "qtotal=1"
"ty=Kyocera ECOSYS M5526cdw" "product=(ECOSYS M5526cdw)"
"pdl=image/pwg-raster,application/octet-stream,application/pdf,image/tiff,image/jpeg,image/urf,application/postscript,application/vnd.hp-PCL,application/vnd.hp-PCLXL,application/vnd.xpsdocument"
"txtvers=1"]
root@stockholm:~# avahi-browse -rt _uscan._tcp
+ wlp3s0 IPv6 Kyocera ECOSYS M5526cdw                       _uscan._tcp
     local
+ wlp3s0 IPv4 Kyocera ECOSYS M5526cdw                       _uscan._tcp
     local
= wlp3s0 IPv6 Kyocera ECOSYS M5526cdw                       _uscan._tcp
     local
   hostname = [KM3D81DC.local]
   address = [192.168.178.5]
   port = [9095]
   txt = ["mopria-certified-scan=1.3" "usb_MFG=Kyocera" "duplex=T"
"is=platen,adf" "cs=color,grayscale,binary"
"UUID=4509a320-0062-00a6-0101-0025074fc6da"
"pdl=application/pdf,image/jpeg" "note=" "ty=Kyocera ECOSYS M5526cdw"
"rs=eSCL" "representation=
https://KM3D81DC.local/printer-icon/machine_128.png" "adminurl=
https://KM3D81DC.local/airprint" "vers=2.63" "txtvers=1"]
= wlp3s0 IPv4 Kyocera ECOSYS M5526cdw                       _uscan._tcp
     local
   hostname = [KM3D81DC.local]
   address = [192.168.178.5]
   port = [9095]
   txt = ["mopria-certified-scan=1.3" "usb_MFG=Kyocera" "duplex=T"
"is=platen,adf" "cs=color,grayscale,binary"
"UUID=4509a320-0062-00a6-0101-0025074fc6da"
"pdl=application/pdf,image/jpeg" "note=" "ty=Kyocera ECOSYS M5526cdw"
"rs=eSCL" "representation=
https://KM3D81DC.local/printer-icon/machine_128.png" "adminurl=
https://KM3D81DC.local/airprint" "vers=2.63" "txtvers=1"]
root@stockholm:~# driverless
ipps://Kyocera%20ECOSYS%20M5526cdw._ipps._tcp.local/
root@stockholm:~# lpoptions -p Kyocera_ECOSYS_M5526cdw
device-uri=ipps://Kyocera%20ECOSYS%20M5526cdw._ipps._tcp.local/
printer-info='Kyocera ECOSYS M5526cdw' printer-location
printer-make-and-model='Kyocera Kyocera ECOSYS M5526cdw (KPDL)'
printer-type=83890204

#1033625#20
Date:
2023-03-29 09:42:45 UTC
From:
To:

#1033625#25
Date:
2023-03-29 09:45:34 UTC
From:
To:

#1033625#30
Date:
2023-03-29 11:23:18 UTC
From:
To:
Printiing should take place with

  lp -d Kyocera_ECOSYS_M5526cdw /etc/nsswitch.conf

Does it?

A print queue can also be manually set up by

  lpadmin -p M5526cdw -v "ipps://Kyocera%20ECOSYS%20M5526cdw._ipps._tcp.local/" -E -m everywhere

Test printing with

  lp -d M5526cdw /etc/nsswitch.conf

Cheers,

Brian.

#1033625#35
Date:
2023-03-30 07:55:24 UTC
From:
To:
Am Mi., 29. März 2023 um 13:23 Uhr schrieb Brian Potkin <
claremont102@gmail.com>:

No. Same problem.

This worked. This works with a job pending in Kyocera_ECOSYS_M5526cdw as
well.

Printing from a different device works as well
while Kyocera_ECOSYS_M5526cdw has a pending job and keeps an open
connection to the printer.

Cheers,

Brian, thank you. Debugging such a problem is fun as long as someone guides
you/me.

#1033625#40
Date:
2023-03-30 08:09:44 UTC
From:
To:
I found #883554 when googling "implicitclass cups". That's a difference
between the two print queues:

One is
 ipps://Kyocera%20ECOSYS%20M5526cdw._ipps._tcp.local/ (works)
and the other is
 implicitclass://Kyocera_ECOSYS_M5526cdw/ (the not printing but connecting
one, btw never created or configured manually).

#1033625#45
Date:
2023-03-30 12:10:53 UTC
From:
To:
[...[

You appear happy with the outcome, John, so I am closing the report.

Cheers,

Brian.

#1033625#50
Date:
2023-03-30 13:54:09 UTC
From:
To:
Hi Brian,

thanks for your help. But isn't it still a bug that cups is creating a
printer(-queue) that not only does not work, but also when using it opens
connections to the printer for hours? I think about the situation, that you
have many bookworm clients in the network, this could amount to a denial of
service.

I deleted the not working Kyocera_ECOSYS_M5526cdw but cups keeps recreating
it when I connect to the corresponding network.

Johan

Am Do., 30. März 2023 um 14:12 Uhr schrieb Debian Bug Tracking System <
owner@bugs.debian.org>:

#1033625#55
Date:
2023-03-30 17:23:15 UTC
From:
To:
The auto-creation of the queue (the one shown by 'lpstat -t' and that keeps
coming back after deletion) is done by cups-browsed, not by CUPS. Let's try
this:

Purge cups-browsed with

 apt purge cups-browsed

Then do

 rm  rm /var/cache/cups/*

(the files will be regenerated) and restart cups.

 systemctl restart cups

'lstsat -l -e' should show a printer name. Can it be used to print? 'lpstat -t'
should not have implicitclass and should show the manually set up printer,

Cheers,

Brian.

#1033625#60
Date:
2023-04-08 06:53:56 UTC
From:
To:
So this is a bug in cups-browsed?

Am Do., 30. März 2023 um 19:23 Uhr schrieb Brian Potkin <
claremont102@gmail.com>: