CUPS/OO.org weirdness - help needed!

Tarjei Knapstad tarjei.knapstad at predichem.com
Thu Jun 9 10:29:37 UTC 2005


Turned up at the office today just to find that printing doesn't work
properly and after a while now OO.org started hanging while browsing for
cups printers. First a bit about the CUPS setup and configuration:

Server (192.168.1.1): cups-1.1.17 
non-default browsing options in /etc/cups/cupsd.conf:

BrowseAddress 192.168.1.255
BrowseAllow 192.168.1.*

------------------------------

Clients (192.168.1.*): cups-1.1.19 (FC1)

BrowseDeny All
BrowseAllow 192.168.1.1

OK, now the first thing that was weird today is that printing takes a
really long time (10-15 minutes or more) to reach the printer and
actually get printed from any of the clients (they do get there
eventually though). So I fired up openoffice (1.1.2) to try to reproduce
the problem which now hangs on browsing for cups printers (apparently).
Attaching gdb to the process and fetching a backtrace gives me:

#0  0x00ab4c32 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1  0x00aa7e88 in connect () from /lib/tls/libpthread.so.0
#2  0x031161bf in httpReconnect () from /usr/lib/libcups.so.2
#3  0x03115fde in httpConnectEncrypt () from /usr/lib/libcups.so.2
#4  0x03124fab in cupsGetPPD () from /usr/lib/libcups.so.2
#5  0x077a6c96 in psp::CUPSManager::createCUPSParser ()
   from /usr/lib/ooo-1.1/program/libpsp645li.so
#6  0x0778684e in psp::PPDParser::getParser ()
   from /usr/lib/ooo-1.1/program/libpsp645li.so
#7  0x077a75d6 in psp::CUPSManager::setupJobContextData ()
   from /usr/lib/ooo-1.1/program/libpsp645li.so
(... and further - let me know if there's any point in posting a full
trace)

If I run ooffice through strace things start to get really weird. It
hangs at:

connect(21, {sa_family=AF_INET, sin_port=htons(631),
sin_addr=inet_addr("66.150.161.133")}, 16) = -1 ETIMEDOUT (Connection
timed out)
close(21)                               = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 21
fcntl64(21, F_SETFD, FD_CLOEXEC)        = 0
setsockopt(21, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
setsockopt(21, SOL_TCP, TCP_NODELAY, [1], 4) = 0
connect(21, {sa_family=AF_INET, sin_port=htons(631),
sin_addr=inet_addr("66.150.161.134")}, 16) = -1 ETIMEDOUT (Connection
timed out)
close(21)                               = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 21
fcntl64(21, F_SETFD, FD_CLOEXEC)        = 0
setsockopt(21, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
setsockopt(21, SOL_TCP, TCP_NODELAY, [1], 4) = 0


Err...what?? Why is it trying to connect to these IP's? I get different
IP's every time, but the same subnet (66.150.161.255). Looking it up in
google it seems like all these IP's used to point to
http://www.unlikeminerva.com/

If I wait for a while these connection attempts all time out and
openoffice finally starts.

This has me worried. Can anyone help me figuring out what's going wrong?
I haven't found anything to help me in /var/log/cups on either the
server or the clients and the only explanation I can think of for the
slow printing otherwise is the same connection attempts as seen from
openoffice.

Any help much appreciated,
--
Tarjei




More information about the fedora-list mailing list