P1102w printer cant connect to print using hplip

Bug #1000385 reported by Brittany Dunlap
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
HPLIP
New
Undecided
Unassigned

Bug Description

I've tried over and over again on many different linux distros to get hplip to work properly with my HP LaserJet Pro p1102w printer. Nothing I do works.

I've tried using the preinstalled version of hplip (that is above the minimum version required for my printer) and I've installed the newest HPLIP and tried that.

hp-probe
option 1 (wireless/network)
Found one printer: hp:/net/HP_LaserJet_Professional_P1102w?ip=169.254.160.130 HP_LaserJet_Professional_P1102w NPIC63782
 --However that IP address is wildly incorrect. It should be 192.168.1.106.

hp-setup
Network/Ethernet/Wireless option
It finds my printer with the correct hostname. (hp:/net/HP_LaserJet_Professional_P1102w?zc=NPIC63782
Printer Setup with the ppd file (drv:///hp/hpcups.drv/hp-laserjet_professional_p1102w.ppd)
add printer.

WHen I try to print from that printer, in the print dialog the printer states that the status is /usr/lib/cups/backend/hp failed.

Revision history for this message
Brittany Dunlap (xdunlapx) wrote :

AND When I use fedoras (?) printer troubleshooter it tells me the printer is not enabled. So I go and enable it in the context menu. Then try to print again and the printer becomes disabled again.

Revision history for this message
Sanjay Kumar (sanjay-kumar14) wrote :

Hi,

Thanks for reporting the issue in HPLIP. To help us understand and analyze the issue please follow following things.

=> Download and install the latest HPLIP release from http://hplipopensource.com/hplip-web/install/install/index.html (automatic) or http://hplipopensource.com/hplip-web/install/manual/index.html(manual if automatic does not work)

=> Reconfigure print queue with the commands mentioned below.
       =>system-config-printer (remove all print queues)
                     or
         Go to system ->Administration -> printing (then remove all print queues)
       =>hp-setup (for adding print queue)
=>Enable/Clear Logs as mentioned below

=>Try to print any document and If issue is not resolved then execute following steps

    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

       => rm -rf /tmp/*.out /tmp/*.bmp
       => cat /dev/null > /var/log/cups/error_log
       => cat /dev/null > /var/log/messages
       => cat /dev/null > /var/log/syslog
       => hp-check -t > /tmp/hpcheck.log

    c) Try to print any document and then please send following files
          => /var/log/syslog (if present),
          => /var/log/messages (if present),
          => /var/log/cups/error_log
          => /tmp/*.bmp
          => /tmp/*.out
          => /tmp/hpcheck.log
          => output of "/usr/bin/gs -v" command
          => document used for printing
          =>scanned copy of printed document

    d) Please let me know the application used for testing.

Revision history for this message
Brittany Dunlap (xdunlapx) wrote :

I tried the following commands but got permission denied even though I used sudo.
      => cat /dev/null > /var/log/cups/error_log
       => cat /dev/null > /var/log/messages
       => cat /dev/null > /var/log/syslog

hp-check -t >/tmp/hpcheck.log returned:
[root@fedora Downloads]# hp-check -t > /tmp/hpcheck.log
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).
error: Could not access file: No such file or directory
error: Unable to communicate with device (code=12): hp:/net/HP_LaserJet_Professional_P1102w?zc=NPIC63782
error: unable to open channel
error: Communication status: Failed
error: 1 error or warning.

I tried to upload /var/log/syslog but launchpad said that it can't upload an empty file. messages was empty, too. So is /var/log/cups/error_log

Revision history for this message
Brittany Dunlap (xdunlapx) wrote :
Revision history for this message
Brittany Dunlap (xdunlapx) wrote :
Revision history for this message
Brittany Dunlap (xdunlapx) wrote :
Revision history for this message
Brittany Dunlap (xdunlapx) wrote :

  => output of "/usr/bin/gs -v" command
[root@fedora Downloads]# /usr/bin/gs -v
GPL Ghostscript 9.04 (2011-08-05)
Copyright (C) 2011 Artifex Software, Inc. All rights reserved.

I tried to print this bug report in Firefox 12.

Revision history for this message
Brittany Dunlap (xdunlapx) wrote :

I just reinstalled fedora 16. I updated the system and installed hplip. I logged out when it wanted to set up my printer. I then logged back in, ran "sudo hp-setup" and the tried to set up the printer. It wont download the plugin.

[brittany@fedora16 ~]$ sudo hp-plugin

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

Copyright (c) 2001-14 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
error: Please install wget package to download the plugin.
Downloading plug-in from: file://
Traceback (most recent call last):
  File "/usr/share/hplip/ui4/plugindialog.py", line 279, in NextButton_clicked
    self.plugin_download_callback)
  File "/usr/share/hplip/installer/core_install.py", line 1980, in download_plugin
    if (status != 0) and 'file://' not in url:
UnboundLocalError: local variable 'status' referenced before assignment
Downloading plug-in from: file://file://
Traceback (most recent call last):
  File "/usr/share/hplip/ui4/plugindialog.py", line 279, in NextButton_clicked
    self.plugin_download_callback)
  File "/usr/share/hplip/installer/core_install.py", line 1980, in download_plugin
    if (status != 0) and 'file://' not in url:
UnboundLocalError: local variable 'status' referenced before assignment

I have python installed. It's python 2.7.3-1 according to the yum output of "sudo yum install python".

I'm not where where to go next. Please advise.

Revision history for this message
Brittany Dunlap (xdunlapx) wrote :

Ok so I opened the conf file (http://hplip.sf.net/plugin.conf) and chose the appropriate plugin file and downloaded it. ran it as root. It appears the plugin was installed.

I then ran sudo hp-setup and it couldn't locate my printer. It did before I installed the plugin, though the plugin wouldnt install from that hp-setup program.

Should I attempt to add the printer via system-configure-printer?

Revision history for this message
Brittany Dunlap (xdunlapx) wrote :

It won't let me upload files. So here are the pastebins for the following files:

/var/log/messages: http://pastebin.com/0Z5yhsdk

/var/log/cups/error_log: http://pastebin.com/3vksHFNe

/tmp/*.bmp does not exist

/tmp/hpcheck.log: http://pastebin.com/5kpbzKE4

[root@fedora16 Downloads]# /usr/bin/gs -v
GPL Ghostscript 9.04 (2011-08-05)
Copyright (C) 2011 Artifex Software, Inc. All rights reserved.

I printed the email I received with your instructions.

Thunderbird email.

Revision history for this message
Sanjay Kumar (sanjay-kumar14) wrote :

Hi,

I think there were a few problems in executing the instructions. Please find the instructions again with proper comments and execute the steps in correct order.

=> Download and install the latest HPLIP release from http://hplipopensource.com/hplip-web/install/install/index.html (automatic) or http://hplipopensource.com/hplip-web/install/manual/index.html(manual if automatic does not work)
(*****You can skip downling part)

=>check if wget utility is present. If not then please install the same from package manager.
    u can check it by typing "wget --help" in the terminal.
=> Reconfigure print queue with the commands in the terminal mentioned below.
       => system-config-printer (remove all print queues)
      => su -c "hp-plugin" (This will download right plugin)
       => hp-setup (It should not be run in a root mode. This command is adding print queue, make sure you select ppd name having "-ps" or "hpcups" substring)
=>Try printing now.

If problem does not get solved then please capture some logs by doing following things.

=>Enable/Clear Logs as mentioned below
    a) Enable Log capture
       => su (switch to root mode here and execute all remaing commands in root mode)
      => open /etc/cups/cupsd.conf from terminal e.g (vi /etc/cups/cupsd.conf or gedit /etc/cups/cupsd.conf) and then replace
         LogLevel warn
                   with
        LogLevel debug
        hpLogLevel 15

    b) Open Terminal and run following commands:
       => su (switch to root mode here and execute all remaing commands in root mode)
       => /etc/init.d/cups restart
                  or
       => service cups restart
       => cd /tmp
       => rm *.out
       => rm *.bmp
       => cat /dev/null > /var/log/cups/error_log
       => cat /dev/null > /var/log/messages
       => cat /dev/null > /var/log/syslog
       => hp-check -t > /tmp/hpcheck.log

    c) Try to print the file. If issue is not resolved then please send following files
        (**Please use "Create a bug report" to attach the logs as "Ask a Question" does not provide the file attachment option)
          => /var/log/syslog (if present),
          => /var/log/messages (if present),
          => /var/log/cups/error_log
          => /tmp/*.bmp
          => /tmp/*.out
          => /tmp/hpcheck.log
          => document used for printing
          => scanned copy of the printed document (if present)
    d) Please let me know the application used for testing.

Revision history for this message
Brittany Dunlap (xdunlapx) wrote :

Ok I re-did some of the instructions but when I went to run hp-setup, it coulndn't detect my printer. I know my printer is on.

I got as far as:
=> Download and install the latest HPLIP release from http://hplipopensource.com/hplip-web/install/install/index.html (automatic) or http://hplipopensource.com/hplip-web/install/manual/index.html(manual if automatic does not work)
(*****You can skip downling part)

=>check if wget utility is present. If not then please install the same from package manager.
    u can check it by typing "wget --help" in the terminal.
=> Reconfigure print queue with the commands in the terminal mentioned below.
       => system-config-printer (remove all print queues)
      => su -c "hp-plugin" (This will download right plugin)
       => hp-setup (It should not be run in a root mode. This command is adding print queue, make sure you select ppd name having "-ps" or "hpcups" substring)

Revision history for this message
Brittany Dunlap (xdunlapx) wrote :

I guess this bug report can be closed. I went ahead and set up the printer through system-config-printer and it actually works this time. I printed a test page and a page from gedit. It works. Thanks!!

Revision history for this message
Brittany Dunlap (xdunlapx) wrote :

Ok I've finally chosen a distro for the long-term. I'm trying to download the plugin in ArchBang. I'm following the instructions provided, I do have wget installed. The plugin seems to be installed but when I run "sudo hp-setup -i" and get to the point that it looks for the PPD file, it can't find it. I don't know where it was installed to or I'd manually look for it. So I'm at a loss here.

Setting up device: hp:/net/HP_LaserJet_Professional_P1102w?zc=NPIC63782

...
---------------------
| PRINT QUEUE SETUP |
---------------------

Please enter a name for this print queue (m=use model name:'HP_LaserJet_Professional_P1102w'*, q=quit) ?m
Using queue name: HP_LaserJet_Professional_P1102w
Locating PPD file... Please wait.
warning: No PPD found for model laserjet_professional_p1102w using new algorithm. Trying old algorithm...
error: No PPD found for model laserjet_professional_p1102w using old algorithm.
error: Unable to find an appropriate PPD file.

Would you like to specify the path to the correct PPD file to use (y=yes, n=no*, q=quit) ?

Revision history for this message
Brittany Dunlap (xdunlapx) wrote :

I found the ppd. it took it and the setup seemed to go well. Then I printed a test file from Leafpad. I checked cups jobs and it failed with

pending since
Tue 22 May 2012 01:02:03 AM EDT
"/usr/lib/cups/backend/hp failed"

Ah the old usual problem resurfaces.

Revision history for this message
Sanjay Kumar (sanjay-kumar14) wrote :

Hello Brittany,

Sorry to inform you that we dont test HPLIP on Archbang and manual instructions for installing HPLIP for this are also very general in nature ( http://hplipopensource.com/hplip-web/install/manual/distros/other.html). If possible then please use One of the following distros as they are well tested and most of them have an auto installer.
1)Ubuntu >10.04
2)Fedora >14
3)OpenSuse > 12.01
4)Debian >=6.0
5)Red Hat Enterprise Linux 6.0 (no autoinstaller,only rpm)

Thanks,
Sanjay

Revision history for this message
IanG (ian-usts) wrote :

Since upgrading to HPLIP-3.15.2 version which was installed on 27-02-2015, I now have a similar problem.

Several installs later, I'm still struggling on all user IDs

Status Message: Printer may no be connected (Error 1018)
Device URI : hp:/usb/HP_LaserJet_Professional_P_1102w?serial=000000000W42BAVKPR1a
System: Ubuntu 14:04 LTS

Revision history for this message
goutam (goutamkk) wrote :

Hi IanG,

Can you restart the printer.
Delete the existing print queue for this printer using command 'hp-setup -r'
Next, run command 'hp-setup' in terminal and reconfigure the print queue.

Let us know if you are still getting the same error.

If error still remains same. Provide us the output of 'hp-check' and 'hp-levels -g ' command.

Rgds,
Goutam

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.