HP Laserjet MFP m28-31 will not scan

Asked by Derek Maxted

Running Mint, 19.1
The printer is brand new, I installed it yesterday:
Loaded and installed latest HPlib
simple scan requested plugin - installed
 all functions worked perfectly yesterday.

This morning printer still prints and photocopies, but scan request seems to wake up machine/start scanning then error:
"failed to start scanner: Error during device i/o"

I really need some help quickly, I am trying to scan images for display at my fathers funeral!!!!!!

device diagnosis produced:

HP Linux Imaging and Printing System (ver. 3.19.11)
Self Diagnse Utility and Healing Utility ver. 1.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.

HP Linux Imaging and Printing System (ver. 3.19.11)
Self Diagnse Utility and Healing Utility ver. 1.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.

Checking for Deprecated items....
No Deprecated items are found

Checking for HPLIP updates....

HP Linux Imaging and Printing System (ver. 3.19.11)
HPLIP upgrade latest version ver. 1.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.

Latest version of HPLIP is already installed.

Checking for Dependencies....

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

 Kernel: 4.15.0-70-generic #79-Ubuntu SMP Tue Nov 12 10:36:11 UTC 2019 GNU/Linux
 Host: derekmax-Aspire-5733Z
 Proc: 4.15.0-70-generic #79-Ubuntu SMP Tue Nov 12 10:36:11 UTC 2019 GNU/Linux
 Distribution: 22 19.1
 Bitness: 64 bit

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

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

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

[hplip]
version=3.19.11

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.19.11
html=/usr/share/doc/hplip-3.19.11
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.11
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:
[plugin]
installed = 1
eula = 1
version = 3.19.11

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

[settings]
systray_visible = 0
systray_messages = 0

[last_used]
device_uri = "hp:/usb/HP_LaserJet_MFP_M28-M31?serial=VNC5618548"
printer_name =
working_dir = .

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

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

[polling]
enable = false
interval = 5
device_list =

[fax]
voice_phone =
email_address =

[installation]
date_time = 11/30/2019 11:15:57
version = 3.19.11

 <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.11 OK -
 hpaio HPLIP-SANE-Backend REQUIRED - 3.19.11 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.11 OK -
 cupsext CUPS-Extension REQUIRED - 3.19.11 OK -

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

device `hpaio:/usb/HP_LaserJet_MFP_M28-M31?serial=VNC5618548' is a Hewlett-Packard HP_LaserJet_MFP_M28-M31 all-in-one
device `hpaio:/usb/HP_LaserJet_MFP_M28-M31?serial=VNC5618548' is a Hewlett-Packard HP_LaserJet_MFP_M28-M31 all-in-one

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

  Device URI Model
  -------------------------------- -----------------------
  hp:/usb/HP_LaserJet_MFP_M28-M31? HP LaserJet MFP M28-M31
  serial=VNC5618548

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

Epson-Stylus-SX210
------------------
Type: Unknown
Device URI: usb://EPSON/Stylus%20SX210?serial=4C41354B3036333154&interface=1
PPD: /etc/cups/ppd/Epson-Stylus-SX210.ppd
warning: Failed to read /etc/cups/ppd/Epson-Stylus-SX210.ppd ppd file
PPD Description:
Printer status: printer Epson-Stylus-SX210 is idle. enabled since Fri 29 Nov 2019 05:46:00 PM GMT
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend for HP-Devices.

HP_LaserJet_MFP_M28-M31
-----------------------
Type: Printer
Device URI: hp:/usb/HP_LaserJet_MFP_M28-M31?serial=VNC5618548
PPD: /etc/cups/ppd/HP_LaserJet_MFP_M28-M31.ppd
warning: Failed to read /etc/cups/ppd/HP_LaserJet_MFP_M28-M31.ppd ppd file
PPD Description:
Printer status: printer HP_LaserJet_MFP_M28-M31 is idle. enabled since Fri 29 Nov 2019 06:08:55 PM GMT
Communication status: Good

iP4600-series
-------------
Type: Unknown
Device URI: usb://Canon/iP4600%20series?serial=108EC9
PPD: /etc/cups/ppd/iP4600-series.ppd
warning: Failed to read /etc/cups/ppd/iP4600-series.ppd ppd file
PPD Description:
Printer status: printer iP4600-series is idle. enabled since Tue 19 Nov 2019 03:03:56 AM GMT
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend for HP-Devices.

Stylus-TX100
------------
Type: Unknown
Device URI: usb://EPSON/Stylus%20TX100?serial=KQMZ001698&interface=1
PPD: /etc/cups/ppd/Stylus-TX100.ppd
warning: Failed to read /etc/cups/ppd/Stylus-TX100.ppd ppd file
PPD Description:
Printer status: printer Stylus-TX100 is idle. enabled since Sat 16 Nov 2019 11:29:53 PM GMT
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend for HP-Devices.

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

USB HP_LaserJet_MFP_M28-M31 Required - - OK Node:'/dev/bus/usb/002/004' Perm:' root lp rw- rw- rw- rw- r--'

Checking Permissions....

Checking for Configured Queues....
warning: Fail to read ppd=/etc/cups/ppd/Epson-Stylus-SX210.ppd file
warning: Insufficient permission to access file /etc/cups/ppd/Epson-Stylus-SX210.ppd
warning: Could not complete Queue(s) configuration check

Checking for HP Properitery Plugin's....
No plug-in printers are configured.

Diagnose completed...

More information on Troubleshooting,How-To's and Support is available on http://hplipopensource.com/hplip-web/index.html

Please close this terminal manually.

Question information

Language:
English Edit question
Status:
Expired
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
brian_p (claremont102) said :
#1

Try

simple-scan hpaio:/usb/HP_LaserJet_MFP_M28-M31?serial=VNC5618548

Revision history for this message
Derek Maxted (derekmax) said :
#2

 I typed this into command line and then ran GUI simple scan, same result - scanner powered up, error message "Failed to scan unable to start scan".

Revision history for this message
Derek Maxted (derekmax) said :
#3

I had a firewall error message, checked but firewalls not enabled according to Gufw Firewall
I have tried the wireless connection - same result

Revision history for this message
Derek Maxted (derekmax) said :
#4

This is the firewall error message:
HPLIP cannot detect devices in your network. This may be due to existing firewall settings blocking the required ports like (5353/udp). 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/375

(link not helpful but see above)
 - the ports are open and printing works fine

Revision history for this message
Derek Maxted (derekmax) said :
#5

Just tryed command line
simple-scan hpaio:/usb/HP_LaserJet_MFP_M28-M31?serial=VNC5618548
again
worse:
got same error message
 "Failed to scan unable to start scan".
immediately without waking up scanner

Revision history for this message
brian_p (claremont102) said :
#6

> I typed this into command line and then ran GUI simple scan,
> same result - scanner powered up, error message "Failed to
> scan unable to start scan".

What happens with

scanimage -d hpaio:/usb/HP_LaserJet_MFP_M28-M31?serial=VNC5618548 > image.pnm ?

--
Brian.

Revision history for this message
Derek Maxted (derekmax) said :
#7

 get error:
scanimage: sane_start: Error during device I/O

I also closed hplib, in case of conflict but no benefit

:(

Revision history for this message
brian_p (claremont102) said :
#8

Giving a URI directly to an application should result in sacnning.
Try downloading the plugin from

https://developers.hp.com/hp-linux-imaging-and-printing/plugins

and installing it with

sh hplip-3.19.11-plugin.run

--
Brian.

Revision history for this message
Derek Maxted (derekmax) said :
#9

Did that:
entered password
ran as below
same result as before
 - scanner powered up, error message "Failed to
> scan unable to start scan".

derekmax@derekmax-Aspire-5733Z:~/Downloads$ sh hplip-3.19.11-plugin.run
Verifying archive integrity... All good.
Uncompressing HPLIP 3.19.11 Plugin Self Extracting Archive..............................................................

HP Linux Imaging and Printing System (ver. 3.19.11)
Plugin Installer ver. 3.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.

Plug-in version: 3.19.11
Installed HPLIP version: 3.19.11
Number of files to install: 64

Done.
derekmax@derekmax-Aspire-5733Z:~/Downloads$

Revision history for this message
Derek Maxted (derekmax) said :
#10

Oh and in case of any orher malfunction I have unplugged it and swapped leads and ports

Revision history for this message
Derek Maxted (derekmax) said :
#11

BTW noticed this at end of diagnostic ( a few minutes ago):

Checking for HP Properitery Plugin's....
No plug-in printers are configured.

Diagnose completed...

Revision history for this message
brian_p (claremont102) said :
#12

> BTW noticed this at end of diagnostic ( a few minutes ago):
>
>Checking for HP Properitery Plugin's....
> No plug-in printers are configured.
>
> Diagnose completed...

Yes. I noticed this in an earlier post. That is why I suggested a reinstallation
of the plugin.

--
Brian.

Revision history for this message
brian_p (claremont102) said :
#13

Hello Derek,

From the point of view of a number of users you have a problem scanner
from HP. See

https://bugs.launchpad.net/hplip/+bug/1815794
https://bugs.launchpad.net/bugs/1811504

Not to underplay your issue, but can you not use your Epson for urgent tasks?

--
Brian.

Revision history for this message
Derek Maxted (derekmax) said :
#14

Brian, thank you for staying with this.
I live in Australia, where the Epson scanner was very "plug and play", but I am back with my mother in UK now after my father died a couple of weeks ago, trying to do the presentation and order of service for the funeral. Bought the hp because I needed a printer and a photocopier and a scanner and I wanted laser printing for speed :( . I have the older version of the HP printer alone in Oz and that works fine too and was plug and play.
Back to the bug reports, I cannot really claim I understand the full extent of the solutions you all tried but do I take it that basically there is no solution? Should I try to return the printer and get something else?
Derek

Revision history for this message
brian_p (claremont102) said :
#15

There must some Linux user somewhere who scans successfully with
the M28-M31 but, so far, they have not stepped forward to say how.

 I'll point you in the direction of

https://gitlab.com/sane-escl/sane-escl

It is not too hard to install the git package and the instructions for getting
a Debian package are pretty good. It works for me with my ENVY 4500 (but
so does HPLIP). My reservation is the time you have at your disposal. Perhaps
a return would be more time time efficient?

--
Brian.

Revision history for this message
Derek Maxted (derekmax) said :
#16

Thanks
" I'll point you in the direction of

https://gitlab.com/sane-escl/sane-escl"

Thought I'd look - I'd try anything that looked feasible, but reading the page I can't see how actually to download anything and get started (I am fairly new to Linux)
cheers
Derek

Revision history for this message
Derek Maxted (derekmax) said :
#17

I am OK with command line working (they were all like that when I started), Just havn't been in Linux that long - first real blockage i've had with it.

Revision history for this message
Derek Maxted (derekmax) said :
#18

Tried both scripts on the
https://gitlab.com/sane-escl/sane-escl (redhat and debian)

neither worked I guess I'm out of my depth.
I notice that the MFP M28-M31 is missing from the HPlib support list AND the apple air print list - the apple chat was not able to tell me if this printer is supported there either so odds are the sane fix won't work. The real mystery is why it worked on the first day of installation but not afterwards.

Revision history for this message
Derek Maxted (derekmax) said :
#19

Had a second look, got the development environment to run OK but the build was full of errors so the install scripts didn't work either, I think I'm out of options - I'll get dressed and get back to th shop!

Revision history for this message
Derek Maxted (derekmax) said :
#20

exchanged printer for envy 2020, not what I wanted but it works!
cheers
derek

Revision history for this message
brian_p (claremont102) said :
#21

Are sure you mean envy 2020? I cannot find this device onlime.

--
Brian.

Revision history for this message
Derek Maxted (derekmax) said :
#22

sorry 5020 - it's going fine, I returned my system to a few days ago to clean up any errors I'd made running scripts, and I'm on my way to getting the sad tasks done that i need to get done, thankyou for your help and concern.
derek

Revision history for this message
shivani mandora (shivani1708) said :
#23

Hi ,

Are you able to scan now after installing plugins?

Revision history for this message
Derek Maxted (derekmax) said :
#24

Hi Shivani
Read above - I gave up and exchanged the printer and did a system restore to remove the problems caused by running scripts i didn't understand.
Actually having some problems with the Envy 5020, I have a cumbersome workaround and I'll stick with that until after my dad's funeral then I'll start up a new question dialogue to try to solve that one.
cheers
derek

Revision history for this message
Launchpad Janitor (janitor) said :
#25

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Derek Maxted (derekmax) said :
#26
Revision history for this message
Derek Maxted (derekmax) said :
#27

.... the saga continues