Bug 1347231

Summary: network scanning doesn't work, Error during device I/O (code=9)
Product: [Fedora] Fedora Reporter: Jan Včelák <jv+fedora>
Component: hplipAssignee: Tim Waugh <twaugh>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: jpopelka, twaugh, zdohnal
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-21 11:31:43 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jan Včelák 2016-06-16 10:51:09 UTC
Description of problem:

Scanning on network HP printer doesn't work. Printing works perfectly, though.

Version-Release number of selected component (if applicable):
libsane-hpaio-3.16.5-1.fc24.x86_64
hplip-3.16.5-1.fc24.x86_64
xsane-0.999-20.fc24.x86_64

How reproducible:
always

Steps to Reproduce:
1. hp-scan
2.
3.

Actual results:

% hp-scan

HP Linux Imaging and Printing System (ver. 3.16.5)
Scan Utility ver. 2.2

Copyright (c) 2001-15 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.

warning: No destinations specified. Adding 'file' destination by default.
Using device hpaio:/net/HP_LaserJet_M2727nf_MFP?ip=172.27.5.25
Opening connection to device...
error: SANE: Error during device I/O (code=9)

% journalctl -b
...
/hp-scan[13674]: hp-scan[13674]: warning: No destinations specified. Adding 'file' destination by default.
/hp-scan[13674]: common/utils.c 188: unable to load library libm.so: /lib64/libm.so: invalid ELF header
/hp-scan[13674]: common/utils.c 69: unable to open /var/lib/hp/hplip.state: No such file or directory
/hp-scan[13674]: common/utils.c 119: validate_plugin_version() Failed to get Plugin version from [/var/lib/hp/hplip.state]
/hp-scan[13674]: common/utils.c 157: Plugin version is not matching
/hp-scan[13674]: common/utils.c 220: Invalid Library hanlder pLibHandler = NULL.
/hp-scan[13674]: hp-scan[13674]: error: SANE: Error during device I/O (code=9)

Expected results:

working scanner

Additional info:

% file /lib64/libm.so
/lib64/libm.so: ASCII text
% cat /lib64/libm.so    
/* GNU ld script
*/
OUTPUT_FORMAT(elf64-x86-64)
GROUP ( /lib64/libm.so.6  AS_NEEDED ( /usr/lib64/libmvec_nonshared.a /lib64/libmvec.so.1 ) )
% ls /var/lib/hp/hplip.state 
ls: cannot access '/var/lib/hp/hplip.state': No such file or directory

Comment 1 Zdenek Dohnal 2016-06-16 11:53:02 UTC
Hello Jan,

can you try to reinstall your printer (or reinstall hplip), follow one of ways in http://hplipopensource.com/node/309 to install your plugin and restart your printer after that, please? It seems the problem is in plugin.

Comment 2 Jan Včelák 2016-06-20 09:42:28 UTC
Hm. I don't have the plugin at all. I didn't know the plugin is needed for scanner to work. And no log message indicated that.

Let me check tomorrow if it works with the plugin.

Comment 3 Jan Včelák 2016-06-21 11:31:43 UTC
Installation of the plugin indeed solved the problem. Thank you, Zdenek.