Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Jan 2004 10:58:53 -0800
From:      paul beard <paulbeard@mac.com>
To:        ports@FreeBSD.org, asa@gascom.ru
Subject:   cups lpstat timing out 
Message-ID:  <AFE1F8A8-5031-11D8-A6F3-000A95BBCCF8@mac.com>

next in thread | raw e-mail | index | archive | help

--Apple-Mail-7-199570072
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed

I am trying to troubleshoot some CUPS printing issues (that have 
nothing to do with FreeBSD: it prints just fine), and I notice that my 
lpstat command doesn't seem to work.

Here's the tail-end of what truss tells me is going on:


fstat(3,0xbfbff4b0)                              = 0 (0x0)
read(0x3,0x8058000,0x2000)                       = 205 (0xcd)
read(0x3,0x8058000,0x2000)                       = 0 (0x0)
close(3)                                         = 0 (0x0)
open("/etc/hosts",0x0,0666)                      = 3 (0x3)
fstat(3,0xbfbff890)                              = 0 (0x0)
read(0x3,0x8058000,0x2000)                       = 540 (0x21c)
close(3)                                         = 0 (0x0)
gettimeofday(0xbfbffa78,0x0)                     = 0 (0x0)
socket(0x2,0x1,0x0)                              = 3 (0x3)
fcntl(0x3,0x2,0x1)                               = 0 (0x0)
setsockopt(0x3,0xffff,0x4,0xbfbffa6c,0x4)        = 0 (0x0)
setsockopt(0x3,0xffff,0x200,0xbfbffa6c,0x4)      = 0 (0x0)
setsockopt(0x3,0x6,0x1,0xbfbffa6c,0x4)           = 0 (0x0)
connect(0x3,{ AF_INET 0.0.0.0:0 },16)            ERR#60 'Operation 
timed out'
close(3)                                         = 0 (0x0)
lpstat: Unable to connect to server: Operation timed out
writev(0x2,0xbfbffaa0,0x4)                       = 57 (0x39)
exit(0x1)                                       process exit, rval = 256

As far as I can tell, it is running:

[/usr/ports/print/cups-base]# /usr/local/etc/rc.d/cups.sh status
cups: scheduler is running.

And the http daemon works as well.

Not a big deal but thought you might want to know.
--
Paul Beard
<www.paulbeard.org/>
paulbeard [at] mac.com
--Apple-Mail-7-199570072--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AFE1F8A8-5031-11D8-A6F3-000A95BBCCF8>