Thread View: news.software.nntp
9 messages
9 total messages
Started by John F. Morse
Sun, 24 Oct 2010 21:19
Transit server "wanttrash"
Author: John F. Morse
Date: Sun, 24 Oct 2010 21:19
Date: Sun, 24 Oct 2010 21:19
25 lines
1795 bytes
1795 bytes
Hi Julien. I remember some discussion about a year ago that involved using wanttrash to accept and relay any newsgroup. What version of INN supports this? Could you briefly explain what additional settings are needed to process transit articles? I see remembertrash is another config option that may be needed. Can a transit-only (no readers) server use such an option and not need any active file, tradindexed articles spool, nor any cycbuffs? If so, how does INN monitor history so articles can be refused and/or rejected? TIA. -- John When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Re: Transit server "wanttrash"
Author: Julien ÉLIE
Date: Sun, 24 Oct 2010 22:07
Date: Sun, 24 Oct 2010 22:07
64 lines
3774 bytes
3774 bytes
Hi John,
> I remember some discussion about a year ago that involved using wanttrash to
> accept and relay any newsgroup.
>
> What version of INN supports this?
INN 2.5.2 according to:
http://www.eyrie.org/~eagle/software/inn/docs/news.html
A new flag has been added to newsfeeds entries: Aj, when present,
says to feed articles accepted and filed in junk (due to wanttrash)
to peers based on their newsfeeds feed patterns applied to the
Newsgroups: header as though the article were accepted and all those
groups were locally carried. This is useful if you want to run INN
with a minimal active file and propagate all posts. Thanks to
Andrew Gierth for the patch.
A new parameter has been added to inn.conf: logtrash defines
whether a line for articles posted to groups not locally carried
by the news server should be added in the news log file to report
unwanted newsgroups. The default is true but it can be useful to
set it to false (especially when wanttrash is also used).
> Could you briefly explain what additional settings are needed to process transit
> articles?
See above.
> I see remembertrash is another config option that may be needed.
It is a different thing (remembering in the history).
> Can a transit-only (no readers) server use such an option and not need any active
> file, tradindexed articles spool, nor any cycbuffs?
You need a minimal active file (with at least "control" and "junk").
No need for tradindexed.
You *need* a place where to store articles to feed (it could be CNFS).
A small one would be enough. It is how innd works: it needs to write
articles somewhere, so that innfeed can retrieve them (and if one of your
peer is down for two days, it can send the articles when it is up again,
if of course the article is still stored).
> If so, how does INN monitor history so articles can be refused and/or rejected?
The history file still exists. Remembering is set by artcutoff,
remembertrash and things like that. You still need to run news.daily
to expire the history file.
--
Julien ÉLIE
« Si Dieu n'est pas marié, pourquoi parle-t-on de sa grande Clémence ? »
(Raymond Devos)
Re: Transit server "wanttrash"
Author: John F. Morse
Date: Mon, 25 Oct 2010 00:34
Date: Mon, 25 Oct 2010 00:34
70 lines
3947 bytes
3947 bytes
Hi Julien, Julien ÉLIE wrote: >> I remember some discussion about a year ago that involved using >> wanttrash to accept and relay any newsgroup. >> >> What version of INN supports this? > > INN 2.5.2 according to: > http://www.eyrie.org/~eagle/software/inn/docs/news.html > > A new flag has been added to newsfeeds entries: Aj, when present, > says to feed articles accepted and filed in junk (due to wanttrash) > to peers based on their newsfeeds feed patterns applied to the > Newsgroups: header as though the article were accepted and all those > groups were locally carried. This is useful if you want to run INN > with a minimal active file and propagate all posts. Thanks to > Andrew Gierth for the patch. > > A new parameter has been added to inn.conf: logtrash defines > whether a line for articles posted to groups not locally carried > by the news server should be added in the news log file to report > unwanted newsgroups. The default is true but it can be useful to > set it to false (especially when wanttrash is also used). > >> Could you briefly explain what additional settings are needed to >> process transit articles? > > See above. > >> I see remembertrash is another config option that may be needed. > > It is a different thing (remembering in the history). > >> Can a transit-only (no readers) server use such an option and not >> need any active file, tradindexed articles spool, nor any cycbuffs? > > You need a minimal active file (with at least "control" and "junk"). > No need for tradindexed. > You *need* a place where to store articles to feed (it could be CNFS). > A small one would be enough. It is how innd works: it needs to write > articles somewhere, so that innfeed can retrieve them (and if one of your > peer is down for two days, it can send the articles when it is up again, > if of course the article is still stored). > >> If so, how does INN monitor history so articles can be refused and/or >> rejected? > > The history file still exists. Remembering is set by artcutoff, > remembertrash and things like that. You still need to run news.daily > to expire the history file. > Thanks Julien. All understood (mostly a memory jog!), and I'm going to get busy. ;-) Just installed (aptitude) INN 2.5.2 on a new headless Debian Squeeze box via ssh, configured /etc/inn.conf, and it's up and running now. Will configure more tomorrow. Thanks for the fast reply. -- John When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Re: Transit server "wanttrash"
Author: John F. Morse
Date: Thu, 28 Oct 2010 19:23
Date: Thu, 28 Oct 2010 19:23
182 lines
7868 bytes
7868 bytes
Hi Julien,
> Julien ÉLIE wrote:
>>> I remember some discussion about a year ago that involved using
>>> wanttrash to accept and relay any newsgroup.
>>>
>>> What version of INN supports this?
>>
>> INN 2.5.2 according to:
>> http://www.eyrie.org/~eagle/software/inn/docs/news.html
>>
>> A new flag has been added to newsfeeds entries: Aj, when present,
>> says to feed articles accepted and filed in junk (due to wanttrash)
>> to peers based on their newsfeeds feed patterns applied to the
>> Newsgroups: header as though the article were accepted and all those
>> groups were locally carried. This is useful if you want to run INN
>> with a minimal active file and propagate all posts. Thanks to
>> Andrew Gierth for the patch.
>>
>> A new parameter has been added to inn.conf: logtrash defines
>> whether a line for articles posted to groups not locally carried
>> by the news server should be added in the news log file to report
>> unwanted newsgroups. The default is true but it can be useful to
>> set it to false (especially when wanttrash is also used).
>>
>>> Could you briefly explain what additional settings are needed to
>>> process transit articles?
>>
>> See above.
>>
>>> I see remembertrash is another config option that may be needed.
>>
>> It is a different thing (remembering in the history).
>>
>>> Can a transit-only (no readers) server use such an option and not
>>> need any active file, tradindexed articles spool, nor any cycbuffs?
>>
>> You need a minimal active file (with at least "control" and "junk").
>> No need for tradindexed.
>> You *need* a place where to store articles to feed (it could be CNFS).
>> A small one would be enough. It is how innd works: it needs to write
>> articles somewhere, so that innfeed can retrieve them (and if one of
>> your
>> peer is down for two days, it can send the articles when it is up again,
>> if of course the article is still stored).
>>
>>> If so, how does INN monitor history so articles can be refused
>>> and/or rejected?
>>
>> The history file still exists. Remembering is set by artcutoff,
>> remembertrash and things like that. You still need to run news.daily
>> to expire the history file.
>
> Thanks Julien.
>
> All understood (mostly a memory jog!), and I'm going to get busy. ;-)
>
> Just installed (aptitude) INN 2.5.2 on a new headless Debian Squeeze
> box via ssh, configured /etc/inn.conf, and it's up and running now.
>
> Will configure more tomorrow.
>
> Thanks for the fast reply.
All of the above is working fine now (after a lot of owner:group and
permission changes from Marco's packaging).
However I found an unknown (to me) problem.
I'm receiving e-mail cron failure reports at midnight. The Message
Subject is:
Cron <news@v102> test -x /usr/lib/news/bin/news.daily && news.daily
expireover lowmark delayrm
The message body contains only these two lines:
/usr/lib/news/innshellvars: line 98: basename: command not found
/usr/lib/news/innshellvars: line 121: tr: command not found
Checking the /usr/lib/news/innshellvars file:
98 TEMPSOCK=`basename ${INNDDIR}/ctlinndXXXXXX | ${SED} -e
's/XXXXXX$/*/'`
98 TEMPSOCK=`basename ${INNDDIR}/ctlinndXXXXXX | ${SED} -e
's/XXXXXX$/*/'`
121 SYSLOG_FACILITY=`echo "LOG_NEWS" | tr "[:upper:]" "[:lower:]" |
${SED} -e 's/log_//'`
121 SYSLOG_FACILITY=`echo "LOG_NEWS" | tr "[:upper:]" "[:lower:]" |
${SED} -e 's/log_//'`
The first lines are from v102, a new INN 2.5.2 Aptitude package install
from the Debian Squeeze repository.
The second lines are from n102, a Debian Squeeze server with INN 2.5.2
compiled from source last February, and put into production service in
March. It is running fine.
They look identical and I see nothing unusual there.
john@v102:/usr/lib/news$ locate basename
/usr/bin/basename
/usr/share/man/man1/basename.1.gz
john@n102:/usr/lib/news$ locate basename/usr/bin/basename
/usr/share/man/man1/basename.1.gz
/usr/share/man/man3/basename.3.gz
john@v102:/usr/lib/news$ ls -al /usr/bin/basename
-rwxr-xr-x 1 root root 27472 Apr 27 2010 /usr/bin/basename
john@n102:/usr/lib/news$ ls -al /usr/bin/basename
-rwxr-xr-x 1 root root 22212 Apr 27 2010 /usr/bin/basename
For the tr program:
john@v102:/usr/lib/news$ ls -al /usr/bin/tr
-rwxr-xr-x 1 root root 43904 Apr 27 2010 /usr/bin/tr
john@n102:/usr/lib/news$ ls -al /usr/bin/tr
-rwxr-xr-x 1 root root 36708 Apr 27 2010 /usr/bin/tr
Both files are different sizes on each computer. Both basename and tr
are binary files, so I cannot compare them. I do not have the source.
I don't know what these two commands are supposed to do, but the server
seems to be handling messages fine and generating Daily Reports that
look fine.
Oddly, they both are unknown when using "apt-cache show" or "apt-cache
showpkg." Furthermore, "apt-cache policy" indicates they neither are
installed. However, both have manual pages.
john@n102:/usr/lib/news$ apropos basename
basename (1) - strip directory and suffix from filenames
basename (3) - parse pathname components
tr (1) - translate or delete characters
So I dig a little deeper. These programs appear to be part of the
coreutils package:
john@v102:/usr/bin$ apt-cache policy coreutils
coreutils:
Installed: 8.5-1
Candidate: 8.5-1
Version table:
*** 8.5-1 0
500 http://debian.mirrors.tds.net/debian/ squeeze/main amd64
Packages
100 /var/lib/dpkg/status
john@n102:/usr/lib/news$ apt-cache policy coreutils
coreutils:
Installed: 8.5-1
Candidate: 8.5-1
Version table:
*** 8.5-1 0
500 http://debian.mirrors.tds.net/debian/ squeeze/main i386 Packages
100 /var/lib/dpkg/status
The different sizes of the files is unusual. The n102 server is Debian
Squeeze i386, but the new v102 server is Debian Squeeze amd64.
Perhaps that architecture build is the reason the programs differ?
Any idea how to "fix" this so the e-mail cron noise will stop? How
important are the consequences of this failure?
Finally, should I post this in Debian Bugs so Marco can look at it (or
would it be Michael Stone for coreutils)?
TIA
--
John
When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Re: Transit server "wanttrash"
Author: Julien ÉLIE
Date: Thu, 28 Oct 2010 20:47
Date: Thu, 28 Oct 2010 20:47
47 lines
2997 bytes
2997 bytes
Hi John, > I'm receiving e-mail cron failure reports at midnight. The Message Subject is: > > Cron <news@v102> test -x /usr/lib/news/bin/news.daily && news.daily expireover > lowmark delayrm > > The message body contains only these two lines: > > /usr/lib/news/innshellvars: line 98: basename: command not found > /usr/lib/news/innshellvars: line 121: tr: command not found With which user is launched the corresponding crontab? I believe with the news user according to the subject of the mail. When you run /usr/lib/news/innshellvars by hand with the news user, does it complain? It seems that the PATH variable is not properly set. For your information, my /etc/cron.d/inn2 file starts with: SHELL=/bin/sh PATH=/home/news/bin:/usr/bin:/usr/sbin:/bin:/sbin # Expire old news and overview entries nightly, generate reports. 15 4 * * * news test -x /home/news/bin/news.daily && news.daily \ expireover lowmark delayrm expireoverflags='-N' flags='-N -v1' > The different sizes of the files is unusual. The n102 server is Debian Squeeze > i386, but the new v102 server is Debian Squeeze amd64. > > Perhaps that architecture build is the reason the programs differ? Yet. The generated binaries are not the same. -- Julien ÉLIE « Sometimes in love you must accept the fact that what makes the person you cared about happy might on the other hand leave you so lonely. »
Re: Transit server "wanttrash"
Author: John F. Morse
Date: Fri, 29 Oct 2010 15:37
Date: Fri, 29 Oct 2010 15:37
73 lines
3615 bytes
3615 bytes
Hi Julien > With which user is launched the corresponding crontab? I believe > with the news user according to the subject of the mail. That's what I believe, plus /etc/cron.d/inn2 has: # Expire old news and overview entries nightly, generate reports. 0 0 * * * news test -x /usr/lib/news/bin/news.daily && news.daily expireover lowmark delayrm The only edits I make are changing the time to midnight in the above line, and then changing the hours for the NINPATHS jobs to stagger each server's mailing so the messages aren't blocked by the pathsurvey@top1000.org greylist. I also add lines to run rsync to move Daily Report data to one central HTTP server. That stuff is working OK. > It seems that the PATH variable is not properly set. > > For your information, my /etc/cron.d/inn2 file starts with: > > SHELL=/bin/sh > PATH=/home/news/bin:/usr/bin:/usr/sbin:/bin:/sbin The n102 server has: news@n102:/usr/lib/news$ head /etc/cron.d/inn2 SHELL=/bin/sh PATH=/usr/lib/news/bin:/sbin:/bin:/usr/sbin:/usr/bin The new v102 server has: news@v102:/usr/lib/news$ head /etc/cron.d/inn2 SHELL=/bin/sh PATH=/usr/lib/news/bin That may be the problem! I had removed what I thought were unneeded paths for INN. I added it back in like your server and the rest of mine all have. After all, this is a cron job, and not an INN execution. <doh> :-[ I don't know what calls basename and tr, but news.daily does not have "basename" nor "tr" in it. So my guess is the binary expireover calls them. An earlier manual run of "news.daily norotate" did not cause the failure e-mail. I suspect because the actual file rotating is part of the basename and tr calls. We'll see what it does at midnight.... .... Well, it made it through the midnight processes. With your keen eye, I fixed that problem. Thanks. >> The different sizes of the files is unusual. The n102 server is >> Debian Squeeze i386, but the new v102 server is Debian Squeeze amd64. >> >> Perhaps that architecture build is the reason the programs differ? > > Yet. The generated binaries are not the same. You meant "yes" I suppose? ;-) -- John When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Re: Transit server "wanttrash"
Author: Julien ÉLIE
Date: Fri, 29 Oct 2010 16:59
Date: Fri, 29 Oct 2010 16:59
42 lines
2870 bytes
2870 bytes
Hi John, >> PATH=/home/news/bin:/usr/bin:/usr/sbin:/bin:/sbin > > I added it back in like your server and the rest of mine all have. After all, this > is a cron job, and not an INN execution. <doh> :-[ > > I don't know what calls basename and tr, but news.daily does not have "basename" > nor "tr" in it. So my guess is the binary expireover calls them. An earlier manual > run of "news.daily norotate" did not cause the failure e-mail. I suspect because > the actual file rotating is part of the basename and tr calls. You already wrote the culprit: /usr/lib/news/innshellvars: line 98: basename: command not found /usr/lib/news/innshellvars: line 121: tr: command not found Look at line 2 of news.daily: it calls innshellvars. An earlier *manual* run works fine because if it is manual; your path is properly set (contrary to the cron job). >>> Perhaps that architecture build is the reason the programs differ? >> >> Yet. The generated binaries are not the same. > > You meant "yes" I suppose? ;-) Unless it was "yep"? :-) -- Julien ÉLIE « If your dog is barking at the back door and your wife yelling at the frontdoor, who do you let in first? The dog of course... at least he'll shut up after you let him in! »
Re: Transit server "wanttrash"
Author: John F. Morse
Date: Fri, 29 Oct 2010 17:38
Date: Fri, 29 Oct 2010 17:38
29 lines
2398 bytes
2398 bytes
Hi Julien, >>> PATH=/home/news/bin:/usr/bin:/usr/sbin:/bin:/sbin >> >> I added it back in like your server and the rest of mine all have. >> After all, this is a cron job, and not an INN execution. <doh> :-[ >> >> I don't know what calls basename and tr, but news.daily does not have >> "basename" nor "tr" in it. So my guess is the binary expireover calls >> them. An earlier manual run of "news.daily norotate" did not cause >> the failure e-mail. I suspect because the actual file rotating is >> part of the basename and tr calls. > > You already wrote the culprit: > > /usr/lib/news/innshellvars: line 98: basename: command not found > /usr/lib/news/innshellvars: line 121: tr: command not found I'm getting old(er), Julien. ;-) Not only are my eyes getting stiff, so is my brain. Is grapes and/or wine good for either? ;-) -- John When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Re: Transit server "wanttrash"
Author: Julien ÉLIE
Date: Fri, 29 Oct 2010 18:35
Date: Fri, 29 Oct 2010 18:35
17 lines
2142 bytes
2142 bytes
Hi John, > Is grapes and/or wine good for either? ;-) As long as you do not "drink to forget", then it is good :-) Unexpectedly, I am particularly fond of tea -- especially pu-erh teas and wulong teas! -- Julien ÉLIE « If your dog is barking at the back door and your wife yelling at the frontdoor, who do you let in first? The dog of course... at least he'll shut up after you let him in! »
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