Bug#392052: kdeprint: fails to connect to CUPS server on localhost after dist-upgrade
Package: kdeprint
Version: 4:3.5.5-1
Severity: important
Until very recently I could print from e.g. kpdf without problems. As of the latest dist-upgrade,
KDE can't retrieve the printer list:
Unable to retrieve the printer list. Error message received from manager:
Connection to CUPS server failed. Check that the CUPS server is correctly installed and running. Error: localhost: read failed (15).
Here is my ~/.kde/share/config/kdeprintrc:
---- snip ----
[$Version]
update_info=kdeprintrc.upd:kde-3.1-toolbar
[CUPS]
Host=localhost
InstallDir=
Login=d
Port=631
SavePassword=false
[Filter]
LocationRe=
Printers=
[General]
ExternalPreview=false
PreviewCommand=gv
PrintSystem=cups
ShowStatusMsg=true
TestPage=
TimerDelay=5
UseLast=true
[Jobs]
Limit=0
Size=550,250
---- snip ----
This config hasn't changed in quote a while (weeks).
Note that I've pinned kwin to 3.5.4-2+b2, due to bug #391357. This has caused kdebase to stay
at 3.5.4-2.
The CUPS server us running, as I can connect to localhost:631 with a browser without any
problems. I can also print from the command line.
CUPS doesn't seem to be restricting connections from localhost. From cupsd.conf:
---- snip ----
# Only listen for connections from the local machine.
Listen localhost:631
Listen /var/run/cups/cups.sock
# Show shared printers on the local network.
Browsing On
BrowseOrder allow,deny
BrowseAllow @LOCAL
# Default authentication type, when authentication is required...
DefaultAuthType Basic
# Restrict access to the server...
<Location />
Order allow,deny
Allow localhost
</Location>
---- snip ----
Running CUPS with log level debug2 while attempting to retrieve the list of printers from
the KDE control panel yields this:
---- snip ----
d [09/Oct/2006:13:49:36 -0700] cupsdAcceptClient(lis=0x80a1338) 2 Clients = 0
D [09/Oct/2006:13:49:36 -0700] cupsdAcceptClient: 7 from localhost:631 (IPv4)
d [09/Oct/2006:13:49:36 -0700] cupsdAcceptClient: 7 connected to server on localhost:631
d [09/Oct/2006:13:49:36 -0700] cupsdAcceptClient: Adding fd 7 to InputSet...
d [09/Oct/2006:13:49:36 -0700] cupsdCheckJobs: 0 active jobs, sleeping=0, reload=0
d [09/Oct/2006:13:49:36 -0700] cupsdReadClient: 7, used=0, file=-1 state=0
d [09/Oct/2006:13:49:36 -0700] cupsdReadClient: httpGets returned EOF...
D [09/Oct/2006:13:49:36 -0700] cupsdCloseClient: 7
d [09/Oct/2006:13:49:36 -0700] cupsdCloseClient: Removing fd 7 from InputSet and OutputSet...
d [09/Oct/2006:13:49:37 -0700] select_timeout: 12 seconds to send browse update
d [09/Oct/2006:13:49:37 -0700] cupsdAcceptClient(lis=0x80a1338) 2 Clients = 0
D [09/Oct/2006:13:49:37 -0700] cupsdAcceptClient: 7 from localhost:631 (IPv4)
d [09/Oct/2006:13:49:37 -0700] cupsdAcceptClient: 7 connected to server on localhost:631
d [09/Oct/2006:13:49:37 -0700] cupsdAcceptClient: Adding fd 7 to InputSet...
d [09/Oct/2006:13:49:37 -0700] cupsdReadClient: 7, used=0, file=-1 state=0
d [09/Oct/2006:13:49:37 -0700] cupsdReadClient: httpGets returned EOF...
D [09/Oct/2006:13:49:37 -0700] cupsdCloseClient: 7
d [09/Oct/2006:13:49:37 -0700] cupsdCloseClient: Removing fd 7 from InputSet and OutputSet...
d [09/Oct/2006:13:49:38 -0700] select_timeout: 11 seconds to send browse update
d [09/Oct/2006:13:49:38 -0700] cupsdAcceptClient(lis=0x80a1338) 2 Clients = 0
D [09/Oct/2006:13:49:38 -0700] cupsdAcceptClient: 7 from localhost:631 (IPv4)
d [09/Oct/2006:13:49:38 -0700] cupsdAcceptClient: 7 connected to server on localhost:631
d [09/Oct/2006:13:49:38 -0700] cupsdAcceptClient: Adding fd 7 to InputSet...
d [09/Oct/2006:13:49:38 -0700] cupsdReadClient: 7, used=0, file=-1 state=0
d [09/Oct/2006:13:49:38 -0700] cupsdReadClient: httpGets returned EOF...
D [09/Oct/2006:13:49:38 -0700] cupsdCloseClient: 7
d [09/Oct/2006:13:49:38 -0700] cupsdCloseClient: Removing fd 7 from InputSet and OutputSet...
d [09/Oct/2006:13:49:39 -0700] select_timeout: 10 seconds to send browse update
d [09/Oct/2006:13:49:39 -0700] cupsdAcceptClient(lis=0x80a1338) 2 Clients = 0
D [09/Oct/2006:13:49:39 -0700] cupsdAcceptClient: 7 from localhost:631 (IPv4)
d [09/Oct/2006:13:49:39 -0700] cupsdAcceptClient: 7 connected to server on localhost:631
d [09/Oct/2006:13:49:39 -0700] cupsdAcceptClient: Adding fd 7 to InputSet...
d [09/Oct/2006:13:49:39 -0700] cupsdReadClient: 7, used=0, file=-1 state=0
d [09/Oct/2006:13:49:39 -0700] cupsdReadClient: httpGets returned EOF...
D [09/Oct/2006:13:49:39 -0700] cupsdCloseClient: 7
d [09/Oct/2006:13:49:39 -0700] cupsdCloseClient: Removing fd 7 from InputSet and OutputSet...
d [09/Oct/2006:13:49:40 -0700] select_timeout: 9 seconds to send browse update
d [09/Oct/2006:13:49:40 -0700] cupsdAcceptClient(lis=0x80a1338) 2 Clients = 0
D [09/Oct/2006:13:49:40 -0700] cupsdAcceptClient: 7 from localhost:631 (IPv4)
d [09/Oct/2006:13:49:40 -0700] cupsdAcceptClient: 7 connected to server on localhost:631
d [09/Oct/2006:13:49:40 -0700] cupsdAcceptClient: Adding fd 7 to InputSet...
d [09/Oct/2006:13:49:40 -0700] cupsdReadClient: 7, used=0, file=-1 state=0
d [09/Oct/2006:13:49:40 -0700] cupsdReadClient: httpGets returned EOF...
D [09/Oct/2006:13:49:40 -0700] cupsdCloseClient: 7
d [09/Oct/2006:13:49:40 -0700] cupsdCloseClient: Removing fd 7 from InputSet and OutputSet...
d [09/Oct/2006:13:49:41 -0700] select_timeout: 8 seconds to send browse update
d [09/Oct/2006:13:49:41 -0700] cupsdAcceptClient(lis=0x80a1338) 2 Clients = 0
D [09/Oct/2006:13:49:41 -0700] cupsdAcceptClient: 7 from localhost:631 (IPv4)
d [09/Oct/2006:13:49:41 -0700] cupsdAcceptClient: 7 connected to server on localhost:631
d [09/Oct/2006:13:49:41 -0700] cupsdAcceptClient: Adding fd 7 to InputSet...
d [09/Oct/2006:13:49:41 -0700] cupsdReadClient: 7, used=0, file=-1 state=0
d [09/Oct/2006:13:49:41 -0700] cupsdReadClient: httpGets returned EOF...
D [09/Oct/2006:13:49:41 -0700] cupsdCloseClient: 7
d [09/Oct/2006:13:49:41 -0700] cupsdCloseClient: Removing fd 7 from InputSet and OutputSet...
d [09/Oct/2006:13:49:42 -0700] select_timeout: 7 seconds to send browse update
---- snip ----
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages kdeprint depends on:
ii enscript 1.6.4-10 Converts ASCII text to Postscript,
ii kdelibs4c2a 4:3.5.5a-1 core libraries and binaries for al
ii libc6 2.3.6.ds1-6 GNU C Library: Shared libraries
ii libgcc1 1:4.1.1-16 GCC support library
ii libqt3-mt 3:3.3.6-4 Qt GUI Library (Threaded runtime v
ii libstdc++6 4.1.1-16 The GNU Standard C++ Library v3
ii poster 1:19990428-8 Create large posters out of PostSc
ii psutils 1.17-23 A collection of PostScript documen
Versions of packages kdeprint recommends:
ii gs-esp [postscript-viewe 8.15.3.dfsg.1-1 The Ghostscript PostScript interpr
ii gs-gpl [postscript-viewe 8.54.dfsg.1-1 The GPL Ghostscript PostScript int
ii gv [postscript-viewer] 1:3.6.1-15 PostScript and PDF viewer for X
ii kghostview [postscript-v 4:3.5.4-2 PostScript viewer for KDE
-- no debconf information
Reply to: