hp deskjet 920c dissapeared, cannot add

Bug #943527 reported by stop
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cups (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

My hp deskjet 920c was working correctly on my server. I did not change anything (other than updating) as far as I know but the printer is gone and I cannot add it anymore via the cups administration tool.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: cups 1.4.3-1ubuntu1.5
ProcVersionSignature: Ubuntu 2.6.32-38.83-server 2.6.32.52+drm33.21
Uname: Linux 2.6.32-38-server x86_64
Architecture: amd64
Date: Wed Feb 29 20:37:36 2012
Lpstat: Error: command ['lpstat', '-v'] failed with exit code 1: lpstat: No destinations added.
Lsusb:
 Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
MachineType: Hewlett-Packard HP dx5150 MT(EC923ET)
Papersize: letter
PpdFiles:
 HPPrinter: HP 2000C Foomatic/pcl3
 HP_DESKJET_920C: HP DeskJet 920C - CUPS+Gutenprint v5.2.5
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.32-38-server root=UUID=c9bd449e-90d2-4fd2-81b8-03da37bab710 ro quiet splash
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: cups
dmi.bios.date: 02/24/2006
dmi.bios.vendor: Phoenix Technologies, LTD
dmi.bios.version: 1.13
dmi.board.name: 09AC
dmi.board.vendor: MSI
dmi.chassis.asset.tag: CZC60910R3
dmi.chassis.type: 3
dmi.chassis.vendor: Hewlett-Packard
dmi.modalias: dmi:bvnPhoenixTechnologies,LTD:bvr1.13:bd02/24/2006:svnHewlett-Packard:pnHPdx5150MT(EC923ET):pvr:rvnMSI:rn09AC:rvr:cvnHewlett-Packard:ct3:cvr:
dmi.product.name: HP dx5150 MT(EC923ET)
dmi.sys.vendor: Hewlett-Packard

Revision history for this message
stop (whoopwhoop) wrote :
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Can you follow the instructions of the section "Printer detection" on https://wiki.ubuntu.com/DebuggingPrintingProblems. Thanks.

Changed in cups (Ubuntu):
status: New → Incomplete
Revision history for this message
stop (whoopwhoop) wrote :

PRINTER DETECTION

Parallel port printer

lsmod | grep lp
drm_kms_helper 30774 1 radeon
drm 199968 3 radeon,ttm,drm_kms_helper
lp 9336 0
parport 37160 3 ppdev,lp,parport_pc

lsmod | grep ppdev
ppdev 6375 0
parport 37160 3 ppdev,lp,parport_pc

lsmod | grep parport_pc
parport_pc 29958 1
parport 37160 3 ppdev,lp,parport_pc

dmesg | grep par
[ 0.000000] Booting paravirtualized kernel on bare hardware
[ 0.159653] pci 0000:00:14.4: transparent bridge
[ 0.764945] eth0: Tigon3 [partno(BCM95751) rev 4200] (PCI Express) MAC address 00:16:17:27:6a:09
[ 3.472903] unknown partition table
[ 3.476858] md2: unknown partition table
[ 3.486583] md1: unknown partition table
[ 7.390837] parport_pc 00:09: reported by Plug and Play ACPI
[ 7.390917] parport0: PC-style at 0x378 (0x778), irq 7, dma 3 [PCSPP,TRISTATE,COMPAT,ECP,DMA]
[ 7.467617] ppdev: user-space parallel port driver
[ 7.491003] parport0: Printer, HEWLETT-PACKARD DESKJET 920C
[ 7.491200] lp0: using parport0 (interrupt-driven).
[ 26.739134] nf_conntrack.acct=1 kernel parameter, acct=1 nf_conntrack module option or

ls -l /dev/lp* /dev/parport*
crw-rw---- 1 root lp 6, 0 2012-02-11 04:28 /dev/lp0
crw-rw---- 1 root lp 99, 0 2012-02-11 04:28 /dev/parport0

ls -l /proc/sys/dev/parport/parport*/autoprobe*
-r--r--r-- 1 root root 0 2012-03-01 00:11 /proc/sys/dev/parport/parport0/autoprobe
-r--r--r-- 1 root root 0 2012-03-01 00:11 /proc/sys/dev/parport/parport0/autoprobe0
-r--r--r-- 1 root root 0 2012-03-01 00:11 /proc/sys/dev/parport/parport0/autoprobe1
-r--r--r-- 1 root root 0 2012-03-01 00:11 /proc/sys/dev/parport/parport0/autoprobe2
-r--r--r-- 1 root root 0 2012-03-01 00:11 /proc/sys/dev/parport/parport0/autoprobe3

sudo cat /proc/sys/dev/parport/parport*/autoprobe*
CLASS:PRINTER;
MODEL:DESKJET 920C;
MANUFACTURER:HEWLETT-PACKARD;
DESCRIPTION:Hewlett-Packard DeskJet 920C;
COMMAND SET:MLC,PCL,PML;

lpinfo -v
network http
network lpd
network ipp
direct scsi
network socket
serial serial:/dev/ttyS0?baud=115200
network beh
direct parallel:/dev/lp0
direct hp:/par/DESKJET_920C?device=/dev/parport0
direct hpfax

/usr/lib/cups/backend/parallel
***NOTHING RETURNED HERE***

 sudo /usr/lib/cups/backend/parallel
direct parallel:/dev/lp0 "HP DESKJET 920C" "HP DESKJET 920C LPT #1" "MFG:HEWLETT-PACKARD;MDL:DESKJET 920C;CMD:MLC,PCL,PML;CLASS:PRINTER;DESCRIPTION:Hewlett-Packard DeskJet 920C;SERN:MY16P671P8BI;VSTATUS:$HB0$NC0,ff,DN,IDLE,CUT,K0,C0,SM,NR,KP078,CP004;VP:0800,FL,B0;VJ: ;" ""

Changed in cups (Ubuntu):
status: Incomplete → New
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

CUPS detects the printer (output of "lpinfo -v" and "sudo /usr/lib/cups/backend/parallel"). Also the permissions and ownerships of the parallel port device files (/dev/lp0 and /dev/parport0) are correct.

If you start system-config-printer and click on "Add" does the printer not appear in the list of detected printers? Wait after the spinning icon at the bottom of the window disappears (means that the auto-detection process has terminated).

If you go to http://localhost:631/ and select the functionality to add a printer, does your printer appear in the list of detected printers? If you are asked for user name and password, enter your user name and password.

Changed in cups (Ubuntu):
status: New → Incomplete
Revision history for this message
stop (whoopwhoop) wrote :

It's a server without gui. Running http://localhost:631 via w3m and selecting add printer results:
[left] Home Administration Classes Online Help Jobs Printers ●

Add Printer

                             ( ) SCSI Printer
                             ( ) Serial Port #1
      Local Printers: ( ) HP DESKJET 920C LPT #1 (HP DESKJET 920C)
                             ( ) HP DESKJET 920C LPT parport0 HPLIP (HP DESKJET 920C)
                             ( ) HP Fax (HPLIP)
Discovered Network Printers:
                             ( ) Internet Printing Protocol (http)
                             ( ) LPD/LPR Host or Printer
  Other Network Printers: ( ) Internet Printing Protocol (ipp)
                             ( ) Backend Error Handler
                             ( ) AppSocket/HP JetDirect
                             [Continue]

CUPS and the CUPS logo are trademarks of Apple Inc. CUPS is copyright 2007-2009 Apple Inc. All rights reserved.

≪ ↑ ↓ Viewing <Add Printer - CUPS 1.4.3>

So it looks like it is listing the printer if I understand you correctly, however selecting either "HP DESKJET 920C LPT #1 (HP DESKJET 920C)" or " HP DESKJET 920C LPT parport0 HPLIP (HP DESKJET 920C)" in combination with any of the 4 makes:
HP DeskJet 920C - CUPS+Gutenprint v5.2.5 (en)
HP DeskJet 920C - CUPS+Gutenprint v5.2.5 Simplified (en)
HP Deskjet 920c hpijs, 3.10.2 (en)
HP Deskjet 920c, hpcups 3.10.2 (en)
and selecting add printer does not add anything.

Changed in cups (Ubuntu):
status: Incomplete → New
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Does

lpadmin -p dj920 -E -v hp:/par/DESKJET_920C?device=/dev/parport0 -m drv:///hpcups.drv/hp-deskjet_920c.ppd
lpadmin -p dj920 -o PageSize=A4

create a print queue on which you can print (second line only needed if you use A4 paper)? If not, do you get error messages on the screen (please post)? Can you also attach your error_log (see section "CUPS error_log" on https://wiki.ubuntu.com/DebuggingPrintingProblems) in case of problems to create the queue or to print?

Changed in cups (Ubuntu):
status: New → Incomplete
Revision history for this message
stop (whoopwhoop) wrote :

I ran:
lpadmin -p dj920 -E -v hp:/par/DESKJET_920C?device=/dev/parport0 -m drv:///hpcups.drv/hp-deskjet_920c.ppd
lpadmin -p dj920 -o PageSize=A4
in an ssh terminal and got no response from the printer, did not get any error on screen.
The "printers" tab in localhost:631 shows:
[left] Home Administration Classes Online Help Jobs Printe
                     Search in Printers: [Search] [Clear]

                            Showing 1 of 1 printer.

▼ Queue Name ▼ Description Location Make and Model Status
dj920 dj920 HP Deskjet 920c, hpcups 3.10.2 Idle

CUPS and the CUPS logo are trademarks of Apple Inc. CUPS is copyright 2007-2009
Apple Inc. All rights reserved.
≪ ↑ ↓ Viewing <Printers - CUPS 1.4.3>

Selecting dj920 shows:

[left] Home Administration Classes Online Help Jobs Printe

dj920 (Idle, Accepting Jobs, Shared)

[Maintenance ] [Go] [Administration ] [Go]
Description: dj920
   Location:
     Driver: HP Deskjet 920c, hpcups 3.10.2 (color)
 Connection: hp:/par/DESKJET_920C?device=/dev/parport0
   Defaults: job-sheets=none, none media=iso_a4_210x297mm

Jobs

                       Search in dj920: [Search] [Clear]

[Show Completed Jobs][Show All Jobs]

                                   No jobs.

≪ ↑ ↓ Viewing <dj920 - CUPS 1.4.3>

I am not sure if this is caused by the commands I entered but this was not there before...

Revision history for this message
stop (whoopwhoop) wrote :
Download full text (15.9 KiB)

sudo cat /var/log/cups/error_log
W [01/Mar/2012:07:58:11 +0100] Unknown LogLevel warning on line 1.
W [01/Mar/2012:07:58:11 +0100] No limit for CUPS-Get-Document defined in policy default - using Send-Document's policy
E [01/Mar/2012:19:40:35 +0100] Request from "10.0.0.149" using invalid Host: field "hpserver.local:631"
E [01/Mar/2012:19:40:35 +0100] Request from "10.0.0.149" using invalid Host: field "hpserver.local:631"
E [01/Mar/2012:19:40:35 +0100] Request from "10.0.0.149" using invalid Host: field "hpserver.local:631"
E [01/Mar/2012:19:40:35 +0100] Request from "10.0.0.149" using invalid Host: field "hpserver.local:631"
E [01/Mar/2012:19:40:41 +0100] Request from "10.0.0.149" using invalid Host: field "hpserver.local:631"
E [01/Mar/2012:19:40:41 +0100] Request from "10.0.0.149" using invalid Host: field "hpserver.local:631"
E [01/Mar/2012:19:42:41 +0100] [Job 5] Unable to queue job for destination "HP_DESKJET_920C"!
E [01/Mar/2012:19:42:41 +0100] [Job 6] Unable to queue job for destination "(null)"!
E [01/Mar/2012:19:42:41 +0100] [Job 7] Unable to queue job for destination "(null)"!
E [01/Mar/2012:19:42:41 +0100] [Job 8] Unable to queue job for destination "(null)"!
E [01/Mar/2012:19:42:41 +0100] [Job 9] Unable to queue job for destination "HP_DESKJET_920C"!
E [01/Mar/2012:19:42:41 +0100] [Job 10] Unable to queue job for destination "(null)"!
E [01/Mar/2012:19:42:41 +0100] [Job 11] Unable to queue job for destination "HP_DESKJET_920C"!
E [01/Mar/2012:19:42:41 +0100] [Job 12] Unable to queue job for destination "HP_DESKJET_920C"!
E [01/Mar/2012:19:42:41 +0100] [Job 13] Unable to queue job for destination "HP_DESKJET_920C"!
E [01/Mar/2012:19:42:41 +0100] [Job 14] Unable to queue job for destination "HP_DESKJET_920C"!
E [01/Mar/2012:19:42:41 +0100] [Job 15] Unable to queue job for destination "HP_DESKJET_920C"!
E [01/Mar/2012:19:42:41 +0100] [Job 16] Unable to queue job for destination "HP_DESKJET_920C"!
E [01/Mar/2012:19:42:41 +0100] [Job 17] Unable to queue job for destination "HP_DESKJET_920C"!
E [01/Mar/2012:19:42:41 +0100] [Job 18] Unable to queue job for destination "HP_DESKJET_920C"!
E [01/Mar/2012:19:42:41 +0100] [Job 19] Unable to queue job for destination "HP_DESKJET_920C"!
E [01/Mar/2012:19:42:41 +0100] [Job 20] Unable to queue job for destination "HP_DESKJET_920C"!
E [01/Mar/2012:19:42:41 +0100] [Job 21] Unable to queue job for destination "HP_DESKJET_920C"!
E [01/Mar/2012:19:42:41 +0100] [Job 22] Unable to queue job for destination "HP_DESKJET_920C"!
E [01/Mar/2012:19:42:41 +0100] [Job 23] Unable to queue job for destination "HP_DESKJET_920C"!
E [01/Mar/2012:19:42:42 +0100] [Job 24] Unable to queue job for destination "HP_DESKJET_920C"!
E [01/Mar/2012:19:42:42 +0100] [Job 25] Unable to queue job for destination "HP_DESKJET_920C"!
E [01/Mar/2012:19:42:42 +0100] [Job 26] Unable to queue job for destination "HP_DESKJET_920C"!
E [01/Mar/2012:19:42:42 +0100] [Job 27] Unable to queue job for destination "HP_DESKJET_920C"!
E [01/Mar/2012:19:42:42 +0100] [Job 28] Unable to queue job for destination "HP_DESKJET_920C"!
E [01/Mar/2012:19:42:42 +0100] [Job 29] Unable to queue job for destination "HP_DESKJET_920C"!
E [01/Mar/2012:19:42:42...

Changed in cups (Ubuntu):
status: Incomplete → New
Revision history for this message
stop (whoopwhoop) wrote :

Wait a minute... The commands you provided seems to have added a printer, which is detectible by other machines on the network...
I don't understand why the existing printer I had disapeared or how I am not able to add the printer via the gui webapplication.
But I am now able to print from other machines...

Thanks...

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

You have successfully created a print queue with the commands. The commands are only for creating the queue, not for actually printing, therefore the printer showed no reaction. Simply try to print now as you usually do, selecting the new print queue ("dj920").

So the problem was the web interface no creating the queue for you. Make sure that you either call it from the local machine (http://localhost:631/) or activate it for use from remote machines. Try also to use "https://..." instead of "http://...".

Revision history for this message
stop (whoopwhoop) wrote :

So you are telling me the printer never went missing? I thought a queue was just that someone ordered the printer to print something.
The problem was that all of a sudden not a single machine on the network could find the printer anymore. You'r command added a printer named dj920 not a queue if I am not mistaken...

In any case... I was not able to do this via the web interface... I used w3m via ssh to the server itself to use http://localhost:631, I was able to enter the Administration tab, there I tried Add Printer and Find New Printers but I do not understand why this does/did not work. It must have worked before because I installed it myself two years ago and it had work up till a few weeks ago, when the printer or queue suddenly disapeared...

Revision history for this message
stop (whoopwhoop) wrote :

I am not even sure if this is a real bug now, other than the fact that I cannot recreate the commands you provided via the web interface...

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

A print queue is the definition of a printer in your system. Each entry of a printer in the application's printing dialogs is a print queue. One calls them queue, as when you send a job while the printer is still printing, the jobs queue up and get printed in the order in which they got submitted.

"lpadmin" is a command line tool to create, modify, and remove print queues. It does not print anything. The commands which I hace supplied do the following: The first creates your print queue and the second sets the default paper size.

The web interface is a printer setup tool like system-config-printer. Its special property is that it is web-based and therefore it does not need a Linux desktop to run. With a headless print server it is often the only interactive printer setup tool.

Instead of using the web interface for remote administration you can also run system-config-printer on a Ubuntu client with a desktop and in the "Server" menu there is a function to connect system-config-printer to a remote server, for example your headless print server. Then you can manage your server with system-config-printer. For this or to use the server's web interface from a browser on a remote client (any operating system, can also be a cell phone) you need to allow remote administration on the server. run the command

cupsctl --remote-admin

on your server.

The credentials you have to enter are usually the user name of the first user set up on your machine and this user's password. If you have created a root password on your server you can also use "root" and the root password. In addition, the credentials of every user who is in the "lpadmin" group can be used.

If administration of your server does not work as I described, please report a separate bug.

I do not know why your print queue got removed during the update. Did you get asked whether you want to keep or replace certain configuration files (especially /etc/cups/printers.conf) during the update? Perhaps your /etc/cups/printers.conf got replaced by an empty one during the update.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Do you still have any problems with setting up printers or printing?

Changed in cups (Ubuntu):
status: New → Incomplete
Revision history for this message
stop (whoopwhoop) wrote :

Well your lpadmin command worked, so I do not have a real problem. I still can't add it via the web interface

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for cups (Ubuntu) because there has been no activity for 60 days.]

Changed in cups (Ubuntu):
status: Incomplete → Expired
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.