Bug#422887: Last upgrade of hplip broke the package

2007-05-11 Thread Nicolas DEGAND
Le mercredi 9 mai 2007, Henrique de Moraes Holschuh a écrit :

> > May  9 00:28:11 localhost parport0: unable to connect hpssd socket 50002:
> > Connection refused: prnt/hpijs/hplip_api.c 719
>
> hpssd is malfunctioning (locking up, maybe?).  This is also what caused the
> breakage in the upgrade: it didn't stop, and since the upgrade could not
> start it by force, it banged out.
>
> Since downgrading didn't work, the problem is probably being caused by
> something else in the system (it doesn't mean it is not a bug in hpssd,
> however, but something else caused it to trigger).
>
> Try killing hpssd (leave hpiod running), and run this:
>
> hpssd -g
>
> If it seems to have worked, (it says Starting async loop...), try printing
> and post the output of hpssd here.

It works. Here is hpssd output :

HP Linux Imaging and Printing System (ver. 1.6.10)
Services and Status Daemon ver. 7.5

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

hpssd[15077]: debug: port=34123
Listening on localhost:34123
hpssd[15077]: debug: Starting async loop...
hpssd[15077]: debug: Connected to client: 127.0.0.1:57387 (4)
hpssd[15077]: debug: Reading data on channel (9)
hpssd[15077]: debug: 'msg=ModelQuery\nmodel=deskjet_5550\n'
hpssd[15077]: debug: Handling:  modelquery 

hpssd[15077]: debug: 'msg=ModelQuery\nmodel=deskjet_5550\n'
hpssd[15077]: debug: Query model: deskjet_5550
hpssd[15077]: debug: Searching directory: /usr/lib/hplip/data/xml
hpssd[15077]: debug: Searching file: /usr/lib/hplip/data/xml/unsupported.xml
hpssd[15077]: debug: Searching file: /usr/lib/hplip/data/xml/HPLIP-1_6_10.xml
hpssd[15077]: debug: Searching file: /usr/lib/hplip/data/xml/HPLIP-0_9_9.xml
hpssd[15077]: debug: Searching file: /usr/lib/hplip/data/xml/HPLIP-1_6_9.xml
hpssd[15077]: debug: Searching file: /usr/lib/hplip/data/xml/HPLIP-0_9_11.xml
hpssd[15077]: debug: Searching file: /usr/lib/hplip/data/xml/HPLIP-1_6_8.xml
hpssd[15077]: debug: Searching file: /usr/lib/hplip/data/xml/HPLIP-0_9_7.xml
hpssd[15077]: debug: Searching file: /usr/lib/hplip/data/xml/HPLIP-1_6_6.xml
hpssd[15077]: debug: Searching file: /usr/lib/hplip/data/xml/HPLIP-1_6_7.xml
hpssd[15077]: debug: Searching file: /usr/lib/hplip/data/xml/HPLIP-0_9_6.xml
hpssd[15077]: debug: Searching file: /usr/lib/hplip/data/xml/HPLIP-0_9_8.xml
hpssd[15077]: debug: Searching file: /usr/lib/hplip/data/xml/HPLIP-0_9_5.xml
hpssd[15077]: debug: Found
hpssd[15077]: debug: Sending data on channel (9)
hpssd[15077]: 
debug: 
'msg=modelqueryresult\ncopy-type=0\nscan-type=0\nfax-type=0\nr0-agent3-sku=58 
(C6658A)\ntech-type=2\nio-support=3\nscan-style=0\nr0-agent2-type=2\nio-mode=1\nio-scan-port=0\nr0-agent1-sku=56
 
(C6656A)\ncase-model-model1=Deskjet 5550\nr0-agent2-sku=57 
(C6657A)\ncolor-cal-type=0\nr0-agent3-kind=3\npanel-check-type=0\ntech-class=DJGenericVIP\nstatus-dynamic-counters=0\npq-diag-type=0\nclean-type=1\nr0-agent1-type=1\nresult-code=0\nalign-type=1\nicon=deskjet_5550.png\nstatus-battery-check=0\nsupport-type=2\npcard-type=0\nlinefeed-cal-type=0\nstatus-type=2\nio-mfp-mode=2\nembedded-server-type=0\nr0-agent3-type=3\nr0-agent2-kind=3\nio-control=0\nr0-agent1-kind=3\n'
hpssd[15077]: debug: Reading data on channel (9)
hpssd[15077]: 
debug: 
'msg=Event\ndevice-uri=hp:/par/deskjet_5550?device=/dev/parport0\njob-id=149\nevent-code=500\nevent-type=event\n'
hpssd[15077]: debug: Handling:  event 
hpssd[15077]: 
debug: 
'msg=Event\ndevice-uri=hp:/par/deskjet_5550?device=/dev/parport0\njob-id=149\nevent-code=500\nevent-type=event\n'
hpssd[15077]: debug: Device URI: hp:/par/deskjet_5550?device=/dev/parport0
hpssd[15077]: debug: Short/Long: The printer has started a print job./
hpssd[15077]: debug: Username (jobid): nicolas (149)
hpssd[15077]: debug: New device: hp:/par/deskjet_5550?device=/dev/parport0
hpssd[15077]: debug: Connected to client: 127.0.0.1:57389 (4)
hpssd[15077]: debug: Reading data on channel (13)
hpssd[15077]: debug: 'msg=ModelQuery\nmodel=deskjet_5550\n'
hpssd[15077]: debug: Handling:  modelquery 

hpssd[15077]: debug: 'msg=ModelQuery\nmodel=deskjet_5550\n'
hpssd[15077]: debug: Query model: deskjet_5550
hpssd[15077]: debug: Sending data on channel (13)
hpssd[15077]: 
debug: 
'msg=modelqueryresult\ncopy-type=0\nscan-type=0\nfax-type=0\nr0-agent3-sku=58 
(C6658A)\ntech-type=2\nio-support=3\nscan-style=0\nr0-agent2-type=2\nio-mode=1\nio-scan-port=0\nr0-agent1-sku=56
 
(C6656A)\ncase-model-model1=Deskjet 5550\nr0-agent2-sku=57 
(C6657A)\ncolor-cal-type=0\nr0-agent3-kind=3\npanel-check-type=0\ntech-class=DJGenericVIP\nstatus-dynamic-counters=0\npq-diag-type=0\nclean-type=1\nr0-agent1-type=1\nresult-code=0\nalign-type=1\nicon=deskjet_5550.png\nstatus-battery-check=0\nsupport-type=2\npcard-type=0\nli

Bug#422887: Last upgrade of hplip broke the package

2007-05-08 Thread Henrique de Moraes Holschuh
severity 422887 important
thanks

On Wed, 09 May 2007, Nicolas DEGAND wrote:
> hpssd was still running. killed it

Ok.

> May  9 00:28:11 localhost parport0: unable to connect hpssd socket 50002: 
> Connection refused: prnt/hpijs/hplip_api.c 719

hpssd is malfunctioning (locking up, maybe?).  This is also what caused the
breakage in the upgrade: it didn't stop, and since the upgrade could not
start it by force, it banged out.

Since downgrading didn't work, the problem is probably being caused by
something else in the system (it doesn't mean it is not a bug in hpssd,
however, but something else caused it to trigger).

Try killing hpssd (leave hpiod running), and run this:

hpssd -g

If it seems to have worked, (it says Starting async loop...), try printing
and post the output of hpssd here.

I will downgrade the bug for now.

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#422887: Last upgrade of hplip broke the package

2007-05-08 Thread Nicolas DEGAND
Le mardi 8 mai 2007, Henrique de Moraes Holschuh a écrit :
> On Tue, 08 May 2007, Nicolas DEGAND wrote:
> > > Make sure no hpiod/hpssd is running (kill them if you have to), and do
> > > this:
> > >
> > > export LANG=C
> > > export LC_ALL=C
> > > sh -x /etc/init.d/hplip start
> > >
> > > And post here the result.
>
> [...]
>
> Seems to have worked.
>
> Do a /etc/init.d/hplip stop.
>
> Check if any hpssd or hpiod are still running, if yes, tell me so, and kill
> them to continue the testing.

hpssd was still running. killed it

> Then, install the package again (latest version). It should just work.

Install works. It says the package is in correct state. However it still does 
not work.

> If it doesn't, edit /etc/init.d/hplip and add the above exports right after
> the comments at the top of the file, and try again using "dpkg --pending
> --configure".

I added the comments, but as the package is said to be in a correct state, 
dpkg do not do anything. Here athe messages I get in syslog when I try to 
print something :

May  9 00:28:11 localhost parport0: unable to connect hpssd socket 50002: 
Connection refused: prnt/hpijs/hplip_api.c 719
May  9 00:28:11 localhost parport0: unable to send ModelQuery: Broken pipe: 
prnt/hpijs/hplip_api.c 380
May  9 00:28:11 localhost parport0: unable to send Event 
hp:/par/deskjet_5550?device=/dev/parport0 148 500: Broken pipe
May  9 00:28:11 localhost kernel: ppdev0: registered pardevice
May  9 00:28:12 localhost hpijs: unable to connect hpssd socket 50002: 
Connection refused: hplip_api.c 719
May  9 00:28:12 localhost hpijs: unable to send ModelQuery: Broken pipe: 
hplip_api.c 380

-- 
Nicolas DEGAND



Bug#422887: Last upgrade of hplip broke the package

2007-05-08 Thread Henrique de Moraes Holschuh
On Tue, 08 May 2007, Nicolas DEGAND wrote:
> > Make sure no hpiod/hpssd is running (kill them if you have to), and do
> > this:
> >
> > export LANG=C
> > export LC_ALL=C
> > sh -x /etc/init.d/hplip start
> >
> > And post here the result.

[...]

Seems to have worked.

Do a /etc/init.d/hplip stop.

Check if any hpssd or hpiod are still running, if yes, tell me so, and kill
them to continue the testing.

Then, install the package again (latest version). It should just work.

If it doesn't, edit /etc/init.d/hplip and add the above exports right after
the comments at the top of the file, and try again using "dpkg --pending
--configure".

Did it work?

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#422887: Last upgrade of hplip broke the package

2007-05-08 Thread Nicolas DEGAND
Le mardi 8 mai 2007, Henrique de Moraes Holschuh a écrit :
> On Tue, 08 May 2007, Nicolas DEGAND wrote:
> > When upgrading to 1.6.10-4 from 1.6.10-3, the hplip package breaks with
> > this message :
> >
> > Paramétrage de hplip (1.6.10-4) ...
> > Creating/updating hplip user account...
> > Starting HP Linux Printing and Imaging System: hpiod hpssd failed!
> > invoke-rc.d: initscript hplip, action "start" failed.
> > dpkg : erreur de traitement de hplip (--configure) :
> >  le sous-processus post-installation script a retourné une erreur de
> > sortie d'état 1
> > Des erreurs ont été rencontrées pendant l'exécution :
> >  hplip
> >
> > If I downgrade, I still encounter this problem. My printer is a HP
> > Deskjet 5550.
>
> Well, at this poing the package is mostly installed, so we can debug what
> is broken even if it is not cooperating much and pestering you with error
> messages.
>
> Make sure no hpiod/hpssd is running (kill them if you have to), and do
> this:
>
> export LANG=C
> export LC_ALL=C
> sh -x /etc/init.d/hplip start
>
> And post here the result.

+ PATH=/sbin:/bin:/usr/sbin:/usr/bin
+ DESC='HP Linux Printing and Imaging System'
+ SUID_USER=hplip
+ SGID_GROUP=lp
+ DAEMON1=/usr/sbin/hpiod
+ NAME1=hpiod
+ PROCNAME1=hpiod
+ PIDFILE1=/var/run/hplip/hpiod.pid
+ DAEMON2=/usr/sbin/hpssd
+ NAME2=hpssd
+ PROCNAME2=python
+ PIDFILE2=/var/run/hplip/hpssd.pid
+ FILES2='/var/run/hplip/hpssd.pid /var/run/hplip/hpssd.port'
+ HPIODOPTIONS=
+ HPSSDOPTIONS=
+ '[' -r /etc/default/hplip ']'
+ test -f /usr/sbin/hpiod
+ . /lib/lsb/init-functions
++ FANCYTTY=
++ '[' -e /etc/lsb-base-logging.sh ']'
++ true
+ set -e
+ DIDSOMETHING=0
+ case "$1" in
+ set -e
+ do_start
+ log_daemon_msg 'Starting HP Linux Printing and Imaging System'
+ '[' -z 'Starting HP Linux Printing and Imaging System' ']'
+ '[' -z '' ']'
+ echo -n 'Starting HP Linux Printing and Imaging System:'
Starting HP Linux Printing and Imaging System:+ return
+ fixdirs
++ dpkg-statoverride --list /var/run/hplip
+ dir='hplip root 755 /var/run/hplip'
+ '[' -z 'hplip root 755 /var/run/hplip' ']'
+ createdir hplip root 755 /var/run/hplip
+ '[' -d /var/run/hplip ']'
+ chown -R -H --preserve-root hplip:root /var/run/hplip
+ chmod 755 /var/run/hplip
+ :
+ log_progress_msg hpiod
+ '[' -z hpiod ']'
+ echo -n ' hpiod'
 hpiod+ start_daemon /usr/sbin/hpiod /var/run/hplip/hpiod.pid hpiod 
hpiod '' ''
+ DAEMON=/usr/sbin/hpiod
+ PIDFILE=/var/run/hplip/hpiod.pid
+ NAME=hpiod
+ PROCNAME=hpiod
+ SSDOPT=
+ DAEMONOPT=
+ 
START='--start --quiet --pidfile /var/run/hplip/hpiod.pid --startas 
/usr/sbin/hpiod --name 
hpiod '
+ '[' -n '' ']'
+ 
start-stop-daemon --start --quiet --pidfile /var/run/hplip/hpiod.pid --startas 
/usr/sbin/hpiod --name 
hpiod
+ DIDSOMETHING=1
+ return 0
+ log_progress_msg hpssd
+ '[' -z hpssd ']'
+ echo -n ' hpssd'
 hpssd+ for i in '${FILES2}'
+ '[' -f /var/run/hplip/hpssd.pid ']'
+ chown hplip:lp /var/run/hplip/hpssd.pid
+ :
+ for i in '${FILES2}'
+ '[' -f /var/run/hplip/hpssd.port ']'
+ chown hplip:lp /var/run/hplip/hpssd.port
+ :
+ start_daemon /usr/sbin/hpssd /var/run/hplip/hpssd.pid hpssd python '--chuid 
hplip --group lp' ''
+ DAEMON=/usr/sbin/hpssd
+ PIDFILE=/var/run/hplip/hpssd.pid
+ NAME=hpssd
+ PROCNAME=python
+ SSDOPT='--chuid hplip --group lp'
+ DAEMONOPT=
+ 
START='--start --quiet --pidfile /var/run/hplip/hpssd.pid --startas 
/usr/sbin/hpssd --name 
python --chuid hplip --group lp'
+ '[' -n '' ']'
+ 
start-stop-daemon --start --quiet --pidfile /var/run/hplip/hpssd.pid --startas 
/usr/sbin/hpssd --name 
python --chuid hplip --group lp
+ DIDSOMETHING=1
+ return 0
+ log_end_msg 0
+ '[' -z 0 ']'
+ log_use_fancy_output
+ TPUT=/usr/bin/tput
+ EXPR=/usr/bin/expr
+ '[' xxterm '!=' xdumb ']'
+ '[' -x /usr/bin/tput ']'
+ '[' -x /usr/bin/expr ']'
+ /usr/bin/tput hpa 60
+ /usr/bin/tput setaf 1
+ '[' -z ']'
+ FANCYTTY=1
+ case "$FANCYTTY" in
+ true
++ /usr/bin/tput setaf 1
+ RED=''
++ /usr/bin/tput op
+ NORMAL=''
+ '[' 0 -eq 0 ']'
+ echo .
.
+ return 0
+ reload_cups
+ '[' 1 -ne 0 ']'
+ invoke-rc.d --quiet cupsys reload
+ return 0
+ return 0
+ exit 0


-- 
Nicolas DEGAND



Bug#422887: Last upgrade of hplip broke the package

2007-05-08 Thread Henrique de Moraes Holschuh
On Tue, 08 May 2007, Nicolas DEGAND wrote:
> When upgrading to 1.6.10-4 from 1.6.10-3, the hplip package breaks with
> this message :
> 
> Paramétrage de hplip (1.6.10-4) ...
> Creating/updating hplip user account...
> Starting HP Linux Printing and Imaging System: hpiod hpssd failed!
> invoke-rc.d: initscript hplip, action "start" failed.
> dpkg : erreur de traitement de hplip (--configure) :
>  le sous-processus post-installation script a retourné une erreur de
> sortie d'état 1
> Des erreurs ont été rencontrées pendant l'exécution :
>  hplip
> 
> If I downgrade, I still encounter this problem. My printer is a HP
> Deskjet 5550.

Well, at this poing the package is mostly installed, so we can debug what is
broken even if it is not cooperating much and pestering you with error
messages.

Make sure no hpiod/hpssd is running (kill them if you have to), and do this:

export LANG=C
export LC_ALL=C
sh -x /etc/init.d/hplip start

And post here the result.

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh



Bug#422887: Last upgrade of hplip broke the package

2007-05-08 Thread Nicolas DEGAND
Package: hplip
Version: 1.6.10-4
Severity: grave

When upgrading to 1.6.10-4 from 1.6.10-3, the hplip package breaks with
this message :

Paramétrage de hplip (1.6.10-4) ...
Creating/updating hplip user account...
Starting HP Linux Printing and Imaging System: hpiod hpssd failed!
invoke-rc.d: initscript hplip, action "start" failed.
dpkg : erreur de traitement de hplip (--configure) :
 le sous-processus post-installation script a retourné une erreur de
sortie d'état 1
Des erreurs ont été rencontrées pendant l'exécution :
 hplip

If I downgrade, I still encounter this problem. My printer is a HP
Deskjet 5550.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.18-4-amd64 (SMP w/1 CPU core)
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash

Versions of packages hplip depends on:
ii  adduser   3.102  Add and remove users and groups
ii  coreutils 5.97-5.3   The GNU core utilities
ii  cupsys1.2.7-4Common UNIX Printing System(tm) - 
ii  hplip-data1.6.10-4   HP Linux Printing and Imaging - da
ii  libc6 2.5-7  GNU C Library: Shared libraries
ii  libcupsys21.2.7-4Common UNIX Printing System(tm) - 
ii  libgcc1   1:4.1.2-6  GCC support library
ii  libsnmp10 5.3.1-5NET SNMP (Simple Network Managemen
ii  libssl0.9.8   0.9.8e-4   SSL shared libraries
ii  libstdc++64.1.2-6The GNU Standard C++ Library v3
ii  libusb-0.1-4  2:0.1.12-7 userspace USB programming library
ii  lsb-base  3.1-23.1   Linux Standard Base 3.1 init scrip
ii  python2.4.4-3An interactive high-level object-o
ii  python-qt33.16-1.2   Qt3 bindings for Python
ii  python-support0.6.3  automated rebuilding support for p

Versions of packages hplip recommends:
ii  cupsys-client1.2.7-4 Common UNIX Printing System(tm) - 
ii  hpijs2.6.10+1.6.10-4 HP Linux Printing and Imaging - gs
ii  hpijs-ppds   2.6.10+1.6.10-4 HP Linux Printing and Imaging - HP
pn  linuxprinting.org-ppds (no description available)
pn  python-reportlab   (no description available)

-- no debconf information