HP OfficeJet 8010 not scanning

Asked by Ikus-Soft

Hi have a new HP OfficeJet 8010 and I didn't manage to get the scan working. Printing is working.
I previously had another HP printer and the scan was working perfectly fine.

By command line, running `hp-scan` return the following error `error: SANE: Error during device I/O (code=9)`
The error is a bit pointless and have no clue how to debug this further.

I'm running Ubuntu Hirsute
HPLIP v3.21.2
hp-plugins are installed

In syslog I found the following "relevant" information.
Dec 17 13:09:13 pop-os hp-scan: hp-scan[1169639]: warning: No destinations specified. Adding 'file' destination by default.
Dec 17 13:09:13 pop-os hp-scan: hp-scan[1169639]: warning: File destination enabled with no output file specified.
Dec 17 13:09:13 pop-os hp-scan: hp-scan[1169639]: warning: Defaulting to '/home/ikus060/hpscan001.png'.
Dec 17 13:09:13 pop-os hp-scan: scan/sane/http.c 323: invalid http_status=403
Dec 17 13:09:13 pop-os hp-scan: scan/sane/http.c 329: dumping len=158
Dec 17 13:09:14 pop-os hp-scan: io/hpmud/jd.c 695: timeout read_channel sec=1 hp:/net/HP_OfficeJet_8010_series?ip=10.255.2.148
Dec 17 13:09:15 pop-os hp-scan: io/hpmud/jd.c 695: timeout read_channel sec=1 hp:/net/HP_OfficeJet_8010_series?ip=10.255.2.148
Dec 17 13:09:16 pop-os hp-scan: io/hpmud/jd.c 695: timeout read_channel sec=1 hp:/net/HP_OfficeJet_8010_series?ip=10.255.2.148
Dec 17 13:09:17 pop-os hp-scan: io/hpmud/jd.c 695: timeout read_channel sec=1 hp:/net/HP_OfficeJet_8010_series?ip=10.255.2.148
Dec 17 13:09:17 pop-os hp-scan: scan/sane/http.c 158: read_stream error stat=49
Dec 17 13:09:18 pop-os hp-scan: hp-scan[1169639]: error: SANE: Error during device I/O (code=9)

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
willi weikum (wwe80) said (last edit ):
#1

I have the same issue on Mint 20.2 with HPLIP 3.21.12 using HP SmartTank 7305

relevant logs looks same:

Dec 26 20:43:39 mint2020 /hp-scan[11703]: http.c 300: http_read_header() handle=0x1f59380 data=0x7ffde7f501d0 size=2048 sectime=5
Dec 26 20:43:39 mint2020 /hp-scan[11703]: http.c 166: read_channel len=182
Dec 26 20:43:39 mint2020 /hp-scan[11703]: http.c 189: -read_stream() bytes_read=1 s.index=1 s.cnt=181 stat=0
Dec 26 20:43:39 mint2020 /hp-scan[11703]: http.c 239: read_line len=24 index=24 cnt=158
Dec 26 20:43:39 mint2020 /hp-scan[11703]: http.c 322: invalid http_status=403
Dec 26 20:43:39 mint2020 /hp-scan[11703]: http.c 328: dumping len=158
Dec 26 20:43:40 mint2020 /hp-scan[11703]: io/hpmud/jd.c 694: timeout read_channel sec=1 hp:/net/Smart_Tank_7300_series?hostname=hp7305.fritz.box
Dec 26 20:43:41 mint2020 /hp-scan[11703]: io/hpmud/jd.c 694: timeout read_channel sec=1 hp:/net/Smart_Tank_7300_series?hostname=hp7305.fritz.box
Dec 26 20:43:41 mint2020 /hp-scan[11703]: http.c 153: hpmud_read_channel failed retrying (2) more times)
Dec 26 20:43:42 mint2020 /hp-scan[11703]: io/hpmud/jd.c 694: timeout read_channel sec=1 hp:/net/Smart_Tank_7300_series?hostname=hp7305.fritz.box
Dec 26 20:43:42 mint2020 /hp-scan[11703]: http.c 153: hpmud_read_channel failed retrying (1) more times)
Dec 26 20:43:43 mint2020 /hp-scan[11703]: io/hpmud/jd.c 694: timeout read_channel sec=1 hp:/net/Smart_Tank_7300_series?hostname=hp7305.fritz.box
Dec 26 20:43:43 mint2020 /hp-scan[11703]: http.c 153: hpmud_read_channel failed retrying (0) more times)
Dec 26 20:43:43 mint2020 /hp-scan[11703]: http.c 157: read_stream error stat=49
Dec 26 20:43:43 mint2020 /hp-scan[11703]: http.c 189: -read_stream() bytes_read=0 s.index=0 s.cnt=0 stat=1
Dec 26 20:43:43 mint2020 /hp-scan[11703]: bb_escl.c 854: http_read_header returned error code(1) hence exiting..
Dec 26 20:43:43 mint2020 /hp-scan[11703]: bb_escl.c 1673: bb_post_scanjob returning with stat = [9]
Dec 26 20:43:43 mint2020 /hp-scan[11703]: http.c 284: http_close() handle=0x1f59380
Dec 26 20:43:43 mint2020 /hp-scan[11703]: bb_escl.c 1914: bb_start_scan returning with status ret = (9)
Dec 26 20:43:43 mint2020 /hp-scan[11703]: hp-scan[11703]: error: SANE: Error during device I/O (code=9)
Dec 26 20:43:43 mint2020 /hp-scan[11703]: scan/sane/escl.c 1143: escl_cancel...

UPDATE: looks like my problem was caused by the fact I added my device using hostname. After removing and re-adding it with an IP which changes the device name
- from "hp:/net/Smart_Tank_7300_series?hostname=hp7305.fritz.box"
- to "hpaio:/net/Smart_Tank_7300_series?ip=192.168.11.215"

 scanning works!!

I would have NEVER trust hpaio drivers is unable to work with hostnames (and force you to use https) in year 2021..

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

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