Mistake in models.dat for Color Laserjet M280

Bug #1851013 reported by Steffen L on 2019-11-02
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
HPLIP
Undecided
Unassigned
hplip (Fedora)
Fix Committed
Undecided

Bug Description

When scanning for a Color Laserjet M280 with hp-setup on the network it is not being found, even when specifiying the ip address. Running hp-setup in debug mode shows that the printer is reporting itself as "hp_colorlaserjet_mfp_m278-m281", but the section in models.dat reads "hp_color_laserjet_mfp_m278-m281" (note the extra _). Therefore the printer is not found at all and can not be used.

hplip version: 3.19.10
Distribution: Linux Mint 19.2
Printer firmware date: 20190716

Editing the section name in models.dat fixes the problem and the printer can be installed. This is the output of hp-check after manually editing models.dat:

HP Linux Imaging and Printing System (ver. 3.19.10)
Dependency/Version Check Utility ver. 15.1

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.

Note: hp-check can be run in three modes:
1. Compile-time check mode (-c or --compile): Use this mode before compiling the HPLIP supplied tarball (.tar.gz or .run) to determine if the proper dependencies are installed to
successfully compile HPLIP.
2. Run-time check mode (-r or --run): Use this mode to determine if a distro supplied package (.deb, .rpm, etc) or an already built HPLIP supplied tarball has the proper dependencies
installed to successfully run.
3. Both compile- and run-time check mode (-b or --both) (Default): This mode will check both of the above cases (both compile- and run-time dependencies).

Check types:
a. EXTERNALDEP - External Dependencies
b. GENERALDEP - General Dependencies (required both at compile and run time)
c. COMPILEDEP - Compile time Dependencies
d. [All are run-time checks]
PYEXT SCANCONF QUEUES PERMISSION

Status Types:
    OK
    MISSING - Missing Dependency or Permission or Plug-in
    INCOMPAT - Incompatible dependency-version or Plugin-version

---------------
| SYSTEM INFO |
---------------

 Kernel: 4.15.0-66-generic #75-Ubuntu SMP Tue Oct 1 05:24:09 UTC 2019 GNU/Linux
 Host: sam
 Proc: 4.15.0-66-generic #75-Ubuntu SMP Tue Oct 1 05:24:09 UTC 2019 GNU/Linux
 Distribution: 22 19.2
 Bitness: 64 bit

-----------------------
| HPLIP CONFIGURATION |
-----------------------

HPLIP-Version: HPLIP 3.19.10
HPLIP-Home: /usr/share/hplip
HPLIP-Installation: Auto installation is supported for linuxmint distro 19.2 version

Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf. Generated from hplip.conf.in by configure.

[hplip]
version=3.19.10

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.19.10
html=/usr/share/doc/hplip-3.19.10
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv/hp
bin=/usr/bin
apparmor=/etc/apparmor.d
# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
libusb01-build=no
pp-build=no
gui-build=yes
scanner-build=yes
fax-build=yes
dbus-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
hpijs-install=no
foomatic-drv-install=no
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=no
internal-tag=3.19.10
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
qt5=no
policy-kit=no
lite-build=no
udev_sysfs_rules=no
hpcups-only-build=no
hpijs-only-build=no
apparmor_build=yes
class-driver=no

Current contents of '/var/lib/hp/hplip.state' file:
Plugins are not installed. Could not access file: Datei oder Verzeichnis nicht gefunden

Current contents of '~/.hplip/hplip.conf' file:
[upgrade]
notify_upgrade = true
last_upgraded_time = 1572686550
pending_upgrade_time = 0
latest_available_version = 3.17.10

[last_used]
device_uri = "hp:/net/HP_ColorLaserJet_MFP_M278-M281?ip=192.168.1.25"
printer_name =
working_dir = .

[settings]
systray_visible = 0
systray_messages = 0

[commands]
scan = /usr/bin/xsane -V %SANE_URI%

[refresh]
rate = 30
enable = false
type = 1

[polling]
enable = false
interval = 5
device_list =

[fax]
voice_phone =
email_address =

[installation]
date_time = 02.11.2019 11:17:08
version = 3.19.10

 <Package-name> <Package-Desc> <Required/Optional> <Min-Version> <Installed-Version> <Status> <Comment>

--------------
| COMPILEDEP |
--------------

 gcc gcc - GNU Project C and C++ Compiler REQUIRED - 7.4.0 OK -
 make make - GNU make utility to maintain groups of programs REQUIRED 3.0 4.1 OK -
 libtool libtool - Library building support services REQUIRED - 2.4.6 OK -

------------------------
| General Dependencies |
------------------------

 libcrypto libcrypto - OpenSSL cryptographic library REQUIRED - 1.1.1 OK -
 python-xml Python XML libraries REQUIRED - 2.2.5 OK -
 libnetsnmp-devel libnetsnmp-devel - SNMP networking library development files REQUIRED 5.0.9 5.7.3 OK -
 sane-devel SANE - Scanning library development files REQUIRED - - OK -
 pil PIL - Python Imaging Library (required for commandline scanning with hp-scan) OPTIONAL - 5.1.0 OK -
 pyqt4-dbus PyQt 4 DBus - DBus Support for PyQt4 REQUIRED 4.0 4.12.1 OK -
 libpthread libpthread - POSIX threads library REQUIRED - 2.27 OK -
 python-devel Python devel - Python development files REQUIRED 2.2 2.7.15 OK -
 cups-devel CUPS devel- Common Unix Printing System development files REQUIRED - 2.2.7 OK -
 python-dbus Python DBus - Python bindings for DBus REQUIRED 0.80.0 1.2.6 OK -
 cups-ddk CUPS DDK - CUPS driver development kit OPTIONAL - - OK -
 reportlab Reportlab - PDF library for Python OPTIONAL 2.0 3.4.0 OK -
 pyqt4 PyQt 4- Qt interface for Python (for Qt version 4.x) REQUIRED 4.0 4.12.1 OK -
 libusb libusb - USB library REQUIRED - 1.0 OK -
 cups-image CUPS image - CUPS image development files REQUIRED - 2.2.7 OK -
 python2X Python 2.2 or greater - Python programming language REQUIRED 2.2 2.7.15 OK -
 python-notify Python libnotify - Python bindings for the libnotify Desktop notifications OPTIONAL - - OK -
 libjpeg libjpeg - JPEG library REQUIRED - - OK -
 sane SANE - Scanning library REQUIRED - - OK -

----------------------
| Scan Configuration |
----------------------

 scanext Scan-SANE-Extension REQUIRED - 3.19.10 OK -
 hpaio HPLIP-SANE-Backend REQUIRED - 3.19.10 OK 'hpaio found in /etc/sane.d/dll.conf'

-------------------------
| External Dependencies |
-------------------------

 gs GhostScript - PostScript and PDF language interpreter and previewer REQUIRED 7.05 9.26 OK -
 scanimage scanimage - Shell scanning program OPTIONAL 1.0 1.0.27 OK -
 cups CUPS - Common Unix Printing System REQUIRED 1.1 2.2.7 OK 'CUPS Scheduler is running'
 network network -wget OPTIONAL - 1.19.4 OK -
 policykit PolicyKit - Administrative policy framework OPTIONAL - 0.105 OK -
 xsane xsane - Graphical scanner frontend for SANE OPTIONAL 0.9 0.999 OK -
 dbus DBus - Message bus system REQUIRED - 1.12.2 OK -
 avahi-utils avahi-utils OPTIONAL - 0.7 OK -

---------------------
| Python Extentions |
---------------------

 hpmudext IO-Extension REQUIRED - 3.19.10 OK -
 cupsext CUPS-Extension REQUIRED - 3.19.10 OK -

------------------------------
| DISCOVERED SCANNER DEVICES |
------------------------------

device `hpaio:/net/HP_ColorLaserJet_MFP_M278-M281?ip=192.168.1.25' is a Hewlett-Packard HP_ColorLaserJet_MFP_M278-M281 all-in-one

--------------------------
| DISCOVERED USB DEVICES |
--------------------------

No devices found.

---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------

HP_Color_LaserJet_MFP_M280nw_5EFB22_
------------------------------------
Type: Unknown
Device URI: ipps://drucker.local:631/ipp/print
PPD: /etc/cups/ppd/HP_Color_LaserJet_MFP_M280nw_5EFB22_.ppd
warning: Failed to read /etc/cups/ppd/HP_Color_LaserJet_MFP_M280nw_5EFB22_.ppd ppd file
PPD Description:
Printer status: Drucker HP_Color_LaserJet_MFP_M280nw_5EFB22_ ist im Leerlauf. Aktiviert seit Sa 02 Nov 2019 11:06:36 CET
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend for HP-Devices.

HP_ColorLaserJet_MFP_M278-M281
------------------------------
Type: Printer
Device URI: hp:/net/HP_ColorLaserJet_MFP_M278-M281?ip=192.168.1.25
PPD: /etc/cups/ppd/HP_ColorLaserJet_MFP_M278-M281.ppd
PPD Description: HP ColorLaserJet MFP M278-M281 Postscript (recommended)
Printer status: Drucker HP_ColorLaserJet_MFP_M278-M281 ist im Leerlauf. Aktiviert seit Sa 02 Nov 2019 11:05:51 CET
Communication status: Good

--------------
| PERMISSION |
--------------

-----------
| SUMMARY |
-----------

Missing Required Dependencies
-----------------------------
None

Missing Optional Dependencies
-----------------------------
None

Total Errors: 0
Total Warnings: 1

shivani mandora (shivani1708) wrote :

Hi,

Thanks for pointing out the issue. We will fix it and let you know the progress.

Thanks,
Shivani

Changed in hplip:
status: New → In Progress
brian_p (claremont102) wrote :

Shivani, I hope mentioning https://bugs.launchpad.net/hplip/+bug/1822762 is not out of place in this report. #1822762 is not yet fixed. Messages #7 and #8 could also be looked at for similar bugs.

--
Brian.

Download full text (7.8 KiB)

I have problems again with accessing my HP M281fdw LaserJet printer. It started with the fact that scanning did not work any more.

See bug 1694663 for details on problems that I had before.

In an attempt to get my LaserJet scanning again, I installed hp-plugin. The scanner did still not work. Next, I removed
/usr/share/hplip/data/models/models.dat
because I did this in the past once as well, and reinstalled hplip:
# dnf reinstall hplip*

Next I removed the two entries of the LaserJet in Gnome-Settings|Printers (the avahi discovered one and the previously manually added one).

Then I tried to reinstall the LaserJet from Gnome-Settings|Printers. But this results now in a Failed to add new printer popup window.

Here is an excerpt from my journal:

Nov 17 20:01:52 nyx gnome-shell[2579]: invalid (NULL) pointer instance
Nov 17 20:01:52 nyx gnome-shell[2579]: g_signal_handler_disconnect: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
Nov 17 20:01:54 nyx gnome-keyring-daemon[2497]: asked to register item /org/freedesktop/secrets/collection/login/53, but it's already registered
Nov 17 20:01:54 nyx gnome-keyring-daemon[2497]: asked to register item /org/freedesktop/secrets/collection/login/52, but it's already registered
Nov 17 20:01:58 nyx systemd[1]: Started dbus-:1.5-org.opensuse.CupsPkHelper.Mechanism@2.service.
Nov 17 20:01:58 nyx audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=dbus-:1.5-org.opensuse.CupsPkHelper.Mechanism@2 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Nov 17 20:01:58 nyx cupsd[1713]: REQUEST localhost - - "POST / HTTP/1.1" 401 98 CUPS-Get-Devices successful-ok
Nov 17 20:01:58 nyx cupsd[1713]: REQUEST localhost - root "POST / HTTP/1.1" 200 173 CUPS-Get-Devices -
Nov 17 20:01:58 nyx cupsd[1713]: REQUEST localhost - root "POST / HTTP/1.1" 200 327 CUPS-Get-Devices -
Nov 17 20:01:58 nyx cupsd[1713]: REQUEST localhost - root "POST / HTTP/1.1" 200 341 CUPS-Get-Devices -
Nov 17 20:01:58 nyx cupsd[1713]: REQUEST localhost - root "POST / HTTP/1.1" 200 323 CUPS-Get-Devices -
Nov 17 20:01:58 nyx cupsd[1713]: REQUEST localhost - root "POST / HTTP/1.1" 200 322 CUPS-Get-Devices -
Nov 17 20:01:58 nyx cupsd[1713]: REQUEST localhost - root "POST / HTTP/1.1" 200 331 CUPS-Get-Devices -
Nov 17 20:01:58 nyx hp[14620]: io/hpmud/pp.c 627: unable to read device-id ret=-1
Nov 17 20:01:58 nyx cupsd[1713]: REQUEST localhost - root "POST / HTTP/1.1" 200 314 CUPS-Get-Devices -
Nov 17 20:01:59 nyx gnome-keyring-daemon[2497]: asked to register item /org/freedesktop/secrets/collection/login/53, but it's already registered
Nov 17 20:01:59 nyx gnome-keyring-daemon[2497]: asked to register item /org/freedesktop/secrets/collection/login/52, but it's already registered
Nov 17 20:02:00 nyx cupsd[1713]: REQUEST localhost - root "POST / HTTP/1.1" 200 859 CUPS-Get-Devices -
Nov 17 20:02:00 nyx systemd[2478]: Started dbus-:1.2-org.fedoraproject.Config.Printing@1.service.
Nov 17 20:02:03 nyx gnome-control-c[7233]: gdkwindow-x11.c:5633 drawable is not a native X11 window
Nov 17 20:02:04 nyx gnome-keyring-daemon[2497]: asked to register item /org/freedesktop/secre...

Read more...

Maybe this bug is a duplicate of: https://bugs.launchpad.net/hplip/+bug/1851013
I will try to test if that is really the case, and report the results here.

OK, I did the test. Indeed this bug is similar as bug https://bugs.launchpad.net/hplip/+bug/1851013
I edited a line in /usr/share/hplip/data/models/models.dat as suggested.
Note that I have now this info in the file mentioned above:

[hp_colorlaserjet_mfp_m278-m281]
...
ppd-name=hp-color_laserjet_mfp_m278-m281-ps.ppd
...

Note the inconsistent use of the _ in color_laserjet and colorlaserjet

After editing the line I ran hp-setup and the printer was detected. After this, scanning via SimpleScan works as expected.

I leave it up to you to leave this bug open or to close it as duplicate of an external bug.

Jan Vlug (jan-vlug) wrote :

I would kindly ask to take comment #2 into account.

I went through a lot of trouble with my HP Color LaserJet Pro MFP M281fdw that I especially selected because the official HP website states that no plugin is required.

Changed in hplip (Fedora):
importance: Unknown → Undecided
status: Unknown → Confirmed

Hi Jan,

thank you for reporting the issue and I'm sorry for regression :(

3.19.10-2+ should now have again colorlaserjetxxx entry for m278-m281 (HP should really have a standard how their printers should report themselves...)

FEDORA-2019-722e4e3f0c has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2019-722e4e3f0c

Hi Zdenek, no need to say sorry. You are always extremely helpful and responsive. Thank you!

Changed in hplip (Fedora):
status: Confirmed → Fix Committed

hplip-3.19.10-2.fc30 has been pushed to the Fedora 30 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-2019-69e684dd40

hplip-3.19.10-2.fc31 has been pushed to the Fedora 31 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-2019-722e4e3f0c

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

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