Thread View: news.software.nn
6 messages
6 total messages
Started by Jonathan I. Kamens
Fri, 12 Jun 1992 21:02
Re: How to delete cancelled and expired articles ???
Author: Jonathan I. Kamens
Date: Fri, 12 Jun 1992 21:02
Date: Fri, 12 Jun 1992 21:02
40 lines
3057 bytes
3057 bytes
In article <minh.708322385@lis.rch.unimelb.edu.au> minh@rch.unimelb.edu.au (Minh Tran) writes:
On our system they are not deleted !!!, they stay there and
when we do 'Z' to read it says "Cancelled or expired ...", what I
did to delete them is to expire all all group from nnadmin, but that
is time comsuming since recollecting all articles.
Aha. So what you are actually asking is not how to delete cancelled
or expired articles, but rather how to remove them from nn's thread
database so it realizes that they are no longer there.
It is for this reason that the "Welcome to news.newusers.questions!"
posting in this newsgroup tells you to be as specific as possible,
including mentioning the software that you are using and the behavior
that yo find incorrect, when posting a question. If you'd done that
in your first time, people could have been giving you help several
days ago, rather than having to go through question-answer iterations
in order to determine what you were really asking about.
According to the man page for nnmaster(8), it is responsible for
updating the thread database when appropriate. Are you running an
nnmaster on your system? Did you give it the correct arguments?
If you are, and you did, then perhaps it is not realizing that
articles are being expired because you are not running "updatemin" or
some other script to keep the minimum article number in the active
file up-to-date. If the minimum article number in the active file
never increases, then nnmaster has no way of knowing that articles
have been expired and should be removed from the database.
I have cross-posted to news.software.nn and directed followups there,
since that newsgroup is more appropriate for this question and its
discussion than news.newusers.questions.
--
Jonathan Kamens jik@MIT.Edu
MIT Information Systems/Athena Moderator, news.answers
(Send correspondence related to the news.answers newsgroup
{and ONLY correspondence related to the newsgroup}
to news-answers-request@MIT.Edu.)
Re: How to delete cancelled and expired articles ???
Author: Minh Tran
Date: Mon, 15 Jun 1992 00:37
Date: Mon, 15 Jun 1992 00:37
27 lines
2032 bytes
2032 bytes
jik@athena.mit.edu (Jonathan I. Kamens) writes: >According to the man page for nnmaster(8), it is responsible for >updating the thread database when appropriate. Are you running an >nnmaster on your system? Did you give it the correct arguments? Yes we are running nnmaster as nnmaster -r -B -C We are only running nntp client, the server is on another machine >If you are, and you did, then perhaps it is not realizing that >articles are being expired because you are not running "updatemin" or >some other script to keep the minimum article number in the active >file up-to-date. If the minimum article number in the active file >never increases, then nnmaster has no way of knowing that articles >have been expired and should be removed from the database. We dont have updatemin script, and infact We dont run any other script ??, could someone post these scripts, or hint on what they actually do. --- minh -- |> B\iochemistry Minh Tra/N <| |> I\nformation minh@lis.rch.unimelb.edu.a/U <| |> S\ervice (03) 345-590/8 <| |> D\epartment Melbourne, Australi/A <|
Re: How to delete cancelled and expired articles ???
Author: Ofer Inbar
Date: Tue, 16 Jun 1992 08:50
Date: Tue, 16 Jun 1992 08:50
53 lines
3661 bytes
3661 bytes
minh@rch.unimelb.edu.au (Minh Tran) writes: >jik@athena.mit.edu (Jonathan I. Kamens) writes: > Yes we are running nnmaster as > nnmaster -r -B -C > We are only running nntp client, the server is on another machine > >>If you are, and you did, then perhaps it is not realizing that >>articles are being expired because you are not running "updatemin" or >>some other script to keep the minimum article number in the active >>file up-to-date. If the minimum article number in the active file >>never increases, then nnmaster has no way of knowing that articles >>have been expired and should be removed from the database. > > We dont have updatemin script, and infact We dont run any other > script ??, could someone post these scripts, or hint on what > they actually do. In case you're just responsible for running nn, and not the news server, you should be aware that updatemin is part of the news system, and not the nn newsreader. Also, nn by default ignores the 'min' field of the active file, unless you change it at compile time. (Perhaps this is only for NNTP, I don't remember). What nnmaster does when it expires is to individually check the existence of every article in each group. A working 'min' field simply helps it out by letting it know that articles under a certain number don't need to be checked, but even if it were assuming the min field to be valid and it were not (i.e. min is not updated and is thus too low), this would simply slow nnmaster down by causing it to check more article numbers than it needs to. The problem is most likely this: nnmaster -r, in daemon mode, does article collection runs on a periodic basis, but it does not try to expire the database until you tell it to. To signal nnmaster to expire, run nnadmin (or the :admin command within nn). From the menu, select E for "Expire" and then Y for "Yes". nnadmin also accepts stacked keystrokes from the command line, so you can enter the command "nnadmin EY" to do this. You'll most likely want to use crontab to schedule a regular expire every day. If you do this, you'll want to use nnadmin =EY. The = switch, which is ostensibly documented somewhere :-), causes nnadmin to run in noninteractive mode, so it does not use the tty. Find out when your news system expires articles, and have nnmaster do its expire after news is done. For example, if your news server starts expires at midnight and usually takes about an hour, then have nnmaster expire every day at 1:30am. Hope this helps. -- Cos (Ofer Inbar) -- cos@chaos.cs.brandeis.edu -- WBRS (BRiS) -- WBRS@binah.cc.brandeis.edu WBRS@brandeis.bitnet Brandeis University Computer Science Department (617) 736-2700 415 South Street, Waltham MA, 02254-9110 System Admin: 736-2717
Re: How to delete cancelled and expired articles ???
Author: Charles Carlson
Date: Tue, 16 Jun 1992 15:50
Date: Tue, 16 Jun 1992 15:50
20 lines
1758 bytes
1758 bytes
In <cos.708684634@chaos.cs.brandeis.edu> cos@chaos.cs.brandeis.edu (Ofer Inbar) writes: >expire after news is done. For example, if your news server starts >expires at midnight and usually takes about an hour, then have >nnmaster expire every day at 1:30am. Wouldn't something like: 59 0 * * * * /newspath/doexpire -v; /newspath/nnadmin =EYW Be even a better solution? Then nnadmin would run the instant doexpire has finished, and you'll never run into the problem of overlapping. Charles -- / Charles Carlson umcarls9@ccu.Umanitoba.CA \ This .sig now available on a limited edition 2 record set, for 4 easy / installments of $19.95 each. To order, please have your Visa or Mastercard \ ready and phone: 1-800-555-1212, or send check or MO to 200-155 Carlton St.
Re: How to delete cancelled and expired articles ???
Author: Christopher Davis
Date: Tue, 16 Jun 1992 22:18
Date: Tue, 16 Jun 1992 22:18
26 lines
2312 bytes
2312 bytes
Ofer> == Ofer Inbar <cos@chaos.cs.brandeis.edu>
Ofer> You'll most likely want to use crontab to schedule a regular expire
Ofer> every day. If you do this, you'll want to use nnadmin =EY. The =
Ofer> switch, which is ostensibly documented somewhere :-), causes nnadmin
Ofer> to run in noninteractive mode, so it does not use the tty. Find out
Ofer> when your news system expires articles, and have nnmaster do its
Ofer> expire after news is done. For example, if your news server starts
Ofer> expires at midnight and usually takes about an hour, then have
Ofer> nnmaster expire every day at 1:30am.
Of course, if you are the news admin, or can get them to maintain it,
you can put it in with the expire crontab entry, so it will be run
immediately after expire finishes, with no race conditions.
This is what we use [wrapped for readability]
59 0 * * * /usr/lib/newsbin/expire/doexpire; /usr/local/bin/nnadmin =EYW;
/usr/local/lib/nn/back_act;/usr/lib/newsbin/expire/updatemin
Notice that this is in the SysV/SunOS cron format, which has separate
crontabs for each user. This runs as 'news'.
I don't remember what the W switch to nnadmin does :)
--
Christopher Davis * ckd@eff.org * System Administrator, EFF * +1 617 864 0665
Samizdata isn't that different from Samizdat. -- Dan'l Danehy-Oakes
Re: How to delete cancelled and expired articles ???
Author: Ofer Inbar
Date: Wed, 17 Jun 1992 03:14
Date: Wed, 17 Jun 1992 03:14
46 lines
3448 bytes
3448 bytes
ckd@eff.org (Christopher Davis) writes: >Ofer> == Ofer Inbar <cos@chaos.cs.brandeis.edu> > > Ofer> You'll most likely want to use crontab to schedule a regular expire > Ofer> every day. If you do this, you'll want to use nnadmin =EY. The = > Ofer> switch, which is ostensibly documented somewhere :-), causes nnadmin > Ofer> to run in noninteractive mode, so it does not use the tty. Find out > Ofer> when your news system expires articles, and have nnmaster do its > Ofer> expire after news is done. For example, if your news server starts > Ofer> expires at midnight and usually takes about an hour, then have > Ofer> nnmaster expire every day at 1:30am. > >Of course, if you are the news admin, or can get them to maintain it, >you can put it in with the expire crontab entry, so it will be run >immediately after expire finishes, with no race conditions. > >This is what we use [wrapped for readability] >59 0 * * * /usr/lib/newsbin/expire/doexpire; /usr/local/bin/nnadmin =EYW; >/usr/local/lib/nn/back_act;/usr/lib/newsbin/expire/updatemin The reason I didn't think of suggesting this one is because it doesn't apply to our site; we have an NNTP setup with the news system and nn on different machines (with no shared disks). >I don't remember what the W switch to nnadmin does :) I wakes up the master, which normally causes it to check to see if it needs to collect new articles. In this case, when the master wakes up it will notice that you've sent it an expire signal, and start expiring right away. If you didn't have the W, the expire would wait until the next time nnmaster woke up automatically. The frequency for this is set by the argument to the -r switch, and I think defaults to every 30 minutes. nnadmin doesn't really have 'switches' at all, with the exception of = which causes it to run in background. Other than that, it reads the letters on the command line argument and interprets them as menu choices, just as if you had run nnadmin manually and typed in those keys. To see what a given 'switch' does, just start up nnadmin or (:admin inside nn) and see what the menu choices are. E and W are on the top level menu. The E (expire) option asks for a Y/N confirmation. -- Cos (Ofer Inbar) -- cos@chaos.cs.brandeis.edu -- WBRS (BRiS) -- WBRS@binah.cc.brandeis.edu WBRS@brandeis.bitnet Brandeis University Computer Science Department (617) 736-2700 415 South Street, Waltham MA, 02254-9110 System Admin: 736-2717
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