[cups.bugs] [HIGH] STR #4290: lpinfo -m hangs and eventually times out on openbsd

Edd vext01 at gmail.com
Tue Mar 12 06:08:29 PDT 2013


DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

I am unable to configure cups on OpenBSD using the cli. The problem seems
to be related to listing available drivers:

$ time lpinfo -m
lpinfo: Undefined error: 0
    1m0.03s real     0m0.01s user     0m0.00s system

I thought this was to do with the timeouts defined in backend/ipp.c and
scheduler/ipp.c. I bumped these the timeouts to 30,000 seconds but the
problem still persists. after 100 seconds "undefined error".

Here is the relevant chunk of the error log file:
D [12/Mar/2013:12:30:56 +0000] [CGI] Started
/usr/local/libexec/cups/daemon/cups-driverd (PID 26259)
I [12/Mar/2013:12:30:56 +0000] [Client 12] Started
"/usr/local/libexec/cups/daemon/cups-driverd" (pid=26259)
D [12/Mar/2013:12:30:56 +0000] [Client 12] file=13
I [12/Mar/2013:12:30:56 +0000] [cups-driverd] Read
"/var/cache/cups/ppds.dat", 745 PPDs...
I [12/Mar/2013:12:30:56 +0000] [cups-driverd] Read
"/var/cache/cups/ppds.dat", 745 PPDs...
D [12/Mar/2013:12:30:56 +0000] [cups-driverd] Loading
"/usr/local/share/cups/model"...
D [12/Mar/2013:12:30:56 +0000] [cups-driverd] Loading
"/usr/local/share/cups/drv"...
D [12/Mar/2013:12:30:56 +0000] [CGI] ppdc: Unable to find include file
"<pcl.h>" on line 7 of /usr/local/share/cups/drv/cupsfilters.drv.
E [12/Mar/2013:12:30:56 +0000] [cups-driverd] Bad driver information file
"/usr/local/share/cups/drv/cupsfilters.drv"!
D [12/Mar/2013:12:30:56 +0000] [cups-driverd] Loading
"/usr/local/share/cups/drv/hp"...
D [12/Mar/2013:12:30:56 +0000] [cups-driverd] ChangedPPD=0
I [12/Mar/2013:12:30:56 +0000] [cups-driverd] No new or changed PPDs...
I [12/Mar/2013:12:30:56 +0000] [cups-driverd] No new or changed PPDs...
D [12/Mar/2013:12:30:56 +0000] [CGI] perl: warning: Setting locale failed.
D [12/Mar/2013:12:30:56 +0000] [CGI] perl: warning: Please check that your
locale settings:
D [12/Mar/2013:12:30:56 +0000] [CGI] LC_ALL = (unset),
D [12/Mar/2013:12:30:56 +0000] [CGI] LANG = "en_US.UTF8"
D [12/Mar/2013:12:30:56 +0000] [CGI] are supported and installed on your
system.
D [12/Mar/2013:12:30:56 +0000] [CGI] perl: warning: Falling back to the
standard locale ("C").
D [12/Mar/2013:12:31:56 +0000] [Client 12] Closing on EOF
D [12/Mar/2013:12:31:56 +0000] [Client 12] Closing connection.
D [12/Mar/2013:12:31:56 +0000] cupsdSetBusyState: newbusy="Not busy",
busy="Active clients"
D [12/Mar/2013:12:31:56 +0000] Report: clients=0
D [12/Mar/2013:12:31:56 +0000] Report: jobs=1
D [12/Mar/2013:12:31:56 +0000] Report: jobs-active=0
D [12/Mar/2013:12:31:56 +0000] Report: printers=1
D [12/Mar/2013:12:31:56 +0000] Report: stringpool-string-count=360
D [12/Mar/2013:12:31:56 +0000] Report: stringpool-alloc-bytes=6232
D [12/Mar/2013:12:31:56 +0000] Report: stringpool-total-bytes=6456
D [12/Mar/2013:12:31:56 +0000] PID 26259
(/usr/local/libexec/cups/daemon/cups-driverd) was terminated normally with
signal 9.

I see there is an error in there, but is it fatal?

This is cups-1.6.1 from the openbsd packages repo. The cups sources were
patched to make it build:
http://www.openbsd.org/cgi-bin/cvsweb/ports/print/cups/patches/

I have spoken to the openbsd package maintainer and he is unsure as to why
this is happening.

By un-installing the foomatic-db drivers I get a listing from 'lpadmin -m'
in less than a second. Perhaps some aspect of cups does not scale well when
there are lots of drivers installed?

Cheers

Link: https://www.cups.org/str.php?L4290
Version: 1.6.1





More information about the cups-devel mailing list