Print fails due to hpiod.port with hplip-2.8.2

Asked by John Frankish

I compiled hplip-2.8.2 from source on dsl-4.2.5 (2.4.31) using:

./configure --prefix=/opt/hplip-2.8.2 --disable-doc-build --disable-gui-build --with-cupsbackenddir=/opt/cups-1.3.5/lib/cups/backend --with-cupsfilterdir=/opt/cups-1.3.5/lib/cups/filter --with-icondir=/opt/hplip-2.8.2/share/applications --disable-foomatic-drv-instal

When I try to print the test page from the cups-1.3.5 browser interface it fails to print without any specific error message. I found the following in the cups error_log when set to "debug":

D [16/Feb/2008:19:04:57 -0500] [Job 4] 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 [16/Feb/2008:19:04:57 -0500] [Job 4] unable to open /var/run/hpiod.port: No such file or directory: hplip_api.c 75
D [16/Feb/2008:19:04:57 -0500] [Job 4] unable to connect hpiod socket 50000: Connection refused: hplip_api.c 693

Any idea what the problem might be - I don't see this error with hplip-2.7.1

As an aside, I was obliged to edit foomatic-rip-hplip for the correct path to the cups backend/filters as it was not picked up from the ./configure statements. It would also make it easier to compile if hplip used pkgconfig or ./configure switches to locate the headers/libs for net-snmp, usb, sane, cups, etc...

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
John Frankish
Solved:
Last query:
Last reply:
Revision history for this message
dwelch91 (dwelch91) said :
#1

You must have some old stuff (from pre-2.x) HPLIP installed and/or running.
There is no HPIOD anymore, and HPLIP I/O doesn't use sockets anymore.

On Feb 16, 2008 9:40 PM, John Frankish <email address hidden>
wrote:

> New question #24863 on HPLIP:
> https://answers.launchpad.net/hplip/+question/24863
>
> I compiled hplip-2.8.2 from source on dsl-4.2.5 (2.4.31) using:
>
> ./configure --prefix=/opt/hplip-2.8.2 --disable-doc-build
> --disable-gui-build --with-cupsbackenddir=/opt/cups-1.3.5/lib/cups/backend
> --with-cupsfilterdir=/opt/cups-1.3.5/lib/cups/filter
> --with-icondir=/opt/hplip-2.8.2/share/applications
> --disable-foomatic-drv-instal
>
> When I try to print the test page from the cups-1.3.5 browser interface it
> fails to print without any specific error message. I found the following in
> the cups error_log when set to "debug":
>
> D [16/Feb/2008:19:04:57 -0500] [Job 4] 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 [16/Feb/2008:19:04:57 -0500] [Job 4] unable to open /var/run/hpiod.port:
> No such file or directory: hplip_api.c 75
> D [16/Feb/2008:19:04:57 -0500] [Job 4] unable to connect hpiod socket
> 50000: Connection refused: hplip_api.c 693
>
> Any idea what the problem might be - I don't see this error with
> hplip-2.7.1
>
> As an aside, I was obliged to edit foomatic-rip-hplip for the correct path
> to the cups backend/filters as it was not picked up from the ./configure
> statements. It would also make it easier to compile if hplip used pkgconfig
> or ./configure switches to locate the headers/libs for net-snmp, usb, sane,
> cups, etc...
>
> --
> You received this question notification because you are a member of HP
> Linux Imaging and Printing, which is an answer contact for HPLIP.
>

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

Thanks for the prompt reply - I'm using a "live CD" type system (albeit booting from usb in this case) in which everything is reset to the base system on reboot and the base system does not include hplip. For this reason I'm sure that there is no previous version of hplip installed.

Is it possible that this problem is caused by using a previous version of hpijs (in order to print without using hplip, I'd compiled hpijs-2.1.4 together with cups-1.3.5)?

Again, in order to print without using hplip, I'd compiled foomatic-rip from foomatic-filters-3.0-current - is it possible for some mismatch in the ppd version and/or foomatic-rip/foomatic-rip-hplip to cause this problem?

Also (I sorry if this is too many questions in one thread) on reboot hplip cannot find the net-snmp/usb/sane/cups libs - is there an "hplip recommended" method to pass the library/header locations to the compiler? I linked /opt/cups-1.3.5/lib -> /usr/lib, /opt/sane/lib -> /usr/lib, etc for the compile to complete, but I guess the library locations got hardcoded - do I need to edit the Makefile directly?

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

Answering my own question to some extent, I recompiled with:

$ export LDFLAGS="-L/opt/cups-1.3.5/lib -L/opt/hplip-2.8.2/lib -L/opt/sane/lib -L/opt/python-2.3/lib"
$ export CPPFLAGS="-I/opt/cups-1.3.5/include -I/opt/hplip-2.8.2/include -I/opt/sane/include -I/opt/python-2.3/include"
./configure --prefix=/opt/hplip-2.8.2 --disable-doc-build --disable-gui-build --with-cupsbackenddir=/opt/cups-1.3.5/lib/cups/backend --with-cupsfilterdir=/opt/cups-1.3.5/lib/cups/filter --with-icondir=/opt/hplip-2.8.2/share/applications --disable-foomatic-drv-install --disable-foomatic-rip-hplip-install

and, using the ppd from hpijs-2.1.4, I could print the test page from the cups browser interface.

However, with the "--enable-foomatic-rip-hplip-install" compile option and using the ppd from hplip-2.8.2, the cups browser interface test pages fails, printing a page with "**** Unable to open the initial device, quitting". The cups error_log contains:

prnt/backend/hp.c 496: unable to connect hpssd socket 2207: Connection refused
*cupsFilter: "application/vnd.cups-postscript 0 foomatic-rip-hplip"
sh: line 1: hpijs: command not found
GNU Ghostscript 7.05: Can't start ijs server "hpijs"

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

Please run hp-check -t and post the output.

Perhaps you have 2 installs of hplip installed? This is a similar problem when such is the case.

Although please keep in mind that we haven't tested on dsl, and although it should work, because we haven't tested it we can't guarantee it.

You may find something helpful doing a search such as:

http://www.google.com/search?hl=en&client=firefox-a&rls=com.ubuntu%3Aen-US%3Aunofficial&hs=ABl&q=installing+hplip+on+dsl&btnG=Search

Hope this helps!

Aaron

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

$ hp-check -t -r posted below.

I have only version 2.8.2 of hplip installed and a previous version of hplip (2.7.1) worked on dsl. hpijs-2.1.4 is installed with cups-1.3.5, but I don't think this would cause a problem.

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

1.3.5

Linux box 2.4.31 #6 SMP Fri Oct 21 15:15:54 EDT 2005 i686 GNU/Linux

warning: Invalid ppd_dir value: None
hp-check[2478]: info: :
hp-check[2478]: info: :---------------
hp-check[2478]: info: :| SYSTEM INFO |
hp-check[2478]: info: :---------------
hp-check[2478]: info: :
hp-check[2478]: info: :Basic system information:
hp-check[2478]: info: :Linux box 2.4.31 #6 SMP Fri Oct 21 15:15:54 EDT 2005 i686 GNU/Linux
hp-check[2478]: info: :
hp-check[2478]: info: :Distribution:
hp-check[2478]: info: :unknown 0.0
hp-check[2478]: info: :
HPOJ running?
hp-check[2478]: info: :No, HPOJ is not running (OK).
hp-check[2478]: info: :
hp-check[2478]: info: :Checking Python version...
hp-check[2478]: info: :OK, version 2.3.6 installed
hp-check[2478]: info: :
hp-check[2478]: info: :Checking PyQt version...
error: NOT FOUND OR FAILED TO LOAD!
hp-check[2478]: info: :
hp-check[2478]: info: :Checking SIP version...
error: SIP not installed or version not found.
hp-check[2478]: info: :
hp-check[2478]: info: :Checking for CUPS...
hp-check[2478]: info: :Status: scheduler is running
hp-check[2478]: info: :Version: 1.3.5
hp-check[2478]: info: :
hp-check[2478]: info: :
hp-check[2478]: info: :------------------------
hp-check[2478]: info: :| RUNTIME DEPENDENCIES |
hp-check[2478]: info: :------------------------
hp-check[2478]: info: :
hp-check[2478]: info: :
hp-check[2478]: info: :Checking for dependency: cups - Common Unix Printing System...
hp-check[2478]: info: :OK, found.
hp-check[2478]: info: :
hp-check[2478]: 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[2478]: info: :
hp-check[2478]: info: :Checking for dependency: GhostScript - PostScript and PDF language interpreter and previewer...
hp-check[2478]: info: :OK, found.
hp-check[2478]: info: :
hp-check[2478]: info: :Checking for dependency: PIL - Python Imaging Library (required for commandline scanning with hp-scan)...
hp-check[2478]: info: :OK, found.
hp-check[2478]: info: :
hp-check[2478]: 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[2478]: info: :
hp-check[2478]: info: :Checking for dependency: PyQt - Qt interface for Python...
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[2478]: info: :
hp-check[2478]: info: :Checking for dependency: Python 2.3 or greater - Required for fax functionality...
hp-check[2478]: info: :OK, found.
hp-check[2478]: info: :
hp-check[2478]: 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[2478]: info: :
hp-check[2478]: info: :Checking for dependency: SANE - Scanning library...
hp-check[2478]: info: :OK, found.
hp-check[2478]: info: :
hp-check[2478]: info: :Checking for dependency: scanimage - Shell scanning program...
hp-check[2478]: info: :OK, found.
hp-check[2478]: info: :
hp-check[2478]: 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[2478]: info: :
hp-check[2478]: info: :
hp-check[2478]: info: :----------------------
hp-check[2478]: info: :| HPLIP INSTALLATION |
hp-check[2478]: info: :----------------------
hp-check[2478]: info: :
hp-check[2478]: info: :
hp-check[2478]: info: :Currently installed HPLIP version...
hp-check[2478]: info: :HPLIP 2.8.2 currently installed in '/opt/hplip-2.8.2/share/hplip'.
hp-check[2478]: info: :
hp-check[2478]: info: :Current contents of '/etc/hp/hplip.conf' file:
hp-check[2478]: 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.8.2

[dirs]
home=/opt/hplip-2.8.2/share/hplip
run=/var/run
ppd=/opt/hplip-2.8.2/share/ppd/HP
ppdbase=/opt/hplip-2.8.2/share/ppd
doc=/opt/hplip-2.8.2/share/doc/hplip-2.8.2
icon=/opt/hplip-2.8.2/share/applications
cupsbackend=/opt/cups-1.3.5/lib/cups/backend
cupsfilter=/opt/cups-1.3.5/lib/cups/filter
drv=/opt/hplip-2.8.2/share/cups/drv/hp

# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
pp-build=yes
gui-build=no
scanner-build=yes
fax-build=yes
cups11-build=no
doc-build=no
shadow-build=no
foomatic-drv-install=no
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
internal-tag=2.8.2.10

hp-check[2478]: info: :
hp-check[2478]: info: :-------------------------------
hp-check[2478]: info: :| DISCOVERED PARALLEL DEVICES |
hp-check[2478]: info: :-------------------------------
hp-check[2478]: info: :
hp-check[2478]: info: :No devices found.
error: 'ppdev' kernel module not loaded.
hp-check[2478]: info: :
hp-check[2478]: info: :--------------------------
hp-check[2478]: info: :| DISCOVERED USB DEVICES |
hp-check[2478]: info: :--------------------------
hp-check[2478]: info: :
hp-check[2478]: info: :
hp-check[2478]: info: :---------------------------------
hp-check[2478]: info: :| INSTALLED CUPS PRINTER QUEUES |
hp-check[2478]: info: :---------------------------------
hp-check[2478]: info: :
hp-check[2478]: info: :
warning: No queues found.
hp-check[2478]: info: :
hp-check[2478]: info: :----------------------
hp-check[2478]: info: :| SANE CONFIGURATION |
hp-check[2478]: info: :----------------------
hp-check[2478]: info: :
hp-check[2478]: info: :'hpaio' in '/etc/sane.d/dll.conf'...
hp-check[2478]: info: :OK, found. SANE backend 'hpaio' is properly set up.
hp-check[2478]: info: :
hp-check[2478]: info: :Checking output of 'scanimage -L'...
hp-check[2478]: 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[2478]: info: :
hp-check[2478]: info: :---------------------
hp-check[2478]: info: :| PYTHON EXTENSIONS |
hp-check[2478]: info: :---------------------
hp-check[2478]: info: :
hp-check[2478]: info: :Checking 'cupsext' CUPS extension...
hp-check[2478]: info: :OK, found.
hp-check[2478]: info: :
hp-check[2478]: info: :Checking 'pcardext' Photocard extension...
hp-check[2478]: info: :OK, found.
hp-check[2478]: info: :
hp-check[2478]: info: :Checking 'hpmudext' I/O extension...
hp-check[2478]: info: :OK, found.
hp-check[2478]: info: :
hp-check[2478]: info: :Checking 'scanext' SANE scanning extension...
hp-check[2478]: info: :OK, found.
hp-check[2478]: info: :
hp-check[2478]: info: :
hp-check[2478]: info: :-----------------
hp-check[2478]: info: :| USB I/O SETUP |
hp-check[2478]: info: :-----------------
hp-check[2478]: info: :
hp-check[2478]: info: :
hp-check[2478]: info: :Checking for permissions of USB attached printers...
hp-check[2478]: info: :
hp-check[2478]: info: :-----------
hp-check[2478]: info: :| SUMMARY |
hp-check[2478]: info: :-----------
hp-check[2478]: info: :
error: 7 errors and/or warnings.
hp-check[2478]: info: :
hp-check[2478]: info: :Please refer to the installation instructions at:
hp-check[2478]: info: :http://hplip.sourceforge.net/install/index.html

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

John,

please run

/usr/lib/cups/backend/hp -h

and post the output.

A

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

$ /opt/cups-1.3.5/lib/cups/backend/hp -h
HP Linux Imaging and Printing System
CUPS Backend 2.8.2
(c) 2003-2007 Copyright Hewlett-Packard Development Company, LP

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

What distro are you using John?

Thanks!

A

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

I'm using damnsmalllinux which uses the 2.4.31 kernel

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

John,

Sorry but we haven't tested HPLIP on DSL. Although it -should- work, you may be able to get more help and/or assistance from the DSL forums/mailing lists.

If you do resolve this and if you have the time , I'd greatly appreciate any feedback on how you got hplip working.

This strongly seems to be some sort of permissions problem..although because I haven't gone through configuring DSL I don't have any more information to be able to share.

I'm going to set the ticket to answered for now, however it is still search able via Google (and so forth) and if someone happens across this thread and has more information they'll still be able to re-open it.

I greatly apologize for any inconvenience.

Aaron

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

OK, let's leave this for now. Note:

1. hplip-2.8.2 started working once I copied hplip.conf from /opt/hplip-2.8.2/etc/hp to /etc/hp

and

2. stopped trying to use foomatic-rip-hplip and went back to the standard version

In both cases I believe this is a problem with the compilation switch "--prefix=/opt/hplip-2.8.2" not being properly processed.

Thanks