Network printing error

Post Reply
bob
Posts: 4
Joined: Sat Oct 07, 2006 6:44 pm

Network printing error

Post by bob »

Hi Florian,

I'm getting an error from Ghostscript on my Ubuntu server which I'm also using as a print server. Here's the excerpt from the turboprint_cups.log:

New print job Sat Oct 7 11:37:37 PDT 2006 (pstoturboprint 1.94-2)
job-id 102
user remroot
title tp6046_23.tmp
copies 1
options Resolution=600x600dpi_1 cpi=10 lpi=6 PageSize=Letter zedoColorModel=RGB zedoDithering=ErrorDiffusion MediaType=Plainpaper_0 InputSlot=AutomaticFeed zedoColorCorrection=1
zedoUserColor=0 zedoMirror=0 zedoDuplexAdjust=0 zedoBrightness=0 zedoContrast=0 zedoGamut=0 zedoIntensity=0 zedoGamma=180 zedoColorY=0 zedoColorC=0 zedoColorM=0 zedoColorK=0 prettyprint scaling=100
file /var/spool/cups/d00102-001
test directory access:
drwxr-xr-x 2 root root 10744 Oct 7 11:29 /usr/share/turboprint/printers
linux-gate.so.1 => (0xffffe000)
libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7f09000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7ddb000)
/lib/ld-linux.so.2 (0xb7f35000)
/usr/bin/tpprint -v2 -l/var/log/turboprint_cups.log --ppdfile=/etc/cups/ppd/tp0.ppd --psfeatures /tmp/pstoturboprint18848.chunk /tmp/pstoturboprint18848.var
Searching PPD file and postscript header for options...
----------- Start of var file -----------
GSPPDFOUND=1
GSCOLORMODE=2
GSXDPI=600
GSYDPI=600
GSWIDTH=5217
GSHEIGHT=6765
TPWIDTH=8696
TPHEIGHT=11276
TPXOFFSET=0
TPYOFFSET=0
----------- End of var file -----------
GSCOMMANDLINE=gs -sDEVICE=pcx24b -r600x600 -g5217x6765 -dSAFER -dNOPAUSE -dBATCH
TPCOMMANDLINE=/usr/bin/tpprint -a0 -e1 -s8696x11276 -v2 -l/var/log/turboprint_cups.log ---Resolution=600x600dpi_1 ---cpi=10 ---lpi=6 ---PageSize=Letter ---zedoColorModel=RGB ---zedoDithering=ErrorDiffusion ---MediaType=Plainpaper_0 ---InputSlot=AutomaticFeed ---zedoColorCorrection=1 ---zedoUserColor=0 ---zedoMirror=0 ---zedoDuplexAdjust=0 ---zedoBrightness=0 ---zedoContrast=0 ---zedoGamut=0 ---zedoIntensity=0 ---zedoGamma=180 ---zedoColorY=0 ---zedoColorC=0 ---zedoColorM=0 ---zedoColorK=0 ---prettyprint ---scaling=100 --ppdfile=/etc/cups/ppd/tp0.ppd --psheader=/tmp/pstoturboprint18848.chunk
COMPLETEPIPE=/usr/share/turboprint/lib/tpstdin --paste /tmp/pstoturboprint18848.chunk | gs -sDEVICE=pcx24b -r600x600 -g5217x6765 -dSAFER -dNOPAUSE -dBATCH -sOutputFile=/tmp/pstoturboprint18848.fifo - >> /var/log/turboprint_cups.log
----------- Start of print job -----------
GPL Ghostscript 8.01 (2004-01-30)
Copyright (C) 2004 artofcode LLC, Benicia, CA. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Error: /typecheck in --.unread--
Operand stack:
true --nostringval-- true 0
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1 3 %oparray_pop --nostringval-- 1 1 3 --nostringval-- %for_pos_int_continue --nostringval-- --nostringval-- --nostringval--
Dictionary stack:
--dict:1051/1123(ro)(G)-- --dict:0/20(G)-- --dict:69/200(L)--
Current allocation mode is local
Last OS error: 2
------------ End of print job ------------

Note that I can print fine & dandy locally and that I *used* to be able to print remotely, too. Can you think of any reason why Ghostscript would fail over the network, but not while printing locally?

Thanks for your help!
zedonet
Site Admin
Posts: 2156
Joined: Fri Oct 06, 2006 8:02 am

Post by zedonet »

It might be an application or document specific problem. Ghostscript reports such errors e.g. for certain PDF documents. From which application did you print?

If you printed from an application that can also save the print job to a file (e.g. OpenOffice, Firefox) you can save the print job and run ghostscript from command line:

gs <document name>

If the same error occurs, it would be helpful if you could email the postscript file.
bob
Posts: 4
Joined: Sat Oct 07, 2006 6:44 pm

RE: Network printing problems

Post by bob »

zedonet wrote:It might be an application or document specific problem. Ghostscript reports such errors e.g. for certain PDF documents. From which application did you print?

If you printed from an application that can also save the print job to a file (e.g. OpenOffice, Firefox) you can save the print job and run ghostscript from command line:

gs <document name>

If the same error occurs, it would be helpful if you could email the postscript file.
Hi,

Thanks for getting back. The job I was trying to print was a testpage from the xtpsetup dialog on my client box. I did try printing a text file directly from Ghostscript on my client machine & got this:

Code: Select all

$ gs turboprint_problems.txt
ESP Ghostscript 815.02 (2006-04-19)
Copyright (C) 2004 artofcode LLC, Benicia, CA.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
ERROR: /undefined in sudo
Operand stack:
   578
Execution stack:
   %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--
Dictionary stack:
   --dict:1118/1686(ro)(G)--   --dict:0/20(G)--   --dict:80/200(L)--
Current allocation mode is local
Current file position is 12
ESP Ghostscript 815.02: Unrecoverable error, exit code 1
Seems like either it can't find the print server machine or I've got permissions issues (or both).

One thing I noticed is, there's now no client.conf file in /etc/cups anymore. I tried adding one defining my print server but it didn't work.

I own a PrintFab license for my Mac, too, but I haven't fired it up in a while to see if it still works; that'll be the next project ;-)

Thanks for the help,

Curtis
zedonet
Site Admin
Posts: 2156
Joined: Fri Oct 06, 2006 8:02 am

Post by zedonet »

There is an error from ghostscript

Code: Select all

ERROR: /undefined in sudo
"sudo" is not a postscript command - it looks like if your installation of the CUPS printing system is messed up and doesn't convert print jobs to postscript. This may not be a problem for print jobs from the client as the client does the postscript formatting.

I suggest to remove the package cups and install it again

sudo apt-get remove cupsys
sudo apt-get install cupsys
bob
Posts: 4
Joined: Sat Oct 07, 2006 6:44 pm

RE: Network printing problems

Post by bob »

Hi Florian,
I suggest to remove the package cups and install it again

sudo apt-get remove cupsys
sudo apt-get install cupsys
I tried reinstalling cups on the client machine; same issue. Note that the printing problem I'm having is from the client, not locally from the server:

Code: Select all

$ gs turboprint_problems.txt
ESP Ghostscript 815.02 (2006-04-19)
Copyright (C) 2004 artofcode LLC, Benicia, CA.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
ERROR: /undefined in sudo
Operand stack:
   578
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval- -   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   fa lse   1   %stopped_push   1   3   %oparray_pop   1   3   %oparray_pop   1   3 %oparray_pop   1   3   %oparray_pop   .runexec2   --nostringval--   --nostringva l--   --nostringval--   2   %stopped_push   --nostringval--
Dictionary stack:
   --dict:1118/1686(ro)(G)--   --dict:0/20(G)--   --dict:80/200(L)--
Current allocation mode is local
Current file position is 12
ESP Ghostscript 815.02: Unrecoverable error, exit code 1
Thanks again for your help,

Curtis
bob
Posts: 4
Joined: Sat Oct 07, 2006 6:44 pm

Post by bob »

Hello,

The plot thickens. It seems I can, in fact print from my client machine via my server, but there's a delay involved: the print job doesn't run until 06:25 (which, oddly enough is when my cron.daily job runs).

I'm beginning to suspect CUPS but, after looking at the associated config files, I'm at a loss as to what exactly is going on...

One last question: What do you think this means?

Code: Select all

ERROR:
tpfile_class::read_mode: item 'Weave' not found
I found it in the /var/log/turboprint_cups.log file. Is there a configuration setting I can use to prevent this?

Thanks again & keep up the great work,

Curtis
zedonet
Site Admin
Posts: 2156
Joined: Fri Oct 06, 2006 8:02 am

Post by zedonet »

Hi,
this message

Code: Select all

ERROR:
tpfile_class::read_mode: item 'Weave' not found
is an Epson driver specific message saying that no special "microweave" mode is defined for this print resolution, a standard mode is used instead ("microweaving" is interleaving of print lines to prevent visible "stripes" or "banding").

It has nothing to do with printing problems. It is not an error and should not be reported - will be fixed in the next release.
Post Reply