Can't print two consecutive jobs

Asked by Yvan Velenik on 2007-12-12

Hi.

I am having problem printing on my HP Laserjet P3005x (using usb port). I am using Mandriva Linux 2008. Printing worked fine on 2007.
Description of the problem: after a reboot of my PC, I can print one job without problems. But if I send another one, the printer does not react at all.

In /var/log/messages, one can then see

Dec 12 14:09:07 localhost HP_LaserJet_P3005?serial=CNFW71T2T6: io/hpmud/dot4.c 231: unable to read Dot4ReverseReply header: Resource temporarily unavailable bytesRead=0
Dec 12 14:09:07 localhost HP_LaserJet_P3005?serial=CNFW71T2T6: io/hpmud/dot4.c 330: invalid DOT4InitReply: cmd=0, result=20 , revision=0
Dec 12 14:09:07 localhost HP_LaserJet_P3005?serial=CNFW71T2T6: INFO: open print channel failed; will retry in 30 seconds...

Here is the output of hp-check :

hp-check[8106]: info: :
Initializing. Please wait...
l’ordonnanceur tourne

1.3.0

Linux localhost 2.6.22.9-desktop-1mdv #1 SMP Thu Sep 27 04:07:04 CEST 2007 i686 Intel(R) Core(TM)2 CPU 6400 @ 2.13GHz GNU/Linux

hp-check[8106]: info: :
hp-check[8106]: info: :---------------
hp-check[8106]: info: :| SYSTEM INFO |
hp-check[8106]: info: :---------------
hp-check[8106]: info: :
hp-check[8106]: info: :Basic system information:
hp-check[8106]: info: :Linux localhost 2.6.22.9-desktop-1mdv #1 SMP Thu Sep 27 04:07:04 CEST 2007 i686 Intel(R) Core(TM)2 CPU 6400 @ 2.13GHz GNU/Linux
hp-check[8106]: info: :
hp-check[8106]: info: :Distribution:
hp-check[8106]: info: :mandriva 2008.0
hp-check[8106]: info: :
HPOJ running?
hp-check[8106]: info: :No, HPOJ is not running (OK).
hp-check[8106]: info: :
hp-check[8106]: info: :Checking Python version...
hp-check[8106]: info: :OK, version 2.5.1 installed
hp-check[8106]: info: :
hp-check[8106]: info: :Checking PyQt version...
hp-check[8106]: info: :OK, version 3.17 installed.
hp-check[8106]: info: :
hp-check[8106]: info: :Checking SIP version...
hp-check[8106]: info: :OK, Version 4.7 installed
hp-check[8106]: info: :
hp-check[8106]: info: :Checking for CUPS...
hp-check[8106]: info: :Status: l’ordonnanceur tourne
hp-check[8106]: info: :Version: 1.3.0
hp-check[8106]: info: :
hp-check[8106]: info: :----------------
hp-check[8106]: info: :| DEPENDENCIES |
hp-check[8106]: info: :----------------
hp-check[8106]: info: :
hp-check[8106]: info: :
hp-check[8106]: info: :Checking for dependency: cups - Common Unix Printing System...
hp-check[8106]: info: :OK, found.
hp-check[8106]: info: :
hp-check[8106]: info: :Checking for dependency: cups-devel- Common Unix Printing System development files...
hp-check[8106]: info: :OK, found.
hp-check[8106]: info: :
hp-check[8106]: info: :Checking for dependency: gcc - GNU Project C and C++ Compiler...
hp-check[8106]: info: :OK, found.
hp-check[8106]: info: :
hp-check[8106]: info: :Checking for dependency: GhostScript - PostScript and PDF language interpreter and previewer...
hp-check[8106]: info: :OK, found.
hp-check[8106]: info: :
hp-check[8106]: info: :Checking for dependency: libcrypto - OpenSSL cryptographic library...
hp-check[8106]: info: :OK, found.
hp-check[8106]: info: :
hp-check[8106]: info: :Checking for dependency: libjpeg - JPEG library...
hp-check[8106]: info: :OK, found.
hp-check[8106]: info: :
hp-check[8106]: info: :Checking for dependency: libnetsnmp-devel - SNMP networking library development files...
hp-check[8106]: info: :OK, found.
hp-check[8106]: info: :
hp-check[8106]: info: :Checking for dependency: libpthread - POSIX threads library...
hp-check[8106]: info: :OK, found.
hp-check[8106]: info: :
hp-check[8106]: info: :Checking for dependency: libtool - Library building support services...
hp-check[8106]: info: :OK, found.
hp-check[8106]: info: :
hp-check[8106]: info: :Checking for dependency: libusb - USB library...
hp-check[8106]: info: :OK, found.
hp-check[8106]: info: :
hp-check[8106]: info: :Checking for dependency: make - GNU make utility to maintain groups of programs...
hp-check[8106]: info: :OK, found.
hp-check[8106]: info: :
hp-check[8106]: info: :Checking for dependency: PIL - Python Imaging Library (required for commandline scanning with hp-scan)...
hp-check[8106]: info: :OK, found.
hp-check[8106]: info: :
hp-check[8106]: info: :Checking for dependency: ppdev - Parallel port support kernel module....
hp-check[8106]: info: :OK, found.
hp-check[8106]: info: :
hp-check[8106]: info: :Checking for dependency: PyQt - Qt interface for Python...
hp-check[8106]: info: :OK, found.
hp-check[8106]: info: :
hp-check[8106]: info: :Checking for dependency: python-devel - Python development files...
hp-check[8106]: info: :OK, found.
hp-check[8106]: info: :
hp-check[8106]: info: :Checking for dependency: Python 2.3 or greater - Required for fax functionality...
hp-check[8106]: info: :OK, found.
hp-check[8106]: info: :
hp-check[8106]: info: :Checking for dependency: Python 2.2 or greater - Python programming language...
hp-check[8106]: info: :OK, found.
hp-check[8106]: info: :
hp-check[8106]: info: :Checking for dependency: Reportlab - PDF library for Python...
hp-check[8106]: info: :OK, found.
hp-check[8106]: info: :
hp-check[8106]: info: :Checking for dependency: SANE - Scanning library...
hp-check[8106]: info: :OK, found.
hp-check[8106]: info: :
hp-check[8106]: info: :Checking for dependency: SANE - Scanning library development files...
hp-check[8106]: info: :OK, found.
hp-check[8106]: info: :
hp-check[8106]: info: :Checking for dependency: scanimage - Shell scanning program...
hp-check[8106]: info: :OK, found.
hp-check[8106]: info: :
hp-check[8106]: info: :Checking for dependency: xsane - Graphical scanner frontend for SANE...
hp-check[8106]: info: :OK, found.
hp-check[8106]: info: :
hp-check[8106]: info: :
hp-check[8106]: info: :----------------------
hp-check[8106]: info: :| HPLIP INSTALLATION |
hp-check[8106]: info: :----------------------
hp-check[8106]: info: :
hp-check[8106]: info: :
hp-check[8106]: info: :Currently installed HPLIP version...
hp-check[8106]: info: :HPLIP 2.7.7 currently installed in '/usr/share/hplip'.
hp-check[8106]: info: :
hp-check[8106]: info: :Current contents of '/etc/hp/hplip.conf' file:
hp-check[8106]: info: :# hplip.conf. Generated from hplip.conf.in by configure.

[hpssd]
# Note: hpssd does not support dynamic ports
# Port 2207 is the IANA assigned port for hpssd
port=2207

[hplip]
version=2.7.7

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-2.7.7
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
foomatic=/usr/share/foomatic

# 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
cups11-build=no
doc-build=yes
shadow-build=no
foomatic-xml-install=no
foomatic-ppd-install=no
internal-tag=2.7.7.27

hp-check[8106]: info: :
hp-check[8106]: info: :----------------------
hp-check[8106]: info: :| INSTALLED PRINTERS |
hp-check[8106]: info: :----------------------
hp-check[8106]: info: :
hp-check[8106]: info: :
warning: No queues found.
hp-check[8106]: info: :
hp-check[8106]: info: :----------------------
hp-check[8106]: info: :| SANE CONFIGURATION |
hp-check[8106]: info: :----------------------
hp-check[8106]: info: :
hp-check[8106]: info: :'hpaio' in '/etc/sane.d/dll.conf'...
hp-check[8106]: info: :OK, found. SANE backend 'hpaio' is properly set up.
hp-check[8106]: info: :
hp-check[8106]: info: :Checking output of 'scanimage -L'...
hp-check[8106]: info: :
No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).

hp-check[8106]: info: :
hp-check[8106]: info: :---------------------
hp-check[8106]: info: :| PYTHON EXTENSIONS |
hp-check[8106]: info: :---------------------
hp-check[8106]: info: :
hp-check[8106]: info: :Checking 'cupsext' CUPS extension...
hp-check[8106]: info: :OK, found.
hp-check[8106]: info: :
hp-check[8106]: info: :Checking 'pcardext' Photocard extension...
hp-check[8106]: info: :OK, found.
hp-check[8106]: info: :
hp-check[8106]: info: :Checking 'hpmudext' I/O extension...
hp-check[8106]: info: :OK, found.
hp-check[8106]: info: :
hp-check[8106]: info: :Checking 'scanext' SANE scanning extension...
hp-check[8106]: info: :OK, found.
hp-check[8106]: info: :
hp-check[8106]: info: :
hp-check[8106]: info: :-----------------
hp-check[8106]: info: :| USB I/O SETUP |
hp-check[8106]: info: :-----------------
hp-check[8106]: info: :
hp-check[8106]: info: :Checking proper HPLIP I/O setup (USB I/O only)...
hp-check[8106]: info: :
hp-check[8106]: info: :Checking for permissions of USB attached printers...
hp-check[8106]: info: :HP Device 0x7317 at 007:014:
hp-check[8106]: info: : Device URI: hp:/usb/HP_LaserJet_P3005?serial=CNFW71T2T6
hp-check[8106]: info: : Device node: /dev/bus/usb/007/014
hp-check[8106]: info: : Mode: 0660
hp-check[8106]: info: : UID: 0 (root)
hp-check[8106]: info: : GID: 7 (lp)
hp-check[8106]: info: : Device group and mode appear correct.
hp-check[8106]: info: :
hp-check[8106]: info: :
hp-check[8106]: info: :-----------
hp-check[8106]: info: :| SUMMARY |
hp-check[8106]: info: :-----------
hp-check[8106]: info: :
hp-check[8106]: info: :No errors or warnings.

Thanks!

Question information

Language:
English Edit question
Status:
Answered
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Last query:
2008-01-07
Last reply:
2008-01-07

Is this the same system that it worked before on? Did you upgrade from 2007 to 2008 or was it a clean install? Did you install 2.7.7 from source or did it come pre installed?

Also it appears that your printer isn't using configured for hplip..can you run hp-setup from the command line and configure the printer that way and re-test?

Aaron

Yvan Velenik (yvan-velenik) said : #2

> Is this the same system that it worked before on?
Yes.
> Did you upgrade from 2007 to 2008 or was it a clean install?
Clean install.
> Did you install 2.7.7 from source or did it come pre installed?
>
Preinstalled.
> Also it appears that your printer isn't using configured for hplip..can
> you run hp-setup from the command line and configure the printer that
> way and re-test?
>
I just removed it and reinstalled it. No difference (first job prints
fine, but the printer ignores the following ones). How do you see that
the printer is not properly configured? Also, when I configure the
printer I get two choices for the ppd. I tried both without success, but
how do I determine which one I should choose. One is indicated as
foomatic:HP-LaserJet_P3005-hpijs.ppd (Foomatic/hpijs) and the other one
/use/share/cups/model/foomatic-db-ppds/HP/HP_LaserJet_P3005.ppd.gz
(Postscript). The second one is "recommended".

The recommended option should be fine.

If you run hp-toolbox you can see if the printer is configured correctly. Also if you run hp-check it's listed in the area:

hp-check[8106]: info: :
hp-check[8106]: info: :----------------------
hp-check[8106]: info: :| INSTALLED PRINTERS |
hp-check[8106]: info: :----------------------
hp-check[8106]: info: :
hp-check[8106]: info: :
warning: No queues found.
hp-check[8106]: info: :

Is it possible to remove the pre-installing hplip and re-install the latest from our website?

A

I haven't been able to reproduce this on a LaserJet P3005. Perhaps do you have a different usb cable you could try and/or a different usb slot? There may be some sort of hardware problem causing this.

A

Yvan Velenik (yvan-velenik) said : #5

Thanks. I'll try that on Monday (traveling today).

Actually I think this is related to a permissions problem.

Run:

su -c "kwrite /etc/cups/cupsd.conf"

Change: "Group sys" to "Group lp"

Save, Exit

Then run:

su -c "kwrite /etc/security/console.perms.d/50-mandriva.perms"

Change the line:

<usb>=/dev/usb/dabusb* ...... (where ..... is a lot more text, but it
should all be on one line, which may wrap.)

to

#<usb>=/dev/usb/dabusb* ........

Add the line:

<usb>=/dev/usb/dabusb* /dev/usb/mdc800* /dev/usb/rio500 /dev/ttyUSB*

Save, Exit.

Disconnect the printer, and reconnect it.

Try to print. If you continue problems delete the queue and re-add the
printer using hp-setup.

Also make sure than all past jobs are removed.

Hope this helps.

A

Yvan Velenik (yvan-velenik) said : #7

Ok, I tried to change the USB cable, but it had no effect.

I already tried to make the changes you suggested to cupsd.conf and
50-mandriva.perms, as hp-check was complaining about that. Doesn't seem
to help (but hp-check does not complain anymore).

The only way I can find to print tewo consecutive jobs is to remove the
usb cable and plug it back in, so it really seems to be a problem with
the usb is handled... In case it helps, here is what /var/log/messages
contains when I try to print two jobs:

Dec 19 09:50:49 localhost kernel: usb 7-3: new high speed USB device
using ehci_hcd and address 17
Dec 19 09:50:49 localhost kernel: usb 7-3: configuration #1 chosen from
1 choice
Dec 19 09:50:49 localhost kernel: hub 7-3:1.0: USB hub found
Dec 19 09:50:49 localhost kernel: hub 7-3:1.0: 2 ports detected
Dec 19 09:50:49 localhost kernel: usb 7-3.1: new high speed USB device
using ehci_hcd and address 18
Dec 19 09:50:49 localhost kernel: usb 7-3.1: configuration #1 chosen
from 1 choice
Dec 19 09:50:49 localhost kernel: drivers/usb/class/usblp.c: usblp0: USB
Bidirectional printer dev 18 if 0 alt 1 proto 2 vid 0x03F0 pid 0x7317
Dec 19 09:51:06 localhost kernel: drivers/usb/class/usblp.c: usblp0: removed
Dec 19 09:51:06 localhost HP_LaserJet_P3005?serial=CNFW71T2T6: INFO:
Printing...

What does this mean: drivers/usb/class/usblp.c: usblp0: removed ???

Yvan Velenik (yvan-velenik) said : #8

Actually, this was the content of /var/log/messages up to the point when
the job was actually printed. Then, I have:

Dec 19 09:57:30 localhost ntpd[4877]: synchronized to 130.60.127.148,
stratum 3
Dec 19 09:57:42 localhost HP_LaserJet_P3005?serial=CNFW71T2T6:
io/hpmud/dot4.c 254: unable to read Dot4ReverseReply data: Resource
temporarily unavailable exp=2 act=0
Dec 19 09:57:42 localhost HP_LaserJet_P3005?serial=CNFW71T2T6:
io/hpmud/dot4.c 330: invalid DOT4InitReply: cmd=0, result=40 , revision=0
Dec 19 09:57:42 localhost HP_LaserJet_P3005?serial=CNFW71T2T6: INFO:
open print channel failed; will retry in 30 seconds...
Dec 19 09:58:16 localhost HP_LaserJet_P3005?serial=CNFW71T2T6:
io/hpmud/dot4.c 231: unable to read Dot4ReverseReply header: Resource
temporarily unavailable bytesRead=0
Dec 19 09:58:16 localhost HP_LaserJet_P3005?serial=CNFW71T2T6:
io/hpmud/dot4.c 319: invalid DOT4InitReply retrying command...
Dec 19 09:58:20 localhost HP_LaserJet_P3005?serial=CNFW71T2T6:
io/hpmud/dot4.c 231: unable to read Dot4ReverseReply header: Resource
temporarily unavailable bytesRead=0
Dec 19 09:58:20 localhost HP_LaserJet_P3005?serial=CNFW71T2T6:
io/hpmud/dot4.c 330: invalid DOT4InitReply: cmd=0, result=20 , revision=0
Dec 19 09:58:20 localhost HP_LaserJet_P3005?serial=CNFW71T2T6: INFO:
open print channel failed; will retry in 30 seconds...

and nothing works until the usb cable is removed and reinserted...

Are you using any usb hubs? What's the make/model of your system?

A

Yvan Velenik (yvan-velenik) said : #10

I am not using a usb hub. My PC is a Dell Optiplex 745. I'll try
plugging the cable in another usb port (there are many of them). I think
I already tried that, but just in case...

Is it possible to test the printer on a different computer?

A

Yvan Velenik (yvan-velenik) said : #12

I just tried it on the same machine under windows XP, and there are no
problems. Googling for information (I googled for

kernel: drivers/usb/class/usblp.c: usblp0: removed

) indicates that there are issues with the way usb is dealt with in the
kernel (apparently many devices, and esp. printers, do not react well to
the implemented "usb suspend"). I guess that's really a kernel/usb issue
and not an hplip one...

Possible....is there anyway to check on another linux system?

Thanks.

Aaron

Yvan Velenik (yvan-velenik) said : #14

I'll bring my laptop (same OS installed) tomorrow (if I remember).

Actually hplip does not use usblp so hpmud will remove it. So the "drivers/usb/class/usblp.c: usblp0: removed" syslog message is normal. See issue 4 at http://hplip.sourceforge.net/troubleshooting/printing.html for more info.

-dave

Yvan Velenik (yvan-velenik) said : #16

Ok, I tried the printer on my laptop (also mandriva 2008), with the same
result: only the first job is printed, subsequent jobs being displayed
as being processed for ever. In /var/log/messages, on can see the same
complaints,

Dec 21 10:19:56 localhost HP_LaserJet_P3005?serial=CNFW71T2T6:
io/hpmud/dot4.c 254: unable to read Dot4ReverseReply data: Resource
temporarily unavailable exp=2 act=0
Dec 21 10:19:56 localhost HP_LaserJet_P3005?serial=CNFW71T2T6:
io/hpmud/dot4.c 330: invalid DOT4InitReply: cmd=0, result=40 , revision=0
Dec 21 10:19:56 localhost HP_LaserJet_P3005?serial=CNFW71T2T6: INFO:
open print channel failed; will retry in 30 seconds...

At least, the problem occurs consistently with *this* printer and
Mandriva 2008...

Yvan Velenik (yvan-velenik) said : #17

> Actually hplip does not use usblp so hpmud will remove it. So the
> "drivers/usb/class/usblp.c: usblp0: removed" syslog message is normal.
Thanks for the info. I really have no idea what's going on...

I wasn't able to reproduce this on a LaserJet P3005. I'll try again with Mandriva..although it's highly confusing at this point why it works with Win XP and it works fine for me here. I'll do some more research and see what I can come up with.

I may not have an answer for you until after the new year however, sorry about that!

A

Yvan Velenik (yvan-velenik) said : #19

Don't worry ;) ! Thanks a lot for all your help.

Happy new year !

Was the other system you tested on a Dell as well?

A

Yvan Velenik (yvan-velenik) said : #21

No, my laptop is a Sony Vaio.

Buchl, Klaus-Dieter (kbuchl) said : #22

Hi Yvan,

that all sounds very strange to me.
Let us go back to the beginning of your question. There you have the following in your hp-check output:

hp-check[8106]: info: :----------------------
 hp-check[8106]: info: :| INSTALLED PRINTERS |
 hp-check[8106]: info: :----------------------
 hp-check[8106]: info: :
 hp-check[8106]: info: :
 warning: No queues found.
 hp-check[8106]: info: :
-------------------------------------------------------------------------------------------

This is telling me, that your printer is not setup to be used with CUPS and therefore hplip is not used either - I still wonder how you can print something...

Please check the following:

1) is the daemon hpssd running?
if not start it by entering in a terminal window as root user: /etc/rc.d/hplip start
(maybe this script is in a different directory on your distribution - I am using OpenSUSE 10.3, but for hplip this shouldn't make a difference.)
This daemon is needed by hplip and CUPS to be running, but it is not started by the hplip setup-script.
Also configure your boot script to have this daemon started any time you are booting your linux system.

2) check if your printer is configured in CUPS (though I don't think so)
If it is not configured in CUPS, follow the Instructions for CUPS installation from the hplip homepage: http://hplip.sourceforge.net/install/step4/cups/local.html

If your printer is configured in CUPS, check that it is configured as I explained above and do any changes needed in order to follow the instructions from the hplip homepage.

3) start the hp-toolbox by entering "hp-toolbox" in a terminal window.
  now your printer should be visible in the "HP Device Manager" (alias: hp-toolbox)

Check with this configuration to print consecutive jobs.

Best.

Yvan Velenik (yvan-velenik) said : #23

Hi!

I removed all the hplip packages, and restarted (for the n-th time) the
whole manual installation. For the first time, when selecting the
printer, I had two choices displaying an hp3005 connected to the usb
port. I chose the new one and completed the installation. Apparently now
everything seems to work fine. I really don't know why the other choice
given by the installer program does not work, or why it was the only
option up to now!?! In any case, the problem seems resolved.

(Notice though that I don't seem to have hpssd running (cupsd is running
of course), at least it does not appear when I make a ps -ef | grep
hp... and it does not seem to be in the available services either.)

So, thanks again very much to all of you for your help... and happy new
year!

Yvan

Buchl, Klaus-Dieter (kbuchl) said : #24

Hi Yvan,

that sounds good. So you can print now consecutive jobs.

Hplip provides 3 backends. These are:

hp: this is for printing with CUPS
hpaio: for scanning with SANE
hpfax: for your printer's fax functions

Which of these backends are offered in the selection list, depend on what functions your printer offers.
Here we still need choose the right one. But you didn't have the right option displayed.

So you had an installation problem (as I guessed) and not a hardware problem.

Maybe you could write a bug report on this, that on first setup the correct CUPS backend is not listed, but it is after a completely new installation of hplip - thisway you could help others to solve their simmilar problems.
Maybe you remember what you have done different on your latest setup - if you did something different.

Best. and a happy new year

Alan Bell (alanbell) said : #25

cool, I was suffering from this too, I removed the hplip packages and removed the printer from cups, let it find the printer and it works perfectly so far. I have an HP LJ2550 connected via USB and I am running Gutsy.

So it seems to be something about having the hplip packages installed along with the hplip source. although the installer should remove hplip, what packages do you remove specifically?

Thanks!

A

Yvan Velenik (yvan-velenik) said : #27

The 2 packages that I removed were hplip and task-printing-hp.

I've added hplip and task-printing-hp to be remove using urpme during the the mandriva install process so in theory this should resolve this in the future.

Thanks for your support of hplip!

Aaron

Can you help with this problem?

Provide an answer of your own, or ask Yvan Velenik for more information if necessary.

To post a message you must log in.