🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #80396

Re: Abandoned remnants in newsfeeds

#80396
From: Julien ÉLIE
Date: Mon, 16 Mar 2009 19:22
82 lines
5624 bytes
> Some info for procbatch is available here:
> http://www.google.com/search?q=procbatch

And especially in this memo written by Russ:

    http://groups.google.fr/group/news.software.nntp/msg/c41b7d850c50e382
    <ylsnl3aml8.fsf@windlord.stanford.edu>

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Here's the internal document I wrote here at Stanford saying how to deal
with them:

  Author: Russ Allbery <ea...@windlord.stanford.edu>
 Subject: Processing dropped articles from innfeed
Revision: $Id: innfeed-dropped,v 1.1 1999/12/15 23:58:57 eagle Exp $

innfeed is the process on newsfeed.stanford.edu that sends outgoing
articles to our peers (including to nntp.stanford.edu).  It will sometimes
drop articles; this happens when innfeed can't initialize a remote site
for whatever reason, or when INN feeds it articles for a site that isn't
in innfeed.conf (a misconfiguration).  The most common cause of this is
the problems that innfeed has with being stopped and restarted a bunch of
times in active succession.  INN stops and restarts innfeed whenever it
acts on a control message, so this can happen when a flurry of control
messages come in; when it does, innfeed will sometimes be unable to lock a
site for a while, and articles for that site will get dropped.

Dropped articles are noted in files named innfeed-dropped.<id> where <id>
is a unique ID for a given innfeed process.  These files should normally
always be zero length.  If they're non-zero length, innfeed has dropped
some articles, and those dropped article files have to be manually
processed or those articles will never be correctly sent to peers.  A cron
job checks every hour for such non-zero dropped article files and will
notify news@news if they show up.

To process one of these dropped article files, first make sure that the
dropped article file doesn't correspond to a currently running innfeed.
The easiest way of checking this is to notice that every running innfeed
process has a dropped article file, and there are always three copies of
innfeed running on newsfeed.stanford.edu.  If there are only three dropped
article files, they all correspond to running innfeed processes.  You can
also note that the digits at the end of the file name are the PID of
innfeed and see if that process is running.

If the file is owned by a running innfeed, stop and restart that instance
of innfeed.  The easy way to do that is the command ctlinnd reload
newsfeeds 'restart innfeed' -- the bit between single quotes is just the
log message and is arbitrary.  The better way, which only restarts the
innfeed you need to restart, is to use ps to determine whether the
corresponding innfeed is the innfeed-sm instance, the innfeed-lg instance,
or the innfeed instance (the one that doesn't take a configuration file on
the command line), and then flush the corresponding pseudosite.  For
example, if ps reveals that that innfeed is using the innfeed-sm.conf
file, type ctlinnd flush innfeed-sm\!.  (All pseudosite names end in !,
which has to be protected from the shell.)

After the dropped article file is safely unowned by any running process,
run procbatch -vm <dropped-file>.  That will generate innfeed backlog
files for each site mentioned in the dropped article file and put them
somewhere where innfeed will pick them up a while later.  procbatch doesn't
delete the dropped article files itself, so after running procbatch you
should rm the files.

If the dropped articles were due to a misconfiguration, the generated
backlog file won't correspond to any configured innfeed peer.  The best
way of detecting this is to see if there's a .lock file for whatever
backlog file procbatch generated (it will tell you what files it's
generating).  If there's no .lock file, innfeed doesn't have that site
configured as a peer, and some more tweaking and fixes to innfeed.conf
will probably be needed to correct whatever's going wrong.

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


Very instructive!

-- 
Julien ÉLIE

« Je ne cherche pas à connaître les réponses, je cherche à comprendre les questions. » 
Technical Details
Message-ID: <gpm8vt$9fs$1@news.trigofacile.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.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!news2.euro.net!feeds.phibee-telecom.net!de-l.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!not-for-mail
References: <gpjomm$in7$1@optima7.xanadu-bbs.net> <gpjrv1$sjk$1@news.trigofacile.com> <gpl7ru$uhd$1@optima7.xanadu-bbs.net>

Show Full Headers
Complete Article Headers
Message-ID: <gpm8vt$9fs$1@news.trigofacile.com>
Subject: Re: Abandoned remnants in newsfeeds
Date: Mon, 16 Mar 2009 20:22:26 +0100
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <gpjomm$in7$1@optima7.xanadu-bbs.net> <gpjrv1$sjk$1@news.trigofacile.com> <gpl7ru$uhd$1@optima7.xanadu-bbs.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!news2.euro.net!feeds.phibee-telecom.net!de-l.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Lines: 82
NNTP-Posting-Host: aaubervilliers-151-1-58-123.w83-112.abo.wanadoo.fr
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset="utf-8"; reply-type=response
Content-Transfer-Encoding: 8bit
X-Trace: news.trigofacile.com 1237231421 9724 83.112.31.123 (16 Mar 2009
X-Complaints-To: abuse@trigofacile.com
NNTP-Posting-Date: Mon, 16 Mar 2009 19:23:41 +0000 (UTC)
In-Reply-To: <gpl7ru$uhd$1@optima7.xanadu-bbs.net>
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6001.18000
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049