Scan I/O error

Asked by Wolfgang Rosenauer

I'm using hplip 2.8.7 (shipped with openSUSE 11.1) and since I upgraded to that dist I've been unable to scan with my OfficeJet 6315. Printing still works as expected but scanning fails with something like I/O errors. (I was able to scan with openSUSE 11.0 though).
I get the following messages if I try to use xscanimage or xsane:

Jan 30 13:15:42 Hygiea xscanimage: io/hpmud/dot4.c 74: invalid data packet credit=0
Jan 30 13:15:42 Hygiea xscanimage: io/hpmud/dot4.c 617: invalid Dot4OpenChannelReply: cmd=81, result=4
Jan 30 13:15:42 Hygiea xscanimage: failed to open pml channel: scan/sane/hpaio.c 674
Jan 30 13:15:47 Hygiea xscanimage: io/hpmud/hpmud.c 323: device_cleanup: device uri=hp:/usb/Officejet_6300_series?serial=CN69DCH2GW04M4
Jan 30 13:15:47 Hygiea xscanimage: io/hpmud/hpmud.c 335: device_cleanup: closedevice dd=1...
Jan 30 13:15:47 Hygiea xscanimage: io/hpmud/hpmud.c 337: device_cleanup: doneclosing device dd=1

Turning on some debugging in sane show the following messages:

[sanei_debug] Setting debug level of hpaio to 8.
[hpaio] sane_hpaio_init(): scan/sane/hpaio.c 1581
[hpaio] sane_hpaio_get_devices(local=0): scan/sane/hpaio.c 1600
[hpaio] sane_hpaio_open(/usb/Officejet_6300_series?serial=CN69DCH2GW04M4): scan/sane/hpaio.c 1635
[hpaio] device ID string=<MFG:HP;MDL:Officejet 6300 series;CMD:MLC,PCL,PML,DW-PCL,DESKJET,DYN;1284.4DL:4d,4e,1;CLS:PRINTER;DES:Q8066B;SN:CN69DCH2GW04M4;S:038000C484001021002c1800018c2880049;J:
  ;Z:0102,0503fac9015cc9,0600;BT:000000000000,4F66666963656A6574203633303020736572696573,0000008F,60;>:
scan/sane/hpaio.c 1684
[hpaio] Model = Officejet_6300_series: scan/sane/hpaio.c 1692
[hpaio] Scanner type=SCL: scan/sane/hpaio.c 1774
[hpaio] failed to open pml channel: scan/sane/hpaio.c 674
[hpaio] sane_hpaio_exit(): scan/sane/hpaio.c 1594

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
Wolfgang Rosenauer
Solved:
Last query:
Last reply:
Revision history for this message
Wolfgang Rosenauer (wolfgang-rosenauer) said :
#1

Here is some lengthy hp-check.log:

hp-check[13253]: info: :
Initializing. Please wait...
SUSE LINUX

11.1

Scheduler wird ausgeführt

1.3.9

Linux Hygiea 2.6.27.7-9-default #1 SMP 2008-12-04 18:10:04 +0100 x86_64 x86_64 x86_64 GNU/Linux

warning: Invalid ppd_dir value: None
hp-check[13253]: info: :
hp-check[13253]: info: :---------------
hp-check[13253]: info: :| SYSTEM INFO |
hp-check[13253]: info: :---------------
hp-check[13253]: info: :
hp-check[13253]: info: :Basic system information:
hp-check[13253]: info: :Linux Hygiea 2.6.27.7-9-default #1 SMP 2008-12-04 18:10:04 +0100 x86_64 x86_64 x86_64 GNU/Linux
hp-check[13253]: info: :
hp-check[13253]: info: :Distribution:
hp-check[13253]: info: :suse 11.1
hp-check[13253]: info: :
HPOJ running?
hp-check[13253]: info: :No, HPOJ is not running (OK).
hp-check[13253]: info: :
hp-check[13253]: info: :Checking Python version...
hp-check[13253]: info: :OK, version 2.6.0 installed
hp-check[13253]: info: :
hp-check[13253]: info: :Checking PyQt version...
hp-check[13253]: info: :OK, version 3.17 installed.
hp-check[13253]: info: :
hp-check[13253]: info: :Checking SIP version...
hp-check[13253]: info: :OK, Version 4.7.7 installed
hp-check[13253]: info: :
hp-check[13253]: info: :Checking for CUPS...
hp-check[13253]: info: :Status: Scheduler wird ausgeführt
hp-check[13253]: info: :Version: 1.3.9
hp-check[13253]: info: :error_log is set to level: info
note: For troubleshooting printing issues, it is best to have the CUPS 'LogLevel'
note: set to 'debug'. To set the LogLevel to debug, edit the file /etc/cups/cupsd.conf (as root),
note: and change the line near the top of the file that begins with 'LogLevel' to read:
note: LogLevel debug
note: Save the file and then restart CUPS (see your OS/distro docs on how to restart CUPS).
note: Now, when you print, helpful debug information will be saved to the file:
note: /var/log/cups/error_log
note: You can monitor this file by running this command in a console/shell:
note: tail -f /var/log/cups/error_log
hp-check[13253]: info: :
hp-check[13253]: info: :Checking for dbus/python-dbus...
hp-check[13253]: info: :dbus daemon is running.
hp-check[13253]: info: :python-dbus version: 0.83.0
hp-check[13253]: info: :
hp-check[13253]: info: :
hp-check[13253]: info: :------------------------------------
hp-check[13253]: info: :| COMPILE AND RUNTIME DEPENDENCIES |
hp-check[13253]: info: :------------------------------------
hp-check[13253]: info: :
note: To check for compile-time only dependencies, re-run hp-check with the -c parameter (ie, hp-check -c).
note: To check for run-time only dependencies, re-run hp-check with the -r parameter (ie, hp-check -r).
hp-check[13253]: info: :
hp-check[13253]: info: :Checking for dependency: cups - Common Unix Printing System...
hp-check[13253]: info: :OK, found.
hp-check[13253]: info: :
hp-check[13253]: info: :Checking for dependency: cups-ddk - CUPS driver development kit...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
hp-check[13253]: info: :
hp-check[13253]: info: :Checking for dependency: cups-devel- Common Unix Printing System development files...
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
hp-check[13253]: info: :
hp-check[13253]: info: :Checking for dependency: dbus - Message bus system...
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.
hp-check[13253]: info: :
hp-check[13253]: info: :Checking for dependency: gcc - GNU Project C and C++ Compiler...
hp-check[13253]: info: :OK, found.
hp-check[13253]: info: :
hp-check[13253]: info: :Checking for dependency: GhostScript - PostScript and PDF language interpreter and previewer...
hp-check[13253]: info: :OK, found.
hp-check[13253]: info: :
hp-check[13253]: info: :Checking for dependency: libcrypto - OpenSSL cryptographic library...
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.
hp-check[13253]: info: :
hp-check[13253]: info: :Checking for dependency: libjpeg - JPEG library...
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.
hp-check[13253]: info: :
hp-check[13253]: info: :Checking for dependency: libnetsnmp-devel - SNMP networking library development files...
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.
hp-check[13253]: info: :
hp-check[13253]: info: :Checking for dependency: libpthread - POSIX threads library...
hp-check[13253]: info: :OK, found.
hp-check[13253]: info: :
hp-check[13253]: info: :Checking for dependency: libtool - Library building support services...
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
hp-check[13253]: info: :
hp-check[13253]: info: :Checking for dependency: libusb - USB library...
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.
hp-check[13253]: info: :
hp-check[13253]: info: :Checking for dependency: make - GNU make utility to maintain groups of programs...
hp-check[13253]: info: :OK, found.
hp-check[13253]: info: :
hp-check[13253]: info: :Checking for dependency: PIL - Python Imaging Library (required for commandline scanning with hp-scan)...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
hp-check[13253]: info: :
hp-check[13253]: info: :Checking for dependency: ppdev - Parallel port support kernel module....
error: NOT FOUND! This is a REQUIRED/RUNTIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
hp-check[13253]: info: :
hp-check[13253]: info: :Checking for dependency: PyQt - Qt interface for Python...
hp-check[13253]: info: :OK, found.
hp-check[13253]: info: :
hp-check[13253]: info: :Checking for dependency: python-ctypes - A foreign function library for Python...
hp-check[13253]: info: :OK, found.
hp-check[13253]: info: :
hp-check[13253]: info: :Checking for dependency: python-dbus - Python bindings for dbus...
hp-check[13253]: info: :OK, found.
hp-check[13253]: info: :
hp-check[13253]: info: :Checking for dependency: python-devel - Python development files...
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
hp-check[13253]: info: :
hp-check[13253]: info: :Checking for dependency: Python 2.3 or greater - Required for fax functionality...
hp-check[13253]: info: :OK, found.
hp-check[13253]: info: :
hp-check[13253]: info: :Checking for dependency: Python 2.2 or greater - Python programming language...
hp-check[13253]: info: :OK, found.
hp-check[13253]: info: :
hp-check[13253]: info: :Checking for dependency: Reportlab - PDF library for Python...
hp-check[13253]: info: :OK, found.
hp-check[13253]: info: :
hp-check[13253]: info: :Checking for dependency: SANE - Scanning library...
hp-check[13253]: info: :OK, found.
hp-check[13253]: info: :
hp-check[13253]: info: :Checking for dependency: SANE - Scanning library development files...
hp-check[13253]: info: :OK, found.
hp-check[13253]: info: :
hp-check[13253]: info: :Checking for dependency: scanimage - Shell scanning program...
hp-check[13253]: info: :OK, found.
hp-check[13253]: info: :
hp-check[13253]: info: :Checking for dependency: xsane - Graphical scanner frontend for SANE...
hp-check[13253]: info: :OK, found.
hp-check[13253]: info: :
hp-check[13253]: info: :
hp-check[13253]: info: :----------------------
hp-check[13253]: info: :| HPLIP INSTALLATION |
hp-check[13253]: info: :----------------------
hp-check[13253]: info: :
hp-check[13253]: info: :
hp-check[13253]: info: :Currently installed HPLIP version...
hp-check[13253]: info: :HPLIP 2.8.7 currently installed in '/usr/share/hplip'.
hp-check[13253]: info: :
hp-check[13253]: info: :Current contents of '/etc/hp/hplip.conf' file:
hp-check[13253]: info: :# hplip.conf. Generated from hplip.conf.in by configure.

[hplip]
version=2.8.7

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/cups/model/manufacturer-PPDs/hplip
ppdbase=/usr/share/cups/model/manufacturer-PPDs
doc=/usr/share/doc/packages/hplip
icon=/usr/share/applications
cupsbackend=/usr/lib64/cups/backend
cupsfilter=/usr/lib64/cups/filter
drv=/usr/lib64/cups/driver

# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
pp-build=yes
gui-build=yes
scanner-build=yes
fax-build=yes
dbus-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
foomatic-drv-install=no
foomatic-ppd-install=yes
foomatic-rip-hplip-install=yes
internal-tag=2.8.7.3
restricted-build=no

hp-check[13253]: info: :
hp-check[13253]: info: :-------------------------------
hp-check[13253]: info: :| DISCOVERED PARALLEL DEVICES |
hp-check[13253]: info: :-------------------------------
hp-check[13253]: info: :
hp-check[13253]: info: :No devices found.
error: 'ppdev' kernel module not loaded.
hp-check[13253]: info: :
hp-check[13253]: info: :--------------------------
hp-check[13253]: info: :| DISCOVERED USB DEVICES |
hp-check[13253]: info: :--------------------------
hp-check[13253]: info: :
hp-check[13253]: info: : Device URI Model
hp-check[13253]: info: : -------------------------------- ------------------------
hp-check[13253]: info: : hp:/usb/Officejet_6300_series?se HP Officejet 6300 series
  rial=CN69DCH2GW04M4
hp-check[13253]: info: :
hp-check[13253]: info: :---------------------------------
hp-check[13253]: info: :| INSTALLED CUPS PRINTER QUEUES |
hp-check[13253]: info: :---------------------------------
hp-check[13253]: info: :
hp-check[13253]: info: :
warning: No queues found.
hp-check[13253]: info: :
hp-check[13253]: info: :----------------------
hp-check[13253]: info: :| SANE CONFIGURATION |
hp-check[13253]: info: :----------------------
hp-check[13253]: info: :
hp-check[13253]: info: :'hpaio' in '/etc/sane.d/dll.conf'...
hp-check[13253]: info: :OK, found. SANE backend 'hpaio' is properly set up.
hp-check[13253]: info: :
hp-check[13253]: info: :Checking output of 'scanimage -L'...
hp-check[13253]: info: :device `hpaio:/usb/Officejet_6300_series?serial=CN69DCH2GW04M4' is a Hewlett-Packard Officejet_6300_series all-in-one

hp-check[13253]: info: :
hp-check[13253]: info: :---------------------
hp-check[13253]: info: :| PYTHON EXTENSIONS |
hp-check[13253]: info: :---------------------
hp-check[13253]: info: :
hp-check[13253]: info: :Checking 'cupsext' CUPS extension...
hp-check[13253]: info: :OK, found.
hp-check[13253]: info: :
hp-check[13253]: info: :Checking 'pcardext' Photocard extension...
hp-check[13253]: info: :OK, found.
hp-check[13253]: info: :
hp-check[13253]: info: :Checking 'hpmudext' I/O extension...
hp-check[13253]: info: :OK, found.
hp-check[13253]: info: :
hp-check[13253]: info: :Checking 'scanext' SANE scanning extension...
hp-check[13253]: info: :OK, found.
hp-check[13253]: info: :
hp-check[13253]: info: :
hp-check[13253]: info: :-----------------
hp-check[13253]: info: :| USB I/O SETUP |
hp-check[13253]: info: :-----------------
hp-check[13253]: info: :
hp-check[13253]: info: :
hp-check[13253]: info: :Checking for permissions of USB attached printers...
hp-check[13253]: info: :
HP Device 0x5311 at 006:004:
hp-check[13253]: info: : Device URI: hp:/usb/Officejet_6300_series?serial=CN69DCH2GW04M4
hp-check[13253]: info: : Device node: /dev/bus/usb/006/004
hp-check[13253]: info: : Mode: 0664
hp-check[13253]: info: :getfacl: Removing leading '/' from absolute path names
# file: dev/bus/usb/006/004
# owner: root
# group: lp
user::rw-
user:wolfi:rw-
group::rw-
group:vboxusers:rw-
mask::rw-
other::r--

hp-check[13253]: info: :
hp-check[13253]: info: :-----------
hp-check[13253]: info: :| SUMMARY |
hp-check[13253]: info: :-----------
hp-check[13253]: info: :
error: 11 errors and/or warnings.
hp-check[13253]: info: :
hp-check[13253]: info: :Please refer to the installation instructions at:
hp-check[13253]: info: :http://hplip.sourceforge.net/install/index.html

hp-check[13253]: info: :
hp-check[13253]: info: :Done.

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#2

It doesn't look like there are any printer queues configured using the hp:// backend. For scan to work correctly you'll need to configure the printer using hp-setup.

Try running:

su -c "hp-setup"

and then try scanning, any better?

Aaron

Revision history for this message
Wolfgang Rosenauer (wolfgang-rosenauer) said :
#3

Hmm, yes, I forgot to set it up explicitely indeed. Printing was working and hp-toolbox looked ok and happy.
Everything working again, sorry for the noise.

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#4

No worries.

Thanks for the update.

All the best,

Aaron