tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Peter Mittermayer <p.mittermayer () astro ! univie ! ac ! at>
To: tru64-unix-managers
Subject: printing problem
Date: Fri, 27 Apr 2001 13:26:10 +0000	[thread overview]
Message-ID: <102653646721767.tru64-unix-managers.marc@archive.invalid> (raw)

Hi,

Sometimes it happens, that printjobs get printed twice or even more
often. I switched logging for lpr to DEBUG in syslog.conf. Following the
messages for one print job:

-------------------------------------------------------------------------------

Apr 26 19:52:48 tycho lpd[19627]: DEBUG -- lpd: accept on unix socket
Apr 26 19:52:48 tycho lpd[19627]: DEBUG -- fork_with_retries: child pid:
19746
Apr 26 19:52:48 tycho lpd[19746]: DEBUG -- chkhost: entered chkhost()
Apr 26 19:52:48 tycho lpd[19746]: DEBUG -- chkhost: checking
ahost=gauss.astro.univie.ac.at, domain=begxbmf7, baselen=5
Apr 26 19:52:48 tycho lpd[19746]: DEBUG -- chkhost: connection to
printer is not allowed in /etc/hosts.equiv
Apr 26 19:52:48 tycho lpd[19746]: DEBUG -- chkhost: connection to
printer is ok in /etc/hosts.lpd
Apr 26 19:52:48 tycho lpd[19746]: DEBUG -- lpd/doit: got RECVJOB request
for printer henrietta
Apr 26 19:52:49 tycho lpd[19746]: DEBUG -- printjob: entered printjob,
printer henrietta
Apr 26 19:52:49 tycho lpd[19746]: DEBUG -- printjob: sent ACK, printer
henrietta
Apr 26 19:52:49 tycho lpd[19746]: DEBUG -- printjob: got lock on file
'lock', printer henrietta
Apr 26 19:52:49 tycho lpd[19746]: INFO -- printjob: created file
/usr/spool/lpd/.daemon_running, printer henrietta
Apr 26 19:52:49 tycho lpd[19746]: DEBUG -- openpr: entered openpr(),
printer henrietta
Apr 26 19:52:49 tycho lpd[19746]: DEBUG -- openpr: in /etc/printcap LP
is @henrietta/laserjet, printer henrietta
Apr 26 19:52:49 tycho lpd[19746]: DEBUG -- openpr: opening TCP
connection, printer henrietta
Apr 26 19:52:49 tycho lpd[19746]: DEBUG -- Entering tcp_open()
Apr 26 19:52:49 tycho lpd[19746]: DEBUG -- Entering tcp_conn()
Apr 26 19:52:49 tycho lpd[19746]: DEBUG -- writeStatus: status file
update, printer henrietta: Thu Apr 26 19:52:49 2001: henrietta is ready
and printing
Apr 26 19:52:49 tycho lpd[19746]: ERROR -- henrietta: cannot write to
lockfile lock: Destination address required
Apr 26 19:52:49 tycho lpd[19746]: DEBUG -- Entering
printit(cfA216gauss.astro.univie.ac.at)
Apr 26 19:52:49 tycho lpd[19746]: DEBUG -- writeStatus: status file
update, printer henrietta: Thu Apr 26 19:52:49 2001: Attempting to print
dfA216gauss.astro.univie.ac.at
Apr 26 19:52:50 tycho lpd[19746]: DEBUG -- writeStatus: status file
update, printer henrietta: Thu Apr 26 19:52:50 2001: Notifying user...
Apr 26 19:52:50 tycho lpd[19746]: DEBUG -- writeStatus: status file
update, printer henrietta: Thu Apr 26 19:52:50 2001: henrietta is ready
and printing
Apr 26 19:52:50 tycho lpd[19746]: DEBUG -- writeStatus: status file
update, printer henrietta: Thu Apr 26 19:52:50 2001: 
Apr 26 19:52:52 tycho lpd[19746]: DEBUG -- read_some_chars: read timeout
after 2 seconds
Apr 26 19:52:52 tycho lpd[19746]: DEBUG -- close_pfd: closing LP, pfd 6
Apr 26 19:52:52 tycho lpd[19746]: DEBUG -- printjob - unlinking
/usr/spool/lpd/.daemon_running, checkpoint 7
Apr 26 19:52:52 tycho lpd[19746]: INFO -- printjob: exiting since all
done, printer henrietta

-------------------------------------------------------------------------------

Sometimes the following messages appear in lpr.log:

Apr 26 16:24:57 tycho lpd[17736]: ERROR -- printjob: previous daemon
exited abnormally, since file /usr/spool/lpd/.daemon_running exists,
printer henrietta
Apr 26 16:24:57 tycho lpd[17736]: ERROR -- henrietta: cannot write to
lockfile lock: Destination address required
Apr 26 16:24:57 tycho lpd[17736]: ERROR -- henrietta: lstat/open failed
for xxxxxxx@yyyyyy+206: No such file or directory
Apr 26 16:24:57 tycho lpd[17736]: ERROR -- henrietta: print error for
xxxxxxx@yyyyyy+206
Apr 26 16:24:57 tycho lpd[17736]: ERROR -- henrietta: lstat/open failed
for 2001-04-26-16:24:31.463: No such file or directory
Apr 26 16:24:57 tycho lpd[17736]: ERROR -- henrietta: print error for
2001-04-26-16:24:31.463
Apr 26 16:24:57 tycho lpd[17736]: ERROR -- henrietta: lstat/open failed
for henrietta: No such file or directory
Apr 26 16:24:57 tycho lpd[17736]: ERROR -- henrietta: print error for
henrietta


The entry in /etc/printcap is as follows:

henrietta|ps|text|lp|lw:\
        :lp=@henrietta/laserjet:\
        :mx#0:\
        :sd=/usr/spool/lpd:\
        :sf:\
        :sh:

With 'laserjet        9100/tcp' in /etc/services.

Can anybody please explain to me what this ERROR message means?? What
can be the reason for printing a printjob twice?

Thanks,

Peter

             reply	other threads:[~2001-04-27 13:26 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-27 13:26 Peter Mittermayer [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-04-01 12:46 Printing problem Mustapha Eddouik
2001-08-10 16:08 Skulley, William
2000-06-12 18:33 printing problem scoates
1999-09-23 20:08 Julie Tien
1999-02-25  1:47 Printing problem B&D Australia MIS
1998-01-19 13:17 Printing Problem Lou_A_Mullikin_at_32-bellevue
1998-01-19  9:49 Lou_A_Mullikin_at_32-bellevue
1997-10-23 17:47 Unix Administrator
1997-07-11 17:08 Printing problem david.w.chapman
1997-07-10 13:00 david.w.chapman
1996-09-07  5:42 Brian Salter-Duke
1995-09-29 22:25 Printing Problem mclaughl
1995-09-29 10:41 mclaughl
1995-09-27 18:55 mclaughl
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox