From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Rainer Wolf Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: v5.1tru64unix LPD only functions once and then loops Date: Tue, 29 Jul 2003 13:20:21 +0200 Organization: urz Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <3F265875.11BB939C@rz.uni-ulm.de> References: Reply-To: Rainer.Wolf@rz.uni-ulm.de NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1059478287 31557 80.91.224.249 (29 Jul 2003 11:31:27 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 29 Jul 2003 11:31:27 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Tue Jul 29 13:31:25 2003 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 19hShQ-0008Cd-00 for ; Tue, 29 Jul 2003 13:31:24 +0200 Original-Received: (qmail 6624 invoked by uid 5); 29 Jul 2003 11:31:21 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 6615 invoked by uid 49493); 29 Jul 2003 11:31:20 -0000 Original-Received: from rainer.wolf@rz.uni-ulm.de by sws1 by uid 49491 with qmail-scanner-1.16 (clamscan: 20030605. spamassassin: 2.55. Clear:SA:0(-2.1/5.0):. Processed in 1.368241 secs); 29 Jul 2003 11:31:20 -0000 Original-Received: from unknown (HELO emroute3.ornl.gov) (160.91.4.110) by 0 with SMTP; 29 Jul 2003 11:31:19 -0000 Original-Received: from emroute3.ornl.gov (localhost [127.0.0.1]) by emroute3.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HIS00MQ8AO5I1@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 29 Jul 2003 07:31:18 -0400 (EDT) Original-Received: from mail.rz.uni-ulm.de (gemini.rz.uni-ulm.de [134.60.246.16]) by emroute3.ornl.gov (PMDF V6.2 #30669) with ESMTPS id <0HIS0035AANSAY@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 29 Jul 2003 07:31:10 -0400 (EDT) Original-Received: from rz.uni-ulm.de (sponsl.rz.uni-ulm.de [134.60.1.29]) (authenticated bits=0) by mail.rz.uni-ulm.de (8.12.9/8.12.9) with ESMTP id h6TBV3NR024283 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT) for ; Tue, 29 Jul 2003 13:31:04 +0200 (MEST) Original-To: "tru64-unix-managers@ornl.gov" X-Mailer: Mozilla 4.77 [en] (WinNT; U) X-Accept-Language: en Xref: main.gmane.org gmane.os.tru64.managers:4965 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:4965 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