Bug 135561 - "Unable to retrieve the printer list" after upgrade to kde-3.5.5. (may be problem with hiddenvisibility)
Summary: "Unable to retrieve the printer list" after upgrade to kde-3.5.5. (may be pro...
Status: CLOSED FIXED
Alias: None
Product: kdeprint
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: KDEPrint Devel Mailinglist
URL:
Keywords:
: 135522 135728 137225 139303 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-10-13 09:34 UTC by Peter Volkov
Modified: 2008-12-31 20:27 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Volkov 2006-10-13 09:34:28 UTC
Version:            (using KDE KDE 3.5.5)
Installed from:    Gentoo Packages
Compiler:          gcc 4.1.1 
OS:                Linux

Hello.

I've upgraded kde and now any attempt to print anything from any kde application with the use of CUPS fails with the following error message:
******
Unable to retrieve the printer list. Error message received from manager.

Connection to CUPS server failed. Check that the CUPS server us correctly installed and running. Error: localhost: read failed (15).
******

My CUPS is working (I can connect to http://localhost:631) and more important:
if I start kprinter application it manages to receive printer list!

I suspect that this could be the problem with kdehiddenvisibility option that I enabled in this build, so I'm going to rebuild kde without this feature and we'll see if the problem goes away.

I've filled this bug report in attempt to find some help. How can I debug this problem? I've tried strace so it's not the problem with libraries or permitions. And could the fix that allows kdeprint to work with cups-1.2 be the root of the problem?

TIA,
Peter.
Comment 1 Bartemius Crouch 2006-10-13 10:41:57 UTC
I confirm this bug and would like to add that it is not related to the kdehiddenvisibility use flag.
Comment 2 Halla Rempt 2006-10-13 11:46:19 UTC
Well, it works for me with KUbuntu. Could this just be another Gentoo problem?
Comment 3 Jozef Komenda 2006-10-13 19:05:56 UTC
I have the same problem on Kubuntu 6.06 after upgrade to kde-3.5.5. However because I also upgraded cups from 1.2.1 to 1.2.2 I cannot say for sure it's a KDE problem.

The CUPS command line tools work. If I try to use only the KDE print the CUPS logs are empty, even the access_log. Seems to be some communication problem. tcpdump shows that KDE print is connecting to localhost:631, few messages are exchanged.

Kprinter does not show anything except of the pseudo-printers (PDF, Fax, etc.).
Comment 4 Jozef Komenda 2006-10-13 19:43:14 UTC
I downgraded to cups 1.2.0, didn't help.

After having turned on the debug info on cupsd.conf, this appears in the error_log:

==========================================
I [13/Oct/2006:19:31:34 +0200] Listening to 127.0.0.1:631 on fd 0...
D [13/Oct/2006:19:33:58 +0200] cupsdAcceptClient: 4 from localhost:631 (IPv4)
D [13/Oct/2006:19:33:58 +0200] cupsdCloseClient: 4
D [13/Oct/2006:19:33:59 +0200] cupsdAcceptClient: 4 from localhost:631 (IPv4)
D [13/Oct/2006:19:33:59 +0200] cupsdCloseClient: 4
D [13/Oct/2006:19:34:00 +0200] cupsdAcceptClient: 4 from localhost:631 (IPv4)
D [13/Oct/2006:19:34:00 +0200] cupsdCloseClient: 4
D [13/Oct/2006:19:34:01 +0200] cupsdAcceptClient: 4 from localhost:631 (IPv4)
D [13/Oct/2006:19:34:01 +0200] cupsdCloseClient: 4
D [13/Oct/2006:19:34:02 +0200] cupsdAcceptClient: 4 from localhost:631 (IPv4)
D [13/Oct/2006:19:34:02 +0200] cupsdCloseClient: 4
D [13/Oct/2006:19:34:03 +0200] cupsdAcceptClient: 4 from localhost:631 (IPv4)
D [13/Oct/2006:19:34:03 +0200] cupsdCloseClient: 4
==========================================

KDEPrint apparently tries to reconnect more times, this can be seen in tcpdump as well (different client port numbers). If I run e.g. lpq -l I get:

==========================================
D [13/Oct/2006:19:34:15 +0200] cupsdAcceptClient: 4 from localhost:631 (IPv4)
D [13/Oct/2006:19:34:15 +0200] cupsdReadClient: 4 POST / HTTP/1.1
D [13/Oct/2006:19:34:15 +0200] cupsdAuthorize: No authentication data provided.
D [13/Oct/2006:19:34:15 +0200] CUPS-Get-Printers
....
==========================================
Comment 5 Unga 2006-10-14 21:56:18 UTC
I'm using KDE 3.5.5 with CUPS 1.1.23 on Linux.

K-Button->Control Center->Peripherals->Printers works.

What is broken is Print System applet on the panel->Print Manager.

Comment 6 Unga 2006-10-15 05:14:54 UTC
Settings (Control Center modules menu) applet on the panel->Peripherals->Printers also broken.
Comment 7 Unga 2006-10-15 05:22:57 UTC
K-Button->Settings->Printers also broken.

K-Button->Settings->Peripherals->Printers also broken.

I think this issue could have avoided if KDE had released a 3.5.5-RC1.
Comment 8 Cristian Tibirna 2006-10-15 05:47:21 UTC
Just for the record: I remained silent because I can't reproduce this. And I don't remember any commit that would have this effect.
Comment 9 Unga 2006-10-15 06:00:03 UTC
Cristian, could you try comment #5 to #7?

Could you please display the first few lines of this file: /usr/share/applications/kde/printers.desktop?. If possible attach the whole file.
Comment 10 Andreas Pakulat 2006-10-15 10:16:44 UTC
Hi,

using Debian Sid up-to-date with KDE3.5.5 and CUPS 1.2.4. I too have problems with printing, kdeprint cannot fetch the printer list as it cannot connect to CUPS. I had a listing once yesterday after playing around with kcontrol->conneced devices->printers, but I can't get it back today. 

There's also a Debian bugreport here: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=392052

It seems this was fixed already in SVN... Anyway I can confirm that it doesn't work in kpdf and konqueror, but works in konsole.

Andreas
Comment 11 Peter Volkov 2006-10-15 11:18:54 UTC
Unga: Conserning comment #5. I do have the same problem with
K-Button->Control Center->Peripherals->Printers

Also I've checked that I do not have problems with printing from console. And kdehiddenvisibility have no effect here. So Crisian, please, change the subject. Remove "(may be problem with hiddenvisibility)".
Comment 12 Vasileios P. Lourdas 2006-10-15 11:48:56 UTC
Gentoo users, please check http://bugs.gentoo.org/show_bug.cgi?id=151261.
Comment 13 Rich Johnson 2006-10-15 18:13:23 UTC
Kubuntu Edgy 6.10
KDE 3.5.5
CUPS 1.2.4

------------------------------
"What is broken is Print System applet on the panel->Print Manager. "
------------------------------
This works fine for me, no issues

Systems Settings -> Printers works just fine for me
I get my printer list with every application that I have tried. I do not see, nor have, any problems with CUPS and KDE 3.5.5 at this time.
Comment 14 Vasileios P. Lourdas 2006-10-15 18:18:21 UTC
Richard, maybe the Kubuntu packages include the fix to this.

Take a look at http://bugs.gentoo.org/show_bug.cgi?id=151261. Jochen includes a patch that fix the problems. The patch is applied to kdelibs and it's already in KDE svn. kdelibs-3.5.5-r1 fixes this for Gentoo.
Comment 15 Cristian Tibirna 2006-10-15 20:19:48 UTC
*** Bug 135522 has been marked as a duplicate of this bug. ***
Comment 16 Cristian Tibirna 2006-10-15 20:29:17 UTC
Of course, my comment #8 is wrong. I just have bad memory, it seems. There *was* a commit made 12 days before the tagging of KDE-3.5.5, a very valuable one that reintroduced socket connection to CUPS in kdeprint. Unfortunately there was a little confusion in that code, that could explain the behaviors exposed in this BR. A timeout was set too small while waiting for connection answer from CUPS. This could explain why sometimes connections seem to work, while other times they don't, for certain reporters.

A correction to this problem was commited 5 days ago (8 days after the tagging of the KDE-3.5.5). It is very probable that packages for distros that seem to not have problems already included this patch:

http://websvn.kde.org/branches/KDE/3.5/kdelibs/kdeprint/cups/kmcupsmanager.cpp?rev=594190&r1=586782&r2=594190

The solution would be for each of you that experience this problem to get in contact with your distro's packagers of kdelibs and convince them to issue a bugfix package.

I will wait for confirmations that getting such a solution in place fixes the problem then I will close this bug report.

Thanks for your understanding. And a big thank you to André Wöbbeking for helping my faulty memory.

Comment 17 Vasileios P. Lourdas 2006-10-15 20:36:59 UTC
> The solution would be for each of you that experience this problem to get in contact with your distro's packagers of kdelibs and convince them to issue a bugfix package.

As I said, Gentoo is ok in -r1 of kdelibs.
Comment 18 nikos v 2006-10-15 23:21:17 UTC
Desperate need for printing and no time to wait. Had to downgrade to 3.4.2 on suse 10.0
Comment 19 Bram Schoenmakers 2006-10-16 10:58:12 UTC
*** Bug 135728 has been marked as a duplicate of this bug. ***
Comment 20 Dirk Mueller 2006-10-18 00:17:39 UTC
it is already fixed: 

http://websvn.kde.org/branches/KDE/3.5/kdelibs/kdeprint/cups/kmcupsmanager.cpp?rev=594190&r1=586782&r2=594190

please ask your gentoo packagers to include this patch. 
Comment 21 Vasileios P. Lourdas 2006-10-18 07:47:23 UTC
As I say in comments #17 and #14, it is already fixed in kdelibs-3.5.5-r1. People read the comments here please.
Comment 22 Cristian Tibirna 2006-11-12 18:25:09 UTC
*** Bug 137225 has been marked as a duplicate of this bug. ***
Comment 23 Bram Schoenmakers 2006-12-28 11:46:09 UTC
*** Bug 139303 has been marked as a duplicate of this bug. ***
Comment 24 John Layt 2008-12-31 20:27:39 UTC
Closing old Resolved status bug.