Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 125356 - hplip 0.9.7-r3: hpssd.py not working
Summary: hplip 0.9.7-r3: hpssd.py not working
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Printing (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-07 07:03 UTC by David Raison
Modified: 2006-05-12 11:39 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Raison 2006-03-07 07:03:31 UTC
please see bug #102926 and bug #98428 for reference.
hpssd.py, even if started manually, does not run. However, there is no error message. (Doesn't run when started by init.d/hplip):

stilgar ~ # /etc/init.d/hplip restart
 * Stopping hpiod ...                                                                                                 [ ok ] * Stopping hpssd ...
start-stop-daemon: warning: failed to kill 6377: No such process
1 pids were not killed
No process in pidfile `/var/run/hpssd.pid' found running; none killed.

stilgar ~ # ps ax
 [...]
 6374 ?        Ss     0:00 /usr/sbin/hpiod
 6378 pts/5    R+     0:00 ps ax

this causes the probe script to fail:
stilgar hplip # ./probe -busb

 HP Linux Imaging and Printing System (ver. 0.9.7)
 Device Detection (Probe) Utility ver. 1.3

 Copyright (c) 2003-5 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.

Traceback (most recent call last):
  File "./probe", line 137, in ?
    hpssd_sock.connect( ( prop.hpssd_host, prop.hpssd_port ) )
  File "<string>", line 1, in connect
socket.gaierror: (-2, 'Name or service not known')

You cannot simply hardmask a working package (hpoj) just because there's a more bleeding-edge one, if that one's not working. Can you?

stilgar hplip # emerge --info
Portage 2.0.54 (default-linux/x86/2005.0, gcc-3.4.5, glibc-2.3.5-r2, 2.6.14-gentoo-r5 i686)
=================================================================
System uname: 2.6.14-gentoo-r5 i686 Intel(R) Pentium(R) M processor 1500MHz
Gentoo Base System version 1.6.14
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.inode.at/ ftp://ftp.easynet.nl/mirror/gentoo/ http://gentoo.mirror.icd.hu/ http://ftp.easynet.nl/mirror/gentoo/"
LANG="en_GB.UTF-8"
LC_ALL="en_GB.UTF-8"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/sci"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 aac acpi alsa apm audiofile avi bitmap-fonts bluetooth bzip2 cdr crypt cups curl divx4linux dts dvd dvdr emboss encode ethereal exif expat fam ffmpeg flac foomaticdb fortran freetype gd gif gimp gimpprint glut gmp gphoto2 gpm gstreamer gtk gtk2 idn imagemagick imlib ipv6 java jpeg junit lcms ldap libg++ libwww mad matroska mhash mikmod mmx mmxext mng mono motif mp3 mpeg msn ncurses nls nptl nptlonly nvidia ogg oggvorbis opengl oscar pam pcre pdflib perl plotutils png ppds python quicktime readline real recode samba scanner sdl spell sqlite sse sse2 ssl svga tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts udev unicode usb vcd vorbis wifi win32codecs wxwindows xinerama xml xml2 xosd xprint xscreensaver xv xvid yahoo zlib linguas_en userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS
Comment 1 Marcelo Goes (RETIRED) gentoo-dev 2006-03-07 09:57:48 UTC
hplip works for me.

You realize you posted your results after you tried to stop hplip? (but I see what you mean though, if it was running in the first place /var/run/hpssd.pid would have been created)

Anyway, dou you mind posting the output you get when you run /usr/share/hplip/hpssd.py manually?
Comment 2 David Raison 2006-03-07 10:02:05 UTC
> You realize you posted your results after you tried to stop hplip? (but I see
> what you mean though, if it was running in the first place /var/run/hpssd.pid
> would have been created)

Exactly, there was no point in posting the output of start, because there's none.
I wanted to show, that the process is not being started.

stilgar hplip # ./hpssd.py

 HP Linux Imaging and Printing System (ver. 0.9.7)
 Services and Status Daemon ver. 6.0

 Copyright (c) 2003-5 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.

stilgar hplip # ps ax | grep hpssd
26494 pts/4    R+     0:00 grep hpssd
Comment 3 Marcelo Goes (RETIRED) gentoo-dev 2006-03-07 10:12:44 UTC
Indeed, it should show something like

10382 ?        S      0:00 /usr/bin/python /usr/share/hplip/hpssd.py

Can you run it with -ldebug? I was hoping to see some useful error message:
/usr/share/hplip/hpssd.py -ldebug

Have you tested 0.9.8-r2/contacted upstream about this? I can't really tell why the daemon does not start for you (in case -ldebug doesn't help).
Comment 4 David Raison 2006-03-07 10:28:05 UTC
this is all I get in my syslog:

Mar  7 19:24:45 stilgar python: hpssd [DEBUG] Exception: 95 (Unable to bind to socket)
Mar  7 19:24:45 stilgar python: hpssd [ERROR] Server exited with error: Unable to bind to socket

And not really very informative. It says quite the same thing than probe does.

No, I've not yet tried 0.9.8, nor have I contacted upstream, although I've been crawling through the official forums, with no luck at all.
Comment 5 David Raison 2006-03-07 11:10:16 UTC
Same thing happens with 0.9.8
Comment 6 David Raison 2006-05-12 11:39:38 UTC
I found what was causing the problem. Running hpssd.py with the -ldebug switch returned the following:

May 12 20:30:58 stilgar python: hpssd [ERROR] Server exited with error: Unable to bind to socket
May 12 20:31:24 stilgar python: hpssd [ERROR] Server exited with error: Unable to bind to socket
May 12 20:31:50 stilgar python: hpssd [DEBUG] Exception: 95 (Unable to bind to socket)
May 12 20:31:50 stilgar python: hpssd [ERROR] Server exited with error: Unable to bind to socket

after a little googling, I found out, that this might be caused by a missing
127.0.0.1 localhost
entry in /etc/hosts and indeed, I had changed it to match my ssh tunnel