SUMMARY: v5.1tru64unix LPD only functions once and then loops

From: Rainer Wolf (rainer.wolf@rz.uni-ulm.de)
Date: Tue Jul 29 2003 - 07:20:21 EDT


Roberto,
thanks a lot !
I had patch kit 3 (PK3) and after installing the PK6
        ( with
    67) Patch 01052.00 - Corrects lpd parent daemon problems
        Patch 01052.00 - Corrects lpd parent daemon problems
        Patch: Corrects lpd parent daemon problems
        Configuring "Patch: Corrects lpd parent daemon problems" (OSFPAT00105200510)
        )
the lpd works fine now :-)
 
Greetings,
Rainer

"Romani, Roberto" wrote:
>
> Rainer,
>
> A problem (bug!) was introduced in v5.1 tru64 UNIX patch kit 3.
> You should upgrade to the latest patch kit which I think is patch kit 6 (released February 2003)
>
> I assume you are seeing similar messages to this (
>
> lpd[18279]: ERROR -- read_some_chars: read() failed, error: Bad file number
>
> some background
>
> This 'error' is new because the latest patch kits(this refers to PK3!) include code to read back from
> the printer channel (to catch any data sent back from the printer -- which is a must do if
> the printer is attached to a DECserver via tcp/ip, otherwise the DECserver flushes its buffer when
> it sees lpd drop the connection without reading (and acking) the data it sent).
> The code doesn't check for ":lp=:" (remote printing -until recently) or ":lp=/dev/null:" (Advanced Server,
> plus user scripts).
> ....
> [The fix is in common.c, in the read_some_chars() function,
> namely, a check for EBADF.]
>
> regards
> *************************** Roberto Romani
> ******* _/ ******* System & Software Consultant I
> ***** _/ ***** HP High Availability Support Services
> **** _/_/_/ _/_/_/ **** 305 Rockrimmon Boulevarde South
> **** _/ _/ _/ _/ **** Colorado Springs
> **** _/ _/ _/_/_/ **** Colorado, 80919
> ***** _/ *****
> ******* _/ ******* email: roberto.romani@hp.com
> *************************** Phone: +1 719 592 4628
> i n v e n t Fax: +1 719 592 5854
>
> -----Original Message-----
> From: Rainer Wolf [mailto:rainer.wolf@rz.uni-ulm.de]
> Sent: Thursday, July 24, 2003 7:18 AM
> To: tru64-unix-managers@ornl.gov
> Subject: v5.1tru64unix LPD only functions once and then loops
>
> Hello ,
> i have a problem with the lpd server : a printfile is queued correctly but
> at the time the print has actually finished and also the queue-entry
> is normally disappearing ... the lpd is saying about some bad-file-number.
>
> Somehow the lpd-child does not finish correctly and is starting to loop
> with nearly 100% cpu constant using.
>
> The next print-job in the same queue then will not start process
> as usual and only a reset/start can help.
> It seems that the lpd ha a bug .
> My question: where can I get a funcioning lpd for a
> DECalpha 433au running Tru64Unix V5.1
> uname shows :
> OSF1 orkus V5.1 732 alpha
> The current version of lpd shows:
> orkus:.../patch_kit# ls -l /usr/lbin/lpd
> -rws--x--x 1 root bin 158880 Apr 13 2001 /usr/lbin/lpd
> orkus:.../patch_kit# strings /usr/lbin/lpd |grep -i revision
> @(#)$RCSfile: crt0.s,v $ $Revision: 1.1.26.2 $ (DEC) $Date: 1997/04/03 22:25:40 $
> orkus:.../patch_kit#
>
> I changed allready modified all protections and even changed the
> spooling filesystem
> Has someone seen this ? ... in the mailing-list i found
> some similar questions but no summary ... thanks in advance for any help
>
> Greetings Rainer
>
> --
> -------------------------------------------------------------------------------
> Rainer Wolf mail: rainer.wolf@rz.uni-ulm.de
> Kommunikations und Informationszentrum tel/fax: ++49 731 50-22482/222471
> Abt. Infrastruktur, Uni Ulm web: http://www.uni-ulm.de/urz
>
> ....................................
> Jul 24 15:06:33 orkus lpd[15974]: NOTICE -- lpd: MASTER DAEMON STARTED
> Jul 24 15:06:33 orkus lpd[15974]: DEBUG -- entering startup()
> Jul 24 15:06:33 orkus lpd[15974]: DEBUG -- entering useRemoteNode(/spool/lpd/r5408urzlaser, lock, localhost)
> Jul 24 15:06:33 orkus lpd[15974]: DEBUG -- Leaving startup()
> Jul 24 15:06:33 orkus lpd[15974]: DEBUG -- FD_SET on funix, max_fds: 5
> Jul 24 15:06:33 orkus lpd[15974]: DEBUG -- FD_SET on finet, max_fds: 6
> Jul 24 15:06:33 orkus lpd[15974]: DEBUG -- lpd: entering main loop
>
> Jul 24 15:07:38 orkus lpd[15974]: DEBUG -- return from select(), read network socket
> Jul 24 15:07:38 orkus lpd[15974]: DEBUG -- lpd: accept on unix socket
> Jul 24 15:07:38 orkus lpd[15974]: DEBUG -- fork_with_retries: child pid: 16105
> Jul 24 15:07:38 orkus lpd[16105]: DEBUG -- chkhost: entered chkhost()
> Jul 24 15:07:38 orkus lpd[16105]: DEBUG -- chkhost: checking ahost=somehost.rz.uni-ulm.de, domain=.rz.uni-ulm.de, baselen=6
> Jul 24 15:07:38 orkus lpd[16105]: DEBUG -- chkhost: connection to printer is not allowed in /etc/hosts.equiv
> Jul 24 15:07:38 orkus lpd[16105]: DEBUG -- chkhost: connection to printer is ok in /etc/hosts.lpd
> Jul 24 15:07:38 orkus lpd[16105]: DEBUG -- entering doit()
> Jul 24 15:07:38 orkus lpd[16105]: DEBUG -- somehost.rz.uni-ulm.de requests recvjob urzlaser_r5408
> Jul 24 15:07:38 orkus lpd[16105]: DEBUG -- lpd/doit: got RECVJOB request for printer urzlaser_r5408
> Jul 24 15:07:38 orkus lpd[16105]: DEBUG -- readjob: case 2
> Jul 24 15:07:38 orkus lpd[16105]: DEBUG -- About to read control file for job: 166, from node: sponsl.rz.uni-ulm.de
> Jul 24 15:07:38 orkus lpd[16105]: DEBUG -- printjob: entered printjob, printer urzlaser_r5408
> Jul 24 15:07:38 orkus lpd[16105]: DEBUG -- printjob - closed file descriptor: 5
> Jul 24 15:07:38 orkus lpd[16105]: DEBUG -- printjob - closed file descriptor: 4
> Jul 24 15:07:38 orkus lpd[16105]: DEBUG -- Entering init()
> Jul 24 15:07:38 orkus lpd[16105]: DEBUG -- printjob: sent ACK, printer urzlaser_r5408
> Jul 24 15:07:38 orkus lpd[16105]: DEBUG -- STB CHECK, sd_stb.st_mode: 40755, after stat of SD
> Jul 24 15:07:38 orkus lpd[16105]: DEBUG -- STB CHECK, lo_stb.st_mode: 100644, after stat of LO
> Jul 24 15:07:38 orkus lpd[16105]: DEBUG -- lock file created, lfd: 4
> Jul 24 15:07:38 orkus lpd[16105]: DEBUG -- printjob: got lock on file 'lock', printer urzlaser_r5408
> Jul 24 15:07:38 orkus lpd[16105]: DEBUG -- printjob: created file /spool/lpd/r5408urzlaser/.daemon_running_on_orkus, printer
> urzlaser_r5408
> Jul 24 15:07:38 orkus lpd[16105]: DEBUG -- about to check reset queue flag, lo_stb.st_mode: 100644
> Jul 24 15:07:38 orkus lpd[16105]: DEBUG -- STB CHECK, q_stb.st_mode: 100660, after stat of q->q_name
> Jul 24 15:07:38 orkus lpd[16105]: DEBUG -- openpr: entered openpr(), printer urzlaser_r5408
> Jul 24 15:07:38 orkus lpd[16105]: DEBUG -- openpr: in /etc/printcap LP is /dev/null, printer urzlaser_r5408
> Jul 24 15:07:38 orkus lpd[16105]: DEBUG -- openpr: BEFORE attempt open LP /dev/null, printer urzlaser_r5408
> Jul 24 15:07:38 orkus lpd[16105]: DEBUG -- openpr: AFTER attempt open LP /dev/null, printer urzlaser_r5408
> Jul 24 15:07:38 orkus lpd[16105]: DEBUG -- openpr: opened LP /dev/null, printer urzlaser_r5408
> Jul 24 15:07:38 orkus lpd[16105]: DEBUG -- openpr: LP==/dev/null and no flock, printer urzlaser_r5408
> Jul 24 15:07:38 orkus lpd[16105]: DEBUG -- writeStatus: status file update, printer urzlaser_r5408: Thu Jul 24 15:07:38 2003:
> urzlaser_r5408 is ready and printing
> Jul 24 15:07:38 orkus lpd[16105]: DEBUG -- Entering printit(cfA166somehost.rz.uni-ulm.de)
> Jul 24 15:07:38 orkus lpd[16105]: DEBUG -- writeStatus: status file update, printer urzlaser_r5408: Thu Jul 24 15:07:38 2003:
> Attempting to print dfA166SOMEHOST
> Jul 24 15:07:38 orkus lpd[16105]: DEBUG -- entering print(f, dfA166SOMEHOST)
> Jul 24 15:07:38 orkus lpd[16105]: DEBUG -- about to leave dofork() as pid: 16105
> Jul 24 15:07:38 orkus lpd[16105]: DEBUG -- child_wait: start wait for child 16107
> Jul 24 15:07:38 orkus lpd[16107]: DEBUG -- about to leave dofork() as pid: 16107
> Jul 24 15:07:48 orkus lpd[16105]: DEBUG -- child_wait: finished wait for child 16107
> Jul 24 15:07:48 orkus lpd[16105]: DEBUG -- writeStatus: status file update, printer urzlaser_r5408: Thu Jul 24 15:07:48 2003:
> Notifying user...
> Jul 24 15:07:48 orkus lpd[16105]: DEBUG -- writeStatus: status file update, printer urzlaser_r5408: Thu Jul 24 15:07:48 2003:
> urzlaser_r5408 is ready and printing
> Jul 24 15:07:48 orkus lpd[16105]: DEBUG -- STB CHECK, lo_stb.st_mode: 100644, after stat of lfd
> Jul 24 15:07:48 orkus lpd[16105]: DEBUG -- writeStatus: status file update, printer urzlaser_r5408: Thu Jul 24 15:07:48 2003:
> Jul 24 15:07:48 orkus lpd[16105]: DEBUG -- read_some_chars: read() failed, error: Bad file number
> Jul 24 15:08:18 orkus last message repeated 121878 times
>
> orkus:...//#

-- 
-------------------------------------------------------------------------------
Rainer Wolf                                   mail:   rainer.wolf@rz.uni-ulm.de
Kommunikations und Informationszentrum        tel/fax: ++49 731 50-22482/222471
Abt. Infrastruktur, Uni Ulm                   web:    http://www.uni-ulm.de/urz


This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:49:29 EDT