LaserJet M1212nf Device Communication Error 5012

Asked by Brian Chirls

Hi.

My MFP is new out of the box, and I am unable to scan or print. The device is connected over the network (LaserJet to Router by cable, Router to Computer by WiFi). I was able to install the printer with hp-setup (once I got around the Binary Plugin installer's python 3 problems), but now I'm getting communication errors whatever I try to do, even attempting to re-install with hp-setup.

I'm using Arch Linux. cupsd is running, and I'm pretty sure I have all my packages installed. I AM able to access the device's web interface using the IP address.

I tried running "tail -f /var/log/syslog.log" while attempting to print/scan as I saw in some of the other posts, but there was no output.

Thank you.

hp-check -b:

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

Basic system information:
Linux batman 3.0-ARCH #1 SMP PREEMPT Wed Oct 19 10:27:51 CEST 2011 x86_64 Intel(R) Core(TM) i7-2630QM CPU @ 2.00GHz GenuineIntel GNU/Linux

Distribution:
unknown 0.0

Checking Python version...
OK, version 2.7.2 installed

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

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

Checking for dbus/python-dbus...
dbus daemon is running.
python-dbus version: 0.84.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 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.11.10 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.11.10

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.11.10
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=yes
gui-build=yes
scanner-build=yes
fax-build=yes
dbus-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
hpijs-install=yes
foomatic-drv-install=yes
foomatic-ppd-install=yes
foomatic-rip-hplip-install=yes
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=no
internal-tag=3.11.10
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=no
hpijs-only-build=no
lite-build=no
udev-acl-rules=yes
hpcups-only-build=no
hpijs-only-build=no

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

Current contents of '~/.hplip/hplip.conf' file:
[installation]
date_time = 11/02/2011 17:03:30
version = 3.11.10

[last_used]
device_uri = "hp:/net/HP_LaserJet_Professional_M1212nf_MFP?zc=NPI7C323D"
printer_name =
working_dir = .

[settings]
systray_visible = 0
systray_messages = 0

[commands]
scan = /usr/bin/xsane -V %SANE_URI%

[refresh]
rate = 30
enable = false
type = 1

[polling]
enable = false
interval = 5
device_list =

[fax]
voice_phone =
email_address =

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

No devices found.

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

HP_LaserJet_Professional_M1212nf_MFP
------------------------------------
Type: Printer
Device URI: hp:/net/HP_LaserJet_Professional_M1212nf_MFP?zc=NPI7C323D
PPD: /etc/cups/ppd/HP_LaserJet_Professional_M1212nf_MFP.ppd
PPD Description: HP LaserJet Professional m1212nf MFP hpijs, 3.11.10, requires proprietary plugin
Printer status: printer HP_LaserJet_Professional_M1212nf_MFP is idle. enabled since Wed 02 Nov 2011 04:08:18 PM EDT
Required plug-in status: Installed
error: Unable to communicate with device (code=12): hp:/net/HP_LaserJet_Professional_M1212nf_MFP?zc=NPI7C323D
error: unable to open channel
error: Communication status: Failed

HP_LaserJet_Professional_M1212nf_MFP_fax
----------------------------------------
Type: Fax
Device URI: hpfax:/net/HP_LaserJet_Professional_M1212nf_MFP?zc=NPI7C323D
PPD: /etc/cups/ppd/HP_LaserJet_Professional_M1212nf_MFP_fax.ppd
PPD Description: HP Fax hpcups
Printer status: printer HP_LaserJet_Professional_M1212nf_MFP_fax is idle. enabled since Wed 02 Nov 2011 04:08:24 PM EDT
Required plug-in status: Installed
error: Unable to communicate with device (code=12): hpfax:/net/HP_LaserJet_Professional_M1212nf_MFP?zc=NPI7C323D
error: unable to open channel
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'...
device `hpaio:/net/HP_LaserJet_Professional_M1212nf_MFP?zc=NPI7C323D' is a Hewlett-Packard HP_LaserJet_Professional_M1212nf_MFP all-in-one
device `v4l:/dev/video0' is a Noname Integrated Camera virtual device

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

lp wheel http games video audio optical storage scanner power users vboxusers bumblebee

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

error: 2 errors and/or warnings.

Please refer to the installation instructions at:
http://hplip.sourceforge.net/install/index.html

Done.

Question information

Language:
English Edit question
Status:
Answered
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Srikanth (srikanth-lokare) said :
#1

Hi,

Thanks for posting the "hp-check" results. From the log I could found out that the print queue has picked up hpijs ppd. And HPLIP has stopped supporting hpijs. Can you please try the following steps.

1. Delete all the existing print queues.
2. Re-configure the queue using "hp-setup" from the terminal. Make sure that it picks the correct ppd.

Please let us know if the problem still persists.

Thanks for using HPLIP.

Thanks and Regards,
Srikanth Lokare

Revision history for this message
Brian Chirls (dmiai) said :
#2

Hi Srikanth. Thanks for writing back so quickly.

Where can I get the right ppd file? hp-setup is asking me to provide the path to one. I have almost 900 different gzipped ppd files in /usr/share/HP, but all the laserjet ones are hpijs.

I can get rid of these if they're obsolete, right?

Revision history for this message
Brian Chirls (dmiai) said :
#3

I also have, in /usr/share/cups/model/pxlmono.ppd which doesn't work.

And I have /usr/share/cups/model/foomatic-db-ppds which only contains ppds for designjets and an officejet.

Revision history for this message
Srikanth (srikanth-lokare) said :
#4

Hi,

Please follow the below instructions and it will pickup the correct pdd (cups ppd).

1. Delete the existing print queue

2. Go to the hplip-3.11.10 source directory.
3. Run the following commands from the terminal.

$"./configure --with-hpppddir=/usr/share/ppd/HP --prefix=/usr --enable-qt4 --enable-doc-build --disable-cups-ppd-install --disable-foomatic-drv-install --disable-foomatic-ppd-install --disable-hpijs-install --disable-policykit --enable-cups-drv-install --enable-hpcups-install --enable-network-build --enable-dbus-build --enable-scan-build --enable-fax-build"

$make

$sudo make install.

4. Re-configure the queue using "hp-setup" from the terminal.

Thanks for using HPLIP.

Thanks and Regards,
Srikanth Lokare

Revision history for this message
Brian Chirls (dmiai) said :
#5

Getting closer, but I have a number of problems.

configure fails with a python syntax error, presumably because I have python 3 installed. I can get it to build using python2.7 by running these commands:

export PYTHON=/usr/bin/python2.7
export PYTHONINCLUDEDIR=/usr/include/python2.7/

But then when I run hp-setup, it fails with its own python syntax error (line 112). I can get around this by editing hp-setup and hp-plugin, changing the first line to reference python2.7 instead of python. Presumably, I'll have to do this for every single one of these executables.

Then, hp-setup downloads hplip-3.11.10-plugin.run all over again, which I also have to trick into using the old python this way:
http://www.go2linux.org/linux/2010/11/hplip-syntax-error-invalid-syntax-816

hp-setup detects the ppd file:
drv:///hp/hpcups.drv/hp-laserjet_professional_m1212nf_mfp.ppd

After all that, I go through the install process and try to print a test page. I get this:
WARNING: no socket to connect to

Followed by this:
error: Unable to communicate with device (code=12): hp:/net/HP_LaserJet_Professional_M1212nf_MFP?zc=NPI7C323D
error: Unable to print to printer. Please check device and try again.
error: Unable to communicate with printer HP_LaserJet_Professional_M1212nf_MFP. Please check the printer and try again.

After editing hp-toolbox to make it run on python2.7, I get my old friend error 5012. Back to square one. :-(

Any ideas?

Revision history for this message
Sanjay Kumar (sanjay-kumar14) said :
#6

Hi,

Thanks for the update. To help us understand and analyze the issue please follow following things.

    a)Open /etc/cups/cupsd.conf in root mode and replace

        LogLevel warn

          with

       LogLevel debug
       hpLogLevel 15

    b) Open Terminal and run following commands:
       => su
       => /etc/init.d/cups restart
                  or
       => service cups restart
       => cd /tmp
       => rm *.out
       => rm *.bmp
       => hp-check -t > /tmp/hpcheck.log

    c) Try to print the file and then send
          => /var/log/syslog (if present),
          => /var/log/messages (if present),
          => /var/log/cups/error_log
          => /tmp/*.bmp
          => /tmp/*.out
          => /tmp/hpcheck.log

Sorry for the inconvenience caused.

Revision history for this message
Brian Chirls (dmiai) said :
#7

Thank you, Sanjay.

I'm out of the country now and don't have access to my printer, so please keep this ticket open, and I'll try this in a week or so.

B

Revision history for this message
Jeffrey Harris (jneal-harris) said :
#8

+1
I am having very similar issues with the same printer on Arch Linux. I am posting so I will receive e-mail notification on this thread.

Can you help with this problem?

Provide an answer of your own, or ask Brian Chirls for more information if necessary.

To post a message you must log in.