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

Bug#848223: cups-browsed: IPP printer disappears after logrotate is run



Package: cups-browsed
Version: 1.13.0-2
Severity: important
Tags: upstream



cups-browsed.conf has "CreateIPPPrinterQueues AppleRaster" uncommented
to allow discovery of an Airprint-enabled ENVY 4500. The service was
restarted at about 00:05 this morning and the printer was shown in the
output of 'lpstat -a'.

Nine hours later 'systemctl status cups cups-browsed.service' has

 root@stretch:~# systemctl status cups cups-browsed.service
•  cups.service - CUPS Scheduler
    Loaded: loaded (/lib/systemd/system/cups.service; enabled; vendor preset: enabled)
    Active: active (running) since Thu 2016-12-15 07:35:03 GMT; 1h 52min ago
      Docs: man:cupsd(8)
  Main PID: 31078 (cupsd)
     Tasks: 3 (limit: 4915)
    CGroup: /system.slice/cups.service
            ├─31078 /usr/sbin/cupsd -l
            ├─31113 /usr/lib/cups/notifier/dbus dbus://
            └─31116 /usr/lib/cups/notifier/dbus dbus://

 Dec 15 07:35:03 stretch systemd[1]: Started CUPS Scheduler.

•  cups-browsed.service - Make remote CUPS printers available locally
    Loaded: loaded (/lib/systemd/system/cups-browsed.service; enabled; vendor preset: enabled)
    Active: active (running) since Thu 2016-12-15 07:35:03 GMT; 1h 52min ago
  Main PID: 31079 (cups-browsed)
     Tasks: 3 (limit: 4915)
    CGroup: /system.slice/cups-browsed.service
            └─31079 /usr/sbin/cups-browsed

 Dec 15 07:35:03 stretch systemd[1]: Started Make remote CUPS printers available locally.

logrotate was run at 07:35:03 amd the IPP printer is no longer in the
list of available print queues.

>From the attached error_log:

 I [15/Dec/2016:07:40:04 +0000] Expiring subscriptions...
 D [15/Dec/2016:07:40:04 +0000] Calling FindDeviceById(cups-HP-ENVY-4500-series)
 D [15/Dec/2016:07:40:04 +0000] Calling DeleteDevice(/org/freedesktop/ColorManager/devices/cups_HP_ENVY_4500_series)
 I [15/Dec/2016:07:40:04 +0000] Printer "HP-ENVY-4500-series" deleted by "root".
 D [15/Dec/2016:07:40:04 +0000] cupsdMarkDirty(----S)
 D [15/Dec/2016:07:40:04 +0000] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Active clients and dirty files"
 D [15/Dec/2016:07:40:04 +0000] cupsdMarkDirty(P----)
 D [15/Dec/2016:07:40:04 +0000] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Active clients and dirty files"
 D [15/Dec/2016:07:40:04 +0000] cupsdDeregisterPrinter(p=0x81270e28(HP-ENVY-4500-series), removeit=1)

[...]

 D [15/Dec/2016:07:40:04 +0000] [Notifier] PrinterDeleted

At the end of the attached cups-browsed_log:

 Thu Dec 15 07:35:05 2016 Matching printer "HP-ENVY-4500-series" with properties Host = "envy4500.local", Port = 631, Service Name = "HP ENVY 4500 series [FAFAC2]", Domain = "local" with the BrowseFilter lines in cups-browsed.conf
 Thu Dec 15 07:35:05 2016 All BrowseFilter lines matched or skipped, accepting printer HP-ENVY-4500-series
 Thu Dec 15 07:35:05 2016 checking queues in 299s
 Thu Dec 15 07:40:04 2016 Processing printer list ...
 Thu Dec 15 07:40:04 2016 No remote printer named hp-envy-4500-series available, removing entry from previous session.
 Thu Dec 15 07:40:04 2016 Removing entry hp-envy-4500-series and its CUPS queue.
 Thu Dec 15 07:40:04 2016 Recording printer options for hp-envy-4500-series to /var/cache/cups/cups-browsed-options-hp-envy-4500-series
 Thu Dec 15 07:40:04 2016 Could not determine system default printer!
 Thu Dec 15 07:40:04 2016 listening
 Thu Dec 15 07:40:04 2016 [CUPS Notification] Printer deleted: Printer "HP-ENVY-4500-series" deleted by "root".

The same behaviour can be reproduced with the commands:

  logrotate -f /etc/logrotate.d/cups-daemon
or
  systemctl restart cups cups-browsed.service
or
  systemctl restart cups ; sleep 3 ; systemctl restart cups-browsed.service

-- 
Brian.

Attachment: error_log.gz
Description: application/gzip

Attachment: cups-browsed_log.gz
Description: application/gzip


Reply to: