MFP LaserJet M1214nfh can't print: plugin is installed, but fails to load or work properly

Asked by bircoph

Hello,

I use Scientific Linux 6.1 and I have LaserJet M1214nfh MFP.
I have installed hplip-3.11.12 from a tarball, configured a printer and installed a plugin using hp-setup and hp-plugin.

Everything looks fine, but device prints nothing: it returns hpcups failed status and in cups logs with debug messages level enables I can find the following:

D [26/Jan/2012:18:08:24 +0400] [Job 2] prnt/hpcups/HPCupsFilter.cpp 435: m_Job initialization failed with error = 48STATE: -connecting-to-device
D [26/Jan/2012:18:08:24 +0400] [Job 2] STATE: -media-empty-error,media-jam-error,hplip.plugin-error,cover-open-error,toner-empty-error,other

I looked in the source code and this stranges me (prnt/hpcups/CommonDefinitions.h):
PLUGIN_LIBRARY_MISSING = 0x30, //!< a required plugin (dynamic) library is missing

But plugin was successfully downloaded and installed:
$ ls -l /usr/share/hplip/prnt/plugins
total 56
lrwxrwxrwx. 1 root root 42 Jan 26 19:01 lj.so -> /usr/share/hplip/prnt/plugins/lj-x86_32.so
-rwxr-xr--. 1 root root 53784 Jan 26 19:01 lj-x86_32.so

When I run hp-systray, it warns me about missing plugin, though hp-plugin installed them well.

Here is hp-plugin output:

# hp-plugin

HP Linux Imaging and Printing System (ver. 3.11.12)
Plugin Download and Install Utility ver. 2.1

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.

/Checking for network connection...
Downloading configuration file from: http://hplip.sf.net/plugin.conf
Checking for network connection...
Downloading plug-in from: http://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/hplip-3.11.12-plugin.run
Receiving digital keys: /usr/bin/gpg --no-permission-warning --keyserver pgp.mit.edu --recv-keys 0xA59047B9
Verifying archive integrity... All good.
Uncompressing HPLIP 3.11.12 Plugin Self Extracting Archive.........................................

HP Linux Imaging and Printing System (ver. 3.11.12)
Plugin Installer ver. 3.0

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.

Plug-in version: 3.11.12
Installed HPLIP version: 3.11.12
Number of files to install: 36

Done.
 Plug-in installation successful.

Done.

And I append hp-check.log:

$ cat hp-check.log
hp-check[12384]: info: :
Initializing. Please wait...
Scientific

6.1

scheduler is running

1.4.2

Linux dseta.itep.ru 2.6.32-131.0.15.el6.i686 #1 SMP Sat May 21 10:12:03 CDT 2011 i686 i686 i386 GNU/Linux

hp-check[12384]: info: :
hp-check[12384]: info: :---------------
hp-check[12384]: info: :| SYSTEM INFO |
hp-check[12384]: info: :---------------
hp-check[12384]: info: :
hp-check[12384]: info: :[01mBasic system information:[0m
hp-check[12384]: info: :Linux dseta.itep.ru 2.6.32-131.0.15.el6.i686 #1 SMP Sat May 21 10:12:03 CDT 2011 i686 i686 i386 GNU/Linux
hp-check[12384]: info: :
hp-check[12384]: info: :[01mDistribution:[0m
hp-check[12384]: info: :unknown 0.0
hp-check[12384]: info: :
hp-check[12384]: info: :[01mChecking Python version...[0m
hp-check[12384]: info: :OK, version 2.6.6 installed
hp-check[12384]: info: :
hp-check[12384]: info: :[01mChecking PyQt 4.x version...[0m
hp-check[12384]: info: :OK, version 4.6.2 installed.
hp-check[12384]: info: :
hp-check[12384]: info: :[01mChecking for CUPS...[0m
hp-check[12384]: info: :Status: scheduler is running
hp-check[12384]: info: :Version: 1.4.2
hp-check[12384]: info: :error_log is set to level: debug
hp-check[12384]: info: :
hp-check[12384]: info: :[01mChecking for dbus/python-dbus...[0m
hp-check[12384]: info: :dbus daemon is running.
hp-check[12384]: info: :python-dbus version: 0.83.0
hp-check[12384]: info: :
hp-check[12384]: info: :
hp-check[12384]: info: :------------------------------------
hp-check[12384]: info: :| COMPILE AND RUNTIME DEPENDENCIES |
hp-check[12384]: info: :------------------------------------
hp-check[12384]: 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[12384]: info: :
hp-check[12384]: info: :[01mChecking for dependency: CUPS - Common Unix Printing System...[0m
hp-check[12384]: info: :OK, found.
hp-check[12384]: info: :
hp-check[12384]: info: :[01mChecking for dependency: CUPS devel- Common Unix Printing System development files...[0m
hp-check[12384]: info: :OK, found.
hp-check[12384]: info: :
hp-check[12384]: info: :[01mChecking for dependency: CUPS image - CUPS image development files...[0m
hp-check[12384]: info: :OK, found.
hp-check[12384]: info: :
hp-check[12384]: info: :[01mChecking for dependency: DBus - Message bus system...[0m
hp-check[12384]: info: :OK, found.
hp-check[12384]: info: :
hp-check[12384]: info: :[01mChecking for dependency: gcc - GNU Project C and C++ Compiler...[0m
hp-check[12384]: info: :OK, found.
hp-check[12384]: info: :
hp-check[12384]: info: :[01mChecking for dependency: GhostScript - PostScript and PDF language interpreter and previewer...[0m
hp-check[12384]: info: :OK, found.
hp-check[12384]: info: :
hp-check[12384]: info: :[01mChecking for dependency: libcrypto - OpenSSL cryptographic library...[0m
hp-check[12384]: info: :OK, found.
hp-check[12384]: info: :
hp-check[12384]: info: :[01mChecking for dependency: libjpeg - JPEG library...[0m
hp-check[12384]: info: :OK, found.
hp-check[12384]: info: :
hp-check[12384]: info: :[01mChecking for dependency: libnetsnmp-devel - SNMP networking library development files...[0m
hp-check[12384]: info: :OK, found.
hp-check[12384]: info: :
hp-check[12384]: info: :[01mChecking for dependency: libpthread - POSIX threads library...[0m
hp-check[12384]: info: :OK, found.
hp-check[12384]: info: :
hp-check[12384]: info: :[01mChecking for dependency: libtool - Library building support services...[0m
hp-check[12384]: info: :OK, found.
hp-check[12384]: info: :
hp-check[12384]: info: :[01mChecking for dependency: libusb - USB library...[0m
hp-check[12384]: info: :OK, found.
hp-check[12384]: info: :
hp-check[12384]: info: :[01mChecking for dependency: make - GNU make utility to maintain groups of programs...[0m
hp-check[12384]: info: :OK, found.
hp-check[12384]: info: :
hp-check[12384]: info: :[01mChecking for dependency: PIL - Python Imaging Library (required for commandline scanning with hp-scan)...[0m
hp-check[12384]: info: :OK, found.
hp-check[12384]: info: :
hp-check[12384]: info: :[01mChecking for dependency: PolicyKit - Administrative policy framework...[0m
hp-check[12384]: info: :OK, found.
hp-check[12384]: info: :
hp-check[12384]: info: :[01mChecking for dependency: PyQt 4 DBus - DBus Support for PyQt4...[0m
hp-check[12384]: info: :OK, found.
hp-check[12384]: info: :
hp-check[12384]: info: :[01mChecking for dependency: Python DBus - Python bindings for DBus...[0m
hp-check[12384]: info: :OK, found.
hp-check[12384]: info: :
hp-check[12384]: info: :[01mChecking for dependency: Python devel - Python development files...[0m
hp-check[12384]: info: :OK, found.
hp-check[12384]: info: :
hp-check[12384]: info: :[01mChecking for dependency: Python libnotify - Python bindings for the libnotify Desktop notifications...[0m
hp-check[12384]: info: :OK, found.
hp-check[12384]: info: :
hp-check[12384]: info: :[01mChecking for dependency: Python XML libraries...[0m
hp-check[12384]: info: :OK, found.
hp-check[12384]: info: :
hp-check[12384]: info: :[01mChecking for dependency: Python 2.3 or greater - Required for fax functionality...[0m
hp-check[12384]: info: :OK, found.
hp-check[12384]: info: :
hp-check[12384]: info: :[01mChecking for dependency: Python 2.2 or greater - Python programming language...[0m
hp-check[12384]: info: :OK, found.
hp-check[12384]: info: :
hp-check[12384]: info: :[01mChecking for dependency: Reportlab - PDF library for Python...[0m
hp-check[12384]: info: :OK, found.
hp-check[12384]: info: :
hp-check[12384]: info: :[01mChecking for dependency: SANE - Scanning library...[0m
hp-check[12384]: info: :OK, found.
hp-check[12384]: info: :
hp-check[12384]: info: :[01mChecking for dependency: SANE - Scanning library development files...[0m
hp-check[12384]: info: :OK, found.
hp-check[12384]: info: :
hp-check[12384]: info: :[01mChecking for dependency: scanimage - Shell scanning program...[0m
hp-check[12384]: info: :OK, found.
hp-check[12384]: info: :
hp-check[12384]: info: :[01mChecking for dependency: xsane - Graphical scanner frontend for SANE...[0m
hp-check[12384]: info: :OK, found.
hp-check[12384]: info: :
hp-check[12384]: info: :
hp-check[12384]: info: :----------------------
hp-check[12384]: info: :| HPLIP INSTALLATION |
hp-check[12384]: info: :----------------------
hp-check[12384]: info: :
hp-check[12384]: info: :
hp-check[12384]: info: :[01mCurrently installed HPLIP version...[0m
hp-check[12384]: info: :HPLIP 3.11.12 currently installed in '/usr/share/hplip'.
hp-check[12384]: info: :
hp-check[12384]: info: :[01mCurrent contents of '/etc/hp/hplip.conf' file:[0m
hp-check[12384]: info: :# hplip.conf. Generated from hplip.conf.in by configure.

[hplip]
version=3.11.12

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.11.12
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.11.12
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=no
hpijs-only-build=no
lite-build=no
udev-acl-rules=no
hpcups-only-build=no
hpijs-only-build=no

hp-check[12384]: info: :
hp-check[12384]: info: :[01mCurrent contents of '/var/lib/hp/hplip.state' file:[0m
hp-check[12384]: info: :[plugin]
eula = 1
installed = 1

hp-check[12384]: info: :
hp-check[12384]: info: :[01mCurrent contents of '~/.hplip/hplip.conf' file:[0m
error: Could not access file: No such file or directory
hp-check[12384]: info: :
hp-check[12384]: info: :--------------------------
hp-check[12384]: info: :| DISCOVERED USB DEVICES |
hp-check[12384]: info: :--------------------------
hp-check[12384]: info: :
hp-check[12384]: info: : Device URI Model
hp-check[12384]: info: : ----------------------------------------------------------------- -------------------------------------
hp-check[12384]: info: : hp:/usb/HP_LaserJet_Professional_M1214nfh_MFP?serial=000000000QJ4 HP LaserJet Professional M1214nfh MFP
  F8CJPR1a
hp-check[12384]: info: :
hp-check[12384]: info: :---------------------------------
hp-check[12384]: info: :| INSTALLED CUPS PRINTER QUEUES |
hp-check[12384]: info: :---------------------------------
hp-check[12384]: info: :
hp-check[12384]: info: :
hp-check[12384]: info: :[01mhp-m1214[0m
hp-check[12384]: info: :[01m--------[0m
hp-check[12384]: info: :Type: Printer
hp-check[12384]: info: :Device URI: hp:/usb/HP_LaserJet_Professional_M1214nfh_MFP?serial=000000000QJ4F8CJPR1a
hp-check[12384]: info: :PPD: /etc/cups/ppd/hp-m1214.ppd
hp-check[12384]: info: :PPD Description: HP LaserJet Professional m1214nfh MFP, hpcups 3.11.12, requires proprietary plugin
hp-check[12384]: info: :Printer status: printer hp-m1214 is idle. enabled since Thu 26 Jan 2012 07:10:42 PM MSK
hp-check[12384]: info: :Required plug-in status: Installed
hp-check[12384]: info: :Communication status: Good
hp-check[12384]: info: :
hp-check[12384]: info: :[01mhp-m1214-fax[0m
hp-check[12384]: info: :[01m------------[0m
hp-check[12384]: info: :Type: Fax
hp-check[12384]: info: :Device URI: hpfax:/usb/HP_LaserJet_Professional_M1214nfh_MFP?serial=000000000QJ4F8CJPR1a
hp-check[12384]: info: :PPD: /etc/cups/ppd/hp-m1214-fax.ppd
hp-check[12384]: info: :PPD Description: HP Fax3 hpcups
hp-check[12384]: info: :Printer status: printer hp-m1214-fax is idle. enabled since Thu 26 Jan 2012 07:10:42 PM MSK
hp-check[12384]: info: :Required plug-in status: Installed
hp-check[12384]: info: :Communication status: Good
hp-check[12384]: info: :
hp-check[12384]: info: :
hp-check[12384]: info: :----------------------
hp-check[12384]: info: :| SANE CONFIGURATION |
hp-check[12384]: info: :----------------------
hp-check[12384]: info: :
hp-check[12384]: info: :[01m'hpaio' in '/etc/sane.d/dll.conf'...[0m
hp-check[12384]: info: :OK, found. SANE backend 'hpaio' is properly set up.
hp-check[12384]: info: :
hp-check[12384]: info: :[01mChecking output of 'scanimage -L'...[0m
hp-check[12384]: info: :device `hpaio:/usb/HP_LaserJet_Professional_M1214nfh_MFP?serial=000000000QJ4F8CJPR1a' is a Hewlett-Packard HP_LaserJet_Professional_M1214nfh_MFP all-in-one

hp-check[12384]: info: :
hp-check[12384]: info: :---------------------
hp-check[12384]: info: :| PYTHON EXTENSIONS |
hp-check[12384]: info: :---------------------
hp-check[12384]: info: :
hp-check[12384]: info: :[01mChecking 'cupsext' CUPS extension...[0m
hp-check[12384]: info: :OK, found.
hp-check[12384]: info: :
hp-check[12384]: info: :[01mChecking 'pcardext' Photocard extension...[0m
hp-check[12384]: info: :OK, found.
hp-check[12384]: info: :
hp-check[12384]: info: :[01mChecking 'hpmudext' I/O extension...[0m
hp-check[12384]: info: :OK, found.
hp-check[12384]: info: :
hp-check[12384]: info: :[01mChecking 'scanext' SANE scanning extension...[0m
hp-check[12384]: info: :OK, found.
hp-check[12384]: info: :
hp-check[12384]: info: :
hp-check[12384]: info: :
hp-check[12384]: info: :-----------------
hp-check[12384]: info: :| USB I/O SETUP |
hp-check[12384]: info: :-----------------
hp-check[12384]: info: :
hp-check[12384]: info: :[01mChecking for permissions of USB attached printers...[0m
hp-check[12384]: info: :
HP Device 0x52a at 001:009:
hp-check[12384]: info: : Device URI: hp:/usb/HP_LaserJet_Professional_M1214nfh_MFP?serial=000000000QJ4F8CJPR1a
hp-check[12384]: info: : Device node: /dev/bus/usb/001/009
hp-check[12384]: info: : Mode: 0660
hp-check[12384]: info: :getfacl: Removing leading '/' from absolute path names
# file: dev/bus/usb/001/009
# owner: root
# group: lp
user::rw-
group::rw-
group:lp:rw-
mask::rw-
other::---

hp-check[12384]: info: :
hp-check[12384]: info: :---------------
hp-check[12384]: info: :| USER GROUPS |
hp-check[12384]: info: :---------------
hp-check[12384]: info: :
hp-check[12384]: info: :root bin daemon sys adm disk wheel

hp-check[12384]: info: :
hp-check[12384]: info: :-----------
hp-check[12384]: info: :| SUMMARY |
hp-check[12384]: info: :-----------
hp-check[12384]: info: :
hp-check[12384]: info: :[32;01mNo errors or warnings.[0m
hp-check[12384]: info: :
hp-check[12384]: info: :Done.

Thanks in advance.

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
Amarnath Chitumalla
Solved:
Last query:
Last reply:
Revision history for this message
Best Amarnath Chitumalla (amarnath-chitumalla) said :
#1

Hi,

Generally in some Distros this issue happens if SELINUX is enabled in the distro, then fails to load dll.

Please try disabling SELINUX. In general to follow bellow procedure to disable selinux (change accordingly, if it is different for scientific linux)

$ echo 0 >/selinux/enforce
--> 0 for disable. 1 for enable.

Thanks & Regards,
Amarnath

Revision history for this message
bircoph (bircoph) said :
#2

Thanks, the problem was indeed in SEinux enforced mode.
I had no idea it was set enforced by default in this distribution.

Revision history for this message
bircoph (bircoph) said :
#3

Thanks Amarnath Chitumalla, that solved my question.