[cups] CUPS Disaster: printer queues going AOL or becoming disfunctional
Robert Heller
heller at deepsoft.com
Fri Mar 20 10:20:55 PDT 2015
OK, I have pretty much isolated this problem. *Merely* restarting the cups
daemon causes the printers to become disfunctional. Deleting and recreating
the queues is the only appearent fix. I have turned on debug level logging,
but I am not sure what I should be looking for to find the problem.
Here is the log:
I [20/Mar/2015:13:02:23 -0400] Scheduler shutting down normally.
D [20/Mar/2015:13:02:23 -0400] Discarding unused server-stopped event...
D [20/Mar/2015:13:02:23 -0400] cupsdDeregisterPrinter(p=0x7f2aa68545b0(BlackandWhiteLaserjet), removeit=1)
D [20/Mar/2015:13:02:23 -0400] cupsdDeregisterPrinter(p=0x7f2aa6888bd0(BrotherColorLaser), removeit=1)
D [20/Mar/2015:13:02:23 -0400] cupsdDeregisterPrinter(p=0x7f2aa6849980(Officejet_Color), removeit=1)
I [20/Mar/2015:13:02:23 -0400] Saving job.cache...
D [20/Mar/2015:13:02:23 -0400] [Job 2323] Unloading...
D [20/Mar/2015:13:02:23 -0400] [Job 2324] Unloading...
I [20/Mar/2015:13:02:24 -0400] Listening to 0.0.0.0:631 (IPv4)
I [20/Mar/2015:13:02:24 -0400] Listening to :::631 (IPv6)
I [20/Mar/2015:13:02:24 -0400] Listening to /var/run/cups/cups.sock (Domain)
I [20/Mar/2015:13:02:24 -0400] Remote access is enabled.
D [20/Mar/2015:13:02:24 -0400] Added auto ServerAlias newserver.wendellfreelibrary.org
D [20/Mar/2015:13:02:24 -0400] Added auto ServerAlias newserver
I [20/Mar/2015:13:02:24 -0400] Loaded configuration file "/etc/cups/cupsd.conf"
D [20/Mar/2015:13:02:24 -0400] Repairing access permissions of "/etc/cups/classes.conf"
I [20/Mar/2015:13:02:24 -0400] Using default TempDir of /var/spool/cups/tmp...
I [20/Mar/2015:13:02:24 -0400] Configured for up to 100 clients.
I [20/Mar/2015:13:02:24 -0400] Allowing up to 100 client connections per host.
I [20/Mar/2015:13:02:24 -0400] Using policy "default" as the default!
I [20/Mar/2015:13:02:24 -0400] Full reload is required.
I [20/Mar/2015:13:02:24 -0400] Loaded MIME database from "/usr/share/cups/mime" and "/etc/cups": 35 types, 41 filters...
D [20/Mar/2015:13:02:24 -0400] Loading printer BlackandWhiteLaserjet...
D [20/Mar/2015:13:02:24 -0400] load_ppd: Loading /var/cache/cups/BlackandWhiteLaserjet.ipp...
D [20/Mar/2015:13:02:24 -0400] cupsdRegisterPrinter(p=0x7f10bf57e5b0(BlackandWhiteLaserjet))
D [20/Mar/2015:13:02:24 -0400] Loading printer BrotherColorLaser...
D [20/Mar/2015:13:02:24 -0400] load_ppd: Loading /var/cache/cups/BrotherColorLaser.ipp...
D [20/Mar/2015:13:02:24 -0400] cupsdRegisterPrinter(p=0x7f10bf571850(BrotherColorLaser))
D [20/Mar/2015:13:02:24 -0400] Loading printer Officejet_Color...
D [20/Mar/2015:13:02:24 -0400] cupsdMarkDirty(P-----)
D [20/Mar/2015:13:02:24 -0400] cupsdSetBusyState: Dirty files
D [20/Mar/2015:13:02:24 -0400] load_ppd: Loading /etc/cups/ppd/Officejet_Color.ppd...
D [20/Mar/2015:13:02:24 -0400] cupsdRegisterPrinter(p=0x7f10bf573980(Officejet_Color))
I [20/Mar/2015:13:02:24 -0400] Loading job cache file "/var/cache/cups/job.cache"...
D [20/Mar/2015:13:02:24 -0400] [Job 2323] Loading from cache...
D [20/Mar/2015:13:02:24 -0400] [Job 2324] Loading from cache...
I [20/Mar/2015:13:02:24 -0400] Full reload complete.
I [20/Mar/2015:13:02:24 -0400] Cleaning out old temporary files in "/var/spool/cups/tmp"...
E [20/Mar/2015:13:02:24 -0400] Unable to remove temporary file "/var/spool/cups/tmp/.fontconfig" - Is a directory
I [20/Mar/2015:13:02:24 -0400] Listening to 0.0.0.0:631 on fd 7...
I [20/Mar/2015:13:02:24 -0400] Listening to :::631 on fd 8...
I [20/Mar/2015:13:02:24 -0400] Listening to /var/run/cups/cups.sock on fd 9...
I [20/Mar/2015:13:02:24 -0400] Resuming new connection processing...
D [20/Mar/2015:13:02:24 -0400] cupsdRegisterPrinter(p=0x7f10bf57e5b0(BlackandWhiteLaserjet))
D [20/Mar/2015:13:02:24 -0400] cupsdRegisterPrinter(p=0x7f10bf571850(BrotherColorLaser))
D [20/Mar/2015:13:02:24 -0400] cupsdRegisterPrinter(p=0x7f10bf573980(Officejet_Color))
D [20/Mar/2015:13:02:24 -0400] Discarding unused server-started event...
D [20/Mar/2015:13:02:25 -0400] Report: clients=0
D [20/Mar/2015:13:02:25 -0400] Report: jobs=2
D [20/Mar/2015:13:02:25 -0400] Report: jobs-active=0
D [20/Mar/2015:13:02:25 -0400] Report: printers=3
D [20/Mar/2015:13:02:25 -0400] Report: printers-implicit=0
D [20/Mar/2015:13:02:25 -0400] Report: stringpool-string-count=390
D [20/Mar/2015:13:02:25 -0400] Report: stringpool-alloc-bytes=7072
D [20/Mar/2015:13:02:25 -0400] Report: stringpool-total-bytes=8816
I [20/Mar/2015:13:02:55 -0400] Saving printers.conf...
E [20/Mar/2015:13:02:55 -0400] Unable to finalize "/etc/cups/printers.conf": Permission denied
D [20/Mar/2015:13:02:55 -0400] cupsdSetBusyState: Not busy
I don't know what the 'Unable to finalize "/etc/cups/printers.conf":
Permission denied' is all about. The permissions are:
drwxr-xr-x. root lp system_u:object_r:cupsd_etc_t:s0 /etc/cups/
/etc/cups:
-rw-r-----. root lp unconfined_u:object_r:cupsd_rw_etc_t:s0 classes.conf
-rw-------. root lp unconfined_u:object_r:cupsd_rw_etc_t:s0 classes.conf.O
-rw-r--r--. root lp system_u:object_r:etc_t:s0 client.conf
-rw-r-----. root lp unconfined_u:object_r:cupsd_etc_t:s0 cupsd.conf
-rw-r-----. root lp unconfined_u:object_r:cupsd_etc_t:s0 cupsd.conf~
-rw-r-----. root lp system_u:object_r:cupsd_rw_etc_t:s0 cupsd.conf.default
drwxr-xr-x. root root system_u:object_r:cupsd_interface_t:s0 interfaces
-rw-r--r--. root lp system_u:object_r:cupsd_rw_etc_t:s0 lpoptions
-rw-r--r--. root root system_u:object_r:cupsd_etc_t:s0 paps.convs
drwxr-xr-x. root lp system_u:object_r:cupsd_rw_etc_t:s0 ppd
-rw-------. root lp unconfined_u:object_r:cupsd_etc_t:s0 printers.conf
-rw-------. root lp unconfined_u:object_r:cupsd_rw_etc_t:s0 printers.conf.N
-rw-r--r--. root lp system_u:object_r:cupsd_etc_t:s0 snmp.conf
drwx------. root lp system_u:object_r:cupsd_etc_t:s0 ssl
-rw-r--r--. root lp system_u:object_r:cupsd_rw_etc_t:s0 subscriptions.conf
/etc/cups/interfaces:
/etc/cups/ppd:
-rw-r--r--. root lp unconfined_u:object_r:cupsd_rw_etc_t:s0 BlackandWhiteLaserjet.ppd
-rw-r--r--. root lp unconfined_u:object_r:cupsd_rw_etc_t:s0 BrotherColorLaser.ppd
-rw-r--r--. root root unconfined_u:object_r:cupsd_rw_etc_t:s0 MFC9970CDW.ppd
-rw-r--r--. root root unconfined_u:object_r:cupsd_rw_etc_t:s0 Officejet_Pro_L7700_fax.ppd
/etc/cups/ssl:
-rw-------. root lp system_u:object_r:cupsd_rw_etc_t:s0 server.crt
-rw-------. root lp system_u:object_r:cupsd_rw_etc_t:s0 server.key
We do have an 'extra' printer queue, for a retired printer (that is somewhat
disfunctional, but kept as an emergency fill in).
Is there anything else I should be looking at?
It is anoying to have to re-create the print queues whenever I do an update
(that might restart the cups daemon) or simply reboot the server for whatever
reason, since a server reboot implies a restart of the cups daemon.
The system is CentOS 6.6 (up to date), cups-1.4.2-67.el6.x86_64,
cups-libs-1.4.2-67.el6.x86_64, and cups-pk-helper-0.0.4-12.el6.x86_64.
At Sun, 29 Jun 2014 19:04:56 -0400 Robert Heller <heller at deepsoft.com> wrote:
>
> Software versions:
> 1) Host Server: CentOS 6.5 (up to date), cups-1.4.2-50.el6_4.5.x86_64
> 2) VM server: Ubuntu 14.04 (up to date), cups 1.7.2-0ubuntu1 amd64
> 3) Diskless workstations: Ubuntu 14.04 (up to date), cups 1.7.2-0ubuntu1 amd64
>
> We have two networked (hard Ethernet, with static IP addresses) Laser
> printers, a HP LaserJet 4200 (old but works great) and a Brother Color
> MFC-9970CDW.
>
> What happened:
>
> I updated the Host Server (standard yum update) and then rebooted it (the
> update brought in a new kernel). And then printer queues became
> 'disfunctional'. Printing a test page resulted in a
> client-error-document-format-not-supported type of error. Deleting and
> re-installing the print queues fixed it. Why did this happen? And why does
> re-installing the print queues fix it? Followup question: is there a way to do
> fix this from the command line? It is a royal pain to have to do this with the
> web GUI, esp. since it precludes doing it remotely.
>
> Also, just as a side adventure, the Ubuntu VM system decided to (on its own!)
> remove the color printer. I have not clue as to why that happened. I did
> *uninstall* the pesky cups-browserd package (which is a total disaster for a
> server or even fixed desktop machines with fixed hardwired printers).
>
>
> (Longing for the good old days of LPD! -- CUPS can be a total pain in the butt
> at times.)
>
--
Robert Heller -- 978-544-6933
Deepwoods Software -- Custom Software Services
http://www.deepsoft.com/ -- Linux Administration Services
heller at deepsoft.com -- Webhosting Services
More information about the cups
mailing list