Re: Problem with cups (cupsd and admin.cgi hang)

2002-05-14 Thread David Roundy
On Tue, May 14, 2002 at 10:29:26AM -0500, Jeff Licquia wrote:
> [Please don't send user-specific problems to debian-devel.]
> 
> On Mon, 2002-05-13 at 11:46, Michael Schwind wrote:
> > i have Problems when i want to add a Printer, the command line tool and the 
> > web
> > interface will not work. After pressing the button where you can choose the 
> > printer,
> > the admin.cgi hangs with about 30% CPU-Time and cupsd needs about 60% 
> > CPU-Time.
> 
> Are you doing this from a remote machine?  The default configuration for
> CUPS is set to refuse to allow remote access of any kind.  Please read
> the System Administrator's Manual to learn how to enable remote access;
> it should be accessible by clicking "Help" in the top linkbar on the
> CUPS server's start page.
> 
> If you aren't using a remote machine, then something is wrong.  I would
> suggest, in this case, that you purge and reinstall the cupsys package,
> and try from there.

I had this same problem, logging on locally, using the default config.  In
fact I think I purged and reinstalled twice, because I had trouble
believing the default config wouldn't work.
-- 
David Roundy
http://civet.berkeley.edu/droundy/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Problem with cups (cupsd and admin.cgi hang)

2002-05-14 Thread Jeff Licquia
[Please don't send user-specific problems to debian-devel.]

On Mon, 2002-05-13 at 11:46, Michael Schwind wrote:
> i have Problems when i want to add a Printer, the command line tool and the 
> web
> interface will not work. After pressing the button where you can choose the 
> printer,
> the admin.cgi hangs with about 30% CPU-Time and cupsd needs about 60% 
> CPU-Time.

Are you doing this from a remote machine?  The default configuration for
CUPS is set to refuse to allow remote access of any kind.  Please read
the System Administrator's Manual to learn how to enable remote access;
it should be accessible by clicking "Help" in the top linkbar on the
CUPS server's start page.

If you aren't using a remote machine, then something is wrong.  I would
suggest, in this case, that you purge and reinstall the cupsys package,
and try from there.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Problem with cups (cupsd and admin.cgi hang)

2002-05-14 Thread David Roundy
On Mon, May 13, 2002 at 06:46:38PM +0200, Michael Schwind wrote:
> 
> i have Problems when i want to add a Printer, the command line tool and
> the web interface will not work. After pressing the button where you can
> choose the printer, the admin.cgi hangs with about 30% CPU-Time and cupsd
> needs about 60% CPU-Time.
> 
> While booth are hanging, cups fills then file /var/log/access.log
> permanently with the entry:
> 
> name - root [tt/mm/:hh:mm:ss +0200] "POST /admin/ HTTP/1.1" 401 0

I had the same problem a week or so ago, and after much trial and error
managed to get it working (the command line tools only, though, I'd also
like to know how to get the web interface working).  I can send you my
cupsd.conf offlist if you're interested, as I think that that is where the
problem is.  Unfortunately, I don't know what change made it work.  I was
getting pretty crazy at the time, due to extreme frustration.  I'd still
like to get the web interface working, as it would make it far easier to
change the driver settings (DPI, paper type, etc).
-- 
David Roundy
http://civet.berkeley.edu/droundy/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Problem with cups (cupsd and admin.cgi hang)

2002-05-13 Thread Michael Schwind

Hello,

i have Problems when i want to add a Printer, the command line tool and the web
interface will not work. After pressing the button where you can choose the 
printer,
the admin.cgi hangs with about 30% CPU-Time and cupsd needs about 60% CPU-Time.

While booth are hanging, cups fills then file /var/log/access.log permanently 
with
the entry:

name - root [tt/mm/:hh:mm:ss +0200] "POST /admin/ HTTP/1.1" 401 0

An strace shows that admin cgi want's permanently to add the printer and
then cupsd refuses it. Here a part from the strace which seems to be repeated 
all
time:

getpid()= 7179
open("/etc/cups/certs/7179", O_RDONLY)  = 3
fstat64(3, {st_mode=S_IFREG|0400, st_size=32, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0
x40015000
read(3, "DB6204A6C77C27EDACA9DDEDDD10F85C", 4096) = 32
close(3)= 0
munmap(0x40015000, 4096)= 0
close(2)= 0
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 2
fcntl64(2, F_SETFD, FD_CLOEXEC) = 0
setsockopt(2, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
setsockopt(2, SOL_TCP, TCP_NODELAY, [1], 4) = 0
connect(2, {sin_family=AF_INET, sin_port=htons(631), sin_addr=inet_addr("127.0.0
.2")}}, 16) = 0
send(2, "POST /admin/ HTTP/1.1\r\n", 23, 0) = 23
send(2, "Authorization: Local DB6204A6C77"..., 55, 0) = 55
send(2, "Content-Length: 293\r\n", 21, 0) = 21
send(2, "Content-Type: application/ipp\r\n", 31, 0) = 31
send(2, "Host: localhost\r\n", 17, 0)   = 17
send(2, "\r\n", 2, 0)   = 2
time(NULL)  = 1020863994
send(2, "[EMAIL PROTECTED]", 8, 0)= 8
time(NULL)  = 1020863994
send(2, "\1G\0\22attributes-charset\0\niso-8859"..., 34, 0) = 34
time(NULL)  = 1020863994
send(2, "H\0\33attributes-natural-language\0\1"..., 33, 0) = 33
time(NULL)  = 1020863994
send(2, "E\0\vprinter-uri\0\37ipp://localhost/";..., 47, 0) = 47
time(NULL)  = 1020863994
send(2, "\4A\0\20printer-location\0\0", 22, 0) = 22
time(NULL)  = 1020863994
send(2, "A\0\fprinter-info\0\0", 17, 0) = 17
time(NULL)  = 1020863994
send(2, "B\0\10ppd-name\0!HP/LaserJet_2_w_PS-"..., 46, 0) = 46
time(NULL)  = 1020863994
send(2, "E\0\ndevice-uri\0\21parallel:/dev/lp0", 32, 0) = 32
time(NULL)  = 1020863994
send(2, "\"\0\31printer-is-accepting-jobs\0\1\1", 31, 0) = 31
time(NULL)  = 1020863994
send(2, "#\0\rprinter-state\0\4\0\0\0\3", 22, 0) = 22
time(NULL)  = 1020863994
send(2, "\3", 1, 0) = 1
recv(2, "HTTP/1.1 401 Unauthorized\r\nDate:"..., 2048, 0) = 376

An other curiuos thing is that I have to comment out all entrys
like:

Order Deny,Allow
Deny From All
Allow From 192.168.0.* 127.0.0.1

in the cupsd.conf. Otherwise the box where you
can select the interface for the printer in the web-form is
empty.

Any help needed.

Thanks

Michael


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]