• Re: INN2 artcutoff

    From =?UTF-8?Q?Julien_=C3=89LIE?=@21:1/5 to All on Sun Jan 21 09:36:38 2024
    Salut Stéphane,

    Maybe reporting the value of "artcutoff" in log and INNReport
    would be a nice thing.

    It already is at the beginning of the daily report, in a cryptic form :)

    Server status:
    Server running
    Allowing remote connections
    Parameters c 10 i 50 (18) l 600000 o 1010 t 300 H 2 T 60 X 0 normal
    specified

    It is "c 10", the value of the cutoff parameter.

    --
    Julien ÉLIE

    « Audentes fortunat iuvat. » (Virgile)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?Julien_=C3=89LIE?=@21:1/5 to All on Sun Jan 21 11:27:39 2024
    Hi Nigel,

    I still intend to backfill a number of my groups, I'm just nervous
    about propagating old articles while still being able to receive and
    send new ones.

    Did you try to add a fake hop when using pullnews? (-F flag)
    https://www.eyrie.org/~eagle/software/inn/docs/pullnews.html

    """
    In case you have running peers and don't want to propagate them the
    articles you are pulling from upstream servers, you should add a fake
    hop with the -F flag to all the pulled articles, and add that very fake
    hop in the exclusion sub-field of all the sites configured in your
    newsfeeds file. (For example, using "pullnews -F myserverimported",
    change "sitename:*:Tm:innfeed!" to
    "sitename/myserverimported:*:Tm:innfeed!" for every sitename in
    newsfeeds you don't want to feed the pulled articles to.)
    """

    This way, you will never be nervous again when running pullnews :-)



    P.-S.: If someone has a better or quicker way to prevent pulled articles
    from being sent to peers, please tell, and I'll update the pullnews documentation accordingly.

    I don't know whether suck has a similar facility.

    --
    Julien ÉLIE

    « Audentes fortunat iuvat. » (Virgile)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jesse Rehmer@21:1/5 to iulius@nom-de-mon-site.com.invalid on Sun Jan 21 10:51:38 2024
    On Jan 21, 2024 at 4:27:39 AM CST, "Julien ÉLIE" <iulius@nom-de-mon-site.com.invalid> wrote:

    Hi Nigel,

    I still intend to backfill a number of my groups, I'm just nervous
    about propagating old articles while still being able to receive and
    send new ones.

    Did you try to add a fake hop when using pullnews? (-F flag)
    https://www.eyrie.org/~eagle/software/inn/docs/pullnews.html

    """
    In case you have running peers and don't want to propagate them the
    articles you are pulling from upstream servers, you should add a fake
    hop with the -F flag to all the pulled articles, and add that very fake
    hop in the exclusion sub-field of all the sites configured in your
    newsfeeds file. (For example, using "pullnews -F myserverimported",
    change "sitename:*:Tm:innfeed!" to
    "sitename/myserverimported:*:Tm:innfeed!" for every sitename in
    newsfeeds you don't want to feed the pulled articles to.)
    """

    This way, you will never be nervous again when running pullnews :-)



    P.-S.: If someone has a better or quicker way to prevent pulled articles
    from being sent to peers, please tell, and I'll update the pullnews documentation accordingly.

    I don't know whether suck has a similar facility.

    With suck you need to use the post filter function. From the man page:

    "POST FILTER
    if the -y post_filter option is specified on the command line in
    conjunction with any of the batch modes, then suck will call the post
    filter specified, after downloading the articles, and before
    batching/posting the articles. The filter is passed the directory
    where the articles are stored (the -dm option). The filter program is
    responsible for parsing the contents of the directory. See
    sample/post_filter.pl for a sample post filter. This option was
    designed to allow you to add your own host name to the Path: header,
    but if you need to do anything else to the messages, you can."

    The sample post_filter.pl:

    #!/usr/local/bin/perl

    # sample program for editting/changing the downloaded articles.
    # this program is passed the directory where the articles are
    # stored

    # it modifies the Path: header, so you can add your own unique
    # host to it, so you can tell INN not to upload these articles

    opendir (DIRP, $ARGV[0]) or die "Can't open $ARGV[0]";

    # get list of files, skipping hidden files
    @files = grep ( !/^\./, readdir(DIRP));

    foreach $file ( @files) {

    # read the file in
    $path = "${ARGV[0]}/${file}";
    open FIP, "<${path}" or die "Can't read ${path}\n";@file = <FIP>;
    close FIP;

    # find the line and change it
    foreach $line ( @file) {
    if ( $line =~ /^Path: /) {
    $line =~ s/^Path: /Path: myhost\!/
    }
    }

    # save it back out
    open FIP, ">${path}" or die "Can't write to ${path}\n";
    print FIP @file;
    close FIP;
    }

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?Julien_=C3=89LIE?=@21:1/5 to All on Sun Jan 21 14:13:07 2024
    Hi Jesse,

    I don't know whether suck has a similar facility.

    With suck you need to use the post filter function.
    [...]
    # find the line and change it
    foreach $line ( @file) {
    if ( $line =~ /^Path: /) {
    $line =~ s/^Path: /Path: myhost\!/
    }
    }

    OK, thanks for the confirmation.
    So the same tip of excluding articles with that fake hop from being sent
    to outgoing peers can be used.

    --
    Julien ÉLIE

    « Dans un mois, dans un an, comment souffrirons-nous ? » (Jean Racine)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From yamo'@21:1/5 to All on Mon Jan 22 10:44:38 2024
    Salut Julien,
    Julien ÉLIE a tapoté :

    Maybe reporting the value of "artcutoff" in log and INNReport
    would be a nice thing.

    It already is at the beginning of the daily report, in a cryptic form :)

    Server status:
    Server running
    Allowing remote connections
    Parameters c 10 i 50 (18) l 600000 o 1010 t 300 H 2 T 60 X 0 normal
    specified

    It is "c 10", the value of the cutoff parameter.

    Oh yes, the report in text mode but I prefer the html form.


    I found in inn_status.html :

    Cutoff: 10 days




    --
    Stéphane

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Nigel Reed@21:1/5 to iulius@nom-de-mon-site.com.invalid on Mon Jan 22 17:28:52 2024
    On Sun, 21 Jan 2024 11:27:39 +0100
    Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> wrote:

    Hi Nigel,

    I still intend to backfill a number of my groups, I'm just nervous
    about propagating old articles while still being able to receive and
    send new ones.

    Did you try to add a fake hop when using pullnews? (-F flag)
    https://www.eyrie.org/~eagle/software/inn/docs/pullnews.html

    """
    In case you have running peers and don't want to propagate them the
    articles you are pulling from upstream servers, you should add a fake
    hop with the -F flag to all the pulled articles, and add that very
    fake hop in the exclusion sub-field of all the sites configured in
    your newsfeeds file. (For example, using "pullnews -F
    myserverimported", change "sitename:*:Tm:innfeed!" to "sitename/myserverimported:*:Tm:innfeed!" for every sitename in
    newsfeeds you don't want to feed the pulled articles to.)
    """

    To be clear, I only need to do this with my peer connections right, not
    ME or inpath or innfeed, controlchan etc.

    news.bbs.nz/news.bbs.nz,nomilktodaythankyou\
    :*,@*.bina*,@*.bain*,@*.dateien*,@*.pictures*,$LOCAL\
    :Ap,Tm:innfeed!


    I've added "nomilktodaythankyou" to all my peers, similar to this. and
    will use -F nomilktodaythankyou when using pullnews so I guess this is
    fair warning to my peers :)

    Now, who has a 10 year backlog of the soc.* I can slurp for practice? :)

    --
    End Of The Line BBS - Plano, TX
    telnet endofthelinebbs.com 23

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jesse Rehmer@21:1/5 to All on Tue Jan 23 00:56:33 2024
    On Jan 22, 2024 at 5:28:52 PM CST, "Nigel Reed" <sysop@endofthelinebbs.com> wrote:

    On Sun, 21 Jan 2024 11:27:39 +0100
    Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> wrote:

    Hi Nigel,

    I still intend to backfill a number of my groups, I'm just nervous
    about propagating old articles while still being able to receive and
    send new ones.

    Did you try to add a fake hop when using pullnews? (-F flag)
    https://www.eyrie.org/~eagle/software/inn/docs/pullnews.html

    """
    In case you have running peers and don't want to propagate them the
    articles you are pulling from upstream servers, you should add a fake
    hop with the -F flag to all the pulled articles, and add that very
    fake hop in the exclusion sub-field of all the sites configured in
    your newsfeeds file. (For example, using "pullnews -F
    myserverimported", change "sitename:*:Tm:innfeed!" to
    "sitename/myserverimported:*:Tm:innfeed!" for every sitename in
    newsfeeds you don't want to feed the pulled articles to.)
    """

    To be clear, I only need to do this with my peer connections right, not
    ME or inpath or innfeed, controlchan etc.

    news.bbs.nz/news.bbs.nz,nomilktodaythankyou\
    :*,@*.bina*,@*.bain*,@*.dateien*,@*.pictures*,$LOCAL\
    :Ap,Tm:innfeed!


    I've added "nomilktodaythankyou" to all my peers, similar to this. and
    will use -F nomilktodaythankyou when using pullnews so I guess this is
    fair warning to my peers :)

    Now, who has a 10 year backlog of the soc.* I can slurp for practice? :)

    Anyone is free to suck/pull from my server: news.blueworldhosting.com

    Big8 hierarchies go back 20-30 years depending on the group.

    Reading is open on 119 or 563 via TLS.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From yamo'@21:1/5 to All on Tue Jan 23 10:09:29 2024
    Hi,
    Jesse Rehmer a tapoté :

    Anyone is free to suck/pull from my server: news.blueworldhosting.com

    Big8 hierarchies go back 20-30 years depending on the group.

    Reading is open on 119 or 563 via TLS.

    Maybe it is in the faq or in the history of news.software.nntp but
    how simply sorting by date the articles?
    The old posts sucked will be showned at first to NNRP client?

    Or creating an old.* local hierarchie to show this olds posts?

    --
    Stéphane

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Nigel Reed@21:1/5 to yamo' on Tue Jan 23 12:12:44 2024
    On Tue, 23 Jan 2024 10:09:29 +0100
    yamo' <yamo@beurdin.invalid> wrote:

    Hi,
    Jesse Rehmer a tapoté :

    Anyone is free to suck/pull from my server:
    news.blueworldhosting.com

    Big8 hierarchies go back 20-30 years depending on the group.

    Reading is open on 119 or 563 via TLS.

    Maybe it is in the faq or in the history of news.software.nntp but
    how simply sorting by date the articles?
    The old posts sucked will be showned at first to NNRP client?

    Or creating an old.* local hierarchie to show this olds posts?


    Thank you for that. I think we're peers anyway.

    thanks,
    Nigel

    --
    End Of The Line BBS - Plano, TX
    telnet endofthelinebbs.com 23

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?Julien_=C3=89LIE?=@21:1/5 to All on Tue Jan 23 19:48:25 2024
    Hi Nigel,

    To be clear, I only need to do this with my peer connections right, not
    ME or inpath or innfeed, controlchan etc.

    You should do that for your outgoing peers and I think the inpaths!
    entry too so as not to send stats to the top1000 project about your
    donwloaded articles.
    Other entries do not need the exclusion.

    --
    Julien ÉLIE

    « My wife and I were happy for twenty years. Then we met. » (Henny
    Youngman)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?Julien_=C3=89LIE?=@21:1/5 to All on Tue Jan 23 20:25:18 2024
    Salut Stéphane,

    how simply sorting by date the articles?
    The old posts sucked will be showned at first to NNRP client?

    That's how article numbers work, indeed. They increment when a new
    article arrives. Old posts will then have a higher article number than
    your current articles in the newsgroup.

    You'll then have to renumber your newsgroups, which can be done by
    re-feeding your spool to a fresh new instance. Naturally, the re-feed
    is done by article posting date, so that they arrive in order.

    You may find useful information in the "Renumber newsgroups by post
    date" thread in news.admin.peering in April 2023 (<7Qb1M.3786652$nwq3.3523857@fx13.ams4>).


    Or creating an old.* local hierarchie to show this olds posts?

    A quicker solution, yes!

    --
    Julien ÉLIE

    « Les amis de la vérité sont ceux qui la cherchent, et non ceux qui se
    vantent de l'avoir trouvée. » (Condorcet)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Nigel Reed@21:1/5 to iulius@nom-de-mon-site.com.invalid on Tue Jan 23 13:40:51 2024
    On Tue, 23 Jan 2024 20:25:18 +0100
    Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> wrote:

    Salut Stéphane,

    how simply sorting by date the articles?
    The old posts sucked will be showned at first to NNRP client?

    That's how article numbers work, indeed. They increment when a new
    article arrives. Old posts will then have a higher article number
    than your current articles in the newsgroup.

    You'll then have to renumber your newsgroups, which can be done by re-feeding your spool to a fresh new instance. Naturally, the
    re-feed is done by article posting date, so that they arrive in order.

    You may find useful information in the "Renumber newsgroups by post
    date" thread in news.admin.peering in April 2023 (<7Qb1M.3786652$nwq3.3523857@fx13.ams4>).

    Is thre no way to renumber a group without having to feed to another
    news server? You'd think there'd be a script to do that or something.

    If that's the case, would it not be easier to stop accepting from
    peers, delete all the articles and then refeed?

    It seems everytime I contemplate importing older articles, there's
    another complication.

    Could a script not just get all the posting dates and article numbers,


    I'm sure there's more to it than that tho...


    --
    End Of The Line BBS - Plano, TX
    telnet endofthelinebbs.com 23

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Russ Allbery@21:1/5 to Nigel Reed on Tue Jan 23 11:50:00 2024
    Nigel Reed <sysop@endofthelinebbs.com> writes:

    Is thre no way to renumber a group without having to feed to another
    news server? You'd think there'd be a script to do that or something.

    There is not. Unfortunately, article numbers get very deeply encoded into
    the data storage for INN in ways that are hard to change. In theory, one
    could write such a script, but for example you have to change the Xref
    header within the stored article itself and I think you may have to change
    the storage token for the article and thus the history entry, in addition
    to the more obvious things like the overview database.

    --
    Russ Allbery (eagle@eyrie.org) <https://www.eyrie.org/~eagle/>

    Please post questions rather than mailing me directly.
    <https://www.eyrie.org/~eagle/faqs/questions.html> explains why.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Nigel Reed@21:1/5 to iulius@nom-de-mon-site.com.invalid on Wed Jan 24 01:37:53 2024
    On Tue, 23 Jan 2024 19:48:25 +0100
    Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> wrote:

    Hi Nigel,

    To be clear, I only need to do this with my peer connections right,
    not ME or inpath or innfeed, controlchan etc.

    You should do that for your outgoing peers and I think the inpaths!
    entry too so as not to send stats to the top1000 project about your donwloaded articles.
    Other entries do not need the exclusion.


    My plan was to:

    1. Create a new inn instance on a new server
    2. Suck in all the articles for all the groups the peer has
    3. stop the current news server
    4. re-pull to make sure I have all the latest articles
    5. delete the spool on the existing server
    6. stop inn in the new server and export the /spool directory (hence
    the NFS question elsewhere)
    7. bring up the server and everything is good in the world.

    Now I'm thinking about it. This wont work because I have other groups
    that are not carried by the peer I'll be pulling from.

    I could just copy those directories and rebuild the index I guess but I
    don't fancy that on a TB of data.

    So after suggestions on how to get the two merged in the shortest
    possible downtime and loss of articles.

    The existing news server does not and will not have the disk space, and
    as I mentioned before I'd really like to keep inn running there and
    just store the data on the other server since it'll have less CPU and
    memory.

    All suggestions are good.
    --
    End Of The Line BBS - Plano, TX
    telnet endofthelinebbs.com 23

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)