printers no longer found after re-connecting network

Bug #965124 reported by Adrian Bunk
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cups (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I am moving a laptop between different places with wired connections to the same network and ran into an annoying regression in precise, that is even reproducible when re-connecting at the same place.

Test case:
- plug out network cable
- wait 2 minutes
- plug network cable back in
- wait a few minutes

Expected result:
printers are visible in applications

Actual result:
printers are not visible in applications

/var/log/cups/error_log contains a funny error message:
CUPS-Get-Printers failed: Success

I found https://bugzilla.redhat.com/show_bug.cgi?id=799595 and the patch from there (attached, already applied upstream as revision 10321) fixes the problem for me.

Revision history for this message
Adrian Bunk (bunk) wrote :
Revision history for this message
Adrian Bunk (bunk) wrote :

Two things I forgot to mention:

The problem occurs when the local computer pulls the list of printers from a remote CUPS server, when the printers are configured at the local CUPS there is likely no problem.

Workaround (without the patch):
service cups restart

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

Committed patch to Debian's BZR repository of CUPS. It will be applied to the next CUPS package in Ubuntu Precise.

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

This bug was fixed in the package cups - 1.5.2-9

---------------
cups (1.5.2-9) unstable; urgency=low

  [ Till Kamppeter ]
  * debian/control: In the Recommends: section of the "cups" binary package
    replaced "cups-driver-gutenprint" by "printer-driver-gutenprint" to
    reflect the new name (LP: #966217).
  * debian/patches/cups-polld-reconnect.patch: The CUPS polling daemon did not
    reinitialize its connection to the remote server on errors in all cases
    (LP: #965124, CUPS STR #4031, Red Hat bug #799595).
  * debian/patches/commandtops-make-robust-against-broken-postscript.patch:
    Updated patch to the upstream state of commandtops.
  * debian/patches/ppd-cache-fix-crash.patch: Added NULL check to fix crash
    of cupsd on corrupted data in /var/cache/cups/ (LP: #957023, CUPS STR
    #4049).
  * debian/patches/cups-avahi.patch: Refreshed with quilt.

  [ Martin Pitt ]
  * debian/cups.postinst: Don't fall over if /etc/apparmor.d/local exists and
    is not a directory. (LP: #962226)
 -- Martin Pitt <email address hidden> Fri, 30 Mar 2012 08:44:35 +0200

Changed in cups (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.