Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

51 views
Skip to first unread message

Johan Kröckel

unread,
Mar 28, 2023, 5:10:05 PM3/28/23
to
Package: cups
Version: 2.4.2-2
Severity: important
X-Debbugs-Cc: johan.k...@gmail.com

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.

-- System Information:
Debian Release: 12.0
APT prefers testing-security
APT policy: (500, 'testing-security'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-6-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages cups depends on:
ii cups-client 2.4.2-2
ii cups-common 2.4.2-2
ii cups-core-drivers 2.4.2-2
ii cups-daemon 2.4.2-2
ii cups-filters 1.28.17-2
ii cups-ppdc 2.4.2-2
ii cups-server-common 2.4.2-2
ii debconf [debconf-2.0] 1.5.82
ii ghostscript 10.0.0~dfsg-9+b1
ii libavahi-client3 0.8-9
ii libavahi-common3 0.8-9
ii libc6 2.36-8
ii libcups2 2.4.2-2
ii libgcc-s1 12.2.0-14
ii libstdc++6 12.2.0-14
ii libusb-1.0-0 2:1.0.26-1
ii poppler-utils 22.12.0-2+b1
ii procps 2:4.0.2-3

Versions of packages cups recommends:
ii avahi-daemon 0.8-9
ii colord 1.4.6-2.2

Versions of packages cups suggests:
pn cups-bsd <none>
pn cups-pdf <none>
pn foomatic-db-compressed-ppds | foomatic-db <none>
pn smbclient <none>
ii udev 252.6-1

-- debconf information:
cupsys/backend: lpd, socket, usb, snmp, dnssd
cupsys/raw-print: true

Brian Potkin

unread,
Mar 28, 2023, 6:40:04 PM3/28/23
to
On Tue 28 Mar 2023 at 23:01:47 +0200, Johan Kröckel wrote:

> Package: cups
> Version: 2.4.2-2
> Severity: important
> X-Debbugs-Cc: johan.k...@gmail.com
>
> 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.

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.

Johan Kröckel

unread,
Mar 29, 2023, 5:40:04 AM3/29/23
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

Brian Potkin

unread,
Mar 29, 2023, 7:30:04 AM3/29/23
to
On Wed 29 Mar 2023 at 11:36:50 +0200, Johan Kröckel wrote:

> root@stockholm:~# lpstat -l -e
> Kyocera_ECOSYS_M5526cdw network none
> ipps://Kyocera%20ECOSYS%20M5526cdw._ipps._tcp.local/

Printiing should take place with

lp -d Kyocera_ECOSYS_M5526cdw /etc/nsswitch.conf

Does it?

> root@stockholm:~# driverless
> ipps://Kyocera%20ECOSYS%20M5526cdw._ipps._tcp.local/

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.

Johan Kröckel

unread,
Mar 30, 2023, 4:00:04 AM3/30/23
to
Am Mi., 29. März 2023 um 13:23 Uhr schrieb Brian Potkin <clarem...@gmail.com>:
On Wed 29 Mar 2023 at 11:36:50 +0200, Johan Kröckel wrote:

> root@stockholm:~#  lpstat -l -e
> Kyocera_ECOSYS_M5526cdw network none lp -d M5526cdw /etc/nsswitch.conf

 > ipps://Kyocera%20ECOSYS%20M5526cdw._ipps._tcp.local/

Printiing should take place with

  lp -d Kyocera_ECOSYS_M5526cdw /etc/nsswitch.conf

Does it?

No. Same problem.
 
> root@stockholm:~# driverless
> ipps://Kyocera%20ECOSYS%20M5526cdw._ipps._tcp.local/

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

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.

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

Johan Kröckel

unread,
Mar 30, 2023, 4:20:05 AM3/30/23
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).

Johan Kröckel

unread,
Mar 30, 2023, 10:00:05 AM3/30/23
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 <ow...@bugs.debian.org>:
This is an automatic notification regarding your Bug report
which was filed against the cups package:

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

It has been closed by Brian Potkin <clarem...@gmail.com>.

Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact Brian Potkin <clarem...@gmail.com> by
replying to this email.


--
1033625: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1033625
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



---------- Forwarded message ----------
From: Brian Potkin <clarem...@gmail.com>
To: 103362...@bugs.debian.org
Cc: 
Bcc: 
Date: Thu, 30 Mar 2023 13:10:53 +0100
Subject: Re: Bug#1033625:

On Thu 30 Mar 2023 at 09:55:24 +0200, Johan Kröckel wrote:

> Am Mi., 29. März 2023 um 13:23 Uhr schrieb Brian Potkin <
> clarem...@gmail.com>:

[...[


> > 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
> >
>
> 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.
> >
>
> Brian, thank you. Debugging such a problem is fun as long as someone guides
> you/me.

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

Cheers,

Brian.

Brian Potkin

unread,
Mar 30, 2023, 1:30:05 PM3/30/23
to
On Thu 30 Mar 2023 at 15:54:09 +0200, Johan Kröckel wrote:

> 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.

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.

Johan Kröckel

unread,
Apr 8, 2023, 3:00:05 AM4/8/23
to
So this is a bug in cups-browsed?
0 new messages