Bug 26947 - hp-setup confuses network printers
Summary: hp-setup confuses network printers
Status: UPSTREAM
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: Mageia 9
Assignee: Aurelien Oudelet
QA Contact:
URL:
Whiteboard: MGA7TOO MGA8TOO
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-14 06:46 CEST by Tony Blackwell
Modified: 2023-12-16 23:52 CET (History)
3 users (show)

See Also:
Source RPM: hplip-3.20.11-1.mga8.src.rpm
CVE:
Status comment:


Attachments
screensave failed add 2nd printer (204.95 KB, image/png)
2020-12-14 22:50 CET, Tony Blackwell
Details
output of hp-doctor (18.23 KB, application/vnd.oasis.opendocument.text)
2021-05-10 08:06 CEST, Tony Blackwell
Details
Converting hp-doctor.odt to a .txt file to be seen here. (13.58 KB, text/plain)
2021-05-10 10:50 CEST, Aurelien Oudelet
Details
output of hp-doctor in .txt format (13.58 KB, text/plain)
2021-05-11 01:05 CEST, Tony Blackwell
Details

Description Tony Blackwell 2020-07-14 06:46:49 CEST
Description of problem:
hp-setup has previously had no problem with my manual discovery by pre-configured network address of 2 printers of the same model but assigned different addresses. (unfortunately it gives them the same name, so I have to remember their order).

Now in M8 alpha1, after I've used manual discovery of one of our HP Officejet Pro 8600 Plus's with address 192.168.0.52 and proceeded with the hp-setup dialog, it reports something to the effect that this is already configured, and do I want to assign another port.  In fact, what is already configured is the same model printer but with address 192.168.0.51.  hp-setup did not have this problem in M7

A consequence, for example, is that xsane doesn't see the scanner just configured, gives no choice of multifunction printer, just goes straight through to 192.168.0.51 which is elsewhere on the network.


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


How reproducible:


Steps to Reproduce:
1.
2.
3.
Comment 1 Tony Blackwell 2020-07-14 07:11:18 CEST
Hmm, deleted hplip, deleted all printers & faxes via MCC.  Restarted, reinstalled hplip.  Rebooted, ran hp-setup.  
Didn't get to the graphical window:

[tony@oldtony ~]$ hp-setup

HP Linux Imaging and Printing System (ver. 3.20.6)
Printer/Fax Setup Utility ver. 9.0

Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

Traceback (most recent call last):
  File "/usr/bin/hp-setup", line 313, in <module>
    ui = import_module(ui_package + ".setupdialog")
  File "/usr/lib64/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 961, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'ui5'
[tony@oldtony ~]$ 

Is there something missing from the package?
Tony
Comment 2 Tony Blackwell 2020-07-14 07:44:38 CEST
Update:  Problem with re-installed hp-setup dot proceeding to graphical part was that I'd deleted hplip gui and it didn't re-install with hplip re-installation.

That aside, I've confirmed the problem on a 2nd M8 alpha1 installation.  Whichever of the 2 printers 192.168.0.51 or same.52 are installed first, install OK.  A later attempt to install the other one fails, saying the print queue already exists, which is not true

Can ping both printers.

I note that following the manual discovery step of the 2nd printer, the correct printer with its correct network address is displayed in hp-setup, but trying to progress from there is what fails with the faulty 'duplicate print queue' message.  Get same message for whichever is the 2nd printer - have tried installing .51 or .52 first - first printer installed works, 2nd fails
Tony
Comment 3 Lewis Smith 2020-07-21 13:13:41 CEST
On Mageia 7, the current version is: hplip-3.19.5-1.mga7
It has had a lot of new versions since, 3.19.6->12, 3.20.2->6, so plenty of opportunity for changes.

Can you try a forum on this one, Tony? Not only to see whether anyone else has this problem, but possibly pin down which update introduced it.

Source RPM: (none) => hplip-3.20.6-1.mga8.src.rpm
CC: (none) => lewyssmith

Aurelien Oudelet 2020-09-02 17:51:19 CEST

CC: (none) => ouaurelien

Comment 4 Aurelien Oudelet 2020-12-11 21:38:53 CET
Status of this in M8 Beta 2?
Comment 5 Tony Blackwell 2020-12-14 22:50:59 CET
Created attachment 12079 [details]
screensave failed add 2nd printer

M8beta2 x86_64 still shows same problem at fresh install with only task-printing-hp and task-scanning added after initial M8 installation.  

Attached pic shows successful config of printer at 192.168.0.51, but failed attempt to attach different printer of same HP model at 192.168.0.52  The terminal window in the screensave shows hp-setup found the printer at 192.168.0.52, but then erroneously reports that one or more print queues already exist for this device.
Tony
Comment 6 Tony Blackwell 2020-12-14 23:34:36 CET
...and I've just updated the new M8beta2 to current, added 559 packages as of 15/12/2020, rebooted but still same bug.  hplip version 3.20.11
Tony
Comment 7 Aurelien Oudelet 2020-12-19 16:58:59 CET
@ Tony,

Thanks answering.
It seems there is 2 same models of HP printers on the same network.
And HPLIP tries to add a print-job queue with the same name to CUPS server, because it uses the model as name.

Have you ever the ability to rename the second model name of the print job before saving?
Comment 8 Tony Blackwell 2021-01-09 23:21:46 CET
Hmmm, not sure how to do that.

The issue is still there with M8 x86_64-rc.

Seems to me that the problem is deeper than just the name of the printer.  Many earlier versions of hp-setup had no problem in this regard.  The core issue now is that when I manually configure e.g. printer at 192.168.0.51 it is added just fine, but when I do the same for printer at 192.168.0.52 it says printer queue already exists for this device, which is obviously not so.  hp-setup seems to be ignoring the device IP address it was given, which is (relatively) new behaviour which hadn't been present over many iterations previously.
Tony

Whiteboard: (none) => MGA8-x86_64-rc

Comment 9 Aurelien Oudelet 2021-01-17 17:12:19 CET
Since I do not have 2 HP printers, and since this seems to be a hplip issue, this should be reported upstream.

@Tony, have you ever tested if same behaviour occurs with an other Linux distribution like Fedora or even Ubuntu?
Comment 10 Juergen Harms 2021-02-26 09:45:14 CET
I had an - apparently related/similar - problem with a networked multifunction printer (MFP M281fdw) - OK up to and including Beta-2, the problem only appearing after a recent update:

(a) scanimage -L does not report seeing the scanner, and (b) the scanner configuration dialog is not triggered.

https://help.ubuntu.com/community/HpAllInOne

proposes a manual procedure for configuring networked mfp printers, that I used as a workaround. That solved the problem for me, but with slight modifications applied :
- in the list provided by hp-makeuri, replace the term "hpfax" by "hp"
- restart cups with systemctl

That might help also in your 2-printer case

CC: (none) => juergen.harms

Juergen Harms 2021-02-26 09:45:36 CET

CC: juergen.harms => (none)

Comment 11 Aurelien Oudelet 2021-03-08 10:09:00 CET
Hi, note that hplip-3.21.2-1.mga8 is in Core/updates_testing

Source RPM: hplip-3.20.6-1.mga8.src.rpm => hplip-3.20.11-1.mga8.src.rpm

Aurelien Oudelet 2021-03-08 10:09:16 CET

Whiteboard: MGA8-x86_64-rc => (none)
Status: NEW => NEEDINFO
Version: Cauldron => 8

Aurelien Oudelet 2021-03-08 10:09:28 CET

Assignee: bugsquad => ouaurelien

Comment 12 Tony Blackwell 2021-03-08 21:42:51 CET
sorry, just to note that I've been interstate for the last month, no access to the 2-same-printers but will be back next week so can work further on it.  (Not lack of interest in contributing to a fix!)
Tony
Comment 13 Aurelien Oudelet 2021-05-08 16:56:27 CEST
(In reply to Aurelien Oudelet from comment #9)
> Since I do not have 2 HP printers, and since this seems to be a hplip issue,
> this should be reported upstream.
> 
> @Tony, have you ever tested if same behaviour occurs with an other Linux
> distribution like Fedora or even Ubuntu?

This is an upstream hplip issue. It should name the second printer queue with a 2 number instead of trying to add a same named printer queue in cups.

So, as long as you, Tony, own 2 hp printers, you should report upstream the issue here:

https://launchpad.net/hplip/+filebug

You will need an Ubuntu account.

Status: NEEDINFO => UPSTREAM

Aurelien Oudelet 2021-05-08 16:56:42 CEST

Whiteboard: (none) => MGA7TOO MGA8TOO
Target Milestone: --- => Mageia 9
Version: 8 => Cauldron

Comment 14 Tony Blackwell 2021-05-09 23:37:34 CEST
Quick question - why report an hplip problem to Ubuntu?  I'd previously tried to find an HP site...  What don't I know about authorship of hplip?
Tony
Comment 15 Dave Hodgins 2021-05-10 00:47:54 CEST
(In reply to Tony Blackwell from comment #14)
> Quick question - why report an hplip problem to Ubuntu?  I'd previously
> tried to find an HP site...  What don't I know about authorship of hplip?
> Tony

https://sourceforge.net/projects/hplip/support states that
https://launchpad.net/hplip is the place to get support. Presumably the
author(s) uses ubuntu.

CC: (none) => davidwhodgins

Comment 16 Tony Blackwell 2021-05-10 08:06:41 CEST
Created attachment 12708 [details]
output of hp-doctor
Comment 17 Tony Blackwell 2021-05-10 08:11:02 CEST
Added bug report at
https://bugs.launchpad.net/hplip/+bug/1927908

But to Mageia:
Looking at output of hp-doctor (which I didn't know about until now), please review attached file.  There may be issues there which HPLIP folk may consider outside their remit at present.

What have we done differently in M8 to cause this to fail, where it has worked for years in earlier iterations of Mageia.

Why does it seem to be looking for all those 32-bit packages?

Tony
Comment 18 Aurelien Oudelet 2021-05-10 10:50:43 CEST
Created attachment 12709 [details]
Converting hp-doctor.odt to a .txt file to be seen here.

Please later add plain text file as a .txt one to be read within the browser.
Comment 19 Aurelien Oudelet 2021-05-10 10:54:39 CEST
hplip does not support our distribution from upstream installer. It does not reference us.

This can be a topic we can discuss between us and upstream.

hp-doctor software use hard-coded stuffs and packages names that come from Ubuntu and derivatives name conventions. We can't deal with them.

hp-upgrade is removed from our policy as we don't allow Mageia's packaged software to have self-updating functionality. This is a security issue.
Comment 20 Tony Blackwell 2021-05-11 01:05:20 CEST
Created attachment 12710 [details]
output of hp-doctor in .txt format

Output of hp-doctor in .txt format.  Yes, I wondered about that as I attached the .odt but chose that as perhaps better formatted than .txt. Won't do it again!

Are there any issues reveaqled in that which HP would expect us to be dealing with?
Tony
Comment 21 Aurelien Oudelet 2021-05-16 22:29:15 CEST
(In reply to Tony Blackwell from comment #20)
> Created attachment 12710 [details]
> output of hp-doctor in .txt format
> 
> Output of hp-doctor in .txt format.  Yes, I wondered about that as I
> attached the .odt but chose that as perhaps better formatted than .txt.
> Won't do it again!
> 
> Are there any issues reveaqled in that which HP would expect us to be
> dealing with?
> Tony

No, as I previously said:
hp-doctor software use hard-coded stuffs and packages names that come from Ubuntu and derivatives name conventions. We can't deal with them.

hp-upgrade is removed from our policy as we don't allow Mageia's packaged software to have self-updating functionality. This is a security issue.

I don't see anything things we could care of.

But, I already ask upstream to add support for Mageia Distribution. I don't have an answer for now.
Comment 22 Tony Blackwell 2023-11-28 22:26:48 CET
Current update on this bug.  HP-Setup is still at fault in that if you accept the default naming for the first printer, it gets added OK.  If you accept the identical default printer name for the second identical printer, hp-setup will consider them to be the same printer and refuse to add the second despite them being at different network addresses.  Still the same bug.

However, the work-around now is simple.  Just give the printer a different name while saving the hp-setup configuration and then all is well.

So, although hp-setup still hs the same bug, given that its upstream, they don't seem to be doing anything about it and there is now a work-around, I'd suggest we close this.

Tony
Comment 23 Tony Blackwell 2023-12-16 23:52:54 CET
Aurelian are you happy if I just close this?
Tony

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