I have 1200 printers defined, and lots of print flowing around. Due to
the number of hosts we have, I preallocate printer ID's in groups of
256, and we also have some old ID's hanging around waiting to be
reused. Hence, not all of my queues have valid destinations.
To prevent things from piling up, we run the following nightly via
cron to clean up old jobs:
checkpc -f -r -A 14 -t 1
This removes any job older than 14 days and truncates our logs.
Problem is, if the job is still active in the queue, I get error
messages logged to syslog regarding missing data files similar to
this:
Feb 21 21:25:51 ...... (Worker - Remote)[10858]: J02A: Filter_files_in_job: job
'[EMAIL PROTECTED]', cannot open data file 'dfA000562....'
This loops through infinitely, repeating the log message each time.
Printer: [EMAIL PROTECTED] '"............."' (dest [EMAIL PROTECTED])
Queue: 1 printable job
Server: pid 9485 active
Unspooler: pid 11532 active
Status: attempt 264, sleeping 300 before retry at 21:30:52.087
Rank Owner/ID Pr/Class Job Files Size Time
stalled(125sec) [EMAIL PROTECTED] A 562 (STDIN) 3907 15:22:13
Printer '[EMAIL PROTECTED]' - cannot open connection - No such file or directory
I have to stop the queue and purge the queue entry before the noise stops.
I wouldn't mind a syslog message once telling me an invalid queue
entry with no matching data file was removed, but the repeating
messages all end up in my mailbox. ;]
Is there a configuration setting I missed which tells LPRng to remove
invalid queue entries with no matching data file?
Is there an automated way to purge invalid jobs?
** <developer>
**
** I just saw this while talking to Vivian, She Who Guards My Time...
** Here is the quick answer: temporarily stop printing. Unfortunately you
** need to do this on a per printer basis:
** printers=`lpc status | ..... <- left to the clever user`
** foreach printer in $printers ; do
** lpc -P$printer stop;
** lpc -P$printer kill;
** sleep 3
** checkpc -f -r -A 14 -t 1 -P$printer
** lpc -P$printer start
** done
**
** Patrick ("He who steals Time gets to Do Time...") Powell
** </developer>
Thanks!
Russell
-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRng MAILING LIST
The address you post from or your Reply-To address MUST be your
subscription address
If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.
To subscribe to a list with name LIST, send mail to [EMAIL PROTECTED]
with: | example:
subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED]
If you have major problems, call Patrick Powell or one of the friendly
staff at Astart Technologies for help. Astart also does support for LPRng.
Also, check the Web Page at: http://www.lprng.com for any announcements.
Astart Technologies (LPRng - Print Spooler http://www.lprng.com)
6741 Convoy Court
San Diego, CA 92111
858-874-6543 FAX 858-751-2435
-----------------------------------------------------------------------------