🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #49642

Re: Expire failing can't malloc

#49642
From: Tom Ippolito
Date: Wed, 03 Jan 2001 16:38
36 lines
3724 bytes
Charlie, Russ,
  Thanks so much for the advice!  You were on the right track Russ, only I
couldn't see it.  No login.conf, but the equivalent would be /etc/security/limits
in this case, which is where I was making the changes.  The culprit turned out
to be the "&", running in the background uses different limits (that's
perfectly clear now in the rearview mirror).  Anyway, I got desparate and
decided to rebuild the history file, it only took 8-9 hours :0)  Got in trouble
again trying to run the mkdbz, that's when the problem with running it in the
backgroud was discovered (running the expire in the foreground, probably would
have worked too).
  Here's some food for thought however, the makedbz complained about bad lines
in the history file and aborted.  I ran some simple checks, and sure enough there
were corrupt lines in the freshly built history file.  The form of corruption
was either truncated lines, decapitated lines (for lack of a better term) or
merged lines.  Strange eh?  Put together a checker to eliminate the bad lines,
there were only 30 or so, unless some of the corruption was merged lines that still
had the correct form.  After getting rid of the bad lines the makedbz ran clean,
innd restarted cleanly, and everything was back to normal, except for catching
up after being down for 24 hours.
  Happy New Year!
-- 
   Tom Ippolito
   Newsgroups System Administrator
   Prodigy Communications LP
   Email ippolitot@prodigy.net

P.S. The daily runs out of cron;
     35 0 * * *      ulimit -Sd 300000; /usr/local/news/bin/news.daily expireover lowmark
 
Charlie Robot wrote:

> >don't mind Russ, 'e's just overcome with christmas cheer ;)  how do you invoke expire anyway  if you run it from cron and you are using once of several OSen that have a login class capability, you may not gain from the ulimit changes
> if you have login.conf then note that cron is run with the class definition of daemon so you will need to change your login.conf definitions for both the news and daemon users in order for expire to use the higher value - i've set infinity or unlimited
> if you are attempting to run expire from the commandline after raising your limits but you do so by invoking su - news then you are losing the limits you set and using the default login.conf news values
> >
Technical Details
Message-ID: <3A53559C.F549E3AD@prodigy.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!supernews.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!cpk-news-hub1.bbnplanet.com!news.gtei.net!newscon04.news.prodigy.com!prodigy.com!newsmst01!postmaster.news.prodigy.com!not-for-mail
References: <3A48FBE2.D7E11016@prodigy.com> <ylsnna7wa4.fsf@windlord.stanford.edu> <3A490682.C41B6C1D@prodigy.com> <yln1di7teh.fsf@windlord.stanford.edu> <3A4919E0.E97C1748@prodigy.com> <yl3dfa7pxj.fsf@windlord.stanford.edu> <92br38$95ac$1@newssvr06-en0.news.prodigy.com> <meowbot-AutoSnooze-28@netscum.dQ>

Show Full Headers
Complete Article Headers
Message-ID: <3A53559C.F549E3AD@prodigy.com>
Subject: Re: Expire failing can't malloc
Date: Wed, 03 Jan 2001 11:38:52 -0500
From: Tom Ippolito <tommy@prodigy.com>
References: <3A48FBE2.D7E11016@prodigy.com> <ylsnna7wa4.fsf@windlord.stanford.edu> <3A490682.C41B6C1D@prodigy.com> <yln1di7teh.fsf@windlord.stanford.edu> <3A4919E0.E97C1748@prodigy.com> <yl3dfa7pxj.fsf@windlord.stanford.edu> <92br38$95ac$1@newssvr06-en0.news.prodigy.com> <meowbot-AutoSnooze-28@netscum.dQ>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!supernews.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!cpk-news-hub1.bbnplanet.com!news.gtei.net!newscon04.news.prodigy.com!prodigy.com!newsmst01!postmaster.news.prodigy.com!not-for-mail
Newsgroups: news.software.nntp
Organization: Prodigy Communications Corp.
Lines: 35
NNTP-Posting-Host: polaris.prodigy.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: newssvr06-en0.news.prodigy.com 978539933 665934 192.168.190.232 (3 Jan 2001 16:38:53 GMT)
X-Complaints-To: abuse@prodigy.net
NNTP-Posting-Date: 3 Jan 2001 16:38:53 GMT
X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.0.30 i586)
X-Accept-Language: en