Communication error Code:12 while CUPS can print

Bug #1067435 reported by David Callebaut
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HPLIP
In Progress
Undecided
Unassigned

Bug Description

SOLUTION FOUND - SEE BOTTOM OF THREAD!!

OS: Linux Mint 13 (fully updated at time of this report)
HPlib: 3.12.10a
Printer: HP Laserjet 100 Color MFP M175nw

The printer is connected through wired LAN. The clients are connected through Wi-Fi.
Printer adding works fine. Printer is correctly found, Plug-in correctly installed and printer is able to be added in device manager.

However no communication can be established and no printing happens.
However when configuring CUPS manually printing does work (but does not use HP back-end at that time). Only printing works at that time, scanning does not.

When failing communication the device URI is:
hp:/net/HP_LaserJet_100_colorMFP_M175nw?zc=192.168.40.201

after manual config in CUPS following URI is in use (but HP device manager does not display printer of course):
dnssd://E96F72._ipp._tcp.local/

Also see hp-check in this report.

I believe we have a bug here. Am I correct?

Revision history for this message
David Callebaut (david-callebaut) wrote :
Revision history for this message
Amarnath Chitumalla (amarnath-chitumalla) wrote :

Hi David,

Can you please make following changes and try it.

    --> open "/usr/share/hplip/data/models/models.dat" in root mode
       $ su -c "gedit /usr/share/hplip/data/models/models.dat"

    --> search for following string.
          [hp_laserjet_100_colormfp_m175nw]
    -->in this section (just 8 to 9 lines below), will find "io-mfp-mode=3"
         Change from "io-mfp-mode=3" to "io-mfp-mode=1"

    --> Now restart Printer and try printing.

If still problem is reproducible, please send the logs by enabling debug mode.
   --> cd ~/Downloads/hplip-3.12.10a (assuming hplip-3.12.10a.run file downloaded to ~/Downloads folder, change accordingly).
    1. open "/usr/share/hplip/data/models/models.dat"
       $ gedit data/models/models.dat
         ==> search for following string.
             [hp_laserjet_100_colormfp_m175nw]
         ==>in this section (just 8 to 9 lines below), will find "io-mfp-mode=3"
             Change from "io-mfp-mode=3" to "io-mfp-mode=1"

    2. open "io/hpmud/hpmudi.h"
        $ gedit io/hpmud/hpmudi.h
        ==> search for "//#define HPMUD_DEBUG" (line no. around 61)
        ==> uncomment this line. (i.e. change from "//#define HPMUD_DEBUG" to "#define HPMUD_DEBUG")

   3. run make and make install commands
       $ make
       $ su -c "make install"

   4. now collect the log file.
       $ hp-logcapture

  attach log files here.

Thanks & Regards,
Amarnath

Changed in hplip:
status: New → In Progress
Revision history for this message
David Callebaut (david-callebaut) wrote :

Hi Amarnath,

I've tried the first option (setting io-mfp-mode=1) but no change. "communcation error" remains.

So I've done the following:
- remove printer from HP Device Manager. Made sure no printers anymore in CUPS (or GUI of printers)
- stopped hp-systray
- adapted the 2 files as indicated by you.
- run make & make install (no errors)
- restarted (if not done yet) all relevant services (hp-systray & cupsd)
- started hp-logcapture
- added the printer through the GUI "wizard" but did not choose for "test page" printing at end - all ok.
- once added - communication error appeared (red cross in hp device manager)
- defined printer as default through HP Device maanger (works ok)
- refreshed device manager - no change
- Printed a test page (from Printers GUI in Minux Mint)
- refreshed again - still no communication
- stopped hp-logcapture

Please find logs in attachment.

Revision history for this message
David Callebaut (david-callebaut) wrote :

Any update on this issue? Thanks!

Revision history for this message
David Callebaut (david-callebaut) wrote :

anything?

Revision history for this message
David Callebaut (david-callebaut) wrote :

I've installed to version 3.12.11 hoping it would be fixed, but no luck. Is there anybody to help here?

It would be sooooo a pity if I have to return to window$ because of such a stupid issue, no?

Revision history for this message
David Callebaut (david-callebaut) wrote :

Upgraded to 3.13.2... guess what: No printing..

I've used a Window$ machine in exact the same setup and it works flawless..

Guess I have to say bye bye to linux after 6 years being windows-free.

Revision history for this message
David Callebaut (david-callebaut) wrote :

I found the solution to the issue...

(you didn't really believed I was going back to Micro$oft do you?)

So: on a windows machine you don't need to change anything. But printing on (any) linux distro: make sure the SNMP is set to minimally "read only" and "public" in the community string.

Now, although I love that the printer is reporting back to the HP client, it is soooo unsecure to having to enable read-only SNMP mode with the default community string.

So any plans on implementing SNMP v3 with credential protection and support for non-default community strings?

(should I open another request for this?)

description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.