cups-browsed generates constant and significant network traffic

Bug #1560099 reported by gpothier
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cups-filters (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Ubuntu freshly updated to 16.04. Whenever cups-browsed is running, it generates around 1 to 1.5 Mbps of incoming traffic, in regular spikes of 2.5Mbps. The cups log shows messages like this every few seconds:

E [21/Mar/2016:13:01:22 -0300] [Client 2130] Returning IPP client-error-bad-request for CUPS-Add-Modify-Printer (ipp://localhost:631/printers/DTsPrinters) from localhost
E [21/Mar/2016:13:01:22 -0300] [Client 2130] Returning IPP client-error-bad-request for CUPS-Add-Modify-Printer (ipp://localhost:631/printers/LabelPrinters) from localhost
E [21/Mar/2016:13:01:22 -0300] [Client 2130] Returning IPP client-error-bad-request for CUPS-Add-Modify-Printer (ipp://localhost:631/printers/ZT220) from localhost
E [21/Mar/2016:13:01:23 -0300] [Client 2130] Returning IPP client-error-bad-request for CUPS-Add-Modify-Printer (ipp://localhost:631/printers/Zebra-GK420t) from localhost

These are al remote printers that are on different Ubuntu 14.04 servers.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: cups-browsed 1.8.2-2ubuntu3
ProcVersionSignature: Ubuntu 4.4.0-14.30-generic 4.4.5
Uname: Linux 4.4.0-14-generic x86_64
ApportVersion: 2.20-0ubuntu3
Architecture: amd64
CurrentDesktop: GNOME
Date: Mon Mar 21 12:54:49 2016
InstallationDate: Installed on 2015-01-23 (422 days ago)
InstallationMedia: Ubuntu-GNOME 14.04.1 LTS "Trusty Tahr" - Release amd64 (20140722.2)
MachineType: LENOVO 20266
Papersize: letter
PpdFiles:
 Error: command ['fgrep', '-H', '*NickName', '/etc/cups/ppd/Star_TSP143_.ppd', '/etc/cups/ppd/Brother_MFC-6890CDW.ppd', '/etc/cups/ppd/HP_LaserJet_CP_1025nw.ppd', '/etc/cups/ppd/ZTC-ZT230-200dpi-ZPL.ppd', '/etc/cups/ppd/Epson_T1110.ppd'] failed with exit code 2: grep: /etc/cups/ppd/Star_TSP143_.ppd: Permission denied
 grep: /etc/cups/ppd/Brother_MFC-6890CDW.ppd: Permission denied
 grep: /etc/cups/ppd/HP_LaserJet_CP_1025nw.ppd: Permission denied
 grep: /etc/cups/ppd/ZTC-ZT230-200dpi-ZPL.ppd: Permission denied
 grep: /etc/cups/ppd/Epson_T1110.ppd: Permission denied
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.4.0-14-generic.efi.signed root=UUID=eecad38d-4fff-462c-92bc-357fa12e5515 ro quiet splash vt.handoff=7
SourcePackage: cups-filters
UpgradeStatus: Upgraded to xenial on 2016-03-21 (0 days ago)
dmi.bios.date: 03/25/2014
dmi.bios.vendor: LENOVO
dmi.bios.version: 76CN35WW
dmi.board.asset.tag: No Asset Tag
dmi.board.name: Yoga2
dmi.board.vendor: LENOVO
dmi.board.version: 31900058STD
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Lenovo Yoga 2 Pro
dmi.modalias: dmi:bvnLENOVO:bvr76CN35WW:bd03/25/2014:svnLENOVO:pn20266:pvrLenovoYoga2Pro:rvnLENOVO:rnYoga2:rvr31900058STD:cvnLENOVO:ct10:cvrLenovoYoga2Pro:
dmi.product.name: 20266
dmi.product.version: Lenovo Yoga 2 Pro
dmi.sys.vendor: LENOVO

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

Please follow the instructions in the section "CUPS error_log" on https://wiki.ubuntu.com/DebuggingPrintingProblems. Thanks.

Changed in cups-filters (Ubuntu):
status: New → Incomplete
Revision history for this message
gpothier (gpothier) wrote :

Here is cups' error_log after enabling debugging.

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

Thank you for the error_log.

Can you please do the following now:

Open a terminal window and there run the following commands:

sudo systemctl stop cups-browsed
sudo /usr/sbin/cups-browsed --debug 2>&1 | tee log.txt

Let this run for some time and check the error_log of CUPS whether the problem still persists.

Stop the above command with Ctrl + C and attach log.txt to this bug report.

Revision history for this message
gpothier (gpothier) wrote :

Here is the required log file. Here is what happens when I stopped cups-browsed:
1. Network activity spikes cease immediately
2. Messages in cups' error log continue for a while (20-30s), but then stop.

After starting cups-browsed again, the spikes start again immediately.

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

Thanks for the log file.

Does cups-browsed actually create local print queues pointing to your remote printers for you?

With cups-browsed running, execute the command

lpstat -v

in a terminal window and post the result here.

Revision history for this message
gpothier (gpothier) wrote :

Below is the output of lpstat. Also worth noting: the network traffic tends to decrease as time passes. Right after boot I see traffic peaks every 4-5s, now after 2.5 hours, the peaks are every 10-11s.

gpothier@tadzim3:~$ lpstat -v
device for Brother_HL-2270DW: ipp://cali00.local:631/printers/Brother_HL-2270DW
device for Brother_MFC-6890CDW: socket://192.168.5.100:9100
device for DTsPrinters: ipp://cali00.local:631/classes/DTsPrinters
device for Epson_T1110: lpd://ps-epson-t1110/U1
device for HP_LaserJet_CP_1025nw: hp:/net/HP_LaserJet_CP_1025nw?ip=192.168.50.107
device for LabelPrinters: ipp://cali00.local:631/classes/LabelPrinters
device for Officejet_Editorial: ipps://cali-sys.local:631/printers/Officejet_Editorial
device for Officejet_Recepcion: ipps://cali-sys.local:631/printers/Officejet_Recepcion
device for Star_TSP143_: usb://Star/TSP143%20(STR_T-001)
device for Zebra-GK420t: ipp://cali00.local:631/printers/Zebra-GK420t
device for ZT220: ipp://cali00.local:631/printers/ZT220
device for ZTC-ZT230-200dpi-ZPL: usb://Zebra%20Technologies/ZTC%20ZT230-200dpi%20ZPL?serial=JTM027281

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

Fixed upstream in cups-filters 1.8.3. The package will appear in Xenial soon. As we are in Final beta freeze it is possible that the package will appear only on Thursday after the Final Beta release.

Changed in cups-filters (Ubuntu):
status: Incomplete → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cups-filters - 1.8.3-2ubuntu1

---------------
cups-filters (1.8.3-2ubuntu1) xenial; urgency=medium

  * Merge from Debian unstable. Remaining changes:
     - Added the binary packages cups-filters-lsb and cups-filters-invalid-mta
       to temporarily replace the dropped LSB support in Debian/Ubuntu which
       we need for distribution-independent printer driver packages. This
       will be removed as soon as a new concept for distribution-independent
       printer driver packages is in place.
     - Added build dependency on python3-all-dev for the cups-filters-lsb
       binary package.

cups-filters (1.8.3-2) unstable; urgency=medium

  [ Till Kamppeter ]
  * Install the new /usr/share/cups/mime/cupsfilters-ghostscript.convs file

cups-filters (1.8.3-1) unstable; urgency=medium

  * New upstream release
   - cups-browsed: When creating or modifying a local print queue
     set the printer-is-shared bit to false in a separate IPP
     request as this operation errors on queues directly pointing
     to remote CUPS queues with the IPP backend. This way we can
     ignore the error and assure that all other settings are
     applied (LP: #1560099)

  * Refresh debian/copyright to reflect the gstoraster convs file split

cups-filters (1.8.2-3) unstable; urgency=medium

  * Bump Standards-Version to 3.9.7 without changes needed
  * Drop superfluous liblouis-data dependency (Closes: #816304)

 -- Till Kamppeter <email address hidden> Fri, 25 Mar 2016 18:20:06 -0300

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.

Other bug subscribers

Remote bug watches

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