🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
7 messages
7 total messages Started by John F. Morse Sun, 15 Mar 2009 20:33
Abandoned remnants in newsfeeds
#80388
Author: John F. Morse
Date: Sun, 15 Mar 2009 20:33
29 lines
2260 bytes
I found over 1GB of spooled message data in /var/spool/news/innfeed (the 
backlog-directory: PATHSPOOL/innfeed) for two old peers that I had set 
up locally.

The {site}.output files contain data such as:

@050000000067000192C60000000000000000@ 
<Hw_fj.46963$N67.12330@bignews5.bellsouth.net>
@05000000009E000A4AEA0000000000000000@ <13o0qevlv1t7k29@corp.supernews.com>
@05000000009E000A4AEB0000000000000000@ <13o0qf256ilo332@corp.supernews.com>
@05000000009E000A4AEC0000000000000000@ <13o0qf2jk8mca34@corp.supernews.com>
@05000000009E000A4AED0000000000000000@ <13o0qf41dg48c3a@corp.supernews.com>
@05000000005B000021C90000000000000000@ <87abnjpiyu.fsf@fever.mssgmbh.com>

These peers were commented out in /etc/news/innfeed.conf and 
/etc/news/newsfeeds back around 2005. Therefore "ctlinnd flush {site}" 
doesn't find them.

Is there a recommended method to delete these output and lock files, or 
can I simply use the "rm" command?

There are also around 20 old files named "innfeed-dropped.A011492" with 
different numerical digits after the "A" in the filename. Some are from 
this month, but most go back into 2008 and some far back as November, 
2007. Are they "removable"?


-- 
John
Re: Abandoned remnants in newsfeeds
#80392
Author: Julien ÉLIE
Date: Sun, 15 Mar 2009 21:27
30 lines
2321 bytes
Hi John,

> I found over 1GB of spooled message data in /var/spool/news/innfeed (the backlog-directory: PATHSPOOL/innfeed) for two old peers 
> that I had set up locally.

You can use the backlog-limit: parameter in innfeed.conf to limit the size
of such files.


> Is there a recommended method to delete these output and lock files, or can I simply use the "rm" command?

You can just "rm" them.
(And even " cltinnd reload all '' " just after in case you want to be sure
nothing will be broken.  But it is not necessary at all.)


> There are also around 20 old files named "innfeed-dropped.A011492" with different numerical digits after the "A" in the filename. 
> Some are from this month, but most go back into 2008 and some far back as November, 2007. Are they "removable"?

I for one use:
    procbatch -vmu innfeed-dropped.A011492

(See the man page of procbatch.  It permits to send those dropped articles
to the relevant peers.)

-- 
Julien ÉLIE

« Aux quatre coins de l'hexagone. » 
Re: Abandoned remnants in newsfeeds
#80394
Author: John F. Morse
Date: Mon, 16 Mar 2009 09:58
93 lines
4252 bytes
Julien ÉLIE wrote:
> Hi John,
>
>> I found over 1GB of spooled message data in /var/spool/news/innfeed 
>> (the backlog-directory: PATHSPOOL/innfeed) for two old peers that I 
>> had set up locally.
>
> You can use the backlog-limit: parameter in innfeed.conf to limit the 
> size
> of such files.


I have:

backlog-limit:                  0
backlog-factor:                 1.10
backlog-limit-highwater:        0


I have good turnaround times for the output, so what might be a 
recommendation for this backlog-limit?

In the man page, I think the "backlog-limit-high" should be 
"backlog-limit-highwater" (at the end):

backlog-limit
              This key requires a non-negative integer value. If the 
number is 0 then backlog  files  are
              allowed to grown without bound when the peer is unable to 
keep up with the article flow. If
              this number is greater than 0 then it specifies the size 
(in bytes) the backlog file should
              get  truncated  to  when  the  backlog  file  reaches a 
certain limit. The limit depends on
              whether backlog-factor or backlog-limit-high is used.


>> Is there a recommended method to delete these output and lock files, 
>> or can I simply use the "rm" command?
>
> You can just "rm" them.
> (And even " cltinnd reload all '' " just after in case you want to be 
> sure
> nothing will be broken.  But it is not necessary at all.)


I removed them and reloaded without any errors showing up on the tailed 
logs.


>> There are also around 20 old files named "innfeed-dropped.A011492" 
>> with different numerical digits after the "A" in the filename. Some 
>> are from this month, but most go back into 2008 and some far back as 
>> November, 2007. Are they "removable"?
>
> I for one use:
>    procbatch -vmu innfeed-dropped.A011492
>
> (See the man page of procbatch.  It permits to send those dropped 
> articles
> to the relevant peers.)
>


Not sure there is any man page for procbatch (none found locally nor 
from places like http://linux.die.net ). However there is sufficient 
info when running it with no argument, or with a non-option, like the 
common "help":

procbatch -h

Some info for procbatch is available here:

http://www.google.com/search?q=procbatch

Anyway, it worked, cleaning out one file at a time with:

procbatch innfeed-dropped.A*

 From within the /var/spool/news/innfeed/ directory.

I didn't see any activity in tailing /var/log/news/news nor news.notice 
though. Perhaps these articles were not fed but discarded do to their age?

Thanks for the tip, and thanks for all of the hard work on this stuff.


-- 
John 

No Microsoft, Apple, AT&T, Novell, Trend Micro, nor Ford products were used in the preparation or transmission of this message.

The EULA sounds like it was written by a team of lawyers who want to tell me what I can't do. The GPL sounds like it was written by a human being, who wants me to know what I can do.
Re: Abandoned remnants in newsfeeds
#80397
Author: Julien ÉLIE
Date: Mon, 16 Mar 2009 19:20
38 lines
2567 bytes
Hi John,

>> You can use the backlog-limit: parameter in innfeed.conf to limit the size of such files.
>
> I have good turnaround times for the output, so what might be a recommendation for this backlog-limit?

It is totally up to you to decide its value.
On my small news server, I have:

backlog-limit: 20000000

(that is to say a bit less than 20MB)

Maybe you will want more.  (50MB?)


> In the man page, I think the "backlog-limit-high" should be "backlog-limit-highwater" (at the end):

Yep, Russ already fixed it in INN 2.4.4; you should upgrade :-)


> Not sure there is any man page for procbatch (none found locally nor from places like http://linux.die.net ).

You're right.
I assume I also read it from "procbatch -h".


> I didn't see any activity in tailing /var/log/news/news nor news.notice though. Perhaps these articles were not fed but discarded 
> do to their age?

I suppose they had been refused by your peers (already received).  It is
not logged in news.notice (not an innfeed process) or news (incoming articles).

-- 
Julien ÉLIE

« Sinon je te mettrai moi-même dans une galère dont tu te souviendras ! » (Astérix) 
Re: Abandoned remnants in newsfeeds
#80396
Author: 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. » 
Re: Abandoned remnants in newsfeeds
#80400
Author: John F. Morse
Date: Tue, 17 Mar 2009 00:42
66 lines
3452 bytes
Julien ÉLIE wrote:
> Hi John,
>
>>> You can use the backlog-limit: parameter in innfeed.conf to limit 
>>> the size of such files.
>>
>> I have good turnaround times for the output, so what might be a 
>> recommendation for this backlog-limit?
>
> It is totally up to you to decide its value.
> On my small news server, I have:
>
> backlog-limit: 20000000
>
> (that is to say a bit less than 20MB)
>
> Maybe you will want more.  (50MB?)


I'll keep an eye on the "normal" size and make a judgment later.

Thanks for your opinion.


>> In the man page, I think the "backlog-limit-high" should be 
>> "backlog-limit-highwater" (at the end):
>
> Yep, Russ already fixed it in INN 2.4.4; you should upgrade :-)


I am, ... but it is slow. ;-)

I'm in the process of installing Lenny on another PC, but hardware 
rearrangements are slow (moving and swapping hard drives, RAM, CPUs, 
etc.). I do have an Ubuntu 8.04 LTS Server Edition running that I might 
use if Lenny won't install on the old PC.

Then I can retire the Sarge box and INN 2.4.3.


>> Not sure there is any man page for procbatch (none found locally nor 
>> from places like http://linux.die.net ).
>
> You're right.
> I assume I also read it from "procbatch -h".
>
>
>> I didn't see any activity in tailing /var/log/news/news nor 
>> news.notice though. Perhaps these articles were not fed but discarded 
>> do to their age?
>
> I suppose they had been refused by your peers (already received).  It is
> not logged in news.notice (not an innfeed process) or news (incoming 
> articles).


These were for very old articles, some over two years, so I think they 
were rejected as being too old (artcutoff) and probably not sent.


-- 
John 

No Microsoft, Apple, AT&T, Novell, Trend Micro, nor Ford products were used in the preparation or transmission of this message.

The EULA sounds like it was written by a team of lawyers who want to tell me what I can't do. The GPL sounds like it was written by a human being, who wants me to know what I can do.
Re: Abandoned remnants in newsfeeds
#80402
Author: John F. Morse
Date: Tue, 17 Mar 2009 01:06
101 lines
6033 bytes
Julien ÉLIE wrote:
>> 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!


Absolutely!

I for one believe we need more such articles. <hint to Russ> ;-)

Thanks for this; it is saved for future reference.


-- 
John 

No Microsoft, Apple, AT&T, Novell, Trend Micro, nor Ford products were used in the preparation or transmission of this message.

The EULA sounds like it was written by a team of lawyers who want to tell me what I can't do. The GPL sounds like it was written by a human being, who wants me to know what I can do.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads