Article View: news.software.nntp
Article #83368Re: INN 2.6.0 (20100812 snapshot) -- observations and questions
From: Julien ÉLIE
Date: Fri, 13 Aug 2010 18:38
Date: Fri, 13 Aug 2010 18:38
180 lines
7910 bytes
7910 bytes
Hi Michael,
> I did upgrade my feeders to INN 2.6.0 (20100812 snapshot) without any
> issues, so far.
If you use pullnews, do not forget to move "~/.pullnews" to
"<pathdb>/pullnews.marks"
as said in the upgrade section.
I think there will be a "<pathetc>/pullnews.conf" or something like that
in the final INN 2.6.0. So one day, another move will have to be done.
Do not forget to read the upgrade section to see whether something needs
being done.
> But I do want to provide some feedback and I do have
> some questions.
Thanks a lot for your valuable feedback.
> I did use variables for upper size flags in newsfeeds like:
> ,----
> | $limitHI=131072
> | example/example.com:*,$alwaysWITHHOLD:Ajp,Tm,<$limitHI:innfeed
> `----
>
> Now 'inncheck -pedantic' complains about ...
> ,----
> | /usr/local/news/etc/newsfeeds:154: bad value `$limitHI' for flag `<'
> `----
> ... I can't recall if that has been complained with 2.5.x as well.
>
> I did check -by setting $limitHI to a very small size, and innfeed
> seems to recognize that variable. Can anyone verify this?
Substitutions work well.
You can even use:
$SEPARATOR=:
example/example.com$SEPARATOR*,$alwaysWITHHOLD$SEPARATORAjp,Tm,<$limitHI$SEPARATORinnfeed
:)
Note that innd recognizes it (not innfeed). innd substitutes the variable
and checks itself whether it should transfer the message to innfeed.
Suggested patch for inncheck:
--- inncheck.in (révision 9083)
+++ inncheck.in (copie de travail)
@@ -389,6 +389,7 @@
local ($next, $start, $me_empty, @muxes, %sites);
local ($site, $pats, $dists, $flags, $param, $type, $k, $v, $defsub);
local ($bang, $nobang, $prog, $dir);
+ local (%variables, $key);
input: while ( <IN> ) {
$line++;
@@ -410,10 +411,16 @@
print "$file:$line: ends with whitespace\n"
if /\s+$/;
- # Catch a variable setting.
- if ( /^\$([A-Za-z0-9]+)=/ ) {
+ ## Substitute variables.
+ for my $key (keys %variables) {
+ s/\$$key/$variables{$key}/;
+ }
+
+ ## Catch a variable setting.
+ if ( /^\$([A-Za-z0-9]+)=(.*)$/ ) {
print "$file:$line: variable name too long\n"
if length ($1) > 31;
+ $variables{$1} = $2;
next input;
}
> Next, with an uninitialized CNFS INN complains at initial start (found
> in news.err and news.notice):
> ,----
> | Aug 13 13:33:46 feeder innd: innfeed-1! spawned innfeed-1!:20:proc:9726
> | Aug 13 13:33:46 feeder innfeed[9726]: ME starting at Fri Aug 13 13:33:46 2010
> (INN 2.6.0 (20100812 snapshot))
> | Aug 13 13:33:46 feeder innfeed[9726]: CNFS: no magic cookie found for cycbuff
> TR1, initializing
> | Aug 13 13:33:46 feeder innfeed[9726]: CNFS: CNFSflushhead: attempted flush
> whilst read only
> | Aug 13 13:33:46 feeder innfeed[9726]: CNFS: CNFSshutdowncycbuff: flushing TR1
> | Aug 13 13:33:46 feeder innfeed[9726]: CNFS: CNFSflushhead: attempted flush
> whilst read only
> | Aug 13 13:33:46 feeder innfeed[9726]: SM: storage method 'cnfs' failed
> initialization
> | Aug 13 13:33:46 feeder innfeed[9726]: SM: one or more storage methods failed
> initialization
> | Aug 13 13:33:46 feeder innfeed[9726]: Storage manager initialization failed
> | Aug 13 13:33:46 feeder innd: CNFS: no magic cookie found for cycbuff TR1,
> initializing
> | Aug 13 13:33:46 feeder innd: SERVER starting
> | Aug 13 13:33:46 feeder innd: innfeed-1! exit 1 elapsed 0 pid 9726
> | Aug 13 13:33:46 feeder innd: innfeed-1!:20:proc:9726 closed
> | Aug 13 13:33:46 feeder innd: innfeed-1! spawned innfeed-1!:34:proc:9740
> | Aug 13 13:33:46 feeder innd: innfeed-1! restarted
> | Aug 13 13:33:46 feeder innfeed[9740]: ME starting at Fri Aug 13 13:33:46 2010
> (INN 2.6.0 (20100812 snapshot))
> | Aug 13 13:33:46 feeder innfeed[9740]: loading
> /usr/local/news/etc/INNFEED/innfeed-1.conf
> `----
> That's a behaviour I did observe in earlier versions as well. Just a
> question here: is this 'Storage manager initialization failed' worth
> being reported in news.err instead of news.notice? The first time I saw
> this some time ago I believed INN having crashed during start-up.
It could be a real issue; innfeed exits just after.
Maybe it would be better to log:
Storage manager initialization failed -- it is OK after a change in storage
methods
???
> Finally, I do have question regarding the new Aj flag in newsfeeds:
> ,----
> | j Propagate articles according to their Newsgroups: header. This is
> | only useful when wanttrash is set to true in inn.conf. With that
> | variable set, articles accepted and filed in junk (due to wanttrash) are
> | fed to peers based on their subscription pattern applied to the
> | Newsgroups: header as though they were accepted and all those groups
> | were locally carried. Otherwise, they are propagated to sites that
> | receive the junk newsgroup. This variable is useful if you want to run
> | INN with a minimal active file and propagate all posts.
> `----
> I am running my feeders with a minimal active (control*, junk) and have
> wanttrash set to true.
>
> In newsfeeds I do have settings like:
> ,----
> | allwaysWITHHOLD=!control,!control.*,!junk,!local.*/!local
> | example/example.com:*,$alwaysWITHHOLD:Ajp,Tm,<$limitHI:innfeed
> `----
"$alwaysWITHHOLD" and not "allwaysWITHHOLD" (two "l"). I just mention it
in case there is a problem in your file, but maybe it was not an extract
from them.
> That's running as expected. But I'm unsure whether I do need an Ajp or an
> Aj, only?
"Ap" is something different. It would check "example.com" only, and not
both "example" and "example.com" in the Path: header field of the article,
in order to decide the propagation.
> And: do I need '!junk' any longer? I don't think so, correct?
I do not understand the question.
If you remove "!junk", then articles posted directly to the junk newsgroup
(that is to say with "Newsgroups: junk" in their headers) will be propagated.
--
Julien ÉLIE
« The hardest thing is to go to sleep at night, when there are
so many urgent things needing to be done. A huge gap
exists between what we know is possible with today's machines
and what we have so far been able to finish. » (Donald Knuth)
Technical Details
Message-ID:
<i443es$fio$1@news.trigofacile.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border2.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!news2.euro.net!feeder.news-service.com!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!.POSTED.amontpellier-159-1-33-61.w90-57.abo.wanadoo.fr!not-for-mailReferences:
<i43ta9$1m8g$1@de-l.enfer-du-nord.net>Show Full Headers
Complete Article Headers
Message-ID: <i443es$fio$1@news.trigofacile.com> Subject: Re: INN 2.6.0 (20100812 snapshot) -- observations and questions Date: Fri, 13 Aug 2010 20:38:19 +0200 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <i43ta9$1m8g$1@de-l.enfer-du-nord.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border2.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!news2.euro.net!feeder.news-service.com!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!.POSTED.amontpellier-159-1-33-61.w90-57.abo.wanadoo.fr!not-for-mail Newsgroups: news.software.nntp Organization: TrigoFACILE -- http://www.trigofacile.com/ Lines: 180 Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="Windows-1252"; reply-type=original Content-Transfer-Encoding: 8bit Injection-Date: Fri, 13 Aug 2010 18:38:21 +0000 (UTC) Injection-Info: news.trigofacile.com; posting-host="amontpellier-159-1-33-61.w90-57.abo.wanadoo.fr:90.57.216.61"; logging-data="15960"; mail-complaints-to="abuse@trigofacile.com" In-Reply-To: <i43ta9$1m8g$1@de-l.enfer-du-nord.net> X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6002.18197 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6002.18197