[Bug 1048177] New: hplip device manager (hp-toolbox) stalls trying to start/stop printer
http://bugzilla.suse.com/show_bug.cgi?id=1048177 Bug ID: 1048177 Summary: hplip device manager (hp-toolbox) stalls trying to start/stop printer Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: SUSE Other Status: NEW Severity: Normal Priority: P5 - None Component: Printing Assignee: jsmeix@suse.com Reporter: martin.wilck@suse.com QA Contact: jsmeix@suse.com Found By: --- Blocker: --- hplip-3.17.4-1.1.x86_64 Trying to stop/start printer using hp-toolbox tab "Printer Control", the Qt GUI starts hanging. "cupsd" is seen in top with 75% CPU. strace shows that hp-toolbox is constantly trying to send commands via the cups socket and gets "HTTP/1.1 401 Unauthorized" errors.
21127 14:56:41.581250 sendto(20, "POST /admin/ HTTP/1.1\r\nAuthorization: Basic cm9vdDo=\r\nContent-Length: 154\r\nContent-Type: application/ipp\r\nHost: localhost:0\r\nUser-Agent: CUPS/2.2.3 (Linux 4.11.8-1-default; x86_64) IPP/2.0\r\nExpect: 100-continue\r\n\r\n", 214, 0, NULL, 0) = 214 21127 14:56:41.581272 sendto(20, "\2\0\0\20\0\0\0\1\1G\0\22attributes-charset\0\5utf-8H\0\33attributes-natural-language\0\5en-usE\0\vprinter-uri\0\"ipp://localhost/printers/ENVY_5530B\0\24requesting-user-name\0\4root\3", 154, 0, NULL, 0) = 154 21127 14:56:41.581419 recvfrom(20, "HTTP/1.1 401 Unauthorized\r\nConnection: close\r\nContent-Language: en_US\r\nContent-Length: 521\r\nContent-Type: text/html; charset=utf-8\r\nDate: Tue, 11 Jul 2017 12:56:41 GMT\r\nWWW-Authenticate: Basic realm=\"CUPS\", trc=\"y\"\r\nAccept-Encoding: gzip, deflate, identity"..., 2048, 0, NULL, NULL) = 879 ... 21127 14:56:41.581972 sendto(20, "POST /admin/ HTTP/1.1\r\nAuthorization: Basic cm9vdDo=\r\nContent-Length: 154\r\nContent-Type: application/ipp\r\nHost: localhost:0\r\nUser-Agent: CUPS/2.2.3 (Linux 4.11.8-1-default; x86_64) IPP/2.0\r\nExpect: 100-continue\r\n\r\n", 214, 0, NULL, 0) = 214 21127 14:56:41.581992 sendto(20, "\2\0\0\20\0\0\0\1\1G\0\22attributes-charset\0\5utf-8H\0\33attributes-natural-language\0\5en-usE\0\vprinter-uri\0\"ipp://localhost/printers/ENVY_5530B\0\24requesting-user-name\0\4root\3", 154, 0, NULL, 0) = 154 21127 14:56:41.582132 recvfrom(20, "HTTP/1.1 401 Unauthorized\r\nConnection: close\r\nContent-Language: en_US\r\nContent-Length: 521\r\nContent-Type: text/html; charset=utf-8\r\nDate: Tue, 11 Jul 2017 12:56:41 GMT\r\nWWW-Authenticate: Basic realm=\"CUPS\", trc=\"y\"\r\nAccept-Encoding: gzip, deflate, identity"..., 2048, 0, NULL, NULL) = 879
This is a default cups setup, no special permissions configured. cupsd.conf: # All printer operations require a printer operator to authenticate... <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs> AuthType Default Require user @SYSTEM Order deny,allow </Limit> So it's not surprising that the permission isn't granted, but it's wrong to keep trying. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1048177 http://bugzilla.suse.com/show_bug.cgi?id=1048177#c1 Martin Wilck <martin.wilck@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|jsmeix@suse.com |martin.wilck@suse.com --- Comment #1 from Martin Wilck <martin.wilck@suse.com> --- Unsurprisingly, this happens with hplip 3.17.6, too. Tested on Leap 42.2. It occurs also if the user clicks "reject jobs" / "accept jobs". Taking the bug. Will report upstream. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1048177 http://bugzilla.suse.com/show_bug.cgi?id=1048177#c2 Martin Wilck <martin.wilck@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jsmeix@suse.com Flags| |needinfo?(jsmeix@suse.com) --- Comment #2 from Martin Wilck <martin.wilck@suse.com> --- Hmm, it seems that this functionality should be provided by cups-pk-helper, which I do have installed... ... but hplip is built with --disable-policykit, and anyway the hplip-built in polkit support seems to be different from what cups-pk-helper provides. Johannes, do you know why we disable policykit support in hplip? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1048177 http://bugzilla.suse.com/show_bug.cgi?id=1048177#c3 Martin Wilck <martin.wilck@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(jsmeix@suse.com) | --- Comment #3 from Martin Wilck <martin.wilck@suse.com> --- Well again, it seems that hplip upstream recommends disabling it. Most probably it's just broken. http://hplipopensource.com/hplip-web/install/manual/distros/novell.html -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1048177 http://bugzilla.suse.com/show_bug.cgi?id=1048177#c4 --- Comment #4 from Martin Wilck <martin.wilck@suse.com> --- Back to cups-pk-helper, the HP tools obviously don't support using it. The GNOME printer settings tool uses it, but it doesn't support start/stop/reject/accept. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1048177 http://bugzilla.suse.com/show_bug.cgi?id=1048177#c5 --- Comment #5 from Johannes Meixner <jsmeix@suse.com> --- Martin Wilck, I am afraid I do not know why hplip is built with --disable-policykit. Usually I provide a comment in hplip.spec when I specify non-default configure options but there is nothing about --disable-policykit. Only a blind guess because in hplip.changes I found ---------------------------------------------------------------------------- Tue May 5 14:54:42 CEST 2009 - jsmeix@suse.de ... - Updated to version 3.9.4: Added PolicyKit support. Command line tools like hp-setup, hp-plugin, etc. are now run as regular user. ---------------------------------------------------------------------------- I guess --disable-policykit might have beed added at that time or some time later but I cannot remember the reason why. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1048177 http://bugzilla.suse.com/show_bug.cgi?id=1048177#c6 --- Comment #6 from Johannes Meixner <jsmeix@suse.com> --- Martin Wilck, in general regarding "policies" and CUPS you may have a look at https://bugzilla.suse.com/show_bug.cgi?id=827331 therein in particular https://bugzilla.suse.com/show_bug.cgi?id=827331#c11 for an overview about the possible mess. I don't know the current state. A side note FYI: I do not use a desktop (I use X with a plain windowmanager). This way things are simple and straightforward (KISS) and my working gets much less disturbed by side issues ;-) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1048177 http://bugzilla.suse.com/show_bug.cgi?id=1048177#c7 --- Comment #7 from Martin Wilck <martin.wilck@suse.com> --- Johannes, Thanks for the link. I can see that it's a difficult problem. In general I believe being able to start/stop a printer should be possible in the typical SOHO environment without being root. This is two steps behind adding or modifying a printer as described in fate#313287, and it's necessary in particular because of CUPS' default "stop-printer" error policy. (ok, I just saw that this policy can be changed via the YaST printer dialog). This goes far beyond the scope of this bz which is about the HPLIP GUI's erratic behavior. I have to admit that I like that GUI in general, it's way more useful than the pathetic GNOME printer "configuration" dialog. But it's bad that it offers functionality that doesn't work on most standard configurations (such as "start/stop printer", and it's worse that it hangs rather than displaying an error dialog if something goes wrong. Martin -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1048177 http://bugzilla.suse.com/show_bug.cgi?id=1048177#c8 --- Comment #8 from Johannes Meixner <jsmeix@suse.com> --- Martin Wilck, as another side note FYI that is related to this issue here (retrying in a tight loop without proper error checking - ugh!) you may have a look at https://github.com/apple/cups/issues/5024#issuecomment-307339683 -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1048177 https://bugzilla.suse.com/show_bug.cgi?id=1048177#c11 Martin Wilck <martin.wilck@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|IN_PROGRESS |RESOLVED Resolution|--- |WONTFIX --- Comment #11 from Martin Wilck <martin.wilck@suse.com> --- The problem is that hplip is essentially unmaintained upstream, except for adding new PPDs. I haven't had time to dig into this in the past and likely won't in the future. -- You are receiving this mail because: You are on the CC list for the bug.
participants (2)
-
bugzilla_noreply@novell.com
-
bugzilla_noreply@suse.com