From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Speakman, John H./Epidemiology-Biostatistics" Newsgroups: gmane.os.tru64.managers Subject: [SUMMARY] Drowning in "lpd[nnnnnn]: ERROR -- lp: cannot lock file lock: No such file or directory" messages Date: Tue, 14 Oct 2003 15:26:50 -0400 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <893E3B3E52B57844ADBC49B46B8008BD117FAF@smskpexmbx4.mskcc.root.mskcc.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1066159650 31689 80.91.224.253 (14 Oct 2003 19:27:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 14 Oct 2003 19:27:30 +0000 (UTC) Cc: "Speakman, John H./Epidemiology-Biostatistics" Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Tue Oct 14 21:27:27 2003 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 1A9UpK-0001op-00 for ; Tue, 14 Oct 2003 21:27:27 +0200 Original-Received: (qmail 17129 invoked by uid 5); 14 Oct 2003 19:27:19 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 17114 invoked by uid 49493); 14 Oct 2003 19:27:19 -0000 Original-Received: from speakmaj@MSKCC.ORG by sws1 by uid 49491 with qmail-scanner-1.16 (iscan: v3.1/v5.600-1011/622/49252. clamscan: 20030605. spamassassin: 2.55. Clear:SA:0(-5.4/5.0):. Processed in 0.831773 secs); 14 Oct 2003 19:27:19 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (160.91.86.17) by 0 with SMTP; 14 Oct 2003 19:27:18 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.2-X17 #30669) with ESMTP id <0HMR00KIPI1FM0@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 14 Oct 2003 15:27:17 -0400 (EDT) Original-Received: from smispmsgtw1.MSKCC.ROOT.MSKCC.ORG (mskresolve-1.mskcc.org [140.163.53.249]) by emroute2.cind.ornl.gov (PMDF V6.2-X17 #30669) with ESMTP id <0HMR00KO1I13IM@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 14 Oct 2003 15:27:04 -0400 (EDT) Original-Received: from 140.163.141.235 by smispmsgtw1.MSKCC.ROOT.MSKCC.ORG with ESMTP (ESMTP Relay (MMS v5.5.3)); Tue, 14 Oct 2003 15:26:50 -0400 Original-Received: from smskpexmbx4.MSKCC.ROOT.MSKCC.ORG ([140.163.141.251]) by smskpexsmtp2.MSKCC.ROOT.MSKCC.ORG with Microsoft SMTPSVC(5.0.2195.5329) ; Tue, 14 Oct 2003 15:26:50 -0400 Original-To: tru64-unix-managers@ornl.gov X-MIMEOLE: Produced By Microsoft Exchange V6.0.6487.1 Thread-Topic: [SUMMARY] Drowning in "lpd[nnnnnn]: ERROR -- lp: cannot lock file lock: No such file or directory" messages Thread-Index: AcOGz2crT3/gTO8BS4WY89X+Y2u5pgAfEAaAAGqlglAAmKN9IAHLhveQAACE8hA= content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: X-WSS-ID: 13929270990929-01-01 X-OriginalArrivalTime: 14 Oct 2003 19:26:50.0442 (UTC) FILETIME=[1DC96AA0:01C39289] Xref: main.gmane.org gmane.os.tru64.managers:5576 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:5576 All Finally I got around to calling support; they have reproduced my problem in the latest 5.1B patch kit (I have 5.1APK3) so I think we are calling this a big ol' bug. Basically the "on" symbol in printcap, which is supposed to allow failover of printing services between two nodes (its argument is a comma-separated list of nodes), has a problem when you try and print from a node other than the first in the list - it will try and print to the first node in the list and spawn thousands of lpr processes, leading to the huge number of "cannot lock file lock" messages in lpr.log. So we have taken the "on" symbol out of our printcap - it's not like it was a big deal anyway. John Ps: lpdcheck didn't report a problem; I think our printcap configuration is street-legal. -----Original Message----- From: Speakman, John H./Epidemiology-Biostatistics=20 Sent: Sunday, October 05, 2003 11:51 AM To: tru64-unix-managers@ornl.gov Cc: Speakman, John H./Epidemiology-Biostatistics Subject: [SUMMARY RETRACTED] Drowning in "lpd[nnnnnn]: ERROR -- lp: cannot lock file lock: No such file or directory" messages It was too good to be true. The problem came back. Looks like a stop and restart of lpd gives you temporary respite. We may have to delete all the printers and put them back. Thanks to Johan at HP who supplied me with 'lpdcheck'; we will play with this also. John -----Original Message----- From: Speakman, John H./Epidemiology-Biostatistics=20 Sent: Thursday, October 02, 2003 11:14 AM To: tru64-unix-managers@ornl.gov Subject: [SUMMARY] Drowning in "lpd[nnnnnn]: ERROR -- lp: cannot lock file lock: No such file or directory" messages Thanks to Kris and Barbara; the consensus was that there was "something funny" with lpd configuration, either in printcap or the spool directories. Kris also mentioned the 'lpdcheck' utility, which I couldn't find anywhere either on the system on the internet. I was planning to remove printcap and start adding all the printers from scratch (what Kris ended up doing) but I spent a couple of minutes peering at printcap first. I noticed something about the "on" symbol. This symbol is new to us (i.e., wasn't in 4.0) and its value is a comma-separated list of the host(s) in the cluster that the printer is "on". I noticed that all the errors in syslog were coming from printers which had no space between the commas ("host1,host2") in printcap and the ones with a space ("host1, host2") were okay. So I just edited the printcap to add spaces after the commas in the "on" lines, stopped are restarted lpd (/sbin/init.d/lpd stop then /sbin/init.d/lpd start) and since then (10 hours or so) have had no "cannot lock file lock" messages whereas before we were averaging, I guess, at least one every few seconds, all the time. Sounds a little absurd (or of course a bug), and of course it's possible that there was something wacky about printing that a simple restart of lpd fixed. But it certainly won't hurt for us to add the space in printcap, if only out of superstition. Thanks all John -----Original Message----- From: Speakman, John H./Epidemiology-Biostatistics [mailto:speakmaj@MSKCC.ORG] Sent: Monday, September 29, 2003 5:21 PM To: tru64-unix-managers@ornl.gov Cc: Speakman, John H./Epidemiology-Biostatistics Subject: Drowning in "lpd[nnnnnn]: ERROR -- lp: cannot lock file lock: No such file or directory" messages Hi all Two node cluster of GS80s running 5.1apk3. Ever since we set up a couple of printers, using lpr, we have gotten a lot of "lpd[nnnnnn]: ERROR -- lp: cannot lock file lock: No such file or directory" messages. Sometimes lp is another printer, seems to be always what was printed on last. The funny thing is we don't do much printing; maybe two or three jobs a day. But the jobs we do print come out fine. This first started happening months ago; I first noticed because we got a few "high event activity" e-mails and it turned out to be zillions of these messages. Printing seems to work just fine, so foolishly I just thought "dumb machine, bothering me with this stuff" and put a little filter in the sysman EVM viewer to filter them out, then went back to sleep. Then last week /var filled up all the way and I realize it's these wretched messages. I deleted the lpr logs from the subdirectories within syslog.dated to give us some breathing space, but I need a more permanent solution. There are 2500 files in the evmlog directory, mainly consisting of billions of these messages. There are now so many I can't even run EVM from sysman, or even an evmget for the last five seconds, without filling up the /tmp directory, i.e., the root partition, with a jumbo temporary file. Any ideas? Thanks in advance; I will summarize. John John Speakman Manager, Clinical Research Systems Memorial Sloan-Kettering Cancer Center New York, NY, USA 646 735 8187 / speakman@biost.mskcc.org =20 =20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =20 Please note that this e-mail and any files transmitted with it may be=20 privileged, confidential, and protected from disclosure under=20 applicable law. If the reader of this message is not the intended=20 recipient, or an employee or agent responsible for delivering this=20 message to the intended recipient, you are hereby notified that any reading, dissemination, distribution, copying, or other use of this communication or any of its attachments is strictly prohibited. If you have received this communication in error, please notify the=20 sender immediately by replying to this message and deleting this=20 message, any attachments, and all copies and backups from your=20 computer.