Bug 1249414 - hp-plugin (3.15.7) hangs on 'su'
Summary: hp-plugin (3.15.7) hangs on 'su'
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: hplip
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1249282 1252040 1252375 1256070 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-08-02 18:01 UTC by Zoltan Boszormenyi
Modified: 2016-04-22 01:51 UTC (History)
11 users (show)

Fixed In Version: hplip-3.15.11-6.fc23 hplip-3.15.9-4.fc22
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-04-22 01:51:03 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Output of hp-plugin -i -g (396.57 KB, text/plain)
2015-08-25 05:47 UTC, Zoltan Boszormenyi
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1483820 0 None None None Never
Launchpad 1484916 0 None None None Never
Launchpad 1486731 0 None None None Never

Description Zoltan Boszormenyi 2015-08-02 18:01:10 UTC
Description of problem:

After upgrading to HPLIP 3.15.7-1, scanning on my LaserJet Pro 200 color MFP M276mw ceased to work, as usual, the plugins must be updated.

Now, when running "sudo hp-plugin -i" I am greeted with:

error: hp-plugin should not be run as root/superuser

OK, tried again with my user but I don't know how it will install the plugins system-wide. Now, "hp-plugin -i" seems to work, until after it properly downloaded hplip-3.15.7-plugin.run. Then it just spins its progress indicator and "pstree -pl" shows this:

|-bash(7573)---hp-plugin(10319)---sh(10356)---hplip-plugin-in(10414)---python3(10417)---su(10443)

Apparently, "su" is run but no root password prompt is shown and neither any GUI helper shows up in X11. Ctrl-C obviously stops "su" and hp-plugin reports the keyboard stopping, the result is that no plugin is installed.

"dnf downgrade hplip hplip-gui hpijs hplip-compat-libs libsane-hpaio hplip-libs hplip-common" downgraded to 3.15.2 but "sudo hp-plugin -i" shows the same error as the last comment in #1196237 :

error: /root/.hplip/hplip-3.15.2-plugin.run file does not match its checksum. File may have been corrupted or altered

Version-Release number of selected component (if applicable):

3.15.7-1.fc22

How reproducible:

Always.

Steps to Reproduce:
1. Run "hp-plugin -i"
2. 
3. 

Actual results:

As described above.

Expected results:

"hp-plugin -i" should be able to run as root as it always did. After all, machines can be upgraded remotely and setting them up should also be able to be done by the administrator.

Additional info:

Running "hp-plugin" without "-i" does the same, but with the wizard window shown up. The download progress is shown but after pressing the Next button makes it stall, too. The "su" command is also there in pstree.

Comment 1 Zoltan Boszormenyi 2015-08-03 19:44:23 UTC
I am using MATE desktop on Fedora 22 if that counts.

Comment 2 Jiri Popelka 2015-08-11 10:56:46 UTC
Hmm, hp-plugin [-i] (3.15.7) works for me in GNOME3/gtk3.

You might try to run it with (-g) but other than that I'm not sure how to further debug this.

Comment 3 Jiri Popelka 2015-08-11 11:07:25 UTC
(also bug #1249282)

Comment 4 Jiri Popelka 2015-08-13 11:45:27 UTC
*** Bug 1252375 has been marked as a duplicate of this bug. ***

Comment 5 Jiri Popelka 2015-08-13 14:51:32 UTC
*** Bug 1249282 has been marked as a duplicate of this bug. ***

Comment 6 Jiri Popelka 2015-08-24 08:27:20 UTC
*** Bug 1256070 has been marked as a duplicate of this bug. ***

Comment 7 Zoltan Boszormenyi 2015-08-25 05:47:40 UTC
Created attachment 1066734 [details]
Output of hp-plugin -i -g

Comment 8 Zoltan Boszormenyi 2015-08-25 05:48:37 UTC
(In reply to Zoltan Boszormenyi from comment #7)
> Created attachment 1066734 [details]
> Output of hp-plugin -i -g

I pressed Ctrl-C at the end, this is where I got the python backtrace.

Comment 9 Zoltan Boszormenyi 2015-09-13 14:50:35 UTC
A new Fedora 22 installation from scratch using the MATE Spin Live DVD and installing all the upgrades before setting up the printer behaves the same. This time it happened on a computer with a HP LaserJet 1020 printer attached.

The workaround I found is to do this:

$ mkdir HP
$ cd HP
$ wget https://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/hplip-3.15.7-plugin.run
$ chmod +x hplip-3.15.7-plugin.run
$ ./hplip-3.15.7-plugin.run --noexec --keep
$ cd plugin_tmp

In the plugin_tmp directory, edit plugin_install.py and either remove or comment out lines 42-44.

Then:

$ sudo ./hplip-plugin-install

or

$ sudo ./hplip-plugin-install -i

This workaround helped with the LaserJet 1020 printer to print and I can scan with my HP LaserJet Pro MFP printer, too.

Comment 10 Zoltan Boszormenyi 2015-09-13 14:53:37 UTC
Another note I have to add (should be in a different ticket) is that the firmware for the LJ1020 is not loaded automatically. I have to create a panel icon to run "hp-firmware" before the user wants to print.

Comment 11 Jiri Popelka 2015-09-14 15:25:56 UTC
(In reply to Zoltan Boszormenyi from comment #10)
> Another note I have to add (should be in a different ticket) is that the
> firmware for the LJ1020 is not loaded automatically.

That's bug #1033952 (should be fixed in Fedora 23).

Comment 12 Zoltan Boszormenyi 2015-10-29 11:01:46 UTC
Same error with HPLIP 3.15.9

$ rpm -q hplip
hplip-3.15.9-1.fc22.x86_64

The same workaround works as for 3.15.9.
The new plugin URL is https://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/hplip-3.15.9-plugin.run

Comment 13 Jiri Popelka 2015-11-09 10:50:20 UTC
There's a work-around described in
https://bugs.launchpad.net/hplip/+bug/1486731/comments/10

Comment 14 Gustavo Maciel Dias Vieira 2015-11-12 00:48:20 UTC
I can reproduce this in GNOME3. The workaround of comment #13 works for me.

Comment 15 pavka 2015-11-29 20:23:02 UTC
% uname -a
Linux pa 4.2.0-0.bpo.1-amd64 #1 SMP Debian 4.2.6-1~bpo8+1 (2015-11-18) x86_64 GNU/Linux

% hp-plugin

HP Linux Imaging and Printing System (ver. 3.15.11)
Plugin Download and Install Utility ver. 2.1

***

HP Linux Imaging and Printing System (ver. 3.15.11)
Plugin Download and Install Utility ver. 2.1

***

Downloading plug-in from: file:///home/pa/1/hplip-3.15.11-plugin.run
\Download in progress.......100%Download in progress.......100%Receiving digital keys: /usr/bin/gpg --homedir /home/pa/.hplip/.gnupg --no-permission-warning --keyserver pgp.mit.edu --recv-keys 0x4ABA2F66DBD5A95894910E0673D770CDA59047B9
Creating directory plugin_tmp
Verifying archive integrity... All good.
Uncompressing HPLIP 3.15.11 Plugin Self Extracting Archive................................................

HP Linux Imaging and Printing System (ver. 3.15.11)
Plugin Installer ver. 3.0

***

Plug-in version: 3.15.11
Installed HPLIP version: 3.15.11
Number of files to install: 42

>>> waiting for a long time <<<

\^CTraceback (most recent call last):
  File "./plugin_install.py", line 249, in <module>
    ok = installPlugin()
  File "./plugin_install.py", line 56, in installPlugin
    status, output = utils.run(cmd, passwordObj)
  File "/usr/share/hplip/base/utils.py", line 1275, in run
    i = child.expect(EXPECT_LIST)
  File "/usr/share/hplip/base/pexpect/__init__.py", line 1418, in expect
    timeout, searchwindowsize)
  File "/usr/share/hplip/base/pexpect/__init__.py", line 1433, in expect_list
    timeout, searchwindowsize)
  File "/usr/share/hplip/base/pexpect/__init__.py", line 1502, in expect_loop
    c = self.read_nonblocking(self.maxread, timeout)
  File "/usr/share/hplip/base/pexpect/__init__.py", line 901, in read_nonblocking
    r, w, e = self.__select([self.child_fd], [], [], timeout)
  File "/usr/share/hplip/base/pexpect/__init__.py", line 1687, in __select
    return select.select(iwtd, owtd, ewtd, timeout)
KeyboardInterrupt
error: Python gobject/dbus may be not installed
error: Plug-in install failed.

# dpkg -l | grep python-gobj
ii python-gobject 3.14.0-1 all Python 2.x bindings for GObject - transitional package
ii python-gobject-2 2.28.6-12+b1 amd64 deprecated static Python bindings for the GObject library

# dpkg -l | grep python-dbus
ii python-dbus 1.2.0-2+b3 amd64 simple interprocess messaging system (Python interface)
ii python-dbus-dev 1.2.0-2 all main loop integration development files for python-dbus

###
###
help https://bugzilla.redhat.com/show_bug.cgi?id=1249414#c9

Comment 16 Jiri Popelka 2015-12-10 13:59:33 UTC
*** Bug 1252040 has been marked as a duplicate of this bug. ***

Comment 17 Jiri Popelka 2016-01-22 15:53:27 UTC
There's appeared a fix in upstream bug
https://bugs.launchpad.net/hplip/+bug/1510950

Instructions with how to test a new build (f23) with the patch applied will appear here shortly - it'd be nice if you could give it a try. thanks.

Comment 18 Fedora Update System 2016-01-22 16:05:36 UTC
hplip-3.15.11-5.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-85956eaffe

Comment 19 Zoltan Boszormenyi 2016-01-22 16:32:18 UTC
I installed hplip 3.15.11-5.fc23 and all its subpackages from koji.

Running "hp-plugin" now brings up the windows to ask for the root password under MATE. It doesn't hang anymore.

I commented on bodhi, too.

Comment 20 Fedora Update System 2016-01-24 04:50:37 UTC
hplip-3.15.11-5.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-85956eaffe

Comment 21 Fedora Update System 2016-01-27 18:43:10 UTC
hplip-3.15.11-6.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-85956eaffe

Comment 22 Fedora Update System 2016-01-28 22:27:38 UTC
hplip-3.15.11-6.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-85956eaffe

Comment 23 Fedora Update System 2016-02-09 20:54:51 UTC
hplip-3.15.11-6.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

Comment 24 Laszlo Ersek 2016-04-06 09:43:00 UTC
This bug was opened for Fedora 22, which is still supported, and still very much has this error. I checked Koji, and the most recent hplip build, for Fedora 22, is hplip-3.15.9-3.fc22 <http://koji.fedoraproject.org/koji/buildinfo?buildID=708914>, which very much has the same bug still (see comment 12 -- plus I've encountered it just today).

The differences between hplip-3.15.9-1 (comment 12) and hplip-3.15.9-3 (the most recent Fedora 22 build in Koji) do not address this issue; according to the RPM changelog, those changes target bug 1266903 and bug 1241548. (Which are not listed here as duplicates.)

Hence, in my opinion, this bug has not been fixed. Can you please build the fixed package for Fedora 22 as well? (For now I'll have to try building hplip-3.16.3-1 locally, on Fedora22.) Thanks.

Comment 25 Laszlo Ersek 2016-04-06 09:49:05 UTC
I could rebuild the hplip-3.16.3-1.fc23 SRPM locally on Fedora 22, and the plugin installation succeeded (although the rotten keyserver timed out -- how frustrating). So please make the fix available for Fedora 22 as well. Thanks!

Comment 26 Fedora Update System 2016-04-06 10:36:53 UTC
hplip-3.15.9-4.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2016-f0a25261f4

Comment 27 Laszlo Ersek 2016-04-06 10:56:05 UTC
Highly appreciated!

Comment 28 Fedora Update System 2016-04-07 16:49:40 UTC
hplip-3.15.9-4.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-f0a25261f4

Comment 29 Fedora Update System 2016-04-22 01:50:57 UTC
hplip-3.15.9-4.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.