🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
56 messages
56 total messages Page 2 of 2 Started by John F. Morse Sat, 24 Sep 2005 19:50
Page 2 of 2 • 56 total messages
Re: Authentication advice
#72434
Author: John F. Morse
Date: Sun, 09 Oct 2005 18:13
195 lines
8083 bytes
Jeffrey M. Vinocur wrote:

>In article <WI12f.123299$qY1.69753@bgtnsc04-news.ops.worldnet.att.net>,
>John F. Morse <xanadu.bbs@invalid.net> wrote:
>  
>
>
>Oof, I don't know.  My best guess is that if you suck them with
>xrefslave on, they'll end up in control.  But I'm not sure that's
>a good idea.  Do you need to migrate the old control messages?
>  
>


Not at all, but I thought they would migrate if I didn't use the 
pullnews -g option.


>Well, then you could expire the old cancel messages before
>sucking, if you want to suck the newer ones.
>  
>


Nightly expire has never been turned on since a expiry bug back in 
February 2002 ate most of the messages back to July 2001. The server has 
operated flawlessly since then, so I never gambled with touching it.

Two of the reasons I'm moving to INN are the PowerMac's hard drive(s) 
are making a high-pitched squeal that I don't remember hearing before, 
and the log file is simply appended to every night. When it gets up to 
150 MB (!) the server chokes and the Mac crashes. That is too large to 
open in a text editor without a very long wait! The developer said he 
could fix this and make daily logs, but I've not seen any update yet.

Additionally, RumorMill's block on IP feature doesn't work, so I had to 
go to passwords to block one troublemaker.


>>Does INN provide expiration by individual groups? [...]
>>Snooping around I find expire.ctl might b the answer.
>>    
>>
>
>Yes.
>
>
>  
>
>>then the flag ("A" here, but not sure if that would be my choice, 
>>maybe "X"?),
>>    
>>
>
>Well, you can't have X alone, as the documentation says.
>
>You only need to consider adding X if your users crosspost to
>groups that won't all have the same expiration time.
>  
>


OK, thanks.


>>I don't understand why the default "*:A:1:10:never" would have a flush 
>>"never" if the group had a 10 day expiry? What is the difference between 
>>"days to keep an article" and "flush"?
>>    
>>
>
>    The middle field, <default>, will be used as the expiration period for
>    most articles.  The other two fields, <min> and <max>, only come into
>    play if the article requests a particular expiration date with an
>    Expires header.  Articles with an Expires header will be expired at the
>    date given in that header, subject to the constraints that they will be
>    retained at least <min> days and no longer than <max> days.
>  
>


"Middle field"? I see five fields. What does the "flush" field represent?


>>I wonder, could the wildmat be written to always keep all of the 
>>existing five ("newspaper") groups, but set some expiry time for the new 
>>"local" groups? Well, looking a little farther down the man page shows 
>>this in the fourth example, modified for me:
>>
>>local.*:A:90:90:90
>>brisbee:A:never:never:never
>>computers:A:never:never:never
>>petchat:A:never:never:never
>>raucouscaucus:A:never:never:never
>>soapbox:A:never:never:never
>>
>>Or possibly ?:
>>
>>local.*:A:90:90:90
>>!local.*:A:never:never:never
>>    
>>
>
>Either of these is a reasonable approach.  However, you need to
>be sure to address how junk and control groups should be handled
>(in your second example there, they would be kept forever).  And:
>
>    Articles that do not match any expiration rule will not be expired, but
>    this is considered an error and will result in a warning.  There should
>    always be a default line (a line with a <pattern> of "*" and <flag> of
>    "A", or a line with a <classnum> of "*"), which can explicitly state
>    that articles should never expire by default if that's the desired con-
>    figuration.  The default line should generally be the first line of the
>    file (except for "/remember/") so that other expiration rules can over-
>    ride it.
>  
>


OK, then I'll just add them with a shorter interval. How's this look?:

local.*:A:90:90:90
!local.*:A:never:never:never
control,control.*:A:10:10:10




>>Finally, the artcutoff I believe is similar to RumorMill's "Allow Old 
>>Articles" and I am curious if it is somehow connected to the expire.ctl 
>>routine?
>>    
>>
>
>Not really...artcutoff applies to articles when they first are
>offered to the server, and expire.ctl counts the amount of time
>they have existed on the server.
>

That's two questions with only one answer. ;-)

You are saying that artcutoff is or isn't similar to RumorMill's "Allow 
old articles"? (I believe it is.)

And that it is or isn't connected to expire.ctl? (I think not.)

Recent progress:

I managed to suck (with pull news) four of the groups throughout the night.

I started with petchat, but couldn't get anything accepted by INN, even 
after deleting the article spool and overview and resetting the active 
file for just that group. Evidently history was the blockage.

So I deleted all history files, and successfully recreated them with the 
install info. It went as described including the .n filenames, which I 
renamed.

(This must mean a single group cannot be sucked if that group name was 
previously used? It's an all-or-nothing operation?)

Then the server wouldn't restart. I was getting the "no .pid file" error 
and ctlinnd wouldn't budge.

I finally saw the log was mentioning one group in the active file. I 
looked into this and discovered I didn't have a space before the 'y' at 
the end of that group's data. Must have lost it when resetting the 
low-water figure to 1. This cost me about two hours and several fist 
fulls of hair. <slap!>

The computers group has 2728 articles and the soapbox group has 2736. 
They each took 930 seconds to suck (15.5 minutes), so a ball-park figure 
for brisbee is 2.5 hours. I decided to wait until tomorrow night, and 
have decided to just suck the articles without worrying about syncing 
the message numbers.

The users will need to create a new news server account in their news 
client anyway (I will likely move this server to a different domain). 
Several have already done this just to see how much faster INN is 
compared to  the Old World Mac.

They need the practice, and they need to learn to download say only 50 
messages and have their client mark the remainder "read" plus learn to 
sort my date/time. ;-)

I'm going to let them play for several weeks while I go back through all 
of the docs and reread everything. This will increase my familiarity 
with INN, and I may try some other things. I might also just fire up 
another INN on another PC for instructional purposes so I won't wreck 
this one.

Thanks.

-- 
John
Re: Authentication advice
#72435
Author: Jeffrey M. Vinocur
Date: Sun, 09 Oct 2005 18:39
116 lines
5406 bytes
In article <z5d2f.400661$5N3.92850@bgtnsc05-news.ops.worldnet.att.net>,
John F. Morse <xanadu.bbs@invalid.net> wrote:
>Jeffrey M. Vinocur wrote:
>
>>John F. Morse <xanadu.bbs@invalid.net> wrote:
>>  [...]
>>Do you need to migrate the old control messages?
>
>Not at all, but I thought they would migrate if I didn't use the 
>pullnews -g option.

Only groups in the configuration file will ever be sucked by
pullnews.


>That is too large to open in a text editor without a very long wait!

If you haven't tried BBEdit, it usually does pretty well with
that sort of thing.


>>    The middle field, <default>, will be used as the expiration period for
>>    most articles.  The other two fields, <min> and <max>, only come into
>>    play if the article requests a particular expiration date with an
>>    Expires header.  Articles with an Expires header will be expired at the
>>    date given in that header, subject to the constraints that they will be
>>    retained at least <min> days and no longer than <max> days.
>
>"Middle field"? I see five fields. What does the "flush" field represent?

Dude, concentrate :-)

There are three numeric fields.  I'm quoting directly from the
expire.ctl manpage there, because all these answers are there.  I
don't know what you mean by "flush" -- that word doesn't exist
anywhere in the documentation I can find.  If you're talking
about the third numeric field, then reread the snippet above...


>OK, then I'll just add them with a shorter interval. How's this look?:
>
>local.*:A:90:90:90
>!local.*:A:never:never:never
>control,control.*:A:10:10:10

You still need to do what the documentation says:

>>    [...]  There should
>>    always be a default line (a line with a <pattern> of "*" and <flag> of
>>    "A", or a line with a <classnum> of "*") [...]


>>>Finally, the artcutoff I believe is similar to RumorMill's "Allow Old 
>>>Articles" and I am curious if it is somehow connected to the expire.ctl 
>>>routine?
>>
>>Not really...artcutoff applies to articles when they first are
>>offered to the server, and expire.ctl counts the amount of time
>>they have existed on the server.
>
>That's two questions with only one answer. ;-)

You had one statement and one question.


>You are saying that artcutoff is or isn't similar to RumorMill's "Allow 
>old articles"? (I believe it is.)

Well, I haven't a clue what any feature in RumorMill does.  You
can read what artcutoff does in the INN documentation and decide
for yourself if it's the same.  If you find the documentation
unclear, please ask about what part specifically confuses you.


>And that it is or isn't connected to expire.ctl? (I think not.)

I did my best at answering this above.  If you want anything
more, you're going to have to provide a more specific query
than "connected".


>I started with petchat, but couldn't get anything accepted by INN, even 
>after deleting the article spool and overview and resetting the active 
>file for just that group. Evidently history was the blockage.

Yes, after INN has seen articles, it remembers them in the
history file so they won't be accepted as duplicates in the
future.


>(This must mean a single group cannot be sucked if that group name was 
>previously used? It's an all-or-nothing operation?)

It has nothing to do with the name of the group.  The trouble is
that you are trying to pull the same -articles- (with the same
Message-IDs) and INN is purposefully refusing to accept an
article that it has already seen.


>I decided to wait until tomorrow night, and have decided to just
>suck the articles without worrying about syncing the message numbers.
>
>The users will need to create a new news server account in their news 
>client anyway (I will likely move this server to a different domain). 

They actually won't need to; if you keep the article numbers the
same, then they can just change the name/IP of the server in the
configuration and all of their preferences, filters, etc will
just work without any additional fiddling.  It's much easier for
them (even the beta-testing ones, to some extent) if you sync the
article numbers.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: Authentication advice
#72437
Author: John F. Morse
Date: Mon, 10 Oct 2005 01:35
257 lines
10227 bytes
Jeffrey M. Vinocur wrote:

>>That is too large to open in a text editor without a very long wait!
>>    
>>
>
>If you haven't tried BBEdit, it usually does pretty well with
>that sort of thing.
>  
>


BBEdit is what I use. It is the only application I've found/have that 
will (eventually) open such a large document, and only after I change 
the application's preferred memory setting to a much-higher value.

Then to speed things up, I select and cut a portion of the file at a 
month border, and paste it into a new document. I continue this until I 
have the file down to monthly-sized files, which do open fairly fast.

Sorry for my use of the term "flush" where the manpage calls it "purge."

>>>   The middle field, <default>, will be used as the expiration period for
>>>   most articles.  The other two fields, <min> and <max>, only come into
>>>   play if the article requests a particular expiration date with an
>>>   Expires header.  Articles with an Expires header will be expired at the
>>>   date given in that header, subject to the constraints that they will be
>>>   retained at least <min> days and no longer than <max> days.
>>>      
>>>
>>"Middle field"? I see five fields. What does the "flush" field represent?
>>    
>>
>
>Dude, concentrate :-)
>
>There are three numeric fields.  I'm quoting directly from the
>expire.ctl manpage there, because all these answers are there.  I
>don't know what you mean by "flush" -- that word doesn't exist
>anywhere in the documentation I can find.  If you're talking
>about the third numeric field, then reread the snippet above...
>  
>

Sorry for my use of the term "flush" where the manpage calla it "purge."

However, I count five fields, and the line below says "four or five" fields:

------------------------------------------------------------------------

Most of the lines in this file will be in the second format, which 
consists of either four or five colon-sepa-
       rated fields:

           <pattern>:<flag>:<keep>:<default>:<purge>

if groupbaseexpiry is true in inn.conf (the default), and otherwise: ...

------------------------------------------------------------------------

My question is, if the forth field is, say, "100" (days), what does the 
fifth field (purge) imply?


>>OK, then I'll just add them with a shorter interval. How's this look?:
>>
>>local.*:A:90:90:90
>>!local.*:A:never:never:never
>>control,control.*:A:10:10:10
>>    
>>
>
>You still need to do what the documentation says:
>
>  
>
>>>   [...]  There should
>>>   always be a default line (a line with a <pattern> of "*" and <flag> of
>>>   "A", or a line with a <classnum> of "*") [...]
>>>

I don't understand this. Are you implying the file should be built this way (reversing the first and second lines)?:

!local.*:A:never:never:never
local.*:A:90:90:90
control,control.*:A:10:10:10

I used the fourth example for "When groupbaseexpiry is true (the default):


------------------------------------------------------------------------

# Keep local groups for a long time and local project groups forever.
           example.*:A:90:90:90
           example.project.*:A:never:never:never

------------------------------------------------------------------------


>>>Finally, the artcutoff I believe is similar to RumorMill's "Allow Old 
>>>Articles" and I am curious if it is somehow connected to the expire.ctl 
>>>routine?
>>>      
>>>
>>>Not really...artcutoff applies to articles when they first are
>>>offered to the server, and expire.ctl counts the amount of time
>>>they have existed on the server.
>>>      
>>>
>>That's two questions with only one answer. ;-)
>>    
>>
>
>You had one statement and one question.
>  
>


OK, you win this one because I said "believe" as something needing a 
confirmation.


>>You are saying that artcutoff is or isn't similar to RumorMill's "Allow 
>>old articles"? (I believe it is.)
>>    
>>
>
>Well, I haven't a clue what any feature in RumorMill does.  You
>can read what artcutoff does in the INN documentation and decide
>for yourself if it's the same.  If you find the documentation
>unclear, please ask about what part specifically confuses you.
>  
>


"Allow old articles" if set to true will keep RumorMill from examining 
the date. It will suck all articles from a peer. If set to false then 
there is a "datebounds" check to limit taking articles older than that date.

inn.conf says:

------------------------------------------------------------------------

       artcutoff
           Articles older than this number of days are dropped.  This 
setting should probably match the setting on the
           "/remember/" line in expire.ctl.  The default value is 10.

------------------------------------------------------------------------

Does this imply that articles older than ten days will not be allowed to 
be streamed or sucked, or does it imply that articles already in the 
spool will be expired if older than 10 days?

As I understand, the "/remember/" line in expire.ctl is for remembering 
the expired messages (by "Message-ID:") so they cannot be accepted again 
for the period.

So, to summarize my question (please make corrections to any other item 
where I seem off-base), is the artcutoff the proper place to set a 
maximum age for incoming articles (streamed or sucked)?


>>And that it is or isn't connected to expire.ctl? (I think not.)
>>    
>>
>
>I did my best at answering this above.  If you want anything
>more, you're going to have to provide a more specific query
>than "connected".
>  
>


"Connected" in expiry is what I must have been thinking before I slept.

I "believe" I now understand how this works:

We use artcutoff to check incoming messages and reject taking those that 
are too old.

We use expire.ctl to "get rid of" messages that are on the spool which 
are too old.

We use "/remember/" is used to keep the "Message-ID:" for a period long 
enough to block another article that might arrive late.

Is that even close?


>>I started with petchat, but couldn't get anything accepted by INN, even 
>>after deleting the article spool and overview and resetting the active 
>>file for just that group. Evidently history was the blockage.
>>    
>>
>
>Yes, after INN has seen articles, it remembers them in the
>history file so they won't be accepted as duplicates in the
>future.
>
>
>  
>
>>(This must mean a single group cannot be sucked if that group name was 
>>previously used? It's an all-or-nothing operation?)
>>    
>>
>
>It has nothing to do with the name of the group.  The trouble is
>that you are trying to pull the same -articles- (with the same
>Message-IDs) and INN is purposefully refusing to accept an
>article that it has already seen.
>  
>


Understood. However my question related to trying to wipe away one group 
only, then suck it back in without touching any other group. Since 
there's no way (that I can see) of removing just one group's history 
from the history db, then it appears the whole history, spool and 
overview must be wiped, and the whole active file reset.


>>I decided to wait until tomorrow night, and have decided to just
>>suck the articles without worrying about syncing the message numbers.
>>
>>The users will need to create a new news server account in their news 
>>client anyway (I will likely move this server to a different domain). 
>>    
>>
>
>They actually won't need to; if you keep the article numbers the
>same, then they can just change the name/IP of the server in the
>configuration and all of their preferences, filters, etc will
>just work without any additional fiddling.  It's much easier for
>them (even the beta-testing ones, to some extent) if you sync the
>article numbers.
>


I know they wouldn't have to, but for my own sanity, it would be so much 
easier for me. Early this morning I noticed messages appearing in the 
INN server, but I had the outgoing feed shut off on the news(76) server, 
and the references to news61 already commented out in INN.

Right now INN and news(76) are streaming normally (immediately and not 
batched). If I were to miss a few articles that were posted during 
something I was doing, the pullnews suck should grab them.

I don't know perl, but a fast look at pullnews doesn't indicate any 
checking of a Message-ID without needing to suck a complete article, 
body and all, then leaving it up to INN to accept or reject a duplicate 
article. Pullnews is only limited by the previous pull's date and 
high-water mark in .pullnews, meaning it wouldn't need to run for "hours."

-- 
John
Re: Authentication advice
#72446
Author: Jeffrey M. Vinocur
Date: Tue, 11 Oct 2005 01:33
154 lines
7181 bytes
In article <xzj2f.125966$qY1.23021@bgtnsc04-news.ops.worldnet.att.net>,
John F. Morse <xanadu.bbs@invalid.net> wrote:
>
>My question is, if the forth field is, say, "100" (days), what does the 
>fifth field (purge) imply?

I can't believe we're still going around about this.  You seem to
be seriously trying and just not getting it, though, so I'll give
explaning another shot.


Lines in expire.ctl must have five fields if groupbaseexpiry is
true, and must have four fields if groupbaseexpiry is false.
Either way, the last three fields have the same meaning.  If the
last three fields are called <min>, <default>, and <max> (which
is what the documentation calls them, and makes more sense to
me), then here is their meaning:

   Articles that -lack- an Expires: header will expire in
   <default> days.  The other two fields are ignored.  [ Almost
   all articles fall in this category on most servers, because
   users hardly ever add an Expires: header. ]

   Articles that -have- an Expires: header will expire at some
   time between <min> and <max> days.  (The <default> field is
   ignored.)  The expiration time is chosen from the interval
   between <min> and <max> based on the Expires: header in the
   individual article.  If that header specifies a time within
   that interval, then the article will expire at that time.  If
   that header specifies a time sooner than <min> days or later
   than <max> days, then the article will expire at whichever of
   <min> and <max> is closest to the time specified in the header.
   [ Very few articles fall in this category, mainly consisting
   of automatically posted articles such as FAQs, where an
   Expires: header has been added by the maintainer. ]


>>You still need to do what the documentation says:
>>
>>>>   [...]  There should
>>>>   always be a default line (a line with a <pattern> of "*" and <flag> of
>>>>   "A", or a line with a <classnum> of "*") [...]
>>>>
>
>I don't understand this. Are you implying the file should be built this
>way (reversing the first and second lines)?:

No.

I'm not implying anything.  I'm quoting the documentation, which
states very clearly that expire.ctl is -wrong- unless you have a
line that has "*" in the first field, "A" in the second field,
and some values you select in the other three fields.  Add a line
like that.


>I used the fourth example for "When groupbaseexpiry is true (the default):
>
># Keep local groups for a long time and local project groups forever.
>           example.*:A:90:90:90
>           example.project.*:A:never:never:never

That's not the fourth example.  That's the fourth section of a
single example that combines multiple tactics.


>"Allow old articles" if set to true will keep RumorMill from examining 
>the date. It will suck all articles from a peer. If set to false then 
>there is a "datebounds" check to limit taking articles older than that date.

Then yes, artcutoff is a combination of your features "Allow old
articles" (== artcutoff set to 0) and "datebounds" (== value of
artcutoff if not 0).


>       artcutoff
>           Articles older than this number of days are dropped.  This 
>setting should probably match the setting on the
>           "/remember/" line in expire.ctl.  The default value is 10.
>
>------------------------------------------------------------------------
>
>Does this imply that articles older than ten days will not be allowed to 
>be streamed or sucked, or does it imply that articles already in the 
>spool will be expired if older than 10 days?

The former.


>As I understand, the "/remember/" line in expire.ctl is for remembering 
>the expired messages (by "Message-ID:") so they cannot be accepted again 
>for the period.

Yes.


>So, to summarize my question (please make corrections to any other item 
>where I seem off-base), is the artcutoff the proper place to set a 
>maximum age for incoming articles (streamed or sucked)?

Yes.


>I "believe" I now understand how this works:
>
>We use artcutoff to check incoming messages and reject taking those that 
>are too old.
>
>We use expire.ctl to "get rid of" messages that are on the spool which 
>are too old.
>
>We use "/remember/" is used to keep the "Message-ID:" for a period long 
>enough to block another article that might arrive late.

Yes.


>there's no way (that I can see) of removing just one group's history 
>from the history db, then it appears the whole history, spool and 
>overview must be wiped, and the whole active file reset.

That's the straightfoward way of doing it, and since it's easy
enough for you to start over, that's what I'd recommend.

If you had some dire need to be able to re-suck a single group
without starting over, there are some things you could try (like
groveling through the history file manually, or setting
/remember/ very low so the history file is cleaned up quickly and
hoping you don't get many duplicates).


>Right now INN and news(76) are streaming normally (immediately and not 
>batched). If I were to miss a few articles that were posted during 
>something I was doing, the pullnews suck should grab them.

They should queue articles and resend them later if your server
is down for a while.


>I don't know perl, but a fast look at pullnews doesn't indicate any 
>checking of a Message-ID without needing to suck a complete article, 
>body and all, then leaving it up to INN to accept or reject a duplicate 
>article. Pullnews is only limited by the previous pull's date and 
>high-water mark in .pullnews, meaning it wouldn't need to run for "hours."

Right.  It doesn't have any knowledge of INN (in fact, it can
work with any upstream and downstream server software), so it has
no way to tell if the downstream server has seen the Message-ID
before...except to download the article and offer it.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: Authentication advice
#72810
Author: Russ Allbery
Date: Mon, 12 Dec 2005 00:25
20 lines
2033 bytes
Jeffrey M Vinocur <jeff@litech.org> writes:

> I don't know why this isn't in the manpage, but the example
> pullnews configuration that's actually in the script itself shows
> how to do so -- just put them on the server line:

>                        data.pa.vix.com
>                                news.software.nntp 0 0
>                                comp.lang.c 0 0
>                        news.uu.net username passwd
>                                uunet.announce 0 0
>                                uunet.help 0 0

I've now fixed the documentation in Subversion.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Page 2 of 2 • 56 total messages
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