print error , 3 Permission denied

zqy zqy2000zqy at 163.com
Mon Oct 8 02:04:21 PDT 2007


...Now the permisson denied is OK. I change some other directory's permisson like /usr /bi /sbin .... I'm not quite sure which is the root cause now.  But now there is some other error as below.

It seems like when run "gs" something wrong.  Is the gs command is nessesary?  thanks




D [08/Oct/2007:16:39:12 +0000] StartJob: filterfds[1] = [ 9 -1 ]
D [08/Oct/2007:16:39:12 +0000] StartJob: filter = "/opt/cups/lib/cups/filter/texttops"
D [08/Oct/2007:16:39:12 +0000] StartJob: filterfds[0] = [ 10 11 ]
D [08/Oct/2007:16:39:12 +0000] start_process("/opt/cups/lib/cups/filter/texttops", 0xbeacac74, 0xbeac9fe4, 9, 11, 8)
I [08/Oct/2007:16:39:12 +0000] Started filter /opt/cups/lib/cups/filter/texttops (PID 10410) for job 7.
D [08/Oct/2007:16:39:12 +0000] StartJob: filter = "/opt/cups/lib/cups/filter/pstops"
D [08/Oct/2007:16:39:12 +0000] StartJob: filterfds[1] = [ 9 12 ]
D [08/Oct/2007:16:39:12 +0000] start_process("/opt/cups/lib/cups/filter/pstops", 0xbeacac74, 0xbeac9fe4, 10, 12, 8)
I [08/Oct/2007:16:39:12 +0000] Started filter /opt/cups/lib/cups/filter/pstops (PID 10411) for job 7.
D [08/Oct/2007:16:39:12 +0000] StartJob: filter = "/opt/cups/lib/cups/filter/foomatic-rip"
D [08/Oct/2007:16:39:12 +0000] StartJob: filterfds[0] = [ 10 11 ]
D [08/Oct/2007:16:39:12 +0000] start_process("/opt/cups/lib/cups/filter/foomatic-rip", 0xbeacac74, 0xbeac9fe4, 9, 11, 8)
I [08/Oct/2007:16:39:12 +0000] Started filter /opt/cups/lib/cups/filter/foomatic-rip (PID 10412) for job 7.
D [08/Oct/2007:16:39:12 +0000] StartJob: backend = "/opt/cups/lib/cups/backend/usb"
D [08/Oct/2007:16:39:12 +0000] StartJob: filterfds[1] = [ -1 9 ]
D [08/Oct/2007:16:39:12 +0000] start_process("/opt/cups/lib/cups/backend/usb", 0xbeacac74, 0xbeac9fe4, 10, 9, 8)
I [08/Oct/2007:16:39:12 +0000] Started backend /opt/cups/lib/cups/backend/usb (PID 10413) for job 7.
D [08/Oct/2007:16:39:12 +0000] ProcessIPPRequest: 7 status_code=0
D [08/Oct/2007:16:39:12 +0000] CloseClient: 7
D [08/Oct/2007:16:39:12 +0000] [Job 7] LPGETSTATUS returned a port status of 10...
W [08/Oct/2007:16:39:12 +0000] [Job 7] Printer fault!
D [08/Oct/2007:16:39:12 +0000] [Job 7] Page = 612x792; 18,36 to 594,783
D [08/Oct/2007:16:39:12 +0000] [Job 7] ppd->num_fonts = 35
D [08/Oct/2007:16:39:12 +0000] [Job 7] ppd->fonts[0] = AvantGarde-Book
D [08/Oct/2007:16:39:12 +0000] [Job 7] ppd->fonts[1] = AvantGarde-BookOblique
D [08/Oct/2007:16:39:12 +0000] [Job 7] ppd->fonts[2] = AvantGarde-Demi
D [08/Oct/2007:16:39:12 +0000] [Job 7] ppd->fonts[3] = AvantGarde-DemiOblique
D [08/Oct/2007:16:39:12 +0000] [Job 7] ppd->fonts[4] = Bookman-Demi
D [08/Oct/2007:16:39:12 +0000] [Job 7] ppd->fonts[5] = Bookman-DemiItalic
D [08/Oct/2007:16:39:12 +0000] [Job 7] ppd->fonts[6] = Bookman-Light
D [08/Oct/2007:16:39:12 +0000] [Job 7] ppd->fonts[7] = Bookman-LightItalic
D [08/Oct/2007:16:39:12 +0000] [Job 7] ppd->fonts[8] = Courier
D [08/Oct/2007:16:39:12 +0000] [Job 7] ppd->fonts[9] = Courier-Bold
D [08/Oct/2007:16:39:12 +0000] [Job 7] ppd->num_fonts = 35
D [08/Oct/2007:16:39:12 +0000] [Job 7] ppd->fonts[0] = AvantGarde-Book
D [08/Oct/2007:16:39:12 +0000] [Job 7] ppd->fonts[1] = AvantGarde-BookOblique
D [08/Oct/2007:16:39:12 +0000] [Job 7] ppd->fonts[2] = AvantGarde-Demi
D [08/Oct/2007:16:39:12 +0000] [Job 7] ppd->fonts[3] = AvantGarde-DemiOblique
D [08/Oct/2007:16:39:12 +0000] [Job 7] ppd->fonts[4] = Bookman-Demi
D [08/Oct/2007:16:39:12 +0000] [Job 7] ppd->fonts[5] = Bookman-DemiItalic
D [08/Oct/2007:16:39:12 +0000] [Job 7] ppd->fonts[6] = Bookman-Light
D [08/Oct/2007:16:39:12 +0000] [Job 7] ppd->fonts[7] = Bookman-LightItalic
D [08/Oct/2007:16:39:12 +0000] [Job 7] ppd->fonts[8] = Courier
D [08/Oct/2007:16:39:12 +0000] [Job 7] Page = 612x792; 18,36 to 594,783
D [08/Oct/2007:16:39:12 +0000] [Job 7] slowcollate=0, slowduplex=0, sloworder=0
D [08/Oct/2007:16:39:12 +0000] [Job 7] 0 %%BoundingBox: 0 0 612 792
D [08/Oct/2007:16:39:12 +0000] [Job 7] 0 %%Creator: texttops/CUPS v1.1.23
D [08/Oct/2007:16:39:12 +0000] [Job 7] 0 %%CreationDate: Mon Oct  8 16:39:12 2007
D [08/Oct/2007:16:39:12 +0000] [Job 7] 0 %%Title: 111
D [08/Oct/2007:16:39:12 +0000] [Job 7] 0 %%For: root
D [08/Oct/2007:16:39:12 +0000] [Job 7] 0 %%Pages: (atend)
D [08/Oct/2007:16:39:12 +0000] [Job 7] 0 %%DocumentNeededResources: font Courier-Bold
D [08/Oct/2007:16:39:12 +0000] [Job 7] 0 %%+ font Courier
D [08/Oct/2007:16:39:12 +0000] [Job 7] 0 %%DocumentSuppliedResources: procset texttops 1.1 0
D [08/Oct/2007:16:39:12 +0000] [Job 7] 0 %%+ font Courier-Bold
D [08/Oct/2007:16:39:12 +0000] [Job 7] 0 %%+ font Courier
D [08/Oct/2007:16:39:12 +0000] [Job 7] 0 %%EndComments
D [08/Oct/2007:16:39:12 +0000] [Job 7] 0 %%BeginProlog
D [08/Oct/2007:16:39:12 +0000] [Job 7] 0 %%BeginResource: font Courier-Bold
D [08/Oct/2007:16:39:12 +0000] [Job 7] 0 %%CreationDate: Wed Dec 22 1999
D [08/Oct/2007:16:39:14 +0000] AcceptClient: 7 from localhost:631.
D [08/Oct/2007:16:39:14 +0000] ReadClient: 7 POST /admin/ HTTP/1.1
D [08/Oct/2007:16:39:14 +0000] SendError: 7 code=401 (Unauthorized)
D [08/Oct/2007:16:39:14 +0000] CloseClient: 7
D [08/Oct/2007:16:39:14 +0000] AcceptClient: 7 from localhost:631.
D [08/Oct/2007:16:39:14 +0000] ReadClient: 7 POST /admin/ HTTP/1.1
I [08/Oct/2007:16:39:14 +0000] Printer '2360' started by 'root'.
D [08/Oct/2007:16:39:14 +0000] ProcessIPPRequest: 7 status_code=0
D [08/Oct/2007:16:39:14 +0000] CloseClient: 7
D [08/Oct/2007:16:39:17 +0000] [Job 7] foomatic-rip version $Revision$ running...
D [08/Oct/2007:16:39:17 +0000] [Job 7] Parsing PPD file ...
D [08/Oct/2007:16:39:17 +0000] [Job 7] *cupsFilter: "application/vnd.cups-postscript 0 foomatic-rip"
D [08/Oct/2007:16:39:17 +0000] [Job 7] Added option ColorSpace
D [08/Oct/2007:16:39:17 +0000] [Job 7] Added option Resolution
D [08/Oct/2007:16:39:17 +0000] [Job 7] Added option PageSize
D [08/Oct/2007:16:39:17 +0000] [Job 7] Added option PageRegion
D [08/Oct/2007:16:39:17 +0000] [Job 7] Added option Model
D [08/Oct/2007:16:39:17 +0000] [Job 7] Added option PrintoutMode
D [08/Oct/2007:16:39:17 +0000] [Job 7] Added option ImageableArea
D [08/Oct/2007:16:39:17 +0000] [Job 7] Added option PaperDimension
D [08/Oct/2007:16:39:17 +0000] [Job 7] Added option Quality
D [08/Oct/2007:16:39:17 +0000] [Job 7] Added option Font
D [08/Oct/2007:16:39:17 +0000] [Job 7]
D [08/Oct/2007:16:39:17 +0000] [Job 7] Parameter Summary
D [08/Oct/2007:16:39:17 +0000] [Job 7] -----------------
D [08/Oct/2007:16:39:17 +0000] [Job 7]
D [08/Oct/2007:16:39:17 +0000] [Job 7] Spooler: cups
D [08/Oct/2007:16:39:17 +0000] [Job 7] Printer: 2360
D [08/Oct/2007:16:39:17 +0000] [Job 7] Shell:
D [08/Oct/2007:16:39:17 +0000] [Job 7] PPD file: /opt/cups/etc/cups/ppd/2360.ppd
D [08/Oct/2007:16:39:17 +0000] [Job 7] ATTR file:
D [08/Oct/2007:16:39:17 +0000] [Job 7] Printer model: HP DeskJet D2300 Foomatic/hpijs (recommended)
D [08/Oct/2007:16:39:17 +0000] [Job 7] Job title: 111
D [08/Oct/2007:16:39:17 +0000] [Job 7] File(s) to be printed:
D [08/Oct/2007:16:39:17 +0000] [Job 7] <STDIN>
D [08/Oct/2007:16:39:17 +0000] [Job 7]
D [08/Oct/2007:16:39:17 +0000] [Job 7] GhostScript extra search path ('GS_LIB'): /opt/cups/share/cups/fonts
D [08/Oct/2007:16:39:17 +0000] [Job 7]
D [08/Oct/2007:16:39:17 +0000] [Job 7] ================================================
D [08/Oct/2007:16:39:17 +0000] [Job 7]
D [08/Oct/2007:16:39:17 +0000] [Job 7] File: <STDIN>
D [08/Oct/2007:16:39:17 +0000] [Job 7]
D [08/Oct/2007:16:39:17 +0000] [Job 7] ================================================
D [08/Oct/2007:16:39:17 +0000] [Job 7]
D [08/Oct/2007:16:39:17 +0000] [Job 7] Reading PostScript input ...
D [08/Oct/2007:16:39:17 +0000] [Job 7] --> This document is DSC-conforming!
D [08/Oct/2007:16:39:17 +0000] [Job 7]
D [08/Oct/2007:16:39:17 +0000] [Job 7] -----------
D [08/Oct/2007:16:39:17 +0000] [Job 7] Found: %%BeginProlog
D [08/Oct/2007:16:39:17 +0000] [Job 7] 0 %%EndResource
D [08/Oct/2007:16:39:17 +0000] [Job 7] 0 %%BeginResource: font Courier
D [08/Oct/2007:16:39:17 +0000] [Job 7] 0 %%CreationDate: Wed Dec 22 1999
D [08/Oct/2007:16:39:17 +0000] [Job 7] 0 %%EndResource
D [08/Oct/2007:16:39:17 +0000] [Job 7] 0 %%BeginResource: procset texttops 1.1 0
D [08/Oct/2007:16:39:17 +0000] [Job 7] 0 %%EndResource
D [08/Oct/2007:16:39:17 +0000] [Job 7] 0 %%EndProlog
D [08/Oct/2007:16:39:17 +0000] [Job 7] 0 %%Page: 1 1
D [08/Oct/2007:16:39:17 +0000] [Job 7] 0 %%Page: 1 1
D [08/Oct/2007:16:39:17 +0000] [Job 7] pw = 576.0, pl = 747.0
D [08/Oct/2007:16:39:17 +0000] [Job 7] PageLeft = 18.0, PageRight = 594.0
D [08/Oct/2007:16:39:17 +0000] [Job 7] PageTop = 783.0, PageBottom = 36.0
D [08/Oct/2007:16:39:17 +0000] [Job 7] PageWidth = 612.0, PageLength = 792.0
D [08/Oct/2007:16:39:17 +0000] [Job 7] 0 %%Trailer
D [08/Oct/2007:16:39:17 +0000] [Job 7] Saw Trailer!
D [08/Oct/2007:16:39:17 +0000] [Job 7] Saw EOF!
D [08/Oct/2007:16:39:17 +0000] [Job 7] Found: %%EndProlog
D [08/Oct/2007:16:39:17 +0000] [Job 7]
D [08/Oct/2007:16:39:17 +0000] [Job 7] -----------
D [08/Oct/2007:16:39:17 +0000] [Job 7] Found: %%BeginSetup
D [08/Oct/2007:16:39:17 +0000] [Job 7] Found: %%BeginFeature: *PrintoutMode Normal
D [08/Oct/2007:16:39:17 +0000] [Job 7] Option: PrintoutMode=Normal --> Setting option
D [08/Oct/2007:16:39:17 +0000] [Job 7] Found: %% FoomaticRIPOptionSetting: PrintoutMode=Normal
D [08/Oct/2007:16:39:17 +0000] [Job 7] Option: PrintoutMode=Normal --> Setting option
D [08/Oct/2007:16:39:17 +0000] [Job 7] Found: %%BeginFeature: *Quality FromPrintoutMode
D [08/Oct/2007:16:39:17 +0000] [Job 7] Option: Quality=FromPrintoutMode --> Setting option
D [08/Oct/2007:16:39:17 +0000] [Job 7] Found: %% FoomaticRIPOptionSetting: Quality=@PrintoutMode
D [08/Oct/2007:16:39:17 +0000] [Job 7] Option: Quality=FromPrintoutMode --> Setting option
D [08/Oct/2007:16:39:17 +0000] [Job 7] Found: %%BeginFeature: *PageSize Letter
D [08/Oct/2007:16:39:17 +0000] [Job 7] Option: PageSize=Letter --> Setting option
D [08/Oct/2007:16:39:17 +0000] [Job 7] Found: %% FoomaticRIPOptionSetting: PageSize=Letter
D [08/Oct/2007:16:39:17 +0000] [Job 7] Option: PageSize=Letter --> Setting option
D [08/Oct/2007:16:39:17 +0000] [Job 7] Found: %%EndSetup
D [08/Oct/2007:16:39:17 +0000] [Job 7] Inserting PostScript code for CUPS' page accounting
D [08/Oct/2007:16:39:17 +0000] [Job 7]
D [08/Oct/2007:16:39:17 +0000] [Job 7] -----------
D [08/Oct/2007:16:39:17 +0000] [Job 7] New page:  1 1
D [08/Oct/2007:16:39:17 +0000] [Job 7] Inserting option code into "PageSetup" section.
D [08/Oct/2007:16:39:17 +0000] [Job 7] No page header or page header not DSC-conforming
D [08/Oct/2007:16:39:17 +0000] [Job 7] Flushing FIFO.
D [08/Oct/2007:16:39:17 +0000] [Job 7]
D [08/Oct/2007:16:39:17 +0000] [Job 7] Starting renderer
D [08/Oct/2007:16:39:17 +0000] [Job 7] JCL: <job data>
D [08/Oct/2007:16:39:17 +0000] [Job 7]
D [08/Oct/2007:16:39:17 +0000] [Job 7] renderer PID kid4=10487
D [08/Oct/2007:16:39:17 +0000] [Job 7] renderer command: gs -q -dBATCH -dPARANOIDSAFER -dQUIET -dNOPAUSE -sDEVICE=ijs -sIjsServer=hpijs -sDeviceManufacturer="HEWLETT-PACKARD" -sDeviceModel="deskjet 3600" -dDEVICEWIDTHPOINTS=612 -dDEVICEHEIGHTPOINTS=792 -r300 -sIjsParams=Quality:Quality=0,Quality:ColorMode=2,Quality:MediaType=0,Quality:PenSet=1 -dIjsUseOutputFD -sOutputFile=- -
D [08/Oct/2007:16:39:17 +0000] [Job 7] foomatic-gswrapper: gs '-dBATCH' '-dPARANOIDSAFER' '-dQUIET' '-dNOPAUSE' '-sDEVICE=ijs' '-sIjsServer=hpijs' '-sDeviceManufacturer=HEWLETT-PACKARD' '-sDeviceModel=deskjet 3600' '-dDEVICEWIDTHPOINTS=612' '-dDEVICEHEIGHTPOINTS=792' '-r300' '-sIjsParams=Quality:Quality=0,Quality:ColorMode=2,Quality:MediaType=0,Quality:PenSet=1' '-dIjsUseOutputFD' '-sOutputFile=/dev/fd/3' '/dev/fd/0' 3>&1 1>&2
D [08/Oct/2007:16:39:18 +0000] [Job 7] sh: gs: Permission denied
D [08/Oct/2007:16:39:18 +0000] [Job 7] renderer return value: 127
D [08/Oct/2007:16:39:18 +0000] [Job 7] renderer received signal: 127
D [08/Oct/2007:16:39:18 +0000] [Job 7] Process dying with "The renderer command line returned an unrecognized error code 127.", exit stat: 1
D [08/Oct/2007:16:39:18 +0000] [Job 7] error: No such file or directory (2)
D [08/Oct/2007:16:39:18 +0000] [Job 7] The renderer command line returned an unrecognized error code 127.
D [08/Oct/2007:16:39:18 +0000] [Job 7]
D [08/Oct/2007:16:39:18 +0000] [Job 7] Closing renderer
D [08/Oct/2007:16:39:18 +0000] [Job 7] KID3 exited with status 1
D [08/Oct/2007:16:39:18 +0000] [Job 7] Renderer exit stat: 1
D [08/Oct/2007:16:39:18 +0000] [Job 7] tail process done writing data to STDOUT
D [08/Oct/2007:16:39:18 +0000] [Job 7] KID4 finished
D [08/Oct/2007:16:39:18 +0000] [Job 7] Renderer process finished
D [08/Oct/2007:16:39:18 +0000] [Job 7] Killing process 10486 (KID3)
D [08/Oct/2007:16:39:18 +0000] [Job 7] Process dying with "Error closing renderer", exit stat: 1
D [08/Oct/2007:16:39:18 +0000] [Job 7] error: Bad file descriptor (9)
D [08/Oct/2007:16:39:18 +0000] [Job 7] Error closing renderer
E [08/Oct/2007:16:39:20 +0000] PID 10412 stopped with status 1!
D [08/Oct/2007:16:39:20 +0000] UpdateJob: job 7, file 0 is complete.
D [08/Oct/2007:16:39:20 +0000] CancelJob: id = 7
D [08/Oct/2007:16:39:20 +0000] StopJob: id = 7, force = 0
D [08/Oct/2007:16:39:20 +0000] StopJob: printer state is 3























> I notice  I changed $prefix/var/spool/cups to rwxrwxrwx and then restart cupsd, the permission changed...
>
>
> linux:/opt/cups # ll var/spool/
> total 0
> drwx--x---  3 root root  72 2007-10-08 15:57 .
> drwxr-xr-x  4 root root  96 2007-10-08 15:57 ..
> drwxrwxrwx  3 root sys  184 2007-10-08 16:03 cups
> linux:/opt/cups # ./sbin/cupsd
> linux:/opt/cups # ll var/spool/
> total 0
> drwx--x---  3 root root  72 2007-10-08 15:57 .
> drwxr-xr-x  4 root root  96 2007-10-08 15:57 ..
> drwx--x---  3 root sys  184 2007-10-08 16:03 cups
>
> I run all the related application as root. why
>
> I need build the cups in SUSE 10 and move it run on another machine.
> But If I build with --prefix=/opt/cups and run on SUSE 10, it works.
> But if I run on the other machine,I always get these permission denied logs.
> But I run all the related application as root. why permisson denied...
>
>
>
>
> > > > So which compile options (which "./configure" parameters) did you use?
> > >
> > >
> > >
> > > ./configure --prefix=/opt/cups
> > > and make install
> > >
> > > then run all the app in /opt/cups...
> >
> > Please check permissions from /opt/cups/var, /opt/cups/var/spool and /opt/cups/var/spool/cups.
> >
> > I assume you have a permissions problem in one of this directories.
>





More information about the cups mailing list