HP LaserJet Pro MFP M28-M31 does not scan HPLIP 3.18.12

Bug #1821932 reported by amasterov
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
HPLIP
In Progress
Undecided
Unassigned

Bug Description

Error on scan over wifi.
Plugin is installed.
hp-check output is attached.
I am ready to perform any help if you need it.
Here is hp-scan log:

[alex@alex-ub test-135]$ hp-scan hpaio:/net/HP_LaserJet_MFP_M28-M31?ip=192.168.0.227

HP Linux Imaging and Printing System (ver. 3.18.12)
Scan Utility ver. 2.2

Copyright (c) 2001-15 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.

[sanei_debug] Setting debug level of dll to 0.

-----------------
| SELECT DEVICE |
-----------------

  Num Scan device URI
  -------- ---------------------------------------------------
  0 v4l:/dev/video0
  1* hpaio:/net/HP_LaserJet_MFP_M28-M31?ip=192.168.0.227

Enter number 0...1 for device (q=quit, <enter>=default: 1*) ?
warning: No destinations specified. Adding 'file' destination by default.
[sanei_debug] Setting debug level of dll to 0.
Using device hpaio:/net/HP_LaserJet_MFP_M28-M31?ip=192.168.0.227
Opening connection to device...

Resolution: 300dpi
Mode: gray
Compression: JPEG
Scan area (mm):
  Top left (x,y): (0.000000mm, 0.000000mm)
  Bottom right (x,y): (215.900009mm, 297.010681mm)
  Width: 215.900009mm
  Height: 297.010681mm
Destination(s): file
Output file:
warning: File destination enabled with no output file specified.
Setting output format to PNG for greyscale mode.
warning: Defaulting to '/home/alex/projects/ppro/test-135/hpscan001.png'.

Warming up...

Scanning...
error: SANE: Error during device I/O (code=9)
Closing device.

Tags: scan
Revision history for this message
amasterov (amasterov) wrote :
Revision history for this message
brian_p (claremont102) wrote :

Scan and look at the journalctl output. Anything?

--
Brian.

Revision history for this message
amasterov (amasterov) wrote :

Thank you for your answer!
The full output is in the attachment.
Here are the error lines only:

Mar 28 08:13:06 alex-ub python3[8187]: io/hpmud/model.c 532: no laserjet_mfp_m28-m31 attributes found in /usr/share/hplip/data/models/models.dat
Mar 28 08:13:06 alex-ub python3[8187]: io/hpmud/model.c 543: no laserjet_mfp_m28-m31 attributes found in /usr/share/hplip/data/models/unreleased/unre>
Mar 28 08:13:28 alex-ub /hp-scan[8187]: io/hpmud/model.c 532: no laserjet_mfp_m28-m31 attributes found in /usr/share/hplip/data/models/models.dat
Mar 28 08:13:28 alex-ub /hp-scan[8187]: io/hpmud/model.c 543: no laserjet_mfp_m28-m31 attributes found in /usr/share/hplip/data/models/unreleased/unr>
Mar 28 08:13:28 alex-ub /hp-scan[8187]: common/utils.c 245: unable to load library libm.so: /lib64/libm.so: invalid ELF header
Mar 28 08:13:29 alex-ub /hp-scan[8187]: scan/sane/escl.c 798: control_option failed: option=geometry-group action=set
Mar 28 08:13:29 alex-ub /hp-scan[8187]: scan/sane/escl.c 798: control_option failed: option=geometry-group action=set
Mar 28 08:13:29 alex-ub /hp-scan[8187]: scan/sane/escl.c 798: control_option failed: option=geometry-group action=set
Mar 28 08:13:29 alex-ub /hp-scan[8187]: scan/sane/escl.c 798: control_option failed: option=geometry-group action=set
Mar 28 08:13:30 alex-ub /hp-scan[8187]: bb_escl.c 1616: bb_get_scanjob..
Mar 28 08:13:31 alex-ub /hp-scan[8187]: http.c 322: invalid http_status=503
Mar 28 08:13:31 alex-ub /hp-scan[8187]: http.c 328: dumping len=127
Mar 28 08:13:32 alex-ub /hp-scan[8187]: io/hpmud/jd.c 694: timeout read_channel sec=1 hp:/net/HP_LaserJet_MFP_M28-M31?ip=192.168.0.227
Mar 28 08:13:33 alex-ub /hp-scan[8187]: io/hpmud/jd.c 694: timeout read_channel sec=1 hp:/net/HP_LaserJet_MFP_M28-M31?ip=192.168.0.227
Mar 28 08:13:34 alex-ub /hp-scan[8187]: io/hpmud/jd.c 694: timeout read_channel sec=1 hp:/net/HP_LaserJet_MFP_M28-M31?ip=192.168.0.227
Mar 28 08:13:36 alex-ub /hp-scan[8187]: io/hpmud/jd.c 694: timeout read_channel sec=1 hp:/net/HP_LaserJet_MFP_M28-M31?ip=192.168.0.227
Mar 28 08:13:36 alex-ub /hp-scan[8187]: http.c 157: read_stream error stat=49
Mar 28 08:13:36 alex-ub /hp-scan[8187]: hp-scan[8187]: error: SANE: Error during device I/O (code=9)

Revision history for this message
brian_p (claremont102) wrote :

> o/hpmud/model.c 532: no laserjet_mfp_m28-m31 attributes
> found in /usr/share/hplip/data/models/models.dat

See https://bugs.launchpad.net/hplip/+bug/1817214

--
Brian.

Revision history for this message
brian_p (claremont102) wrote :

Hi amasterov,

I have just been dealing with a user with the same device as you have and who has a scanning issue. It would be very, very useful to know whether any of the three techniques mentioned at

  https://bugs.launchpad.net/hplip/+bug/1817214

work for you.

Thanks,

--
Brian.

Revision history for this message
amasterov (amasterov) wrote :

Hi brian_p,

Turning AirPrint off does not help. Screenshot of printer's settings is attached. The error messages are exactly the same as with AirPrint enabled.

Modification of models.dat eliminates "no attributes found" error, but scanimage -L shows another entry:
[alex@alex-ub Загрузки]$ scanimage -L
device `v4l:/dev/video0' is a Noname USB2.0 HD UVC WebCam: USB2.0 HD virtual device
device `hpaio:/net/HP_LaserJet_MFP_M28-M31?ip=192.168.0.227' is a Hewlett-Packard HP_LaserJet_MFP_M28-M31 all-in-one
device `hpaio:/net/laserjet_mfp_m28-m31?ip=192.168.0.227&queue=false' is a Hewlett-Packard laserjet_mfp_m28-m31 all-in-one

And scanning does not work with I/O Error.
Errors in journalctl (models.dat modified):
Mar 30 17:49:07 alex-ub xsane[2498]: bb_escl.c 1616: bb_get_scanjob..
Mar 30 17:49:07 alex-ub xsane[2498]: http.c 322: invalid http_status=503
Mar 30 17:49:07 alex-ub xsane[2498]: http.c 328: dumping len=127
Mar 30 17:49:08 alex-ub xsane[2498]: io/hpmud/jd.c 694: timeout read_channel sec=1 hp:/net/HP_LaserJet_MFP_M28-M31?ip=192.168.0.227
Mar 30 17:49:09 alex-ub xsane[2498]: io/hpmud/jd.c 694: timeout read_channel sec=1 hp:/net/HP_LaserJet_MFP_M28-M31?ip=192.168.0.227
Mar 30 17:49:10 alex-ub xsane[2498]: io/hpmud/jd.c 694: timeout read_channel sec=1 hp:/net/HP_LaserJet_MFP_M28-M31?ip=192.168.0.227
Mar 30 17:49:11 alex-ub xsane[2498]: io/hpmud/jd.c 694: timeout read_channel sec=1 hp:/net/HP_LaserJet_MFP_M28-M31?ip=192.168.0.227
Mar 30 17:49:11 alex-ub xsane[2498]: http.c 157: read_stream error stat=49

Revision history for this message
brian_p (claremont102) wrote :

Thank you very much, Alex. Apart from a plugin problem (which we can do nothing about), I cannot see a way to a solution for non-scanning with this device. The only other thing might be to try turning Bonjour off as well as AirPrint.

--
Brian.

Revision history for this message
amasterov (amasterov) wrote :

Windows from virtual box scans OK.

I have tried to get tcpdump of scanning with Linux host and compare it with the same from Windows host. The difference is that if HPLIP gets 503 http return code it throws an error, and Windows when it gets 503 retries in 100 ms. That's the difference as far as I understand.

Revision history for this message
Umesh Mahindrakar (umesh.mahindrakar) wrote :

Hi Amasterov,

This issue is seen as if we did not enable “ Enable Remote User Auto Capture “ option in the EWS page of the device.
Once we enabled this option, we were able to do the scan.

To enable the option :
1) Connect the device and PC in same network
2) Open a Web browser, and in the address field, type the device IP address exactly as it displays on the Configuration Page, and then press Enter.
NOTE: If the Web browser displays a message indicating that accessing the website might not be safe, select the option to continue to the website. Accessing this website will not harm the computer.
3) On the top navigation tabs, select the Security tab.
4) In the Web Scan Auto Capture Jobs, select the Enable Remote User Auto Capture check box.
After that restart the device (i.e., printer/scanner)

Thanks,
Umesh

Changed in hplip:
status: New → In Progress
Revision history for this message
brian_p (claremont102) wrote :

Hello Alex,

Is Umesh's advice a solution to your issue?

--
Brian.

Revision history for this message
amasterov (amasterov) wrote :

Hello Umesh and Brian!

Unfortunately I do not have the security tab on the top navigation tabs.
I have the Security setting in the Networking tab, but there is no "Web Scan Auto Capture Jobs" or "Enable Remote User Auto Capture". May be the solution is for another model/firmware
The screenshot is atthached

Revision history for this message
brian_p (claremont102) wrote :

Thank you for that, Alex. Your observation is repeated in bug 1811504. It is hard not to see this issue as involving some interaction with the ESCL part of the plugin and the solution lying there.

--
Brian.

Revision history for this message
Ben Bipod (benbipod) wrote :

Consolidating multile reports about scan problems with LaserJet Pro MFP M28-M31 to bug #1811504 as it seems to be the most advanced and even has a workaround.

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.