SUMMARY: SPARCprinter hanging

From: Mark Ferraretto (mferrare@physics.adelaide.edu.au)
Date: Wed Feb 05 1992 - 23:41:53 CST


My original message and the correct answer:

From: beard@maths.adelaide.edu.au
> Our sparcprinter has been hanging often in the middle of print jobs.
>
> When I run /home/flare/SPARCprinter/diag/ptst it returns the following
>
> flare:diag# ptst
> 01/30/92 15:44:04 lpvi0 lpvitest ERROR: Device busy 16
>
> 01/30/92 15:44:04 lpvi0 lpvitest ERROR: Couldn't open /dev/lpvi0.
> lpvitest on unit 0 failed.

You need to stop and/or disable the printer queue before you try using ptst.
Otherwise lpd will be keeping /dev/lpvi0 busy. If in doubt, you could always
kill -9 lpd processes (and restart them later).

> I can get the printer running by doing a lpc restart sparc and/or removing
> the top job on the queue or killing the xnews server but it always ends up
> stopping a few pages later. This is what appears in the log file.
>
> VM used: 645894. Unused: -15110
> ...
> VM used: 777902. Unused: 338
> VM used: 808510. Unused: 2498
> /usr/newsprint/lpd/of: 23633 Terminated
> np_filter: unable to verify font licenses.

This error message comes from not being able to open the directory
/usr/spool/licences. I vaguely remember having to create this directory because
it didn't exist in the SunOS as preinstalled by SUN.

> /usr/newsprint/printer_classes/SPARCprinter/bin/engine_ctl_SPARCprinter: Cannot connect to window server
> np_filter: unable to connect to server
> VM used: 464536. Unused: 18792
> np_filter: unable to verify font licenses.
> VM used: 760196. Unused: -22916
> np_filter: unable to verify font licenses.
> /usr/newsprint/printer_classes/SPARCprinter/bin/engine_ctl_SPARCprinter: Cannot connect to window server
> np_filter: unable to connect to server
> np_filter: unable to verify font licenses.
> np_filter: unable to verify font licenses.
> KIOCGTRANS: Invalid argument
> setkeyboardtranslation: restore_keyboard: Invalid argument
> WIN ioctl number c0286722: Bad file number

Do you have any extra font licences installed? If not, an empty
/usr/spool/licences directory might get rid of these error messages.
 
> ...
>
> The machine the printer is attatched to is an SPARC IPC running 4.1.1b. It has
> 24Meg RAM and 40MB swap.

And the CANVASDIR specified in the sparc printers spool directory's .param file
(e.g. /usr/spool/sparc/.param) must point to a local directory, i.e. NOT on an
NFS mounted partition, due to some peculiarities of the engine_ctl_SPARCprinter
program.

^^^^^^^^^^^
This was the problem. CANVASDIR was nfs mounted.

Thanks to
David Beard: beard@maths.adelaide.edu.au
shipley@kizmiaz.tcs.com
Ian Daniel: Daniel@europarc.xerox.com
Dave Zarnoch: smw002!IBX.COM!davez@uunet.uu.net

-- 
       _             Name  : Mark Ferraretto	   Title: Computing Officer
      \  \           Place : Department of Physics and Mathematical Physics
 ||     \  \                 University of Adelaide
==========>==>==--   Aarnet: mferrare@physics.adelaide.edu.au
 ||      /  /        Phone : +61 8 228 5428
       /_ /          Phax  : +61 8 224 0464



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:06:35 CDT