> From [EMAIL PROTECTED] Fri Feb 23 21:51:51 2001
> Date: Fri, 23 Feb 2001 22:56:31 -0600
> From: Mark Steph <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: LPRng: broken pipe
>
>
> I am convinced I have missed something obvious here, but here I go:
>
Well ... I looked at your EXTREMELY COMPLETE (thank you thank you)
error report and I did not spot anything obvious as well...
Ahh... the joys of servers.
First, make sure that you have the system limits for the 'lp' or 'daemon'
user set to 'UNLIMITED'. You may discover that the default is something
pretty small, especially for maximum file sizes.
Next, make sure that there is enough temp file space left for the conversion.
I know, I know, but sometimes the various conversion things use /tmp.
Next, try running the conversion stuff as the 'daemon' user on the
actual server host. This may turn up something interesting:
su - daemon "/.../ifhp ....."
If you want to clean out the status files to help you get just status
for the job:
for i in /usr/spool/lpd/med/status* ; do
cp /dev/null $i;
done
Ummm... and your printcap is EXACTLY (except for IP addresses)
as the one that I am using here and it worked just fine...
with a 20 Meg PDF file...
Patrick Powell Astart Technologies,
[EMAIL PROTECTED] 9475 Chesapeake Drive, Suite D,
Network and System San Diego, CA 92123
Consulting 858-874-6543 FAX 858-279-8424
LPRng - Print Spooler (http://www.lprng.com)
> If I print a large/complex job, for example:
>
> % lpr -Pmed /opt/depot/gs6.50/share/ghostscript/6.50/examples/tiger.ps
>
> the print fails.
>
> lpq returns:
>
> % lpq -lll -Pmed
> Printer: med@coyote
> Queue: no printable jobs in queue
> Status: waiting for subserver to exit at 22:48:43.074
> Status: IF filter 'ifhp' filter msg - 'ifhp 22:49:46.984 [20082]
> Send_job: job failed during copy - Broken pipe' at 22:49:47.086
> Status: IF filter 'ifhp' filter exit status 'JFAIL' at 22:49:47.124
> Status: printing finished at 22:49:47.126
> Status: med: Get_status_from_OF: LP, of_error 6 closed! - Bad file
> number at 22:49:47.128
> Status: subserver pid 20081 exit status 'JABORT' at 22:49:47.142
> Status: job 'cfA079coyote' error 'aborting operations' at 22:49:47.145
> Status: removing job 'cfA079coyote' - ABORT at 22:49:47.304
> Filter_status: initial job type 'POSTSCRIPT' at 22:47:23.509
> Filter_status: decoded job type 'RAW' at 22:47:23.513
> Filter_status: job type 'RAW', converter '/opt/local/bin/gs -q -dSAFER
> -dBATCH -sOutputFile=- -sPAPERSIZE=letter @stc600p.upp -' at
> 22:47:23.513
> Filter_status: started CONVERTER- 'gs' at 22:47:23.681
> Filter_status: converter done, output 5513896 bytes at 22:49:46.978
> Filter_status: transferring 5513896 bytes at 22:49:46.981
Hmmm... 5 megabytes doesn't look
that big...
> Filter_status: write error or timeout - Broken pipe at 22:49:46.983
> Filter_status: job failed during copy - Broken pipe at 22:49:46.984
>
> However, if I create the pcl by hand with this:
> % /opt/local/bin/gs -q -dSAFER -dBATCH -sOutputFile=- -sPAPERSIZE=letter
> @stc600p.upp - <
> /opt/depot/gs6.50/share/ghostscript/6.50/examples/tiger.ps >
> /tmp/tiger.pcl
> % lpr -Pmed /tmp/tiger.pcl
>
> ...then it prints just fine.
>
> What am I missing?
> Platform: sunos5.8
> lprng: 3.7.3
> gs: 6.50
> printer: epson stylus 600 via external jetdirect
>
> printcap:
> lp:force_localhost
> lo:force_localhost
> med:force_localhost
> hi:force_localhost
>
> lp:server
> :sd=/var/spool/lpd/%P
> :lp=printer%9100
> :force_localhost@
> :filter=/usr/local/lib/ifhp
> :ifhp=model=gs_uniprint,gs_device=stcany.upp
> :fq
> :sh
> lo:server
> :sd=/var/spool/lpd/%P
> :lp=printer%9100
> :force_localhost@
> :filter=/usr/local/lib/ifhp
> :ifhp=model=gs_uniprint,gs_device=stc600pl.upp
> :fq
> :sh
> med:server
> :sd=/var/spool/lpd/%P
> :lp=printer%9100
> :force_localhost@
> :filter=/usr/local/lib/ifhp
> :ifhp=model=gs_uniprint,gs_device=stc600p.upp
> :fq
> :sh
> hi:server
> :sd=/var/spool/lpd/%P
> :lp=printer%9100
> :force_localhost@
> :filter=/usr/local/lib/ifhp
> :ifhp=model=gs_uniprint,gs_device=stc600ih.upp
> :fq
> :sh
-----------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------