[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Problem with cups (cupsd and admin.cgi hang)



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/yyyy: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, "\1\1@\3\0\0\0\1", 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 debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: