wrong model name in models.dat

Bug #1876490 reported by Miroshnikov Andrey
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HPLIP
In Progress
Undecided
Unassigned
Gentoo Linux
Fix Released
Medium

Bug Description

There is a mistake in file /usr/share/hplip/data/models/models.dat

MFP Models HP LaserJet 100 Color MFP M175[XX] described in the section [hp_laserjet_100_colormfp_m175], but
program HP-Setup looking for [hp_laserjet_100_colormfp_m175a],[hp_laserjet_100_colormfp_m175nv], etc.
As a result, the printer is not detected.
Program HP-check detect it, but say that printer is not supported.

fix:
Create copy of [hp_laserjet_100_colormfp_m175] configuration with next section titles:
[hp_laserjet_100_colormfp_m175a]
[hp_laserjet_100_colormfp_m175b]
[hp_laserjet_100_colormfp_m175c]
[hp_laserjet_100_colormfp_m175e]
[hp_laserjet_100_colormfp_m175nw]
[hp_laserjet_100_colormfp_m175p]
[hp_laserjet_100_colormfp_m175q]
[hp_laserjet_100_colormfp_m175r]

Or add to HP-setup option for manual configuration selection for unsupported devices.

Revision history for this message
Anam Alam (anam03) wrote :

Hi

thank you for input we will try to incorporate the changes, in upcoming build releases.

Changed in hplip:
status: New → In Progress
Revision history for this message
In , public (public-gentoo-bugs) wrote :

net-print/hplip-3.20.3 does no longer decect the HP LaserJet 100 colorMFP M175nw.
It has done so for many years and suddenly stopped.

The problem is not with CUPS (the printer, once installed, still works).
The problem is with the setup (hp-setup) tool.

When it probes the network for printers with SLP, the printer replies with the model information:

hp-setup[31364]: debug: Found device: {'num_devices': 1, 'num_ports': 1, 'product_id': 'CE866A', 'status_code': 0, 'device2': '0', 'device3': '0', 'note': '', 'device1': 'MFG:Hewlett-Packard;CMD:PJL,PML,PCLXL,URP,PCL,PDF,POSTSCRIPT;MDL:HP LaserJet 100 colorMFP M175nw;CLS:PRINTER;DES:Hewlett-Packard LaserJet 100 colorMFP M175nw;MEM:MEM=110MB;COMMENT:RES=600x8;LEDMDIS:USB#ff#04#01;', 'mac': 'AAAAAAAAAAAA', 'ip': '192.168.nnn.mmm', 'hn': 'nnnmmm'}

From this, hp-setup seems to derive the model identifier "hp_laserjet_100_colormfp_m175nw", which it looks up in /usr/share/hplip/data/models/models.dat.

For some reason, that string has either disappeared from that file (even though the model is listed there, under the identifier "hp_laserjet_100_colormfp_m175":
...
model6=HP LaserJet 100 Color MFP M175nw

hp-setup[31364]: debug: Cache miss: hp_laserjet_100_colormfp_m175nw
hp-setup[31364]: debug: Reading file: /usr/share/hplip/data/models/models.dat
hp-setup[31364]: debug: Searching for section [hp_laserjet_100_colormfp_m175nw] in file /usr/share/hplip/data/models/models.dat
error: No devices found on bus: net
error: HPLIP cannot detect printers in your network. This may be due to existing firewall settings blocking the required ports.
                When you are in a trusted network environment, you may open the ports for network services like mdns and slp in the firewall. For detailed steps follow the link.
                 http://hplipopensource.com/node/374

The same happens when entering the IP or hostname of the printer directly.

Reproducible: Always

Steps to Reproduce:
1. Run hp-setup -ldebug
2. Use either SLP discovery or manually enter the printer's IP/hostname
3. Wait 5 sec
Actual Results:
An error appears both on the console and as a popup:

error: HPLIP cannot detect printers in your network. This may be due to existing firewall settings blocking the required ports.
                When you are in a trusted network environment, you may open the ports for network services like mdns and slp in the firewall. For detailed steps follow the link.
                 http://hplipopensource.com/node/374

Expected Results:
The printer should be detected and selectable for continuing the installation

Copying the entire section [hp_laserjet_100_colormfp_m175] to a new section [hp_laserjet_100_colormfp_m175nw] in /usr/share/hplip/data/models/models.dat solves the problem.

Revision history for this message
In , public (public-gentoo-bugs) wrote :

OK, for completeness' sake:

> For some reason, that string has either disappeared from that file [...]

... or hp-setup is now deriving a different string from the printer response.

Revision history for this message
In , billie (billie-gentoo-bugs) wrote :

(In reply to Markus Wernig from comment #1)
> OK, for completeness' sake:
>
> > For some reason, that string has either disappeared from that file [...]
>
> ... or hp-setup is now deriving a different string from the printer response.

Interesting!

I compared previous versions of models.dat and there are no changes to for that model. So probably the string is now derived differently.

To find this out we need to know the output from the previous working version. I guess you were using 3.19.12 before. Can you provide the same output for the latest version working for you?

Revision history for this message
In , billie (billie-gentoo-bugs) wrote :

Also did you update the binary plug-in to the same version? According to the supported devices your model needs one!

Revision history for this message
In , public (public-gentoo-bugs) wrote :

I downgraded to 3.19.12-r1 and keep getting the same error.

The model info that gets logged seems identical:

hp-setup[14755]: debug: Found device: {'num_devices': 1, 'num_ports': 1, 'product_id': 'CE866A', 'status_code': 0, 'device2': '0', 'device3': '0', 'note': '', 'device1': 'MFG:Hewlett-Packard;CMD:PJL,PML,PCLXL,URP,PCL,PDF,POSTSCRIPT;MDL:HP LaserJet 100 colorMFP M175nw;CLS:PRINTER;DES:Hewlett-Packard LaserJet 100 colorMFP M175nw;MEM:MEM=110MB;COMMENT:RES=600x8;LEDMDIS:USB#ff#04#01;', 'mac': 'AAAAAAAAAAAA', 'ip': '192.168.nnn.mmm', 'hn': 'nnnmmm'}

I just noticed that the HP device manager also no longer recognizes the printer (simply doesn't show it in the device list) as long as it's missing in models.dat.
When I add the section with the "correct" string and refresh the device list, it shows up, both with 3.19 and 3.20.

Maybe a red herring: When it worked, the system was using an earlier python version.

Revision history for this message
In , billie (billie-gentoo-bugs) wrote :

(In reply to Markus Wernig from comment #4)
> I downgraded to 3.19.12-r1 and keep getting the same error.
>
> The model info that gets logged seems identical:
>
> hp-setup[14755]: debug: Found device: {'num_devices': 1, 'num_ports': 1,
> 'product_id': 'CE866A', 'status_code': 0, 'device2': '0', 'device3': '0',
> 'note': '', 'device1':
> 'MFG:Hewlett-Packard;CMD:PJL,PML,PCLXL,URP,PCL,PDF,POSTSCRIPT;MDL:HP
> LaserJet 100 colorMFP M175nw;CLS:PRINTER;DES:Hewlett-Packard LaserJet 100
> colorMFP M175nw;MEM:MEM=110MB;COMMENT:RES=600x8;LEDMDIS:USB#ff#04#01;',
> 'mac': 'AAAAAAAAAAAA', 'ip': '192.168.nnn.mmm', 'hn': 'nnnmmm'}
>
> I just noticed that the HP device manager also no longer recognizes the
> printer (simply doesn't show it in the device list) as long as it's missing
> in models.dat.
> When I add the section with the "correct" string and refresh the device
> list, it shows up, both with 3.19 and 3.20.
>
> Maybe a red herring: When it worked, the system was using an earlier python
> version.

The only way to find this out is running hplip trying aain with the old python version. Do you know which version this was, I guess python-3.7?

What is the output of "emerge --info net-print/hplip"?

Revision history for this message
In , billie (billie-gentoo-bugs) wrote :

I looked at the upstream bug tracker and there are a lot of issues regarding this and similar models:

https://bugs.launchpad.net/hplip/+bug/1697958
https://bugs.launchpad.net/hplip/+bug/1724151
https://bugs.launchpad.net/hplip/+bug/1832751
https://bugs.launchpad.net/hplip/+bug/1843592
https://bugs.launchpad.net/hplip/+bug/1863375
https://bugs.launchpad.net/hplip/+bug/1876490

The last one sounds promising as it says this will be fixed in the next release!

Changed in gentoo:
importance: Unknown → Medium
status: Unknown → New
Revision history for this message
zdohnal (zdohnal) wrote :

Hi Anam Alam,

there are older tickets for the issue, some of them with patches:

https://bugs.launchpad.net/hplip/+bug/1843592
https://bugs.launchpad.net/hplip/+bug/1863375
https://bugs.launchpad.net/hplip/+bug/1832751

Please look into your ticket backlog, the issue is one year old.

Especially the ticket https://bugs.launchpad.net/hplip/+bug/1843592 has Andrey's suggestion implemented as a patch (which was merely revert commit of your HPLIP change in 3.19.1).

The patch works correctly over a year in Fedora.

Would you mind adding the patch?

Changed in gentoo:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.