[cups.bugs] Unable to reserve port: Resource temporarily unavailable
Jeff Chua
jeff.chua.linux at gmail.com
Mon Jun 29 00:25:19 PDT 2009
On Mon, Jun 29, 2009 at 12:12 AM, Michael Sweet<msweet at apple.com> wrote:
> On Jun 28, 2009, at 2:40 AM, Jeff Chua wrote:
>
> " Unable to reserve port: Resource temporarily unavailable" ... this
> came CUPS trying to print 2000 jobs, which printer1 is just local
> network printer printing to localhost (127.0.0.1).
> where are you seeing this error?
# cat /usr/adm/cups/error_log
I [28/Jun/2009:17:32:08 +0800] [Job 161927307] Adding start banner page "none".
I [28/Jun/2009:17:32:08 +0800] [Job 161927307] Queued on "file" by "root".
I [28/Jun/2009:17:32:08 +0800] [Job 161927307] File of type text/plain
queued by "root".
I [28/Jun/2009:17:32:08 +0800] [Job 161927307] Adding end banner page "none".
I [28/Jun/2009:17:32:08 +0800] [Job 161927307] Started filter
/etc/cups/interfaces/file (PID 347)
E [28/Jun/2009:17:32:08 +0800] [Job 161924484] Unable to reserve port:
Resource temporarily unavailable
I [28/Jun/2009:17:32:08 +0800] [Job 161927307] Completed successfully.
> The CUPS lpr command will never try to reserve a port, and with 1 printer
> you should never see the CUPS lpd backend produce it, either. FWIW,
> port reservation tries to
I just send 2000 jobs to the local printer as in ...
# for((i = 0; i < 2000; i++))
# do
# date | lpr -Plp
# done
# lpstat -t
device for lp: lpd://lp/file
# lp has IP 127.0.01
# filter for "lp" is just a "cat" command
# "netstat -an" shows many of ...
tcp 0 0 0.0.0.0:512 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:513 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:514 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:515 0.0.0.0:* LISTEN
Full log attached.
# /etc/xinetd.conf
service printer
{
flags = NODELAY KEEPALIVE
socket_type = stream
protocol = tcp
wait = no
user = lp
server = /usr/lib/cups/daemon/cups-lpd
server_args = -o document-format=application/octet-stream
instances = 90000
cps = 90000 1
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: x
Type: application/octet-stream
Size: 43983 bytes
Desc: not available
URL: <http://lists.cups.org/pipermail/cups-devel/attachments/20090629/6ea72d12/attachment.obj>
More information about the cups-devel
mailing list