hplip-2.8.12 no errors but no print output

Asked by John Frankish

Using tinycorelinux with the 2.6.26 kernel:

hplip-2.8.12 compiles and installs without errors:

./configure --prefix=/usr/local --sysconfdir=/etc --localstatedir=/var --disable-doc-build --disable-gui-build --disable-qt3 --with-cupsbackenddir=/usr/local/lib/cups/backend --with-cupsfilterdir=/usr/local/lib/cups/filter --enable-foomatic-ppd-install --disable-foomatic-drv-install --enable-foomatic-rip-hplip-install

When I try to print a test page from the cups-1.3.8 browser interface there are no errors (even with log=dubug), but no output from my OfficeJetK80. Note that the same machine will work with hplip-2.8.2 and with the hpoj "ptal" driver.

$ sudo /usr/local/lib/cups/backend/hp
direct hp:/usb/OfficeJet_K80?serial=ES0911401VOH "HP OfficeJet K80" "HP OfficeJet K80 USB ES0911401VOH HPLIP" "MFG:HP;MDL:OfficeJet

$ sudo hp-probe -g [will not work without the "sudo"]

hp-probe[16387]: debug: hp:/usb/OfficeJet_K80?serial=ES0911401VOH
hp-probe[16387]: debug: Cache miss: officejet_k80
hp-probe[16387]: debug: Reading file: /usr/local/share/hplip/data/models/models.dat
hp-probe[16387]: debug: Searching for section [officejet_k80] in file /usr/local/share/hplip/data/models/models.dat
hp-probe[16387]: debug: Found section [officejet_k80] in file /usr/local/share/hplip/data/models/models.dat
  Device URI Model
  ----------------------------------------- ----------------
  hp:/usb/OfficeJet_K80?serial=ES0911401VOH HP OfficeJet K80

Found 1 printer(s) on the 'usb' bus.

$ hp-testpage -pTest ["Test" is the name of the cups printer]
warning: python-dbus not installed. [dbus-python-0.83.0 is installed, is hplip expecting something else?]

$ hp-testpage -dhp:/usb/OfficeJet_K80?serial=ES0911401VOH
no such device??

Note that this is using the hplip-2.8.12 ppd "Hp Officejet k80 Foomatic/hpijs, hpijs 2.8.12.26 (en)"

Any pointers would be appreciated.

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
Aaron Albright (albrigha-deactivatedaccount) said :
#1

Everything looks okay.

Run hp-check -t and post the output.

Also look at the syslog for any errors: sudo tail -f /var/log/syslog

Lets put cups into debug mode and check the cups log as well.

For putting CUPS into debug mode review this document:

http://hplipopensource.com/node/225

Thanks.

Aaron

Revision history for this message
John Frankish (j-frankish) said :
#2

Thanks - to answer your questions:

Run hp-check -t and post the output. - OK, posted at the bottom.

Also look at the syslog for any errors: sudo tail -f /var/log/syslog - no errors concerning hplip/cups

Lets put cups into debug mode and check the cups log as well: as mentioned above, it was already in debug mode - I did find this error:

E [03/Feb/2009:17:54:55 +0000] [cups-driverd] Unable to open driver directory "/usr/local/lib/cups/driver": No such file or directory

Note also:

$ sudo hp-setup -b usb
warning: python-dbus not installed.

HP Linux Imaging and Printing System (ver. 2.8.12)
Printer/Fax Setup Utility ver. 8.0

Copyright (c) 2001-8 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.

(Note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)
                                                                                                             Using device: hp:/usb/OfficeJet_K80?serial=ES0911401VOH

Setting up device: hp:/usb/OfficeJet_K80?serial=ES0911401VOH

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

Please enter a name for this print queue (m=use model name:'OfficeJet_K80'*, q=quit) ?
Using queue name: OfficeJet_K80

warning: Found multiple possible PPD files

Choose a PPD file that most closely matches your device:
(Note: The model number may vary slightly from the actual model number on the device.)

Num. PPD Filename Description
---- ------------------------------------------ ----------------------------------------
Traceback (most recent call last):
  File "/usr/local/bin/hp-setup", line 496, in <module>
    mins_list = mins.keys()
AttributeError: 'tuple' object has no attribute 'keys'

$ ls /usr/local/share/ppd/HP
hp-officejet_k80-hpijs.ppd.gz

--------------------
Note: - I corrected the uri to be "hp:..." after this, but forgot to save the log output - anyway, it still did not print.

hp-check[6062]: info: :
Initializing. Please wait...
scheduler is running

1.3.8

Linux box 2.6.26-tinycore #1 SMP Wed Jul 23 11:20:28 UTC 2008 i686 unknown

warning: Invalid ppd_dir value: None
hp-check[6062]: info: :
hp-check[6062]: info: :---------------
hp-check[6062]: info: :| SYSTEM INFO |
hp-check[6062]: info: :---------------
hp-check[6062]: info: :
hp-check[6062]: info: :Basic system information:
hp-check[6062]: info: :Linux box 2.6.26-tinycore #1 SMP Wed Jul 23 11:20:28 UTC 2008 i686 unknown
hp-check[6062]: info: :
hp-check[6062]: info: :Distribution:
hp-check[6062]: info: :unknown 0.0
hp-check[6062]: info: :
HPOJ running?
hp-check[6062]: info: :No, HPOJ is not running (OK).
hp-check[6062]: info: :
hp-check[6062]: info: :Checking Python version...
hp-check[6062]: info: :OK, version 2.5.2 installed
hp-check[6062]: info: :
hp-check[6062]: info: :Checking PyQt 3.x version...
error: NOT FOUND OR FAILED TO LOAD!
hp-check[6062]: info: :
hp-check[6062]: info: :Checking PyQt 4.x version...
hp-check[6062]: info: :
hp-check[6062]: info: :Checking for CUPS...
hp-check[6062]: info: :Status: scheduler is running
hp-check[6062]: info: :Version: 1.3.8
hp-check[6062]: info: :error_log is set to level: debug
hp-check[6062]: info: :
hp-check[6062]: info: :Checking for dbus/python-dbus...
hp-check[6062]: info: :dbus daemon is running.
warning: python-dbus not installed.
hp-check[6062]: info: :
hp-check[6062]: info: :
hp-check[6062]: info: :------------------------
hp-check[6062]: info: :| RUNTIME DEPENDENCIES |
hp-check[6062]: info: :------------------------
hp-check[6062]: info: :
hp-check[6062]: info: :
hp-check[6062]: info: :Checking for dependency: cups - Common Unix Printing System...
hp-check[6062]: info: :OK, found.
hp-check[6062]: info: :
hp-check[6062]: info: :Checking for dependency: cups-ddk - CUPS driver development kit...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
hp-check[6062]: info: :
hp-check[6062]: info: :Checking for dependency: GhostScript - PostScript and PDF language interpreter and previewer...
hp-check[6062]: info: :OK, found.
hp-check[6062]: info: :
hp-check[6062]: info: :Checking for dependency: PIL - Python Imaging Library (required for commandline scanning with hp-scan)...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
hp-check[6062]: info: :
hp-check[6062]: info: :Checking for dependency: ppdev - Parallel port support kernel module....
error: NOT FOUND! This is a REQUIRED/RUNTIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
hp-check[6062]: info: :
hp-check[6062]: info: :Checking for dependency: PyQt 3- Qt interface for Python (for Qt version 3.x)...
error: NOT FOUND! This is a REQUIRED/RUNTIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
hp-check[6062]: info: :
hp-check[6062]: info: :Checking for dependency: PyQt 4- Qt interface for Python (for Qt version 4.x)...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
hp-check[6062]: info: :
hp-check[6062]: info: :Checking for dependency: python-ctypes - A foreign function library for Python...
hp-check[6062]: info: :OK, found.
hp-check[6062]: info: :
hp-check[6062]: info: :Checking for dependency: python-dbus - Python bindings for dbus...
error: NOT FOUND! This is a REQUIRED/RUNTIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
hp-check[6062]: info: :
hp-check[6062]: info: :Checking for dependency: Python XML libraries...
hp-check[6062]: info: :OK, found.
hp-check[6062]: info: :
hp-check[6062]: info: :Checking for dependency: Python 2.3 or greater - Required for fax functionality...
hp-check[6062]: info: :OK, found.
hp-check[6062]: info: :
hp-check[6062]: info: :Checking for dependency: Reportlab - PDF library for Python...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
hp-check[6062]: info: :
hp-check[6062]: info: :Checking for dependency: SANE - Scanning library...
hp-check[6062]: info: :OK, found.
hp-check[6062]: info: :
hp-check[6062]: info: :Checking for dependency: scanimage - Shell scanning program...
hp-check[6062]: info: :OK, found.
hp-check[6062]: info: :
hp-check[6062]: info: :Checking for dependency: xsane - Graphical scanner frontend for SANE...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
hp-check[6062]: info: :
hp-check[6062]: info: :
hp-check[6062]: info: :----------------------
hp-check[6062]: info: :| HPLIP INSTALLATION |
hp-check[6062]: info: :----------------------
hp-check[6062]: info: :
hp-check[6062]: info: :
hp-check[6062]: info: :Currently installed HPLIP version...
hp-check[6062]: info: :HPLIP 2.8.12 currently installed in '/usr/local/share/hplip'.
hp-check[6062]: info: :
hp-check[6062]: info: :Current contents of '/etc/hp/hplip.conf' file:
hp-check[6062]: info: :[dirs]
run = /var/run
cupsbackend = /usr/local/lib/cups/backend
ppd = /usr/local/share/ppd/HP
doc = /usr/local/share/doc/hplip-2.8.12
drv = /usr/local/share/cups/drv/hp
ppdbase = /usr/local/share/ppd
home = /usr/local/share/hplip
icon = /usr/share/applications
cupsfilter = /usr/local/lib/cups/filter

[hplip]
version = 2.8.12

[installation]
version = 2.8.12.26
date_time = 01/29/09 15:26:21

[configure]
foomatic-rip-hplip-install = yes
qt4 = no
doc-build = no
qt3 = no
cups11-build = no
gui-build = no
internal-tag = 2.8.12.26
foomatic-ppd-install = yes
network-build = yes
ui-toolkit = no
pp-build = yes
fax-build = yes
scanner-build = yes
restricted-build = no
dbus-build = yes
shadow-build = no
foomatic-drv-install = no

hp-check[6062]: info: :
hp-check[6062]: info: :Current contents of '~/.hplip/hplip.conf' file:
hp-check[6062]: info: :[installation]
version = 2.8.12.26
date_time = 01/29/09 14:55:43

hp-check[6062]: info: :
hp-check[6062]: info: :-------------------------------
hp-check[6062]: info: :| DISCOVERED PARALLEL DEVICES |
hp-check[6062]: info: :-------------------------------
hp-check[6062]: info: :
hp-check[6062]: info: :No devices found.
error: 'ppdev' kernel module not loaded.
hp-check[6062]: info: :
hp-check[6062]: info: :--------------------------
hp-check[6062]: info: :| DISCOVERED USB DEVICES |
hp-check[6062]: info: :--------------------------
hp-check[6062]: info: :
hp-check[6062]: info: : Device URI Model
hp-check[6062]: info: : ----------------------------------------- ----------------------
hp-check[6062]: info: : hp:/usb/OfficeJet_K80?serial=ES0911401VOH HP OfficeJet K80
hp-check[6062]: info: :
hp-check[6062]: info: :---------------------------------
hp-check[6062]: info: :| INSTALLED CUPS PRINTER QUEUES |
hp-check[6062]: info: :---------------------------------
hp-check[6062]: info: :
hp-check[6062]: info: :
hp-check[6062]: info: :Test
hp-check[6062]: info: :----
hp-check[6062]: info: :Type: Unknown
hp-check[6062]: info: :Installed in HPLIP?: No, not using the hp: or hpfax: CUPS backend.
hp-check[6062]: info: :Device URI: usb://HP/OfficeJet%20K80?serial=ES0911401VOH
hp-check[6062]: info: :PPD: /etc/cups/ppd/Test.ppd
hp-check[6062]: info: :PPD Description: HP OfficeJet K80 Foomatic/hpijs (recommended)
hp-check[6062]: info: :Printer status: printer Test now printing Test-0. enabled since Thu Jan 29 15:20:09 2009
 Printer is now on-line.
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend to function in HPLIP.
hp-check[6062]: info: :
hp-check[6062]: info: :----------------------
hp-check[6062]: info: :| SANE CONFIGURATION |
hp-check[6062]: info: :----------------------
hp-check[6062]: info: :
hp-check[6062]: info: :'hpaio' in '/etc/sane.d/dll.conf'...
hp-check[6062]: info: :OK, found. SANE backend 'hpaio' is properly set up.
hp-check[6062]: info: :
hp-check[6062]: info: :Checking output of 'scanimage -L'...
hp-check[6062]: info: :device `hpaio:/usb/OfficeJet_K80?serial=ES0911401VOH' is a Hewlett-Packard OfficeJet_K80 all-in-one

hp-check[6062]: info: :
hp-check[6062]: info: :---------------------
hp-check[6062]: info: :| PYTHON EXTENSIONS |
hp-check[6062]: info: :---------------------
hp-check[6062]: info: :
hp-check[6062]: info: :Checking 'cupsext' CUPS extension...
hp-check[6062]: info: :OK, found.
hp-check[6062]: info: :
hp-check[6062]: info: :Checking 'pcardext' Photocard extension...
hp-check[6062]: info: :OK, found.
hp-check[6062]: info: :
hp-check[6062]: info: :Checking 'hpmudext' I/O extension...
hp-check[6062]: info: :OK, found.
hp-check[6062]: info: :
hp-check[6062]: info: :Checking 'scanext' SANE scanning extension...
hp-check[6062]: info: :OK, found.
hp-check[6062]: info: :
hp-check[6062]: info: :
hp-check[6062]: info: :-----------------
hp-check[6062]: info: :| USB I/O SETUP |
hp-check[6062]: info: :-----------------
hp-check[6062]: info: :
hp-check[6062]: info: :
hp-check[6062]: info: :-----------
hp-check[6062]: info: :| SUMMARY |
hp-check[6062]: info: :-----------
hp-check[6062]: info: :
error: 10 errors and/or warnings.
hp-check[6062]: info: :
hp-check[6062]: info: :Please refer to the installation instructions at:
hp-check[6062]: info: :http://hplip.sourceforge.net/install/index.html

hp-check[6062]: info: :
hp-check[6062]: info: :Done.

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#3

Lets look at the cups log and syslog and see if there is any more information

tail -f /var/log/syslog

tail -f /var/log/cups/error_log

Then try printing and post all of the output in both.

It's important to note that although HPLIP should work on Tiny Core Linux, we haven't actually tested it.

Thanks.

Aaron

Revision history for this message
John Frankish (j-frankish) said :
#4

Thanks for the feedback:

tail -f /var/log/syslog: I don't have a syslog, but dmesg posted below.

It's important to note that although HPLIP should work on Tiny Core Linux, we haven't actually tested it: Agreed, but cups-1.3.8 and hpoj/hpijs work on tiny core linux using a uri of the form "ptal:"

Can I attach /var/cups/error_log somehow - it is ~ 300KB...

John
-----------

start cups

$ tail -f /var/log/cups/error_log
I [05/Feb/2009:10:49:51 +0000] Listening to /var/run/cups/cups.sock on fd 3...
I [05/Feb/2009:10:49:51 +0000] Resuming new connection processing...
D [05/Feb/2009:10:49:52 +0000] Report: clients=0
D [05/Feb/2009:10:49:52 +0000] Report: jobs=0
D [05/Feb/2009:10:49:52 +0000] Report: jobs-active=0
D [05/Feb/2009:10:49:52 +0000] Report: printers=0
D [05/Feb/2009:10:49:52 +0000] Report: printers-implicit=0
D [05/Feb/2009:10:49:52 +0000] Report: stringpool-string-count=165
D [05/Feb/2009:10:49:52 +0000] Report: stringpool-alloc-bytes=4816
D [05/Feb/2009:10:49:52 +0000] Report: stringpool-total-bytes=3616

add printer in cups browser interface

$ dmesg | tail -f
agpgart: Detected 892K stolen memory.
agpgart: AGP aperture is 128M @ 0xf0000000
[drm] Initialized drm 1.1.0 20060810
ACPI: PCI Interrupt 0000:00:02.0[A] -> Link [LNKA] -> GSI 11 (level, low) -> IRQ 11
PCI: Setting latency timer of device 0000:00:02.0 to 64
[drm] Initialized i915 1.6.0 20060119 on minor 0
PCI: Setting latency timer of device 0000:00:02.1 to 64
[drm] Initialized i915 1.6.0 20060119 on minor 1
ISO 9660 Extensions: RRIP_1991A
lp0: using parport0 (interrupt-driven).

$ tail -f /var/log/cups/error_log
D [05/Feb/2009:10:54:29 +0000] cupsdReadClient: 15 GET /images/button-show-completed.gif HTTP/1.1
D [05/Feb/2009:10:54:29 +0000] cupsdAuthorize: No authentication data provided.
D [05/Feb/2009:10:54:29 +0000] cupsdReadClient: 11 GET /images/bottom-right.gif HTTP/1.1
D [05/Feb/2009:10:54:29 +0000] cupsdAuthorize: No authentication data provided.
D [05/Feb/2009:10:54:29 +0000] cupsdReadClient: 8 GET /images/button-show-completed.gif HTTP/1.1
D [05/Feb/2009:10:54:29 +0000] cupsdAuthorize: No authentication data provided.
D [05/Feb/2009:10:54:29 +0000] cupsdReadClient: 11 GET /images/button-set-as-default.gif HTTP/1.1
D [05/Feb/2009:10:54:29 +0000] cupsdAuthorize: No authentication data provided.
D [05/Feb/2009:10:54:29 +0000] cupsdCloseClient: 12
D [05/Feb/2009:10:54:29 +0000] cupsdCloseClient: 15

print test page from cups browser interface

log very long, errors listed below:

E [05/Feb/2009:10:52:58 +0000] [CGI] Unable to scan "@LOCAL"!
E [05/Feb/2009:10:53:29 +0000] [cups-driverd] Unable to open driver directory "/usr/local/lib/cups/driver": No such file or directory
E [05/Feb/2009:10:54:08 +0000] CUPS-Add-Modify-Printer: Unauthorized

print seems to start, but nothing comes out...

D [05/Feb/2009:10:56:01 +0000] [Job 1] Starting process 4988: "foomatic-gswrapper -q -dBATCH -dPARANOIDSAFER -dQUIET -dNOPAUSE -sDEVICE=ijs -sIjsServer=hpijs -dDEV..."
D [05/Feb/2009:10:56:01 +0000] [Job 1] foomatic-gswrapper: gs '-sstdout=%stderr' '-dBATCH' '-dPARANOIDSAFER' '-dQUIET' '-dNOPAUSE' '-sDEVICE=ijs' '-sIjsServer=hpijs' '-dDEVICEWIDTHPOINTS=595' '-dDEVICEHEIGHTPOINTS=842' '-sDeviceManufacturer=HEWLETT-PACKARD' '-sDeviceModel=DESKJET 930' '-dDuplex=false' '-r300' '-sIjsParams=Quality:Quality=0,Quality:ColorMode=2,Quality:MediaType=0,Quality:PenSet=2' '-dIjsUseOutputFD' '-sOutputFile=%stdout' '-_'
D [05/Feb/2009:10:56:01 +0000] Discarding unused job-progress event...
D [05/Feb/2009:10:56:03 +0000] cupsdReadClient: 11 GET /printers/test HTTP/1.1
D [05/Feb/2009:10:56:03 +0000] cupsdAuthorize: No authentication data provided.
D [05/Feb/2009:10:56:03 +0000] [CGI] /usr/local/lib/cups/cgi-bin/printers.cgi started - PID = 4995
I [05/Feb/2009:10:56:03 +0000] Started "/usr/local/lib/cups/cgi-bin/printers.cgi" (pid=4995)
D [05/Feb/2009:10:56:03 +0000] cupsdSendCommand: 11 file=12
D [05/Feb/2009:10:56:03 +0000] cupsdAcceptClient: 13 from localhost (Domain)
D [05/Feb/2009:10:56:03 +0000] cupsdReadClient: 13 POST / HTTP/1.1
D [05/Feb/2009:10:56:03 +0000] cupsdAuthorize: No authentication data provided.
D [05/Feb/2009:10:56:03 +0000] CUPS-Get-Default
D [05/Feb/2009:10:56:03 +0000] CUPS-Get-Default client-error-not-found: No default printer
D [05/Feb/2009:10:56:03 +0000] cupsdProcessIPPRequest: 13 status_code=406 (client-error-not-found)
D [05/Feb/2009:10:56:03 +0000] cupsdReadClient: 13 POST / HTTP/1.1
D [05/Feb/2009:10:56:03 +0000] cupsdAuthorize: No authentication data provided.
D [05/Feb/2009:10:56:03 +0000] Get-Printer-Attributes ipp://localhost/printers/test
D [05/Feb/2009:10:56:03 +0000] cupsdProcessIPPRequest: 13 status_code=0 (successful-ok)

Revision history for this message
John Frankish (j-frankish) said :
#5

Any update? Is there a way to attach the cups error log to this thread?

Thanks, John

Revision history for this message
John Frankish (j-frankish) said :
#6

Setting the usb permissions correctly for my system seems to have fixed a number of issues - the various hp-* commands now work without needing to be root (except hp-setup which fails because there is more than one suitable ppd??) and cups finds my printer uri (hp:/...) on its own and proposes the correct ppd.

..but I still cannot print even a test page (and the same setup without hplip but with hpijs/hpos will print) - the key message in the cups error_log seems to be this:

[17/Feb/2009:17:45:07 +0000] [Job 1] prnt/backend/hp.c 712: INFO: open print channel failed stat=12; will retry in 30 seconds...

If you could give any pointers on what this might mean I would be grateful

Revision history for this message
Launchpad Janitor (janitor) said :
#7

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
John Frankish (j-frankish) said :
#8

After changing the udev rules for usb devices I can now print, but I am still getting error messages about dbus-python being missing when it is present and I am still working on getting faxing and scanning to work.

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#9

John,

What did you change in the udev rules?

Thanks.

Aaron

Revision history for this message
John Frankish (j-frankish) said :
#10

I added the following to /etc/udev/rules.d/90-permissions.rules

# usb devices
SUBSYSTEM=="usb", GROUP="staff"
SUBSYSTEM=="usb", MODE="0664"

There are only two users on tinycore linux, tc:staff and root and the only groups are staff and root.

I guess hplip expects the usb group to be owned by "usb" or "root"?

Note that this also solved the problem of several of the hp-* applets needing to be run as root.

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#11

John,

Thanks for the update.

Aaron

Can you help with this problem?

Provide an answer of your own, or ask John Frankish for more information if necessary.

To post a message you must log in.