Scanner is detected on network but simple-scan returns an error each attempt at scanning documents.

Bug #2023501 reported by Patrick Glaister
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HPLIP
New
Undecided
Unassigned

Bug Description

hp-check[6999]: info: :
hp-check[6999]: info: :HP Linux Imaging and Printing System (ver. 3.21.2)
hp-check[6999]: info: :Dependency/Version Check Utility ver. 15.1
hp-check[6999]: info: :
hp-check[6999]: info: :Copyright (c) 2001-18 HP Development Company, LP
hp-check[6999]: info: :This software comes with ABSOLUTELY NO WARRANTY.
hp-check[6999]: info: :This is free software, and you are welcome to distribute it
hp-check[6999]: info: :under certain conditions. See COPYING file for more details.
hp-check[6999]: info: :
hp-check[6999]: info: :Note: hp-check can be run in three modes:
hp-check[6999]: info: :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
hp-check[6999]: info: :dependencies are installed to successfully compile HPLIP.
hp-check[6999]: info: :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
hp-check[6999]: info: :the proper dependencies installed to successfully run.
hp-check[6999]: info: :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).
hp-check[6999]: info: :
hp-check[6999]: info: :Check types:
hp-check[6999]: info: :a. EXTERNALDEP - External Dependencies
hp-check[6999]: info: :b. GENERALDEP - General Dependencies (required both at compile and run time)
hp-check[6999]: info: :c. COMPILEDEP - Compile time Dependencies
hp-check[6999]: info: :d. [All are run-time checks]
hp-check[6999]: info: :PYEXT SCANCONF QUEUES PERMISSION
hp-check[6999]: info: :
hp-check[6999]: info: :Status Types:
hp-check[6999]: info: : OK
hp-check[6999]: info: : MISSING - Missing Dependency or Permission or Plug-in
hp-check[6999]: info: : INCOMPAT - Incompatible dependency-version or Plugin-version
hp-check[6999]: info: :
warning: debian-11 version is not supported. Using debian-10.7 versions dependencies to verify and install...
hp-check[6999]: info: :
hp-check[6999]: info: :---------------
hp-check[6999]: info: :| SYSTEM INFO |
hp-check[6999]: info: :---------------
hp-check[6999]: info: :
hp-check[6999]: info: : Kernel: 5.10.0-23-amd64 #1 SMP Debian 5.10.179-1 (2023-05-12) GNU/Linux
 Host: 87b3cf
 Proc: 5.10.0-23-amd64 #1 SMP Debian 5.10.179-1 (2023-05-12) GNU/Linux
 Distribution: debian 11
hp-check[6999]: info: : Bitness: 64 bit

hp-check[6999]: info: :
hp-check[6999]: info: :-----------------------
hp-check[6999]: info: :| HPLIP CONFIGURATION |
hp-check[6999]: info: :-----------------------
hp-check[6999]: info: :
hp-check[6999]: info: :HPLIP-Version: HPLIP 3.21.2
hp-check[6999]: info: :HPLIP-Home: /usr/share/hplip
warning: HPLIP-Installation: Auto installation is not supported for debian distro 11 version
hp-check[6999]: info: :
hp-check[6999]: info: :Current contents of '/etc/hp/hplip.conf' file:
hp-check[6999]: info: :# hplip.conf. Generated from hplip.conf.in by configure.

[hplip]
version=3.21.2

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/hplip/HP
ppdbase=/usr/share/ppd/hplip
doc=/usr/share/doc/hplip
html=/usr/share/doc/hplip-doc
icon=no
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv
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=yes
foomatic-drv-install=yes
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=no
internal-tag=3.21.2
restricted-build=no
ui-toolkit=qt5
qt3=no
qt4=no
qt5=yes
policy-kit=yes
lite-build=no
udev_sysfs_rules=no
hpcups-only-build=no
hpijs-only-build=no
apparmor_build=no
class-driver=no

hp-check[6999]: info: :
hp-check[6999]: info: :Current contents of '/var/lib/hp/hplip.state' file:
hp-check[6999]: info: :[plugin]
installed = 1
eula = 1
version = 3.21.2

hp-check[6999]: info: :
hp-check[6999]: info: :Current contents of '~/.hplip/hplip.conf' file:
hp-check[6999]: info: :[commands]
scan = /usr/bin/simple-scan %SANE_URI%

[fax]
email_address =
voice_phone =

[last_used]
device_uri = hpaio:/net/HP_LaserJet_MFP_M28-M31?ip=172.21.60.100
printer_name =
working_dir = .

[polling]
device_list =
enable = false
interval = 5

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

[settings]
systray_messages = 0
systray_visible = 0

[upgrade]
last_upgraded_time = 1686247484
notify_upgrade = false
pending_upgrade_time = 0

[installation]
date_time = 06/11/23 15:38:58
version = 3.21.2

hp-check[6999]: info: : <Package-name> <Package-Desc> <Required/Optional> <Min-Version> <Installed-Version> <Status> <Comment>
hp-check[6999]: info: :
hp-check[6999]: info: :-------------------------
hp-check[6999]: info: :| External Dependencies |
hp-check[6999]: info: :-------------------------
hp-check[6999]: info: :
hp-check[6999]: info: : error: cups CUPS - Common Unix Printing System REQUIRED 1.1 - INCOMPAT 'CUPS may not be installed or not running'
hp-check[6999]: info: : gs GhostScript - PostScript and PDF language interpreter and previewer REQUIRED 7.05 9.53.3 OK -
hp-check[6999]: info: : xsane xsane - Graphical scanner frontend for SANE OPTIONAL 0.9 0.999 OK -
hp-check[6999]: info: : scanimage scanimage - Shell scanning program OPTIONAL 1.0 1.0.31 OK -
hp-check[6999]: info: : dbus DBus - Message bus system REQUIRED - 1.12.24 OK -
hp-check[6999]: info: : policykit PolicyKit - Administrative policy framework OPTIONAL - 0.105 OK -
hp-check[6999]: info: : network network -wget OPTIONAL - 1.21 OK -
hp-check[6999]: info: : avahi-utils avahi-utils OPTIONAL - 0.8 OK -
hp-check[6999]: info: :
hp-check[6999]: info: :------------------------
hp-check[6999]: info: :| General Dependencies |
hp-check[6999]: info: :------------------------
hp-check[6999]: info: :
hp-check[6999]: info: : libjpeg libjpeg - JPEG library REQUIRED - - OK -
hp-check[6999]: info: : cups-devel CUPS devel- Common Unix Printing System development files REQUIRED - - OK -
hp-check[6999]: info: : cups-image CUPS image - CUPS image development files REQUIRED - - OK -
hp-check[6999]: info: : libpthread libpthread - POSIX threads library REQUIRED - b'2.31' OK -
hp-check[6999]: info: : error: libusb libusb - USB library REQUIRED - 1.0 MISSING 'libusb needs to be installed'
hp-check[6999]: info: : sane SANE - Scanning library REQUIRED - - OK -
hp-check[6999]: info: : sane-devel SANE - Scanning library development files REQUIRED - - OK -
hp-check[6999]: info: : libavahi-dev libavahi-dev REQUIRED - - OK -
hp-check[6999]: info: : libnetsnmp-devel libnetsnmp-devel - SNMP networking library development files REQUIRED 5.0.9 5.9 OK -
hp-check[6999]: info: : libcrypto libcrypto - OpenSSL cryptographic library REQUIRED - 1.1.1 OK -
hp-check[6999]: info: : python3X Python 2.2 or greater - Python programming language REQUIRED 2.2 3.9.2 OK -
hp-check[6999]: info: : python3-notify2 Python libnotify - Python bindings for the libnotify Desktop notifications OPTIONAL - - OK -
hp-check[6999]: info: : error: python3-pyqt4-dbus PyQt 4 DBus - DBus Support for PyQt4 OPTIONAL 4.0 - MISSING 'python3-pyqt4-dbus needs to be installed'
hp-check[6999]: info: : error: python3-pyqt4 PyQt 4- Qt interface for Python (for Qt version 4.x) REQUIRED 4.0 - MISSING 'python3-pyqt4 needs to be installed'
hp-check[6999]: info: : python3-dbus Python DBus - Python bindings for DBus REQUIRED 0.80.0 1.2.16 OK -
hp-check[6999]: info: : python3-xml Python XML libraries REQUIRED - 2.2.10 OK -
hp-check[6999]: info: : python3-devel Python devel - Python development files REQUIRED 2.2 3.9.2 OK -
hp-check[6999]: info: : python3-pil PIL - Python Imaging Library (required for commandline scanning with hp-scan) OPTIONAL - 8.1.2 OK -
hp-check[6999]: info: : python3-reportlab Reportlab - PDF library for Python OPTIONAL 2.0 3.5.59 OK -
hp-check[6999]: info: :
hp-check[6999]: info: :--------------
hp-check[6999]: info: :| COMPILEDEP |
hp-check[6999]: info: :--------------
hp-check[6999]: info: :
hp-check[6999]: info: : libtool libtool - Library building support services REQUIRED - 2.4.6 OK -
hp-check[6999]: info: : gcc gcc - GNU Project C and C++ Compiler REQUIRED - 10.2.1 OK -
hp-check[6999]: info: : make make - GNU make utility to maintain groups of programs REQUIRED 3.0 4.3 OK -
hp-check[6999]: info: :
hp-check[6999]: info: :---------------------
hp-check[6999]: info: :| Python Extentions |
hp-check[6999]: info: :---------------------
hp-check[6999]: info: :
hp-check[6999]: info: : cupsext CUPS-Extension REQUIRED - 3.21.2 OK -
hp-check[6999]: info: : hpmudext IO-Extension REQUIRED - 3.21.2 OK -
hp-check[6999]: info: :
hp-check[6999]: info: :----------------------
hp-check[6999]: info: :| Scan Configuration |
hp-check[6999]: info: :----------------------
hp-check[6999]: info: :
hp-check[6999]: info: :'/etc/sane.d/dll.d/hpaio' not found.
hp-check[6999]: info: : hpaio HPLIP-SANE-Backend REQUIRED - 3.21.2 OK 'hpaio found in /etc/sane.d/dll.conf'
hp-check[6999]: info: : scanext Scan-SANE-Extension REQUIRED - 3.21.2 OK -
hp-check[6999]: info: :
hp-check[6999]: info: :------------------------------
hp-check[6999]: info: :| DISCOVERED SCANNER DEVICES |
hp-check[6999]: info: :------------------------------
hp-check[6999]: info: :
hp-check[6999]: info: :device `hpaio:/net/HP_LaserJet_MFP_M28-M31?ip=172.21.60.100' is a Hewlett-Packard HP_LaserJet_MFP_M28-M31 all-in-one
device `hpaio:/net/HP_LaserJet_MFP_M28-M31?ip=172.21.60.100' is a Hewlett-Packard HP_LaserJet_MFP_M28-M31 all-in-one

hp-check[6999]: info: :
hp-check[6999]: info: :--------------------------
hp-check[6999]: info: :| DISCOVERED USB DEVICES |
hp-check[6999]: info: :--------------------------
hp-check[6999]: info: :
hp-check[6999]: info: :No devices found.
hp-check[6999]: info: :
hp-check[6999]: info: :---------------------------------
hp-check[6999]: info: :| INSTALLED CUPS PRINTER QUEUES |
hp-check[6999]: info: :---------------------------------
hp-check[6999]: info: :
hp-check[6999]: info: :
hp-check[6999]: info: :HP-LaserJet-MFP-M28-M31
hp-check[6999]: info: :-----------------------
hp-check[6999]: info: :Type: Unknown
hp-check[6999]: info: :Device URI: socket://172.21.60.100
hp-check[6999]: info: :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
hp-check[6999]: info: :PPD Description:
hp-check[6999]: info: :Printer status: printer HP-LaserJet-MFP-M28-M31 is idle. enabled since Thu 08 Jun 2023 03:40:27 PM EDT
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend for HP-Devices.
hp-check[6999]: info: :
hp-check[6999]: info: :HP_LaserJet_MFP_M28-M31
hp-check[6999]: info: :-----------------------
hp-check[6999]: info: :Type: Printer
hp-check[6999]: info: :Device URI: hp:/net/HP_LaserJet_MFP_M28-M31?ip=172.21.60.100
hp-check[6999]: info: :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
hp-check[6999]: info: :PPD Description:
hp-check[6999]: info: :Printer status: printer HP_LaserJet_MFP_M28-M31 is idle. enabled since Thu 08 Jun 2023 04:04:32 PM EDT
hp-check[6999]: info: :Communication status: Good
hp-check[6999]: info: :
hp-check[6999]: info: :
hp-check[6999]: info: :--------------
hp-check[6999]: info: :| PERMISSION |
hp-check[6999]: info: :--------------
hp-check[6999]: info: :
hp-check[6999]: info: :
hp-check[6999]: info: :-----------
hp-check[6999]: info: :| SUMMARY |
hp-check[6999]: info: :-----------
hp-check[6999]: info: :
hp-check[6999]: info: :Missing Required Dependencies
hp-check[6999]: info: :-----------------------------
error: 'cups' package is missing or 'cups' service is not running.
error: 'libcups2' package is missing/incompatible
error: 'libusb-1.0.0-dev' package is missing/incompatible
error: 'python3-pyqt4' package is missing/incompatible
error: 'gtk2-engines-pixbuf' package is missing/incompatible
hp-check[6999]: info: :
hp-check[6999]: info: :Missing Optional Dependencies
hp-check[6999]: info: :-----------------------------
error: 'python3-dbus.mainloop.qt' package is missing/incompatible
hp-check[6999]: info: :
hp-check[6999]: info: :Total Errors: 4
hp-check[6999]: info: :Total Warnings: 1
hp-check[6999]: info: :
hp-check[6999]: info: :
hp-check[6999]: info: :Done.

Revision history for this message
Patrick Glaister (tinnaz) wrote :

simple-scan returns Failed to scan Unable to connect scanner

Revision history for this message
Patrick Glaister (tinnaz) wrote :
Revision history for this message
brian_p (claremont102) wrote :

Say which OS you are using and give the outputs from

  avahi-browse -rt _ipp._tcp
  avahi-browse -rt _uscan._tcp
  scanimage -L

Revision history for this message
Patrick Glaister (tinnaz) wrote :

OS: Debian bullseye
avahi-browse -rt _ipp._tcp output: none
avahi-browse -rt _uscan._tcp: none
scanimage -L: device `hpaio:/net/HP_LaserJet_MFP_M28-M31?ip=172.21.60.100' is a Hewlett-Packard HP_LaserJet_MFP_M28-M31 all-in-one

Revision history for this message
brian_p (claremont102) wrote :

I use Debian 11 too. You have an HP LaserJet MFP M28-M31
and I have dealt with this device before. Therefore, I
know that it has given much trouble to other users; for
example

 https://bugs.launchpad.net/ubuntu/+source/hplip/+bug/1811504

Note the uscan output in message #7. Also note #67 onwards.

I think sane-airscan works for scanning. It needs to use Avahi,
but I wonder whether mdns is working correctly on your network.

Revision history for this message
brian_p (claremont102) wrote (last edit ):

https://answers.launchpad.net/hplip/+question/692155

Ignore the 'avahi-browse -rt _ipp._tcp'output ; it
is not from the printer. 'avahi-browse -rt _uscan._tcp'
output is from the printer.

Revision history for this message
Patrick Glaister (tinnaz) wrote :

I have installed version hplip 3.21.2+dfsg1-2 amd64 HP Linux Printing and Imaging System (HPLIP) and the driver plugin for HPLIP 3.21.2. The issue is still persistent. It is the same whether the printer is connected via wifi or usb.

Revision history for this message
Patrick Glaister (tinnaz) wrote :

curl -v -s http://172.21.60.100:8080/eSCL/ScannerCapabilities
* Trying 172.21.60.100:8080...
* Connected to 172.21.60.100 (172.21.60.100) port 8080 (#0)
> GET /eSCL/ScannerCapabilities HTTP/1.1
> Host: 172.21.60.100:8080
> User-Agent: curl/7.74.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 301 Permanently Moved
< Content-Length: 0
< Cache-Control: no-cache
< Location: https://172.21.60.100/eSCL/ScannerCapabilities
<
* Connection #0 to host 172.21.60.100 left intact

I confess that I do not know what any of that means.

Revision history for this message
Patrick Glaister (tinnaz) wrote :

Restoring the printer to factory default settings solved the problem. Thanks for your help though. I am deeply indebted to you for your time. Thank you.

Revision history for this message
brian_p (claremont102) wrote :

> I am deeply indebted to you for your time. Thank you.

No problem. Your issue is an interesting one.

Perhaps you would be good enough to give the output from

  scanimage -L

again?

Revision history for this message
Patrick Glaister (tinnaz) wrote :

I am not able to get it to work over wifi, but the connection is unsecure anyway. It's no exactly what I was hoping for, but I got it to work via the USB and I am satisfied with that.

scanimage -L output:
device `escl:http://127.0.0.1:60000' is a HP LaserJet MFP M29w (F724DD) (USB) flatbed scanner
device `hpaio:/usb/HP_LaserJet_MFP_M28-M31?serial=VNB3925336' is a Hewlett-Packard HP_LaserJet_MFP_M28-M31 all-in-one
device `hpaio:/net/hp_laserjet_mfp_m28-m31?ip=127.0.0.1&queue=false' is a Hewlett-Packard hp_laserjet_mfp_m28-m31 all-in-one
device `airscan:e0:HP LaserJet MFP M29w (F724DD) (USB)' is a eSCL HP LaserJet MFP M29w (F724DD) (USB) ip=127.0.0.1

Revision history for this message
brian_p (claremont102) wrote :

Thank ever so much. Your output is exactly what I would
expect on Debian. As far as your bur report is concerned
the question is whether HPLIP itself handles scanning
from the LaserJet MFP M28-M31. This command uses the HPLI
driver:

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

How does that go?

I would expect

 simple-scan "airscan:e0:HP LaserJet MFP M29w (F724DD) (USB)"

to work.

Revision history for this message
brian_p (claremont102) wrote :

> Restoring the printer to factory default settings solved the problem.

If that leads to

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

working, then this report should be closed. After all, that was the
was the nub of the subject of your initial report.

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.