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 _at_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_at_yyyyyy+206: No such file or directory
Apr 26 16:24:57 tycho lpd[17736]: ERROR -- henrietta: print error for
xxxxxxx_at_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=_at_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
Received on Fri Apr 27 2001 - 13:29:40 NZST