Thread View: news.software.nntp
32 messages
32 total messages
Started by Steve
Tue, 03 Mar 2009 10:13
Errors in active file
Author: Steve
Date: Tue, 03 Mar 2009 10:13
Date: Tue, 03 Mar 2009 10:13
22 lines
1612 bytes
1612 bytes
Hi all,
Sorry to dig up an old problem but I'm still struggling to resolve it.
In <slrngmmm6p.p4f.steve@news.mixmin.net> I raised an issue about errors
in my active file where the high water mark is less than the low in
thousands of groups.
Running "ctlinnd renumber" temporarily resolves the problem but 24 hours
later it's always back again. Initially I thought actsync might be
causing it but simply removing actsync from my crontab proved that to be
incorrect.
Nothing is logged that provides any pointers as to what causes this and
I've run out of ideas on what to try next.
Steve
--
pub 1024D/228761E7 2003-06-04 Steven Crook
Key fingerprint = 1CD9 95E1 E9CE 80D6 C885 B7EB B471 80D5 2287 61E7
uid Steven Crook <steve@mixmin.net>
Re: Errors in active file
Author: Julien ÉLIE
Date: Tue, 03 Mar 2009 18:47
Date: Tue, 03 Mar 2009 18:47
29 lines
2407 bytes
2407 bytes
Hi Steve, > Running "ctlinnd renumber" temporarily resolves the problem but 24 hours > later it's always back again. Initially I thought actsync might be > causing it but simply removing actsync from my crontab proved that to be > incorrect. You once wrote: > Running inncheck on my service produces errors like this:- > /usr/local/news/db/active:20692: `0000000000' < '0000000003'. > /usr/local/news/db/active:20693: `0000000000' < '0000001140'. > /usr/local/news/db/active:20694: `0000000000' < '0000000017'. > /usr/local/news/db/active:20695: `0000000000' < '0000000014'. > /usr/local/news/db/active:20696: `0000000000' < '0000000009'. > /usr/local/news/db/active:20697: `0000000000' < '0000000002'. > /usr/local/news/db/active:20698: `0000000000' < '0000000002'. > /usr/local/news/db/active:20699: `0000000000' < '0000000017'. > Currently there are in excess of 22k of them. Is the high water mark always 0 in your errors? Did you notice if it was the same newsgroups which produced these errors? -- Julien ÉLIE « -- Il l'aura voulu. -- Tu crois vraiment ? » (Astérix)
Re: Errors in active file
Author: Ray Banana
Date: Tue, 03 Mar 2009 19:10
Date: Tue, 03 Mar 2009 19:10
20 lines
2022 bytes
2022 bytes
Thus spake Steve <steve@mixmin.net> > In <slrngmmm6p.p4f.steve@news.mixmin.net> I raised an issue about errors > in my active file where the high water mark is less than the low in > thousands of groups. > Running "ctlinnd renumber" temporarily resolves the problem but 24 hours > later it's always back again. Initially I thought actsync might be > causing it but simply removing actsync from my crontab proved that to be > incorrect. > Nothing is logged that provides any pointers as to what causes this and > I've run out of ideas on what to try next. getlist -h news.mixmin.net | grep '0000000000 0000000001' | wc -l 19168 These are OK, they are just empty. -- Time flies like an arrow, fruit flies like a Banana. http://news.motzarella.org
Re: Errors in active file
Author: Steve
Date: Wed, 04 Mar 2009 08:47
Date: Wed, 04 Mar 2009 08:47
20 lines
1804 bytes
1804 bytes
On Tue, 3 Mar 2009 19:47:43 +0100, Julien ÉLIE wrote in
Message-Id: <goju24$56v$1@news.trigofacile.com>:
> Is the high water mark always 0 in your errors?
Hi Julien,
Yes the high water mark is always 0. The low mark ranges from 2 - 290.
> Did you notice if it was the same newsgroups which produced these errors?
I haven't saved a report and compared it but I'm fairly confident that
it is the same groups.
I did a 'ctlinnd renumber' yesterday and saw no errors until I checked
this morning. As I've eliminated actsync as the cause, I suspect
something in news.daily is causing it. I run it with:
~news/bin/news.daily expireover lowmark
--
pub 1024D/228761E7 2003-06-04 Steven Crook
Key fingerprint = 1CD9 95E1 E9CE 80D6 C885 B7EB B471 80D5 2287 61E7
uid Steven Crook <steve@mixmin.net>
Re: Errors in active file
Author: Ray Banana
Date: Wed, 04 Mar 2009 09:06
Date: Wed, 04 Mar 2009 09:06
21 lines
2128 bytes
2128 bytes
Thus spake Steve <steve@mixmin.net>
> I did a 'ctlinnd renumber' yesterday and saw no errors until I checked
> this morning. As I've eliminated actsync as the cause, I suspect
> something in news.daily is causing it. I run it with:
> ~news/bin/news.daily expireover lowmark
^^^^^^^^^^^^^^^^^^
This option does reset the low watermark, but it will usually
check each group and should hence provide more accurate information
on article numbers in each group than "ctlinnd renumber ''" does.
If you telnet to nnrpd, do a "group name.of.problem.group"
and do a "xover 1-highwatermark", do you get the headers for
all articles?
What overview and storage method do you use?
--
Time flies like an arrow, fruit flies like a Banana.
http://news.motzarella.org
Re: Errors in active file
Author: Steve
Date: Wed, 04 Mar 2009 12:05
Date: Wed, 04 Mar 2009 12:05
22 lines
1691 bytes
1691 bytes
On Wed, 04 Mar 2009 10:06:55 +0100, Ray Banana wrote in
Message-Id: <80sklty7v4.fsf@banana.shacknet.nu>:
> If you telnet to nnrpd, do a "group name.of.problem.group"
> and do a "xover 1-highwatermark", do you get the headers for
> all articles?
Hi Ray,
I get:
224 No articles in 1-58
I tried this on various groups reported by inncheck and get the same
error for all of them.
> What overview and storage method do you use?
CNFS for everything.
--
pub 1024D/228761E7 2003-06-04 Steven Crook
Key fingerprint = 1CD9 95E1 E9CE 80D6 C885 B7EB B471 80D5 2287 61E7
uid Steven Crook <steve@mixmin.net>
Re: Errors in active file
Author: Julien ÉLIE
Date: Wed, 04 Mar 2009 18:29
Date: Wed, 04 Mar 2009 18:29
49 lines
2412 bytes
2412 bytes
Hi Steve,
> I get:
> 224 No articles in 1-58
%telnet news.mixmin.net 119
GROUP za.environment
211 0 35 34 za.environment
-> empty group according to the overview:
count = 0, low = 35 (thus a forced high = low-1 = 34)
OVER
420 Current article number 35 is invalid
OVER 1-40
423 No articles in 1-40
-> empty group
LIST ACTIVE za.environment
215 Newsgroups in form "group high low flags"
za.environment 0000000035 0000000035 y
..
-> it is a direct answer from the overview:
low = high = 35
LIST ACTIVE za.env*
215 Newsgroups in form "group high low flags"
za.environment 0000000000 0000000036 y
..
-> read from the active file:
low = 36 and high = 0
Very weird...
I do not see how it can happen.
--
Julien ÉLIE
« -- Debout paresseux ! Le coq a déjà salué le soleil levant !
-- Ben il n'a plus besoin de moi alors... laissez-moi dormir barbares ! » (Astérix)
Re: Errors in active file
Author: Julien ÉLIE
Date: Wed, 04 Mar 2009 18:36
Date: Wed, 04 Mar 2009 18:36
21 lines
2053 bytes
2053 bytes
Hi Steve, > I did a 'ctlinnd renumber' yesterday and saw no errors until I checked > this morning. As I've eliminated actsync as the cause, I suspect > something in news.daily is causing it. I run it with: > ~news/bin/news.daily expireover lowmark Could you please try "~news/bin/news.daily expireover" (without "lowmark") for a few days? Fix the problem with the active file before, and see the following days if problems are appearing. (Renumbering will still be done without "lowmark".) Thanks, -- Julien ÉLIE « -- Debout paresseux ! Le coq a déjà salué le soleil levant ! -- Ben il n'a plus besoin de moi alors... laissez-moi dormir barbares ! » (Astérix)
Re: Errors in active file
Author: Steve
Date: Thu, 05 Mar 2009 08:48
Date: Thu, 05 Mar 2009 08:48
18 lines
1775 bytes
1775 bytes
On Wed, 4 Mar 2009 19:36:17 +0100, Julien ÉLIE wrote in
Message-Id: <gomhoo$l6d$1@news.trigofacile.com>:
> Could you please try "~news/bin/news.daily expireover" (without "lowmark")
> for a few days?
> Fix the problem with the active file before, and see the following days
> if problems are appearing.
> (Renumbering will still be done without "lowmark".)
Hi Julien,
I made your recommended change yesterday and this morning it looks good,
inncheck isn't producing any errors. It's only one day but before the
change it was conistently producing errors every morning when I checked.
--
pub 1024D/228761E7 2003-06-04 Steven Crook
Key fingerprint = 1CD9 95E1 E9CE 80D6 C885 B7EB B471 80D5 2287 61E7
uid Steven Crook <steve@mixmin.net>
Re: Errors in active file
Author: Julien ÉLIE
Date: Thu, 05 Mar 2009 20:12
Date: Thu, 05 Mar 2009 20:12
52 lines
2951 bytes
2951 bytes
Hi Steve,
>> Could you please try "~news/bin/news.daily expireover" (without "lowmark")
>> for a few days?
>
> I made your recommended change yesterday and this morning it looks good,
> inncheck isn't producing any errors. It's only one day but before the
> change it was conistently producing errors every morning when I checked.
Though it is not related with your previous issue, I see a bug in "ctlinnd renumber"
because of your results...
Yesterday:
za.tv.misc 0000000000 0000000014 y
Today:
za.tv.misc 0000000000 0000000001 y
GROUP za.tv.misc
211 0 13 12 za.tv.misc
LIST active za.tv.misc
215 Newsgroups in form "group high low flags"
za.tv.misc 0000000013 0000000013 y
.
I believe low = 13 according to the overview. (It looks as though in your
*wrong* yesterday's active, every bad line has high=0, low=n+1 where n is
the low water mark from the overview.)
INN should answer "211 0 14 13 za.tv.misc" to "GROUP za.tv.misc" and
"za.tv.misc 0000000013 0000000014 y" to "LIST active za.tv.misc".
Fix just committed:
http://inn.eyrie.org/trac/changeset/8374
The most worrying point is that "ctlinnd renumber" has actually tampered
your active file because when the newsgroup is empty, it takes the high
water mark (which was wrongly 0) and put the low water mark to 0+1=1
whereas it was (wrongly) 14.
Fix also just committed:
http://inn.eyrie.org/trac/changeset/8373
--
Julien ÉLIE
« Sol lucet omnibus. »
Re: Errors in active file
Author: Julien ÉLIE
Date: Thu, 05 Mar 2009 20:42
Date: Thu, 05 Mar 2009 20:42
31 lines
2566 bytes
2566 bytes
Hi Steve, >> Could you please try "~news/bin/news.daily expireover" (without "lowmark") >> for a few days? > > I made your recommended change yesterday and this morning it looks good, > inncheck isn't producing any errors. It's only one day but before the > change it was conistently producing errors every morning when I checked. What I suspect is that expireover returns a wrong low water mark for a few newsgroups. You should do: * apply to your INN the two patches I have just provided; * run one day news.daily with "expireover lowmark" so as to put the right low mark from the overview; * run the following day news.daily with "expireover" only so as to put the right high mark for empty newsgroups; * and finally "expireover lowmark" again. Then see if there are still errors. I do not see otherwise what keeps resetting your high water marks to 0. And is it for empty groups only? By the way, which overview method are you using? -- Julien ÉLIE « Avoir un sale caractère n'empêche pas d'être ponctuel : on peut être râleur et être à l'heure. » (Philippe Geluck)
Re: Errors in active file
Author: Steve
Date: Thu, 05 Mar 2009 21:25
Date: Thu, 05 Mar 2009 21:25
29 lines
2052 bytes
2052 bytes
On Thu, 5 Mar 2009 21:42:48 +0100, Julien ÉLIE wrote in
Message-Id: <gopdi2$dj1$1@news.trigofacile.com>:
Hi Julien,
> * apply to your INN the two patches I have just provided;
Done
> * run one day news.daily with "expireover lowmark" so as to put the right
> low mark from the overview;
I've put this into my cron for tonight.
> * run the following day news.daily with "expireover" only so as to put
> the right high mark for empty newsgroups;
> * and finally "expireover lowmark" again.
>
> Then see if there are still errors. I do not see otherwise what keeps
> resetting your high water marks to 0. And is it for empty groups only?
In all the cases I've checked it has been an empty group.
> By the way, which overview method are you using?
buffindexed
Steve
--
pub 1024D/228761E7 2003-06-04 Steven Crook
Key fingerprint = 1CD9 95E1 E9CE 80D6 C885 B7EB B471 80D5 2287 61E7
uid Steven Crook <steve@mixmin.net>
Re: Errors in active file
Author: Julien ÉLIE
Date: Thu, 05 Mar 2009 21:33
Date: Thu, 05 Mar 2009 21:33
24 lines
2190 bytes
2190 bytes
Hi Steve, >> * run one day news.daily with "expireover lowmark" so as to put the right >> low mark from the overview; > I've put this into my cron for tonight. Tomorrow, if you can save somewhere the file <pathlog>/expire.lastlowmark, it would be great. It will contain the low water marks which have been put in your active file by news.daily. (Just to be sure there is no problem with it.) >> By the way, which overview method are you using? > > buffindexed All right. Thanks for your patience with that issue. -- Julien ÉLIE « Avoir un sale caractère n'empêche pas d'être ponctuel : on peut être râleur et être à l'heure. » (Philippe Geluck)
Re: Errors in active file
Author: Steve
Date: Fri, 06 Mar 2009 09:06
Date: Fri, 06 Mar 2009 09:06
28 lines
2279 bytes
2279 bytes
On Thu, 5 Mar 2009 22:33:37 +0100, Julien ÉLIE wrote in
Message-Id: <gopghc$jht$1@news.trigofacile.com>:
> Tomorrow, if you can save somewhere the file <pathlog>/expire.lastlowmark,
> it would be great. It will contain the low water marks which have been put
> in your active file by news.daily.
Copied that.
After running "news.daily expireover lowmark" last night, inncheck is
showing errors again this morning.
news@drooper:~/log$ inncheck | wc -l
21138
The high water marks are all zero but the low water marks are much
higher than before. E.g.
/usr/local/news/db/active:26276: `0000000000' < '0000011127'.
Previously I had no errors with a low mark > 300.
Should I run another renumber or leave it to run the "news.daily
expireover" tonight without lowmark, as per your instructions?
> All right. Thanks for your patience with that issue.
Thanks for helping with it. :)
--
pub 1024D/228761E7 2003-06-04 Steven Crook
Key fingerprint = 1CD9 95E1 E9CE 80D6 C885 B7EB B471 80D5 2287 61E7
uid Steven Crook <steve@mixmin.net>
Re: Errors in active file
Author: Julien ÉLIE
Date: Fri, 06 Mar 2009 17:50
Date: Fri, 06 Mar 2009 17:50
66 lines
3438 bytes
3438 bytes
Hi Steve, >> Tomorrow, if you can save somewhere the file <pathlog>/expire.lastlowmark, >> it would be great. It will contain the low water marks which have been put >> in your active file by news.daily. > Copied that. grep za.tv.misc expire.lastlowmark -> does it give you 14? or 13? GROUP za.tv.misc 211 0 14 13 za.tv.misc LIST ACTIVE za.tv.misc 215 Newsgroups in form "group high low flags" za.tv.misc 0000000013 0000000014 y .. That's now fine. LIST ACTIVE za.tv.misc* 215 Newsgroups in form "group high low flags" za.tv.misc 0000000000 0000000014 y .. Still to be fixed (I hope tonight). > After running "news.daily expireover lowmark" last night, inncheck is > showing errors again this morning. > news@drooper:~/log$ inncheck | wc -l > 21138 That's normal. The low water marks have been put right for your empty groups by "ctlinnd lowmark". > The high water marks are all zero but the low water marks are much > higher than before. E.g. > /usr/local/news/db/active:26276: `0000000000' < '0000011127'. > Previously I had no errors with a low mark > 300. GROUP clari.news.photos 211 0 12831 12830 clari.news.photos You have an empty group named clari.news.photos for which the low water mark is 12831. I think it is OK that such newsgroups have appeared. I believe their high water marks were right before but "ctlinnd renumber" made them wrong last night without the patch. > Should I run another renumber or leave it to run the "news.daily > expireover" tonight without lowmark, as per your instructions? Let's do "news.daily expireover" without lowmark tonight. It will normally set new high water marks (and you will have lots of "%s renumber %s %s from %ld to %ld" in your news.notice). -- Julien ÉLIE « Non omnibus aegris eadem auxilia conueniunt. »
Re: Errors in active file
Author: Steve
Date: Fri, 06 Mar 2009 18:24
Date: Fri, 06 Mar 2009 18:24
18 lines
1903 bytes
1903 bytes
On Fri, 6 Mar 2009 18:50:06 +0100, Julien ÉLIE wrote in
Message-Id: <gornq8$mtf$1@news.trigofacile.com>:
> grep za.tv.misc expire.lastlowmark
> -> does it give you 14? or 13?
news@drooper:~/log$ grep za\.tv\.misc expire.lastlowmark
za.tv.misc 14
> Let's do "news.daily expireover" without lowmark tonight. It will normally
> set new high water marks (and you will have lots of "%s renumber %s %s from
> %ld to %ld" in your news.notice).
Sounds promising, I'll report in the morning. :)
--
pub 1024D/228761E7 2003-06-04 Steven Crook
Key fingerprint = 1CD9 95E1 E9CE 80D6 C885 B7EB B471 80D5 2287 61E7
uid Steven Crook <steve@mixmin.net>
Re: Errors in active file
Author: Julien ÉLIE
Date: Sat, 07 Mar 2009 09:29
Date: Sat, 07 Mar 2009 09:29
20 lines
2267 bytes
2267 bytes
Hi Steve,
>> Let's do "news.daily expireover" without lowmark tonight. It will normally
>> set new high water marks (and you will have lots of "%s renumber %s %s from
>> %ld to %ld" in your news.notice).
> Sounds promising, I'll report in the morning. :)
Did you really apply:
http://inn.eyrie.org/trac/changeset/8373
?
Your empty groups have been reset again to high=0, low=1...
--
Julien ÉLIE
« Il y a des sciences bonnes dont l'existence est nécessaire
et dont la culture est inutile. Telles sont les mathématiques. » (Joseph Joubert)
Re: Errors in active file
Author: Julien ÉLIE
Date: Sun, 08 Mar 2009 12:12
Date: Sun, 08 Mar 2009 12:12
39 lines
2595 bytes
2595 bytes
Hi Steve, >> grep za.tv.misc expire.lastlowmark >> -> does it give you 14? or 13? > > news@drooper:~/log$ grep za\.tv\.misc expire.lastlowmark > za.tv.misc 14 > >> Let's do "news.daily expireover" without lowmark tonight. It will normally >> set new high water marks (and you will have lots of "%s renumber %s %s from >> %ld to %ld" in your news.notice). > Sounds promising, I'll report in the morning. :) Is seems pretty good right now. GROUP za.tv.misc 211 0 14 13 za.tv.misc LIST ACTIVE za.tv.misc 215 Newsgroups in form "group high low flags" za.tv.misc 0000000013 0000000014 y .. LIST ACTIVE za.tv.misc* 215 Newsgroups in form "group high low flags" za.tv.misc 0000000013 0000000014 y .. I hope it will not break again. Did you try to put again "lowmark" during news.daily, and also actsync? Any other changes? -- Julien ÉLIE « Desinit in piscem mulier formosa superne. » (Horace)
Re: Errors in active file
Author: Steve
Date: Sun, 08 Mar 2009 13:24
Date: Sun, 08 Mar 2009 13:24
25 lines
2174 bytes
2174 bytes
On Sun, 8 Mar 2009 13:12:26 +0100, Julien ÉLIE wrote in
Message-Id: <gp0cp7$4jb$1@news.trigofacile.com>:
> Is seems pretty good right now.
Hi Julien,
Yes your patch seems to have done the job. It failed Friday night as I
missed one of the patches (applied 8374 but missed 8373). Yesterday I
just built the latest snapshot which contained them all.
> Did you try to put again "lowmark" during news.daily, and also actsync?
> Any other changes?
It ran news.daily last night without the lowmark. I'll put that back in
and see how it goes tonight. I'm running actsync each night under cron
and it doesn't seem to be causing any problems.
Many thanks for your help. :)
Steve
--
pub 1024D/228761E7 2003-06-04 Steven Crook
Key fingerprint = 1CD9 95E1 E9CE 80D6 C885 B7EB B471 80D5 2287 61E7
uid Steven Crook <steve@mixmin.net>
Re: Errors in active file
Author: Steve
Date: Thu, 12 Mar 2009 11:23
Date: Thu, 12 Mar 2009 11:23
37 lines
2926 bytes
2926 bytes
On Sun, 8 Mar 2009 13:24:24 +0000 (UTC), Steve wrote in
Message-Id: <slrngr7ho8.lgn.steve@news.mixmin.net>:
> It ran news.daily last night without the lowmark. I'll put that back in
> and see how it goes tonight. I'm running actsync each night under cron
> and it doesn't seem to be causing any problems.
Thought we had the problem beaten but.....
news@drooper:~$ inncheck | grep active | wc -l
9103
Much fewer errors than before but still there. Again this only happens
when news.daily is run with lowmark. In every instance of the 9103, the
lowmark=highmark+2. E.g.
/usr/local/news/db/active:25492: `0000000000' < '0000000002'.
/usr/local/news/db/active:25742: `0000000093' < '0000000095'.
/usr/local/news/db/active:25939: `0000000000' < '0000000002'.
/usr/local/news/db/active:26257: `0000000160' < '0000000162'.
/usr/local/news/db/active:26264: `0000000343' < '0000000345'.
/usr/local/news/db/active:26270: `0000000195' < '0000000197'.
/usr/local/news/db/active:26277: `0000000639' < '0000000641'.
/usr/local/news/db/active:26284: `0000000453' < '0000000455'.
/usr/local/news/db/active:26288: `0000000111' < '0000000113'.
/usr/local/news/db/active:26324: `0000000000' < '0000000002'.
Nearly all of them are empty:
news@drooper:~$ inncheck | grep active | grep 0000000000 | wc -l
9090
news@drooper:~$ inncheck | grep active | grep 0000000002 | wc -l
9090
--
pub 1024D/228761E7 2003-06-04 Steven Crook
Key fingerprint = 1CD9 95E1 E9CE 80D6 C885 B7EB B471 80D5 2287 61E7
uid Steven C
rook <steve@mixmin.net>
Re: Errors in active file
Author: Julien ÉLIE
Date: Thu, 12 Mar 2009 18:22
Date: Thu, 12 Mar 2009 18:22
34 lines
2792 bytes
2792 bytes
Hi Steve, > news@drooper:~$ inncheck | grep active | wc -l > 9103 > > Much fewer errors than before but still there. Again this only happens > when news.daily is run with lowmark. In every instance of the 9103, the > lowmark=highmark+2. E.g. > /usr/local/news/db/active:25492: `0000000000' < '0000000002'. GROUP alt.fan.sandy-pocernich 211 0 1 0 alt.fan.sandy-pocernich OVER 420 No current article LIST ACTIVE alt.fan.sandy-pocernich* 215 Newsgroups in form "group high low flags" alt.fan.sandy-pocernich 0000000000 0000000002 y .. I believe that yesterday high=0 and low=1 but now high=0 and low=2 for the overview (ctlinnd lowmark has put 2). I do not know why the low water mark has increased without the high water mark... -- Julien ÉLIE « Un dictionnaire est comme une montre ; il vaut mieux en avoir un que pas du tout, mais le meilleur n'est jamais tout à fait exact. » (Georges-Bernard Shaw)
Re: Errors in active file
Author: Julien ÉLIE
Date: Sun, 19 Apr 2009 11:43
Date: Sun, 19 Apr 2009 11:43
69 lines
4119 bytes
4119 bytes
Hi Steve,
> Much fewer errors than before but still there. Again this only happens
> when news.daily is run with lowmark. In every instance of the 9103, the
> lowmark=highmark+2. E.g.
> /usr/local/news/db/active:25492: `0000000000' < '0000000002'.
> /usr/local/news/db/active:25742: `0000000093' < '0000000095'.
> /usr/local/news/db/active:25939: `0000000000' < '0000000002'.
> /usr/local/news/db/active:26257: `0000000160' < '0000000162'.
> /usr/local/news/db/active:26264: `0000000343' < '0000000345'.
> /usr/local/news/db/active:26270: `0000000195' < '0000000197'.
> /usr/local/news/db/active:26277: `0000000639' < '0000000641'.
I see it is still the case. Strange.
Could you please try this patch?
Index: innd/ng.c
===================================================================
--- innd/ng.c (révision 8406)
+++ innd/ng.c (copie de travail)
@@ -399,10 +399,9 @@
}
/*
- * Set the low article count for the given group.
- * Like NGrenumber(), but we don't scan the spool,
- * and the himark is ignored.
- */
+** Set the low article count for the given group.
+** Like NGrenumber(), but we don't query the overview database.
+*/
bool
NGlowmark(NEWSGROUP *ngp, long lomark)
{
@@ -419,6 +418,20 @@
LogName, MaxLength(start, start));
return false;
}
+ /* Check whether the high water mark is more than the low water mark
+ * minus one (in the case of an empty newsgroup). If not, we consider
+ * that the newsgroup is empty and we increase the high water mark. */
+ l = atol(f2);
+ if (l+1 < lomark) {
+ syslog(L_NOTICE, RENUMBER, LogName, ngp->Name, "hi", l, lomark-1);
+ if (!FormatLong(f2, lomark-1, f3 - f2 - 1)) {
+ syslog(L_ERROR, NORENUMBER, LogName, ngp->Name, "hi");
+ return false;
+ }
+ ngp->Last = lomark-1;
+ ICDactivedirty++;
+ }
+ /* Update the low water mark. */
l = atol(f3);
if (lomark != l) {
if (lomark < l)
You normally will have output in news.notice during the night, saying
stuff about renumbering from 453 to 454 for instance.
--
Julien ÉLIE
« -- Ils s'arrêtaient tous les jours à 5 heures,
pour boire de l'eau chaude...
-- Je prendrai un nuage de lait, je vous prie. » (Astérix)
Re: Errors in active file
Author: Steve
Date: Mon, 20 Apr 2009 09:08
Date: Mon, 20 Apr 2009 09:08
19 lines
1963 bytes
1963 bytes
On Sun, 19 Apr 2009 13:43:56 +0200, Julien ÉLIE wrote in
Message-Id: <gsf2u0$poh$1@news.trigofacile.com>:
> I see it is still the case. Strange.
> Could you please try this patch?
Hi Julien,
That was good timing, I just got back from a relaxing week on a canal
boat holiday. :)
I've applied the patch and will see how it goes tonight.
Steve
--
pub 1024D/228761E7 2003-06-04 Steven Crook
Key fingerprint = 1CD9 95E1 E9CE 80D6 C885 B7EB B471 80D5 2287 61E7
uid Steven Crook <steve@mixmin.net>
Re: Errors in active file
Author: Steve
Date: Tue, 21 Apr 2009 09:38
Date: Tue, 21 Apr 2009 09:38
20 lines
2015 bytes
2015 bytes
On Mon, 20 Apr 2009 09:08:23 +0000 (UTC), Steve wrote in
Message-Id: <slrnguoes7.4ka.steve@news.mixmin.net>:
> I've applied the patch and will see how it goes tonight.
Hi Julien,
It's looking good!
As expected there are lots of log messages such as:
Apr 21 08:38:22 drooper innd: SERVER renumber xs4all.kabel hi from 0 to 2
Running inncheck now produces no errors.
Steve
--
pub 1024D/228761E7 2003-06-04 Steven Crook
Key fingerprint = 1CD9 95E1 E9CE 80D6 C885 B7EB B471 80D5 2287 61E7
uid Steven Crook <steve@mixmin.net>
Re: Errors in active file
Author: Julien ÉLIE
Date: Tue, 21 Apr 2009 16:56
Date: Tue, 21 Apr 2009 16:56
98 lines
4458 bytes
4458 bytes
Hi Steve,
> It's looking good!
> Running inncheck now produces no errors.
Yep, the patch worked as expected.
I have just tested what happens if I post a new article in
one of your empty group.
Before posting:
GROUP wny.yumyum
211 0 5 4 wny.yumyum
LIST ACTIVE wny.yumyum*
215 Newsgroups in form "group high low flags"
wny.yumyum 0000000005 0000000006 y
..
which means that the overview thinks low=6 and high=4
(in fact, for an empty group, we take high and use low=high+1
for GROUP and we take low and use high=low-1 for the
active file during "ctlinnd lowmark")
I was worried about the number the article will take.
And here is the result after the post:
LISTGROUP wny.yumyum
211 1 5 6 wny.yumyum
6
..
LIST ACTIVE wny.yumyum*
215 Newsgroups in form "group high low flags"
wny.yumyum 0000000006 0000000006 y
..
That's fine: it properly took 6 (one more that the previously
displayed high water mark -> readers will find the new article).
But low seems to be 5 for GROUP... That astonishes me :-/
Unless it was already 5 before, oh yes, that must have been the case!
tradindexed
-----------
if (new_entry.low == 0)
new_entry.low = new_entry.high + 1;
tdx_index_rebuild_finish(index, entry, &new_entry);
if (low != NULL)
*low = entry->low;
ovdb
----
if(gi.count == 0 && lowest == 0)
gi.low = gi.high+1;
if(lo)
*lo = gi.low;
buffindexed
-----------
if (lo) {
if (ge->count == 0) {
if (ge->low < ge->high)
ge->low = ge->high;
/* lomark should be himark + 1, if no article for the group */
*lo = ge->low + 1;
} else
*lo = ge->low;
}
And obviously, as high was 4 and low was 5, buffindexed advertises 6
for the low water mark! The previous condition which puts high in low
is not done and low equals 2 more than high.
It explains the whole thing. The right fix is "*lo = ge->high + 1;"
and it is a bug of ctlinnd lowmark for buffindexed only.
(Note that thanks to your report, I had already fixed a "ctlinnd renumber"
bug last month, and improved the robustness of expiry process.)
> As expected there are lots of log messages such as:
> Apr 21 08:38:22 drooper innd: SERVER renumber xs4all.kabel hi from 0 to 2
It would be useful to check whether you see other messages of that kind
the following days.
Thanks!
--
Julien ÉLIE
« Je viens de rencontrer Isocèle : il a une idée pour un nouveau
triangle. » (Woody Allen)
Re: Errors in active file
Author: Julien ÉLIE
Date: Tue, 21 Apr 2009 17:11
Date: Tue, 21 Apr 2009 17:11
69 lines
3897 bytes
3897 bytes
Hi Steve,
> It explains the whole thing. The right fix is "*lo = ge->high + 1;"
> and it is a bug of ctlinnd lowmark for buffindexed only.
This patch should do the trick:
Index: buffindexed/buffindexed.c
===================================================================
--- buffindexed/buffindexed.c (révision 8406)
+++ buffindexed/buffindexed.c (copie de travail)
@@ -2100,10 +2100,9 @@
GROUPlock(gloc, INN_LOCK_WRITE);
ge = &GROUPentries[gloc.recno];
if (ge->count == 0) {
- if (ge->low < ge->high)
- ge->low = ge->high;
- if (lo)
- *lo = ge->low + 1;
+ ge->low = ge->high + 1;
+ if (lo != NULL)
+ *lo = ge->low;
ge->expired = time(NULL);
GROUPlock(gloc, INN_LOCK_UNLOCK);
return true;
@@ -2158,18 +2157,18 @@
return false;
}
}
- if (newge.low == 0)
- /* no article for the group */
+ if (newge.low == 0) {
+ /* No article for the group. */
newge.low = newge.high;
+ }
+ if (newge.count == 0) {
+ /* The low water mark should be one more than the high water mark
+ * when there is no article in the group. */
+ newge.low = newge.high + 1;
+ }
*ge = newge;
- if (lo) {
- if (ge->count == 0) {
- if (ge->low < ge->high)
- ge->low = ge->high;
- /* lomark should be himark + 1, if no article for the group */
- *lo = ge->low + 1;
- } else
- *lo = ge->low;
+ if (lo != NULL) {
+ *lo = ge->low;
}
ovclosesearch(handle, true);
ge->expired = time(NULL);
>> As expected there are lots of log messages such as:
>> Apr 21 08:38:22 drooper innd: SERVER renumber xs4all.kabel hi from 0 to 2
>
> It would be useful to check whether you see other messages of that kind
> the following days.
I think you will have will this patch "lo from 3 to 2" for the same groups.
--
Julien ÉLIE
« Je viens de rencontrer Isocèle : il a une idée pour un nouveau triangle. » (Woody Allen)
Re: Errors in active file
Author: Steve
Date: Wed, 22 Apr 2009 10:09
Date: Wed, 22 Apr 2009 10:09
18 lines
2138 bytes
2138 bytes
On Tue, 21 Apr 2009 19:11:18 +0200, Julien ÉLIE wrote in
Message-Id: <gskurs$m1d$1@news.trigofacile.com>:
> This patch should do the trick:
Hi Julien,
Apologies for not applying this until now, I ran out of time yesterday.
I've now applied this patch to a current copy of inn. I assume this
patch replaces the one applied yesterday and isn't intended to be in
addition to that one?
Steve
--
pub 1024D/228761E7 2003-06-04 Steven Crook
Key fingerprint = 1CD9 95E1 E9CE 80D6 C885 B7EB B471 80D5 2287 61E7
uid Steven Crook <steve@mixmin.net>
Re: Errors in active file
Author: Julien ÉLIE
Date: Wed, 22 Apr 2009 18:24
Date: Wed, 22 Apr 2009 18:24
16 lines
2459 bytes
2459 bytes
Hi Steve, > I've now applied this patch to a current copy of inn. I assume this > patch replaces the one applied yesterday and isn't intended to be in > addition to that one? They both do different things (the previous one was a "curative" patch [to fix up things, had they been wrong], this one is a bug-fix). So I believe I will commit both of them. -- Julien ÉLIE « Je ne cherche pas à connaître les réponses, je cherche à comprendre les questions. »
Re: Errors in active file
Author: Steve
Date: Thu, 23 Apr 2009 08:15
Date: Thu, 23 Apr 2009 08:15
23 lines
2573 bytes
2573 bytes
On Wed, 22 Apr 2009 20:24:26 +0200, Julien ÉLIE wrote in
Message-Id: <gsnnh1$8f4$1@news.trigofacile.com>:
> They both do different things (the previous one was a "curative" patch
> [to fix up things, had they been wrong], this one is a bug-fix).
> So I believe I will commit both of them.
Hi Julien,
Everything still looking good this morning after applying the second
patch. Again I have a lot of renumber events in my log, each appearing
to decrement the lowmark by 1. Looks like you've fixed it. :)
As a footnote, having compiled from CURRENT a few times recently I've
noticed that overview.fmt gets renamed to .OLD but no new one is
created. Some (not all) users report they cannot access the server
until I rename the OLD file back to the original.
--
pub 1024D/228761E7 2003-06-04 Steven Crook
Key fingerprint = 1CD9 95E1 E9CE 80D6 C885 B7EB B471 80D5 2287 61E7
uid Steven Crook <steve@mixmin.net>
Re: Errors in active file
Author: Julien ÉLIE
Date: Thu, 23 Apr 2009 17:06
Date: Thu, 23 Apr 2009 17:06
30 lines
2433 bytes
2433 bytes
> LISTGROUP wny.yumyum > 211 1 5 6 wny.yumyum > 6 > . > > LIST ACTIVE wny.yumyum* > 215 Newsgroups in form "group high low flags" > wny.yumyum 0000000006 0000000006 y > . > > > But low seems to be 5 for GROUP... That astonishes me :-/ Now fine. That's great! LISTGROUP wny.yumyum 211 1 6 6 wny.yumyum 6 .. LIST ACTIVE wny.yumyum* 215 Newsgroups in form "group high low flags" wny.yumyum 0000000006 0000000006 y .. -- Julien ÉLIE « On dirait que Bonemine lui a tapé dans l'oil. » (Astérix)
Re: Errors in active file
Author: Julien ÉLIE
Date: Thu, 23 Apr 2009 17:15
Date: Thu, 23 Apr 2009 17:15
70 lines
4465 bytes
4465 bytes
Hi Steve,
> Everything still looking good this morning after applying the second
> patch. Again I have a lot of renumber events in my log, each appearing
> to decrement the lowmark by 1. Looks like you've fixed it. :)
Yep, it looks as though it is now fine.
> As a footnote, having compiled from CURRENT a few times recently I've
> noticed that overview.fmt gets renamed to .OLD but no new one is
> created.
Yep, this file is no longer used.
You should have a look at the release notes:
http://www.eyrie.org/~eagle/software/inn/docs/news.html
I know it is more difficult for someone already using CURRENT to catch up
with the changes!
The overview.fmt file is no longer used by INN. Two new parameters have
been added to inn.conf: extraoverviewadvertised and extraoverviewhidden.
Although innupgrade takes care of the change during make update, you should
make sure that your overview database is consistent with all the fields
declared in overview.fmt because they will all be advertised, and Xref:full
forced as the eighth overview field. See the inn.conf(5) man page for more
information about these parameters.
It allows to deal with transition periods to accommodate overview reconfigurations.
INN can now be more RFC 3977-compliant!
inn.conf man page is here:
http://www.eyrie.org/~eagle/software/inn/docs/inn.conf.html
> Some (not all) users report they cannot access the server
> until I rename the OLD file back to the original.
I only see one case it can happen; and of course you are in :)
% telnet news.mixmin.net 119
200 news.mixmin.net InterNetNews NNRP server INN 2.5.0 (20090422 prerelease) ready (posting ok)
% openssl s_client -connect news.mixmin.net:563
200 news.mixmin.net InterNetNews NNRP server INN 2.5.0 (20090218 snapshot) ready (posting ok)
You should have a look at your init scripts. In case it can help,
I for one use:
start () {
su news -c /home/news/bin/rc.news
su news -c '/home/news/bin/nnrpd -D -c /home/news/etc/readers-ssl.conf -p 563 -S'
}
stop () {
# A nice way to stop nnrpd processes:
# start-stop-daemon --stop --name nnrpd --quiet --oknodo
# But well... :)
su news -c 'killall nnrpd'
su news -c '/home/news/bin/rc.news stop'
}
--
Julien ÉLIE
« On dirait que Bonemine lui a tapé dans l'œil. » (Astérix)
Re: Errors in active file
Author: Steve
Date: Thu, 23 Apr 2009 19:16
Date: Thu, 23 Apr 2009 19:16
20 lines
2337 bytes
2337 bytes
On Thu, 23 Apr 2009 19:15:56 +0200, Julien ÉLIE wrote in
Message-Id: <gsq7sj$jo7$1@news.trigofacile.com>:
> You should have a look at your init scripts. In case it can help,
> I for one use:
That was exactly the problem.
nnrpd -S is loaded at boot from /etc/inetd.conf.
nntps stream tcp nowait news /usr/local/news/bin/nnrpd nnrpd -S
As it wasn't being reloaded during my rebuids of inn, there was an old
version in use.
Thanks once again! :)
--
pub 1024D/228761E7 2003-06-04 Steven Crook
Key fingerprint = 1CD9 95E1 E9CE 80D6 C885 B7EB B471 80D5 2287 61E7
uid Steven Crook <steve@mixmin.net>
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