cups can't start hpijs

chris zqy2000zqy at gmail.com
Fri Oct 12 07:51:38 PDT 2007


> chris wrote:
> >>chris wrote:
> >>
> >>>>chris wrote:
> >>>>
> >>>>
> >>>>
> >>>>>when I use lp to print.  it can't start hpijs.
> >>>>
> >>>>
> >>>>Have you the package containing "hpijs" installed? (It may be named
> >>>>"hplip". See http://hplip.sf.net/).
> >>>>
> >>>>Is this still about making CUPS run on an embedded system? You could
> >>>>also try to install the driver using the generic PCL "driver" shipping
> >>>>with CUPS, using one of the suitable the generic PPDs (you need to see
> >>>>which of "laserjet.ppd", "generpcl.ppd" and "deskjet.ppd" works best for
> >>>>you).
> >>>>
> >>>>--
> >>>>Kurt Pfeifle
> >>>>System & Network Printing Consultant ---- Linux/Unix/Windows/Samba/CUPS
> >>>>Infotec Deutschland GmbH  .....................  Hedelfinger Strasse 58
> >>>>A RICOH Company  ...........................  D-70327 Stuttgart/Germany
> >>>
> >>>
> >>>
> >>>
> >>>Yes, it's on the embeded system.
> >>>I have the right PPD. also the hpijs.
> >>>manully "gs -sDEVICE=ijs -sIjsServer=hpijs -dIjsUseOutputFD...." can convert ps file to pcl.  and cups can print pcl file.
> >>>I think the hpijs is fine.
> >>>And the texttops pstops foomatic-rip all runs OK, until the "gs -sDEVICE=ijs -sIjsServer=hpijs -dIjsUseOutputFD...." run....
> >>>
> >>
> >>As Ghostscript spawns an hpijs subprocess to communicate with, it needs to know
> >>the path to the hpijs executable. Make sure hpijs in in the scope of the PATH
> >>environment CUPS uses (cereate a symbolic link if needed).
> >>
> >>Helge
> >>
> >>--
> >>Helge Blischke
> >>Softwareentwicklung
> >>
> >>H.Blischke at acm.org
> >
> >
> >
> > The log indicate PATH has /usr/bin and my hpijs is in /usr/bin
> > Is that right?
> > but I also has this error..
> > What process I missed.
> > Thanks.
> >
> > D [09/Oct/2007:19:44:28 +0000] StartJob: envp[0]="PATH=/opt/cups/lib/cups/filter:/bin:/usr/bin"
> > D [09/Oct/2007:19:44:28 +0000] StartJob: envp[1]="SOFTWARE=CUPS/1.1"
> > D [09/Oct/2007:19:44:28 +0000] StartJob: envp[2]="USER=root"
> > D [09/Oct/2007:19:44:28 +0000] StartJob: envp[3]="CHARSET=iso-8859-1"
> > D [09/Oct/2007:19:44:28 +0000] StartJob: envp[4]="LANG=en"
> > D [09/Oct/2007:19:44:28 +0000] StartJob: envp[5]="PPD=/opt/cups/etc/cups/ppd/2360.ppd"
> > D [09/Oct/2007:19:44:28 +0000] StartJob: envp[6]="CUPS_SERVERROOT=/opt/cups/etc/cups"
> > D [09/Oct/2007:19:44:28 +0000] StartJob: envp[7]="RIP_MAX_CACHE=8m"
> >
>
> What about the permissions? The CUPS filters, including foomatic-rip, run
> as user lp (and probably group lp ?)?
>
> Perhaps try to modify the Ghostscript command line defined by the
> PPD. Try first to replace the "-dPARANOIDSAFER" by "-dSAFER", and,
> if that still doew not work, completely delete this option and report
> the results.
>
> IIRC, the SAFER option in gs should only deny writing and /or deleting
> of files, and PARANOIDSAFER disables file system acces by gs at all.
> But the details have changed over the version history of Ghostscript.
>
> Helge
>
>
> --
> Helge Blischke
> Softwareentwicklung
>
> H.Blischke at acm.org







the permissions is 777.
and run as root

I modify the command
1 . replace "-dPARANOIDSAFER" by "-dSAFER"
2 . remove the "-dPARANOIDSAFER"
and both error is the same:


D [12/Oct/2007:22:39:09 +0000] [Job 2] Starting renderer
D [12/Oct/2007:22:39:09 +0000] [Job 2] JCL: <job data>
D [12/Oct/2007:22:39:09 +0000] [Job 2]
D [12/Oct/2007:22:39:09 +0000] [Job 2] renderer PID kid4=2653
D [12/Oct/2007:22:39:09 +0000] [Job 2] renderer command: gs -q -dBATCH -dSAFER -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 [12/Oct/2007:22:39:11 +0000] [Job 2] foomatic-gswrapper: gs '-sstdout=%stderr' '-dBATCH' '-dSAFER' '-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=%stdout' '-'
D [12/Oct/2007:22:39:12 +0000] [Job 2]
D [12/Oct/2007:22:39:12 +0000] [Job 2] Closing renderer
D [12/Oct/2007:22:39:13 +0000] [Job 2] unable to create Job object err=3
D [12/Oct/2007:22:39:13 +0000] [Job 2] Segmentation fault
D [12/Oct/2007:22:39:13 +0000] [Job 2] Error: /ioerror in --.outputpage--
D [12/Oct/2007:22:39:13 +0000] [Job 2] Operand stack:
D [12/Oct/2007:22:39:13 +0000] [Job 2] 1   true
D [12/Oct/2007:22:39:13 +0000] [Job 2] Execution stack:
D [12/Oct/2007:22:39:13 +0000] [Job 2] %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1   3   %oparray_pop   1   3   %oparray_pop   1   3   %oparray_pop   1   3   %oparray_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   0   3   %oparray_pop   --nostringval--   --nostringval--
D [12/Oct/2007:22:39:13 +0000] [Job 2] Dictionary stack:
D [12/Oct/2007:22:39:13 +0000] [Job 2] --dict:1130/1686(ro)(G)--   --dict:1/20(G)--   --dict:85/200(L)--
D [12/Oct/2007:22:39:13 +0000] [Job 2] Current allocation mode is local
D [12/Oct/2007:22:39:13 +0000] [Job 2] Last OS error: 32
D [12/Oct/2007:22:39:13 +0000] [Job 2] GPL Ghostscript 8.54: Unrecoverable error, exit code 1
D [12/Oct/2007:22:39:13 +0000] [Job 2] renderer return value: 1
D [12/Oct/2007:22:39:13 +0000] [Job 2] renderer received signal: 1
D [12/Oct/2007:22:39:13 +0000] [Job 2] Process dying with "Possible error on renderer command line or PostScript error. Check options.", exit stat: 3
D [12/Oct/2007:22:39:13 +0000] [Job 2] error: No such file or directory (2)
D [12/Oct/2007:22:39:13 +0000] [Job 2] Possible error on renderer command line or PostScript error. Check options.
D [12/Oct/2007:22:39:13 +0000] [Job 2] tail process done writing data to STDOUT
D [12/Oct/2007:22:39:13 +0000] [Job 2] KID4 finished
D [12/Oct/2007:22:39:13 +0000] [Job 2] KID3 exited with status 3
D [12/Oct/2007:22:39:13 +0000] [Job 2] Renderer exit stat: 3
D [12/Oct/2007:22:39:13 +0000] [Job 2] Renderer process finished
D [12/Oct/2007:22:39:13 +0000] [Job 2] Killing process 2652 (KID3)
D [12/Oct/2007:22:39:13 +0000] [Job 2] Process dying with "Error closing renderer", exit stat: 3
D [12/Oct/2007:22:39:13 +0000] [Job 2] error: Illegal seek (29)
D [12/Oct/2007:22:39:13 +0000] [Job 2] Error closing renderer
E [12/Oct/2007:22:39:13 +0000] PID 2557 stopped with status 3!
D [12/Oct/2007:22:39:13 +0000] UpdateJob: job 2, file 0 is complete.
D [12/Oct/2007:22:39:13 +0000] CancelJob: id = 2
D [12/Oct/2007:22:39:13 +0000] StopJob: id = 2, force = 0
D [12/Oct/2007:22:39:13 +0000] StopJob: printer state is 3






More information about the cups mailing list