Bug 1525937
| Summary: | cups-browsed doesn't detect printers automatically | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Zdenek Dohnal <zdohnal> | ||||||||
| Component: | cups-filters | Assignee: | Zdenek Dohnal <zdohnal> | ||||||||
| Status: | CLOSED WORKSFORME | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||
| Severity: | high | Docs Contact: | |||||||||
| Priority: | unspecified | ||||||||||
| Version: | 29 | CC: | bugs.kde.attila, bugzilla, claudiorodrigo, dad, dag, d.lesca, extras-qa, gabriel, goeran, jpopelka, j, samuel-rhbugs, twaugh, zdohnal | ||||||||
| Target Milestone: | --- | ||||||||||
| Target Release: | --- | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Linux | ||||||||||
| Whiteboard: | |||||||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||||
| Doc Text: | Story Points: | --- | |||||||||
| Clone Of: | 1518415 | Environment: | |||||||||
| Last Closed: | 2019-07-15 08:19:01 UTC | Type: | Bug | ||||||||
| Regression: | --- | Mount Type: | --- | ||||||||
| Documentation: | --- | CRM: | |||||||||
| Verified Versions: | Category: | --- | |||||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||||
| Embargoed: | |||||||||||
| Bug Depends On: | 1518415 | ||||||||||
| Bug Blocks: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Zdenek Dohnal
2017-12-14 13:24:07 UTC
Added upstream issue. So I just did a partial F27 rollout and realized that I had forgotten to properly test printing. And indeed, with an F27 CUPS server, F26 machines see the exported printers fine but F27 machines do not. I added BrowsePoll statements and "LocalQueueNamingRemoteCUPS RemoteName" as described in this ticket and things are working again, though it seems to take quite some time to fully populate the printer list, while F26 filled the list pretty much immediately. (This network has about 30 printers.) I don't have any issues with using either bare hostnames or FQDNs; I'm assuming that was something of a digression and that the primary issue is the one described in the ticket topic. The "new way" where the clients connect directly to the printers is... not workable for me. I need centralized control, centralized access restrictions and would really love to have centralized accounting. The printers are firewalled from the network in general, and in some cases aren't even on a network which is visible from the 200+ desktop machines. So maybe for a small home network it's reasonable for all clients to connect to the printers directly, but surely that can't be made the only way of doing things. Otherwise I don't know how you could possibly implement anything resembling an "enterprise" printing setup. As far as I know there is no other remotely viable printing system for Linux (and none for Apple machines) so it would be pretty bad if this functionality went away. So bad, in fact, that I really think that I must be missing the point. I have the same setup at a school. All the printers are on an isolated network with the server handling the printer queues. I have upgraded very few computers to F27 yet, but now that I think about it, the one I upgraded recently did not see the printers and I had to add one manually. Hi, I have added the statements "BrowsePoll fileserver" and "LocalQueueNamingRemoteCUPS RemoteName" to cups-browsed to be able to print and see all the remote printers on my Fedora 27 client. When I want to print from LibreOffice I see unfortunately all the printers twice and one of them 3 times. The same from all KDE applications (based on Qt), see attachment. On Firefox and Thunderbird (based on Gtk) all the printers appear one time as expected. This is very chaotic and confusing. Besides the print dialog from every application takes 3 to 4 seconds to appear. On Fedora 26 and before the print dialog was open immediately. My first question is: Is there a way to normalize the list of printers as it was on Fedora 26 and before? My second question is: Is there a way to accelerate the print dialog, so that it appears directly as it was on Fedora 26 and before? Created attachment 1422515 [details]
Print dialog
Hi Attila, does command '$ lpstat -a' return duplicates of print queues as well? If doesn't, create other bugzilla on actual component, which shows duplicates. If does, create other bugzilla on cups-filters component. 'lpstat -a' doesn't return duplicates of print queues. I am going to create a new bugzilla on "cups-filters". (In reply to Zdenek Dohnal from comment #6) > does command '$ lpstat -a' return duplicates of print queues as well? > > If doesn't, create other bugzilla on actual component, which shows > duplicates. > ^^^ This is your outcome, please file a bug on GUI component like libreoffice or another. > If does, create other bugzilla on cups-filters component. I see this bug in Fedora 29. No printers found. $ lpstat -t scheduler is running no system default destination lpstat: No destinations added. lpstat: No destinations added. lpstat: No destinations added. lpstat: No destinations added. $ lpstat -a lpstat: No destinations added. $ cups-2.2.8-5.fc29.x86_64 cups-filters-1.20.3-9.fc29.x86_64 Please change version to 29, since i can't do that! Installing and running system-config-printer does the job. $ lpstat -t scheduler is running system default destination: Hewlett-Packard-HP-LaserJet-200-color-M251n device for Hewlett-Packard-HP-LaserJet-200-color-M251n: hp:/net/HP_LaserJet_200_color_M251n?hostname=NPI6E41CB.local Hewlett-Packard-HP-LaserJet-200-color-M251n accepting requests since Sat 03 Nov 2018 06:48:08 PM CET printer Hewlett-Packard-HP-LaserJet-200-color-M251n is idle. enabled since Sat 03 Nov 2018 06:48:08 PM CET $ lpstat -a Hewlett-Packard-HP-LaserJet-200-color-M251n accepting requests since Sat 03 Nov 2018 06:48:08 PM CET $ system-config-printer-1.5.11-13.fc29.x86_64 Hi everyone, can you confirm the issue is still there? Please notice that automatic print queue creation (without any change in cups-browsed.conf) works by design for following use cases: - IPP printers in the same LAN if 'CreateIPPPrinterQueues All' is set - check if it is set in cups-browsed.conf (it does not have to be there, if you made changes in cups-browsed.conf - it won't get replaced by update, if config is changed...) - CUPS remote queues from CUPS server (with CUPS around 2.x and newer) for network printers shared by dnssd It does not work by design without BrowsePoll for: - IPP printers and 'new' CUPS servers which are not in the same LAN - queues shared by legacy CUPS broadcast It does not work at all for now: - remote queues connected to usb printer Plus you need to have cups-browsed service running. After removing the printer and starting cups-browsed (disabled by default?), the printer is added. So i would say this bug is fixed. After a sleep resume cups-browserd will not pick up the printers any more without a restart of the service It is different bug, https://bugzilla.redhat.com/show_bug.cgi?id=1541084 . Hi, the file "cups-browsed.conf" i am using is the one provided by the rpm-package on Fedora 30. "CreateIPPPrinterQueues All" is set. The service cups-browsed is running. The computer is restarted. Here the results of my test: 1. When I open "kwrite" the list of available printers is now OK. I can reopen the print dialog at any time and the list of available printers is OK. 2. When I open "LibreOffice writer" the list of available printers is sometimes OK (same as kwrite) and sometime wrong (I see the printer twice and more with different names). When I keep running LibreOffice and reopen the print dialog again I see the wrong list of printers. I reopen the print dialog for many times and sometimes it shows the worng list and sometimes the correct list. I am wondering, how can this be? Is it a kind of "timing" or a "cache" problem an d sometimes the "cache" wins? I have no clue. 3. All of the clients are on Fedora 30. The files "cups-browsed.conf" and "cupsd.conf" are identical. Anyway it seems to work on some clients and on other not which means "kwrite" shows me always the correct list of printers on some clients and on other clients always the wrong list. Any idea? Created attachment 1579381 [details]
Print dialog LibreOffice wrong
Created attachment 1579382 [details]
Print dialog LibreOffice right
Can someone please respond to this? Attila, you are adding an different issue into ticket on different problem. Please file the issue on specific app you have the problem with. My guess is that you can have new enough printer (2012 and younger) which is capable of IPP everywhere, so those duplicate queues are CUPS temporary queues. Because there is no response about the problem of 'automatic print queue creation', I'm closing the issue. |