[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: my CUPS RUnneth Over!!!



On Sat, Feb 15, 2003 at 02:03:23AM -0500, Matt Price wrote:
| I saw on the web that CUPS stands for Can't Usually Print Stuff.

Heh.  It works well for me though.

| Once upon a time, CUPS worked for me.  Then I tasted of the fruit of
| knowledge,

_of Good and Evil_.  The Lord doesn't wish His people to be stupid.
He desires for them to be holy and righteous.

| the Lord grew angry, and cast me out of the Garden.

Ever since people have had knowledge of evil they ceased to be pure
and holy.  Holiness can't abide with unholiness, thus the expulsion.

| Now I struggle to find my way in. 

The way is straight and narrow and presented before you.  It is your
choice whether you want it or not.

| - printing broke somehow
| - I uninstalled everything (apt-get remove --purge)
| - I reinstalled everything
| 
| -printing was broke worse (couldn't use the web interface at all)
| 
| - so I upgraded to testing, and now the web interface works
| 
| But now I'm in the same predicament, namely, I can't print.  

Ok, getting back on the usual track of d-u ... :-)

| The only thing I can think to do here is to enclose a little bit of
| the error log.  I suspect the problem is in the interaction of CUPS
| with other parts of the print system (like ghostview?) but I can't
| figure out where exactly.  
| 
| So, I've enclosed my printers.conf and and some of the error_log.  Can
| anyone help me???
| 
| 
| First, the Printers.conf:
| 
| <DefaultPrinter commandlinez53>
| Info Lexmark Z53
| DeviceURI test:/dev/null

This URI can't be entirely right.  First, do you have a file named
/usr/lib/cups/backend/test?  If not then cups won't understand a
"test://" URI.  Secondly, sending data to /dev/null won't put ink on
paper, but I think you realize that :-).

| --> this seems fine -- test:/dev/null is what I used to have to have
|     in that line, always worked before, though I never understood why
|     I needed it.  Anyway, changing it back to usb:/dev/usb/lp0 just
|     adds one more error.

You want to add '//' after "usb:".  If that doesn't solve the error,
then something isn't right with your USB setup.

| Now, the error_log.  I've edited it somewhat, but left a lot in since
| I don't know what's important.  The errors start in the last section,
| which I've marked.  I hope someone cna figure out what's going on!!!  
| 
| thanks, 
| matt
| 
| here's the log:

| I [14/Feb/2003:23:24:33 -0500] Listening to 0:631
| D [14/Feb/2003:23:24:33 -0500] AddLocation: added location '/'
| D [14/Feb/2003:23:24:33 -0500] AllowIP: / allow 00000000/00000000
| D [14/Feb/2003:23:24:33 -0500] AllowIP: / allow 7f000001/ffffffff
| D [14/Feb/2003:23:24:33 -0500] AddLocation: added location '/admin'
| D [14/Feb/2003:23:24:33 -0500] AllowIP: /admin allow 00000000/00000000
| D [14/Feb/2003:23:24:33 -0500] AllowIP: /admin allow 7f000001/ffffffff

This is normal.  CUPS starts up, listens to port 631, and allows the
loopback interface to connect.

| D [14/Feb/2003:23:24:33 -0500] ReadConfiguration()
| ConfigurationFile="/etc/cups/cupsd.conf"

Read config file.  So far so good.

| -- SNIP --
| D [14/Feb/2003:23:24:34 -0500] LoadDevices: Added device
| "usb:/dev/usb/lp0"...

This looks like cups finds your USB printer device.  Is it really
there, though?  Does that file exist?  If you echo some characters to
it, does the printer react?

| -- SNIP --
[test page begun]
| I [14/Feb/2003:23:24:55 -0500] Started filter /usr/lib/cups/filter/pstops (PID 23301) for job 4.
| I [14/Feb/2003:23:24:55 -0500] Started filter
| /usr/lib/cups/filter/cupsomatic (PID 23302) for job 4.

| D [14/Feb/2003:23:24:55 -0500] perl: warning: Setting locale failed.
| D [14/Feb/2003:23:24:55 -0500] perl: warning: Please check that your
| locale settings:
| D [14/Feb/2003:23:24:55 -0500] LANGUAGE = (unset),
| D [14/Feb/2003:23:24:55 -0500] LC_ALL = (unset),
| D [14/Feb/2003:23:24:55 -0500] LANG = "en"
| D [14/Feb/2003:23:24:55 -0500] are supported and installed on your
| system.
| D [14/Feb/2003:23:24:55 -0500] perl: warning: Falling back to the
| standard locale ("C").

This warning from perl is not fatal, but it is a good idea to correct
it.  Set $LANG (in /etc/environment) to a locale listed in
/etc/locale.gen.

| -- SNIP --
[cupsomatic processes the PS without reporting any errors]
| -- SNIP --
| 

| D [14/Feb/2003:23:24:55 -0500] gs command: lexmarkwrapper -r 600 -t 0
| -c CMYK -m z53 -i business -d 5 -p /dev/lp0 -A 16 -B 8 -C 16 -D 16 >
| /dev/null

| D [14/Feb/2003:23:24:55 -0500] sh: /dev/lp0: Permission denied

This looks like the printer is configured to use /dev/lp0 as the
device, however the user cups is running as doesn't have permission to
write to it.

| -- HERE COME THE ERRORS --
| 
| D [14/Feb/2003:23:24:55 -0500] foomatic-gswrapper: gs '-dBATCH'
| '-dNOPAUSE' '-dSAFER' '-r600' '-sDEVICE=ppmraw'
| '-sOutputFile=/dev/fd/3' '/dev/fd/0' 3>&1 1>&2
| D [14/Feb/2003:23:24:55 -0500] GNU Ghostscript 6.53 (2002-02-13)

gs is run to convert the postscript into your printer's data stream.

| D [14/Feb/2003:23:24:56 -0500] Error: /ioerror in --.outputpage--
| D [14/Feb/2003:23:24:56 -0500] Operand stack:
| D [14/Feb/2003:23:24:56 -0500] 416.5   308.0   306.0   748.0   306.0
| 55.0   51.0   1   true
| D [14/Feb/2003:23:24:56 -0500] Execution stack:
| D [14/Feb/2003:23:24:56 -0500] %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   .runexec2   --nostringval--
| --nostringval--   --nostringval--   2   %stopped_push
| --nostringval--   7   3   %oparray_pop   --nostringval--
| --nostringval--   --nostringval--   --nostringval--
| D [14/Feb/2003:23:24:56 -0500] Dictionary stack:
| D [14/Feb/2003:23:24:56 -0500] --dict:1038/1476(ro)(G)--
| --dict:0/20(G)--   --dict:89/200(L)--
| D [14/Feb/2003:23:24:56 -0500] Current allocation mode is local
| D [14/Feb/2003:23:24:56 -0500] Last OS error: 32
| D [14/Feb/2003:23:24:56 -0500] GNU Ghostscript 6.53: Unrecoverable
| error, exit code 1

gs encountered an error while interpreting the PS code.  Either the PS
itself is defective, or gs on your system is.  Does the command
    $ gv /usr/share/cups/data/testprint.ps
work for you?  If so then I suspect the problem lies in the way
the cupsomatic scripts are modifying the PS before gs sees it.

HTH,
-D

-- 
Who can say, "I have kept my heart pure;
I am clean and without sin"?
        Proverbs 20:9
 
http://dman.ddts.net/~dman/

Attachment: pgpnY7w_oYg0D.pgp
Description: PGP signature


Reply to: