pstops dies

Helge Blischke h.blischke at srz.de
Thu Jan 5 07:18:27 PST 2006


Anonymous wrote:
> 
> > the log with debug2 says pstops dies with a status of 1.
> >
> > I'm running the latest 1.1.23.
> >
> > espgs is at 8.15.1
> >
> > Any suggestions on how to proceed would be appreciated.
> >
> > Here's part of the log file:
> >
> > D [05/Jan/2006:08:34:58 -0500] StartJob: argv = "pocketjet3","20","root","Test Page","1","","/usr/local/var/spool/cups/d00020-001"
> > D [05/Jan/2006:08:34:58 -0500] StartJob: envp[0]="PATH=/usr/local/lib/cups/filter:/bin:/usr/bin"
> > D [05/Jan/2006:08:34:58 -0500] StartJob: envp[1]="SOFTWARE=CUPS/1.1"
> > D [05/Jan/2006:08:34:58 -0500] StartJob: envp[2]="USER=root"
> > D [05/Jan/2006:08:34:58 -0500] StartJob: envp[3]="CHARSET=utf-8"
> > D [05/Jan/2006:08:34:58 -0500] StartJob: envp[4]="LANG=en_US"
> > D [05/Jan/2006:08:34:58 -0500] StartJob: envp[5]="TZ=America/New_York"
> > D [05/Jan/2006:08:34:58 -0500] StartJob: envp[6]="PPD=/usr/local/etc/cups/ppd/pocketjet3.ppd"
> > D [05/Jan/2006:08:34:58 -0500] StartJob: envp[7]="CUPS_SERVERROOT=/usr/local/etc/cups"
> > D [05/Jan/2006:08:34:58 -0500] StartJob: envp[8]="RIP_MAX_CACHE=8m"
> > D [05/Jan/2006:08:34:58 -0500] StartJob: envp[9]="TMPDIR=/usr/local/var/spool/cups/tmp"
> > D [05/Jan/2006:08:34:58 -0500] StartJob: envp[10]="CONTENT_TYPE=application/postscript"
> > D [05/Jan/2006:08:34:58 -0500] StartJob: envp[11]="DEVICE_URI=usb://PENTAX/PocketJet3"
> > D [05/Jan/2006:08:34:58 -0500] StartJob: envp[12]="PRINTER=pocketjet3"
> > D [05/Jan/2006:08:34:58 -0500] StartJob: envp[13]="CUPS_DATADIR=/usr/local/share/cups"
> > D [05/Jan/2006:08:34:58 -0500] StartJob: envp[14]="CUPS_FONTPATH=/usr/local/share/cups/fonts"
> > D [05/Jan/2006:08:34:58 -0500] StartJob: envp[15]="CUPS_SERVER=localhost"
> > D [05/Jan/2006:08:34:58 -0500] StartJob: envp[16]="IPP_PORT=631"
> > d [05/Jan/2006:08:34:58 -0500] StartJob: Allocating status buffer...
> > D [05/Jan/2006:08:34:58 -0500] StartJob: statusfds = [ 10 11 ]
> > D [05/Jan/2006:08:34:58 -0500] StartJob: filterfds[1] = [ 12 -1 ]
> > D [05/Jan/2006:08:34:58 -0500] StartJob: filter = "/usr/local/lib/cups/filter/pstops"
> > D [05/Jan/2006:08:34:58 -0500] StartJob: filterfds[0] = [ 13 14 ]
> > D [05/Jan/2006:08:34:58 -0500] start_process("/usr/local/lib/cups/filter/pstops", 0xbfff0250, 0xbffef5c0, 12, 14, 11)
> > I [05/Jan/2006:08:34:58 -0500] Started filter /usr/local/lib/cups/filter/pstops (PID 21238) for job 20.
> > D [05/Jan/2006:08:34:58 -0500] StartJob: filter = "/usr/local/lib/cups/filter/pstoraster"
> > D [05/Jan/2006:08:34:58 -0500] StartJob: filterfds[1] = [ 12 15 ]
> > D [05/Jan/2006:08:34:58 -0500] start_process("/usr/local/lib/cups/filter/pstoraster", 0xbfff0250, 0xbffef5c0, 13, 15, 11)
> > I [05/Jan/2006:08:34:58 -0500] Started filter /usr/local/lib/cups/filter/pstoraster (PID 21239) for job 20.
> > D [05/Jan/2006:08:34:58 -0500] StartJob: filter = "/usr/local/lib/cups/filter/rastertopocketjet"
> > D [05/Jan/2006:08:34:58 -0500] StartJob: filterfds[0] = [ 13 14 ]
> > D [05/Jan/2006:08:34:58 -0500] start_process("/usr/local/lib/cups/filter/rastertopocketjet", 0xbfff0250, 0xbffef5c0, 12, 14, 11)
> > I [05/Jan/2006:08:34:58 -0500] Started filter /usr/local/lib/cups/filter/rastertopocketjet (PID 21240) for job 20.
> > D [05/Jan/2006:08:34:58 -0500] StartJob: backend = "/usr/local/lib/cups/backend/usb"
> > D [05/Jan/2006:08:34:58 -0500] StartJob: filterfds[1] = [ -1 12 ]
> > D [05/Jan/2006:08:34:58 -0500] start_process("/usr/local/lib/cups/backend/usb", 0xbfff0250, 0xbffef5c0, 13, 12, 11)
> > I [05/Jan/2006:08:34:58 -0500] Started backend /usr/local/lib/cups/backend/usb (PID 21241) for job 20.
> > d [05/Jan/2006:08:34:58 -0500] StartJob: Adding fd 10 to InputSet...
> > d [05/Jan/2006:08:34:58 -0500] add_job_state_reasons(0x4023e870[8], 20)
> > D [05/Jan/2006:08:34:58 -0500] ProcessIPPRequest: 8 status_code=0
> > d [05/Jan/2006:08:34:58 -0500] ProcessIPPRequest: Adding fd 8 to OutputSet...
> > E [05/Jan/2006:08:34:58 -0500] PID 21238 stopped with status 1!
> > E [05/Jan/2006:08:34:58 -0500] [Job 20] unable to open print file "/usr/local/var/spool/cups/d00020-001" - Permission denied
> > I [05/Jan/2006:08:34:58 -0500] [Job 20] Starting ESP Ghostscript 8.15....
> > D [05/Jan/2006:08:34:58 -0500] [Job 20] Running /usr/local/bin/gs -dQUIET -dDEBUG -dPARANOIDSAFER -dNOPAUSE -dBATCH -dNOMEDIAATTRS -sDEVICE=cups -sstdout=%stderr -sOUTPUTFILE=%stdout -c -
> > d [05/Jan/2006:08:34:58 -0500] WriteClient: Removing fd 8 from OutputSet...
> > d [05/Jan/2006:08:34:58 -0500] PID 21237 exited with no errors.
> >
> >
> >
> 
> I modified pstops to show why it exited, and it it can't open the
> input file - the second return in main is being taken.
> I look in /usr/local/var/spool/cups and I see c00020 that contains valid data. But later on, it says it's looking for d00020.

I guess it is an installation/configuration issue. The files in /usr/local/var/spool/cups
should be owned by user lp and group sys (or whatever the name of your system group is) and must be 
writable by user and readable by user and group.

Check your cupsd.conf for the specification of the system group and friends.

Helge

-- 
Helge Blischke
Softwareentwicklung
SRZ Berlin | Firmengruppe besscom
http://www.srz.de




More information about the cups mailing list