Thank you for your report, Tancredi-Paul.
On Thu 20 Sep 2018 at 13:56:43 +0300, Tancredi-Paul Grozav wrote: > 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 Ok up to here. > 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) Things go wrong! > 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. Nothing to worry about. hp-scan will use hpscanxxx.png as the filename. > Sep 20 13:49:39 scanner /hp-scan: io/hpmud/pp.c 627: unable to read > device-id ret=-1 Looks worrying. > 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 libm.so isn't on my i386 system and scanning with hp-scan works. It is in libc6-dev and this package wouldn't normally be installed (because it is a -dev). I don't know how significant the message is. > 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) [Snipped. Printing isn't really relevant.] > 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 know nothing about Docker and containers > I must say that the same problem occurs on the physical machine, so this is useful to know. > outside of docker. And I also have another container that is able to > scan from hp:/net/HP_LaserJet_3052 . The only package needed to scan over the network is libsane-hpaio. You could install it in a container without its recommended packages (--no-install-recommends) and try hp-scan -d hpaio:/net/HP_LaserJet_M1120n_MFP?ip=192.168.200.16 and scanimage -d hpaio:/net/HP_LaserJet_M1120n_MFP?ip=192.168.200.16 > image.pnm (Obtain the correct plugin from https://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/ Then sh hplip-<version>-plugin.run --tar vxf and python installPlugin.py). Regards, Brian.