Package: hplip
Version: 3.16.11+repack0-3
I can not scan an image from a HP LaserJet M1120n MFP.
I am using the hplip package provided by debian( HP Linux Imaging and Printing System (ver. 3.16.11))
Here is a transcript:
root@scanner:/# SANE_DEBUG_DLL=255 SANE_DEBUG_NET=128 hp-scan
...
[dll] load: searching backend `hpaio' in `/usr/lib/x86_64-linux-gnu/sane:/usr/lib/sane'
[dll] load: trying to load `/usr/lib/x86_64-linux-gnu/sane/libsane-hpaio.so.1'
[dll] load: dlopen()ing `/usr/lib/x86_64-linux-gnu/sane/libsane-hpaio.so.1'
[dll] init: initializing backend `hpaio'
[dll] init: backend `hpaio' is version 1.0.0
[dll] sane_get_devices: found 1 devices
Using device hpaio:/net/HP_LaserJet_M1120n_MFP?ip=192.168.200.16
Opening connection to device...
[dll] sane_open: trying to open `hpaio:/net/HP_LaserJet_M1120n_MFP?ip=192.168.200.16'
error: SANE: Error during device I/O (code=9)
root@scanner:/# tail /var/log/syslog
Sep 20 13:49:20 scanner /hp-scan: hp-scan[260]: warning: hp-scan should not be run as root/superuser.
Sep 20 13:49:29 scanner /hp-scan: io/hpmud/pp.c 627: unable to read device-id ret=-1
Sep 20 13:49:30 scanner /hp-scan: hp-scan[260]: warning: No destinations specified. Adding 'file' destination by default.
Sep 20 13:49:39 scanner /hp-scan: io/hpmud/pp.c 627: unable to read device-id ret=-1
Sep 20 13:49:40 scanner /hp-scan: common/utils.c 188: unable to load library libm.so: libm.so: cannot open shared object file: No such file or directory
Sep 20 13:50:25 scanner /hp-scan: io/hpmud/jd.c 678: timeout read_channel sec=45 hp:/net/HP_LaserJet_M1120n_MFP?ip=192.168.200.16
Sep 20 13:50:25 scanner /hp-scan: bb_marvell.c 346: invalid get_msg tmo=45 total=0 uri=hp:/net/HP_LaserJet_M1120n_MFP?ip=192.168.200.16
Sep 20 13:50:25 scanner /hp-scan: hp-scan[260]: error: SANE: Error during device I/O (code=9)
root@scanner:/# cat /etc/cups/printers.conf
# Printer configuration file for CUPS v2.2.1
# Written by cupsd
# DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING
<Printer HP_LaserJet_M1120n_MFP>
UUID urn:uuid:d564831f-ba4e-3759-6f2e-bd3405edf0bf
Info hol_s2
Location hol_s2
DeviceURI hp:/net/HP_LaserJet_M1120n_MFP?ip=192.168.200.16
State Idle
StateTime 1501834936
ConfigTime 1501834936
Type 8388612
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy retry-job
</Printer>
Can we add support for this? Or am I doing something wrong? The same command worked for this other printer: hp:/net/HP_LaserJet_3052
Info about my computer:
root@scanner:/# cat /etc/debian_version
9.4
root@scanner:/# uname -a
Linux scanner.docker.paul.grozav.info 4.9.0-8-amd64 #1 SMP Debian 4.9.110-3+deb9u4 (2018-08-21) x86_64 GNU/Linux
The machine runs inside docker:
pgrozav:~>docker version
Client:
Version: 18.06.1-ce
API version: 1.38
Go version: go1.10.3
Git commit: e68fc7a
Built: Tue Aug 21 17:23:18 2018
OS/Arch: linux/amd64
Experimental: false
Server:
Engine:
Version: 18.06.1-ce
API version: 1.38 (minimum version 1.12)
Go version: go1.10.3
Git commit: e68fc7a
Built: Tue Aug 21 17:22:21 2018
OS/Arch: linux/amd64
Experimental: false
I must say that the same problem occurs on the physical machine, outside of docker. And I also have another container that is able to scan from hp:/net/HP_LaserJet_3052 .