Scanner not found hp cm1312 mfp ubuntu 9.04

Asked by sillis

Having problems using scanner in hp CM1312 mfp. sudo scanimage -L finds the device, scanimage -L does not. (sudo) sane-find-scanner doesnt find anything. Trying to get the printer/scanner to work in windows network...

Installed HPLIP 3.9.8 and SANE-backend 1.0.19 and sane-utils.

uname -a
Linux debian 2.6.30-rc8 #2 PREEMPT Wed Jun 3 16:33:12 MDT 2009 armv5tel GNU/Linux
//(using Marvell sheevaplug dev kit)

sudo scanimage -L
device `hpaio:/usb/HP_Color_LaserJet_CM1312_MFP?serial=00CNC88D0HLG' is a Hewlett-Packard HP_Color_LaserJet_CM1312_MFP all-in-one

hp-check spits this out..

HP Linux Imaging and Printing System (ver. 3.9.8)
Dependency/Version Check Utility ver. 14.3

Copyright (c) 2001-9 Hewlett-Packard 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.

Note: hp-check can be run in three modes:
1. Compile-time check mode (-c or --compile): Use this mode before compiling the
HPLIP supplied tarball (.tar.gz or .run) to determine if the proper dependencies
are installed to successfully compile HPLIP.
2. Run-time check mode (-r or --run): Use this mode to determine if a distro
supplied package (.deb, .rpm, etc) or an already built HPLIP supplied tarball
has the proper dependencies installed to successfully run.
3. Both compile- and run-time check mode (-b or --both) (Default): This mode
will check both of the above cases (both compile- and run-time dependencies).

Saving output in log file: hp-check.log

Initializing. Please wait...
|/var/lib/python-support/python2.6/gtk-2.0/gtk/__init__.py:72: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)

---------------
| SYSTEM INFO |
---------------

Basic system information:
Linux debian 2.6.30-rc8 #2 PREEMPT Wed Jun 3 16:33:12 MDT 2009 armv5tel GNU/Linux

Distribution:
ubuntu 9.04

Checking Python version...
OK, version 2.6.2 installed

Checking PyQt 4.x version...
OK, version 4.4.4 installed.

Checking for CUPS...
Status: scheduler is running
Version: 1.3.9
error_log is set to level: warn

Checking for dbus/python-dbus...
dbus daemon is running.
python-dbus version: 0.83.0

------------------------------------
| COMPILE AND RUNTIME DEPENDENCIES |
------------------------------------

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).

Checking for dependency: CUPS - Common Unix Printing System...
OK, found.

Checking for dependency: CUPS DDK - CUPS driver development kit...
OK, found.

Checking for dependency: CUPS devel- Common Unix Printing System development files...
OK, found.

Checking for dependency: CUPS image - CUPS image development files...
OK, found.

Checking for dependency: DBus - Message bus system...
OK, found.

Checking for dependency: gcc - GNU Project C and C++ Compiler...
OK, found.

Checking for dependency: GhostScript - PostScript and PDF language interpreter and previewer...
OK, found.

Checking for dependency: libcrypto - OpenSSL cryptographic library...
OK, found.

Checking for dependency: libjpeg - JPEG library...
OK, found.

Checking for dependency: libnetsnmp-devel - SNMP networking library development files...
OK, found.

Checking for dependency: libpthread - POSIX threads library...
OK, found.

Checking for dependency: libtool - Library building support services...
OK, found.

Checking for dependency: libusb - USB library...
OK, found.

Checking for dependency: make - GNU make utility to maintain groups of programs...
OK, found.

Checking for dependency: PIL - Python Imaging Library (required for commandline scanning with hp-scan)...
OK, found.

Checking for dependency: PolicyKit - Administrative policy framework...
OK, found.

Checking for dependency: PyQt 4 DBus - DBus Support for PyQt4...
OK, found.

Checking for dependency: Python DBus - Python bindings for DBus...
OK, found.

Checking for dependency: Python devel - Python development files...
OK, found.

Checking for dependency: Python libnotify - Python bindings for the libnotify Desktop notifications...
OK, found.

Checking for dependency: Python XML libraries...
OK, found.

Checking for dependency: Python 2.3 or greater - Required for fax functionality...
OK, found.

Checking for dependency: Python 2.2 or greater - Python programming language...
OK, found.

Checking for dependency: Reportlab - PDF library for Python...
OK, found.

Checking for dependency: SANE - Scanning library...
OK, found.

Checking for dependency: SANE - Scanning library development files...
OK, found.

Checking for dependency: scanimage - Shell scanning program...
OK, found.

Checking for dependency: xsane - Graphical scanner frontend for SANE...
OK, found.

----------------------
| HPLIP INSTALLATION |
----------------------

Currently installed HPLIP version...
HPLIP 3.9.8 currently installed in '/usr/share/hplip'.

Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf. Generated from hplip.conf.in by configure.

[hplip]
version=3.9.8

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.9.8
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv/hp

# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
pp-build=no
gui-build=yes
scanner-build=yes
fax-build=yes
dbus-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
hpijs-install=no
foomatic-drv-install=no
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=no
internal-tag=3.9.8.36
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=no
hpijs-only-build=no
lite-build=no
udev-acl-rules=no

Current contents of '/var/lib/hp/hplip.state' file:
[plugin]
eula = 1
installed = 1

Current contents of '~/.hplip/hplip.conf' file:
[last_used]
device_uri = hpaio:/usb/HP_Color_LaserJet_CM1312_MFP?serial=00CNC88D0HLG

[installation]
version = 3.9.8.36
date_time = 09/10/2009 18:47:36

--------------------------
| DISCOVERED USB DEVICES |
--------------------------

No devices found.

---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------

HP_CM1312MFP
------------
Type: Printer
Device URI: hp:/usb/HP_Color_LaserJet_CM1312_MFP?serial=00CNC88D0HLG
PPD: /etc/cups/ppd/HP_CM1312MFP.ppd
PPD Description: HP Color LaserJet cm1312 MFP hpijs, 3.9.2
Printer status: printer HP_CM1312MFP is idle. enabled since Wed 10 Jun 2009 06:58:34 PM EEST
error: Unable to connect to dbus session bus.
Required plug-in status: Installed
error: Unable to communicate with device (code=12): hp:/usb/HP_Color_LaserJet_CM1312_MFP?serial=00CNC88D0HLG
error: Device not found
error: Communication status: Failed

----------------------
| SANE CONFIGURATION |
----------------------

'hpaio' in '/etc/sane.d/dll.conf'...
OK, found. SANE backend 'hpaio' is properly set up.

Checking output of 'scanimage -L'...

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).

---------------------
| PYTHON EXTENSIONS |
---------------------

Checking 'cupsext' CUPS extension...
OK, found.

Checking 'pcardext' Photocard extension...
OK, found.

Checking 'hpmudext' I/O extension...
OK, found.

Checking 'scanext' SANE scanning extension...
OK, found.

---------------
| USER GROUPS |
---------------

users samba

-----------
| SUMMARY |
-----------

error: 1 error or warning.

I think there`s something wrong with the sane config, or permissions with the printer/scanner..

Any help would be greatly appreciated. :)

--sillis

Question information

Language:
English Edit question
Status:
Expired
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was originally filed as bug #427437.

Revision history for this message
sillis (sillikakku) said :
#1
Revision history for this message
sillis (sillikakku) said :
#2
Revision history for this message
sillis (sillikakku) said :
#3
Revision history for this message
sillis (sillikakku) said :
#4

Did a little digging and found these, which are relevant to my problem:

https://answers.launchpad.net/hplip/+question/73845
https://bugs.launchpad.net/ubuntu/+source/hplip/+bug/364653.

Tried creating symlink to fix the restricted library issue but that didnt seem to work.
(sudo ln -s /usr/lib/libhpmud.so.0 /usr/lib/libhpmud.so) Actually my skills end here, so maybe i did more damage to my system... But i think i found the reason i keep getting error message "Error during device I/O (code=9)" every time i try hp-scan. (scanimage gives "open of device hpaio:/usb/HP_Color_LaserJet_CM1312_MFP?serial=00CNC88D0HLG failed: Error during device I/O")

Command tail -f /var/log/syslog as root and using scanimage command as normal user gave me this.

Sep 10 23:19:03 debian last message repeated 2 times
Sep 10 23:20:01 debian /USR/SBIN/CRON[12770]: (root) CMD ([ -x /usr/sbin/update-motd ] && /usr/sbin/update-motd 2>/dev/null)
Sep 10 23:21:23 debian scanimage: scan/sane/soapht.c 86: unable to load restricted library /usr/share/hplip/scan/plugins/bb_soapht.so: /usr/share/hplip/scan/plugins/bb_soapht.so: cannot open shared object file: No such file or directory
Sep 10 23:21:27 debian python: hp-scan[12834]: warning: No destinations specified. Adding 'file' destination by default.
Sep 10 23:21:27 debian python: hp-scan[12834]: warning: File destination enabled with no output file specified.
Sep 10 23:21:27 debian python: hp-scan[12834]: warning: Defaulting to '/home/sillis/hpscan001.jpg'.
Sep 10 23:21:29 debian python: scan/sane/soapht.c 86: unable to load restricted library /usr/share/hplip/scan/plugins/bb_soapht.so: /usr/share/hplip/scan/plugins/bb_soapht.so: cannot open shared object file: No such file or directory
Sep 10 23:21:29 debian python: hp-scan[12834]: error: SANE: Error during device I/O (code=9)
Sep 10 23:21:45 debian python: hp-check[12837]: error: Unable to connect to dbus session bus.
Sep 10 23:27:22 debian scanimage: scan/sane/soapht.c 86: unable to load restricted library /usr/share/hplip/scan/plugins/bb_soapht.so: /usr/share/hplip/scan/plugins/bb_soapht.so: cannot open shared object file: No such file or directory
Sep 10 23:27:39 debian scanimage: scan/sane/soapht.c 86: unable to load restricted library /usr/share/hplip/scan/plugins/bb_soapht.so: /usr/share/hplip/scan/plugins/bb_soapht.so: cannot open shared object file: No such file or directory

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

It says the plugin is installed however it doesn't seem to be working correctly.

Try reinstalling the plugin by running hp-plugin as root?

Aaron

Revision history for this message
sillis (sillikakku) said :
#6

Reinstalled hp-plugin as root, (hp-plugin -i) but the error message persisted.

tail -f /var/log/syslog

Sep 15 17:50:40 debian python: scan/sane/soapht.c 86: unable to load restricted library /usr/share/hplip/scan/plugins/bb_soapht.so: /usr/share/hplip/scan/plugins/bb_soapht.so: cannot open shared object file: No such file or directory
Sep 15 17:50:40 debian python: hp-scan[6497]: error: SANE: Error during device I/O (code=9)
Sep 15 17:50:47 debian scanimage: scan/sane/soapht.c 86: unable to load restricted library /usr/share/hplip/scan/plugins/bb_soapht.so: /usr/share/hplip/scan/plugins/bb_soapht.so: cannot open shared object file: No such file or directory

running scanimage as normal/root user gives
scanimage: open of device hpaio:/usb/HP_Color_LaserJet_CM1312_MFP?serial=00CNC88D0HLG failed: Error during device I/O

printer/scanner permissions shouldn`t be a hindrance either..

ls -l /dev/bus/usb/001/047
crwxrwxrwx 1 lp lp 189, 46 Sep 15 17:54 /dev/bus/usb/001/047

Thanks for help !

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

I have just tested Ubuntu 9.04, HPLIP 3.9.8 and the HP Color Laserjet CM1312 with scanning and it's working correctly for me. It is possible to try the scanning over the network? It's possible there is a usb subsystem problem. Or if you can try on windows with usb to make sure it's working okay?

Aaron

Revision history for this message
sillis (sillikakku) said :
#8

Tested with eebuntu (based on Ubuntu 9.04) and scanning works perfectly, CM1312MFP was directly connected to the notebook.
I also tested with win XP/SP3, works with that too. So it seems i have messed up the install somehow.

I uninstalled hplip using instructions from http://hplipopensource.com/node/188 and reinstalled hplip and hp-plugin, didnt help, syslog gave me this..

Sep 22 12:33:34 debian python: scan/sane/soapht.c 86: unable to load restricted library /usr/share/hplip/scan/plugins/bb_soapht.so: /usr/share/hplip/scan/plugins/bb_soapht.so: cannot open shared object file: No such file or directory
Sep 22 12:33:34 debian python: hp-scan[32532]: error: SANE: Error during device I/O (code=9)

Maybe this problem is somehow related to sheevaplugs ARM based architecture ? Im also wondering if kernel update would fix the problem, current version is 2.6.30-rc8.

I looked at the /bb_soapth.so file and here are its permissions
lrwxrwxrwx 1 root root 49 Sep 22 12:26 bb_soapht.so -> /usr/share/hplip/scan/plugins/bb_soapht-x86_32.so

Does CM1312MFP support scanning over network (as in using ethernet connection) ? I looked at the specs and it doesnt list ethernet in its connections. In the printer/scanner, the slot for the rj-45 connector is there, only that is covered. Looks like CM1312MFP and CM1312nfi use the same chassis (only visual difference is the top part) but only the nfi model has network..

I`ll keep trying to find more info about this bug..

-Sillis

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

Run

groups

as user and post the output.

Thanks!

Aaron

Revision history for this message
sillis (sillikakku) said :
#10

sillis@debian:~$ groups
sillis lp samba scanner

Only relevant user group that is missing is lpadmin, so i will add user to that group and post result if there is any change in this problem.

-Sillis

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

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

Revision history for this message
sillis (sillikakku) said :
#12

Ok, time to bring this issue up again. I haven`t been able to scan using scanimage or hp-scan commands and i tracked the problem to a "missing" file, /usr/share/hplip/scan/plugins/bb_soapht.so: /usr/share/hplip/scan/plugins/bb_soapht.so.

running tail -f /var/log/syslog and trying to scan using scanimage gives the following error report:

 scanimage: scan/sane/soapht.c 86: unable to load restricted library /usr/share/hplip/scan/plugins/bb_soapht.so: /usr/share/hplip/scan/plugins/bb_soapht.so: cannot open shared object file: No such file or directory

ls -l in the /usr/shared/hplip/scan/plugins folder gives the following:

ls -l
total 60
lrwxrwxrwx 1 root root 50 2009-12-22 23:30 bb_marvell.so -> /usr/share/hplip/scan/plugins/bb_marvell-x86_32.so
-rwxr-xr-- 1 root root 10488 2009-12-22 23:30 bb_marvell-x86_32.so
lrwxrwxrwx 1 root root 49 2009-12-22 23:30 bb_soapht.so -> /usr/share/hplip/scan/plugins/bb_soapht-x86_32.so
-rwxr-xr-x 1 root root 26092 2009-12-22 23:30 bb_soapht-x86_32.so
lrwxrwxrwx 1 root root 47 2009-12-22 23:30 bb_soap.so -> /usr/share/hplip/scan/plugins/bb_soap-x86_32.so
-rwxr-xr-- 1 root root 17552 2009-12-22 23:30 bb_soap-x86_32.so

The bb_soapht.so file is there, but for some reason scan/sane/soapht.c cant open it. Looking at the soapht.c line 86 i found this code which gives me the error report while trying to scan.

if ((ps->bb_handle = dlopen(sz, RTLD_NOW|RTLD_GLOBAL)) == NULL)
   {
      BUG("unable to load restricted library %s: %s\n", sz, dlerror());
      SendScanEvent(ps->uri, EVENT_PLUGIN_FAIL);
      goto bugout;
   }

Can anyone shed some light on this problem ?
Thanks!

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

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