> From [EMAIL PROTECTED] Sat Aug 10 17:33:21 2002
> Date: Sun, 11 Aug 2002 11:17:14 +1200
> From: V K <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Re: LPRng: debugging job which stops part-way
>
> On Tue 06 Aug 2002 09:10:50 NZST +1200, Patrick Powell wrote:
>
> [USB printer hangs part-way through job]
>
> > I suspect that you have a hardware problem or a data transmission problem.
> > Since you are using USB, I am not surprised.  The latest USB drivers
> > are a lot more 'robust' than the original ones,  but if you have a
> > hardware error when communicating to a device you usually need to 
> > close the connection and reopen it.
> > 
> > > How to go about debugging it?
> > 
> > Ummm....  truss,  I am afraid,  is the only thing that
> > will help at this point if it is what I think it is. See below.
>
> Thanks for you answer Patrick. I didn't think there is a truss for
> Linux, but strace will do. It's difficult to distinguish between
> transmission errors due to signal distortion (bad cable etc) and actual
> hardware errors of the USB ports. I didn't think an Intel 440BX chipset
> could have a faulty USB port, but then Intel isn't known for bugless
> silicon.
>
> As parallel printers aren't necessarily supported under lprng and USB
> printers are unreliable, there doesn't seem to be much choice left for
> the home user. Printers with network cards are far too expensive.

But they ARE.  I have gone through 7 levels of hell getting this
stuff to work on Free/Open/Net BSD as well as Linux.  In any case,
as long as you do not care about 'status' then you will be fine with
a parallel port.

>
> > > The debugging option are a bit unclear to me, the docs are a bit brief.
> > > is "lpc debug queue 5" the same as as lpc debug
> > > lpr+5,lprm+5,network+5,..."? Does lpr+5,network+2 set the debug level
> > > for "lpr" to 5, for "network" to 2, and all others to 0? With lpc debug
> > > all 2 nothing is written to the log at all during the 20min the job
> > > needs to print, which means what I am really interested in is missing.
>
> Can the docs about this please be extended?
>
> > >   |-lpd,1361)
> > >   |   `-lpd,3661)
> > >   |       `-lpd,5522)
> > >   |           `-if,5523) /usr/lib/lpdfilter/bin/if -Avolker@ruru+878 -CA -D2002-
> > 
> >                                  ^^^^^^^^^^^^
> > The 'if' filter is the one that is locking up or hanging up.
>
> How can you tell - because you know the lprng software well?

Ummm... it should have exited.  You can use ps and get the
exact system call it is hanging on.  Also, GDB can be used to connect
to the running process.  This is VERY handy.

>
> > Try doing 'lpc kill printername' and see if this fixes it.  This will
> > restart the queue and try reprinting the job.
>
> Yes that works, but I'd like to fix the problem because ink is
> expensive.

This appears to be about the only solution that will be reliable in
your environment...

I wish I had a better answer.

>
> Volker
>
> -- 
> Volker Kuhlmann                       is possibly list0570 with the domain in header
> http://volker.orcon.net.nz/           Please do not CC list postings to me.

Patrick Powell                 Astart Technologies
[EMAIL PROTECTED]            6741 Convoy Court
Network and System             San Diego, CA 92111
  Consulting                   858-874-6543 FAX 858-751-2435
LPRng - Print Spooler (http://www.lprng.com)

-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:                           | example:
subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------

Reply via email to