Thread View: news.software.nntp
13 messages
13 total messages
Started by Damir Jurica
Mon, 05 Feb 2001 11:10
inn 2.3 storing problem
Author: Damir Jurica
Date: Mon, 05 Feb 2001 11:10
Date: Mon, 05 Feb 2001 11:10
22 lines
1712 bytes
1712 bytes
recently we ran out of power at our news server and i news server got throttled and started giving out messages .. Feb 5 12:00:05 garrison innd: SERVER cant store article: File exists Feb 5 12:00:05 garrison innd: tradspool: could not open /opt/news/spool/articles/hr/rec/music/rave/1609 File exists Feb 5 12:00:05 garrison innd: SERVER cant store article: File exists Feb 5 12:00:05 garrison innd: tradspool: could not open /opt/news/spool/articles/hr/org/fer/581 File exists Feb 5 12:00:05 garrison innd: SERVER cant store article: File exists Feb 5 12:00:05 garrison innd: tradspool: could not open /opt/news/spool/articles/hr/org/foi/620 File exists etc... what can i do about this to fix things up? TIA Damir
Re: inn 2.3 storing problem
Author: Terrance Richard Boyes
Date: Mon, 05 Feb 2001 19:29
Date: Mon, 05 Feb 2001 19:29
32 lines
2765 bytes
2765 bytes
Damir Jurica <djurica@damir.globalnet.hr> wrote: > recently we ran out of power at our news server and i news server got > throttled and started giving out messages .. > Feb 5 12:00:05 garrison innd: SERVER cant store article: File exists > Feb 5 12:00:05 garrison innd: tradspool: could not open > /opt/news/spool/articles/hr/rec/music/rave/1609 File exists > Feb 5 12:00:05 garrison innd: SERVER cant store article: File exists > Feb 5 12:00:05 garrison innd: tradspool: could not open > /opt/news/spool/articles/hr/org/fer/581 File exists > Feb 5 12:00:05 garrison innd: SERVER cant store article: File exists > Feb 5 12:00:05 garrison innd: tradspool: could not open > /opt/news/spool/articles/hr/org/foi/620 File exists > etc... > what can i do about this to fix things up? Shutdown inn, check that your active file didn't get corrupted in the crash[1], rebuild history/overview, start inn. [1] happened to me a couple of weeks ago, when I halted the server but carelessly hit the power switch whilst it was still shutting down. PS Russ, this seems to be an FAQ... -- <URL:http://www.pierrot.co.uk/> Team AMIGA Paranoia: A healthy understanding of the nature of the universe.
Re: inn 2.3 storing problem
Author: Russ Allbery
Date: Mon, 05 Feb 2001 21:38
Date: Mon, 05 Feb 2001 21:38
28 lines
2258 bytes
2258 bytes
Damir Jurica <djurica@damir.globalnet.hr> writes: > recently we ran out of power at our news server and i news server got > throttled and started giving out messages .. > Feb 5 12:00:05 garrison innd: SERVER cant store article: File exists > Feb 5 12:00:05 garrison innd: tradspool: could not open > /opt/news/spool/articles/hr/rec/music/rave/1609 File exists > Feb 5 12:00:05 garrison innd: SERVER cant store article: File exists > Feb 5 12:00:05 garrison innd: tradspool: could not open > /opt/news/spool/articles/hr/org/fer/581 File exists > Feb 5 12:00:05 garrison innd: SERVER cant store article: File exists > Feb 5 12:00:05 garrison innd: tradspool: could not open > /opt/news/spool/articles/hr/org/foi/620 File exists > etc... > what can i do about this to fix things up? I keep meaning to check to see if deleting all of the articles that were stored without overview information would do it. This should be pretty straightforward using a Perl script to trawl through the active file, check the corresponding spool directories, and delete any articles with article numbers higher than the high mark in the active file. -- Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Re: inn 2.3 storing problem
Author: Terrance Richard Boyes
Date: Mon, 05 Feb 2001 23:06
Date: Mon, 05 Feb 2001 23:06
54 lines
3451 bytes
3451 bytes
Russ Allbery <rra@stanford.edu> wrote:
> Damir Jurica <djurica@damir.globalnet.hr> writes:
[snip]
>> what can i do about this to fix things up?
> I keep meaning to check to see if deleting all of the articles that were
> stored without overview information would do it. This should be pretty
> straightforward using a Perl script to trawl through the active file,
> check the corresponding spool directories, and delete any articles with
> article numbers higher than the high mark in the active file.
Yep, that's exactly what I ended up doing the other week, having
rebuilt the history/overview I was still getting the same error.
So I knocked up a little awk script to do it, for tradspool at
least. I started by getting a list of all the article numbers,
in a specific format to make the awking a little simpler.
$ cd ~news/spool/articles
$ find . -type f -printf "%h %f\n" > ~news/tmp/articles.lis
$ cd ~news
which lists directory and article number as separate fields.
Then awk -f ckact.awk ~news/tmp/articles.lis > ~news/tmp/articles.over
And the output file is a list of all articles which have a higher
number than the highmark in the active file. And where ckact.awk
is the script
BEGIN {
while(getline<"db/active">0) {
# slightly nasty, transform "a.b.c" to "./a/b/c", but...
group="./"gensub(/\./,"/","g",$1)
groups[group]=$2+0
}
close("~news/db/active")
}
{
group=$1
# ... it makes it easy to use an associative array here.
if(groups[group]<$2)
print $0
}
Though rather than just deleting them, I moved them elsewhere, then
rnews'd them all back in.
--
<URL:http://www.pierrot.co.uk/> Team AMIGA
1.79 x 10^12 furlongs per fortnight -- it's not just a good idea, it's
the law!
Re: inn 2.3 storing problem
Author: Terrance Richard Boyes
Date: Sat, 10 Feb 2001 01:37
Date: Sat, 10 Feb 2001 01:37
52 lines
3821 bytes
3821 bytes
Graeme Mathieson <graeme+usenet@mathie.cx> wrote: > tez@pierrot.co.uk (Terrance Richard Boyes) writes: >> Damir Jurica <djurica@damir.globalnet.hr> wrote: >> >> > recently we ran out of power at our news server and i news server got >> > throttled and started giving out messages .. > [snip] >> Shutdown inn, check that your active file didn't get corrupted >> in the crash[1], rebuild history/overview, start inn. > I'm about to discover this has already been answered, but if the active > file is out of sync with the tradspool[2], what's the best way to resync > it? I'm told that `ctlinnd renumber` no longer does what I thought it > did. Well the renumber option is the best, when it works... When things are running fine a renumber will rewrite the active file properly. Unfortunately it seems that in some situations, like a power outage it doesn't always work :( > A wee bit of shell-script hackery to rebuild the active file based on > the article numbers stored on disk sorted it for me but something tells > me there's an easier way. Uhm, I thought of trying that, but then I though that there could still be problems as the group.index file would also be out of sync ? If you check the timestamps on various files you'll notice that the history/overview files get updated as articles arrive (as does ~/log/news though with a slight delay), but the group.index/active seem to be updated at some odd[1] interval. [1] it may be logical, but I don't have a clue what it is ... With a bad power-down style crash there's also always the _possibility_ that the articles/overview/history will be out of sync anyway. So trashing the overview/history and doing a complete rebuild may be necessary. And by the time you've faffed about checking exactly what's wrong it may have taken more time than doing that rebuild. Of course if you're the sort of person that gets some odd sense of satisfaction at knowing exactly what's not working then doing the investigation is fun :) -- <URL:http://www.pierrot.co.uk/> Team AMIGA Your step will soil many countries.
Re: inn 2.3 storing problem
Author: Russ Allbery
Date: Sat, 10 Feb 2001 02:49
Date: Sat, 10 Feb 2001 02:49
37 lines
2670 bytes
2670 bytes
Terrance Richard Boyes <tez@pierrot.co.uk> writes: > Graeme Mathieson <graeme+usenet@mathie.cx> wrote: >> A wee bit of shell-script hackery to rebuild the active file based on >> the article numbers stored on disk sorted it for me but something tells >> me there's an easier way. > Uhm, I thought of trying that, but then I though that there could still > be problems as the group.index file would also be out of sync ? What really needs to happen is we need real recovery tools for the tradindexed overview format that can rebuild it from various partial states. This shouldn't be too hard; I've looked at the code and have a basic idea of how it works. It just requires finding the time to write a bunch of it. :/ > If you check the timestamps on various files you'll notice that the > history/overview files get updated as articles arrive (as does > ~/log/news though with a slight delay), but the group.index/active seem > to be updated at some odd[1] interval. > [1] it may be logical, but I don't have a clue what it is ... Hm, sounds like some of these problems would go away with a more frequent sync.... > With a bad power-down style crash there's also always the _possibility_ > that the articles/overview/history will be out of sync anyway. So > trashing the overview/history and doing a complete rebuild may be > necessary. It *shouldn't* be, damn it. *grumble* It never used to be. INN used to cope. It should be able to cope. I want to get back to that point. -- Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Re: inn 2.3 storing problem
Author: Terrance Richard Boyes
Date: Sat, 10 Feb 2001 05:26
Date: Sat, 10 Feb 2001 05:26
36 lines
3081 bytes
3081 bytes
Russ Allbery <rra@stanford.edu> wrote:
> Terrance Richard Boyes <tez@pierrot.co.uk> writes:
[snip]
>> If you check the timestamps on various files you'll notice that the
>> history/overview files get updated as articles arrive (as does
>> ~/log/news though with a slight delay), but the group.index/active seem
>> to be updated at some odd[1] interval.
>> [1] it may be logical, but I don't have a clue what it is ...
> Hm, sounds like some of these problems would go away with a more frequent
> sync....
I thought of that, but since the worst problems seem to be caused
by power loss there'd still be a fair chance that they were out
of sync :(
Just for info I've checked the times the active file was updated
over the last day.
08:07 - after news.daily
19:05 - some 20-odd minutes after the previous suck finished ~1500 arts
04:30 - just under an hour after the previous suck finished, and
there'd been just under 1000 arts retrieved since the last sync
Notes: no articles are collected between 08:00 and 18:00 weekdays
news is suck'd and nntpget'd from a cronjob that runs
roughly on the half hour. news.daily is run at 08:00
--
<URL:http://www.pierrot.co.uk/> Team AMIGA
To succeed in politics, it is often necessary to rise above your principles.
Re: inn 2.3 storing problem
Author: Russ Allbery
Date: Sat, 10 Feb 2001 05:48
Date: Sat, 10 Feb 2001 05:48
16 lines
1772 bytes
1772 bytes
Terrance Richard Boyes <tez@pierrot.co.uk> writes: > Russ Allbery <rra@stanford.edu> wrote: >> Hm, sounds like some of these problems would go away with a more >> frequent sync.... > I thought of that, but since the worst problems seem to be caused by > power loss there'd still be a fair chance that they were out of sync :( If you're out of sync by a few messages, you just write off those messages and go on. If you're out of sync by hundreds of messages in every group, that's a serious problem. -- Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Re: inn 2.3 storing problem
Author: Charlie Can'trenumber
Date: Sat, 10 Feb 2001 05:58
Date: Sat, 10 Feb 2001 05:58
94 lines
6263 bytes
6263 bytes
:: > With a bad power-down style crash there's also always the _possibility_ :: > that the articles/overview/history will be out of sync anyway. So :: > trashing the overview/history and doing a complete rebuild may be :: > necessary. :: :: It *shouldn't* be, damn it. *grumble* It never used to be. INN used to :: cope. It should be able to cope. I want to get back to that point. Why do people mention bad power-down style crashes? It's not like CPU5 Ecache Writeback Data Parity Error happens from coincidence a mere few hours after a CPU1 UE Error: Ecache Copyout on CPU5 error bringing down the system. On a weekend. When people are actually starting to make use of this machine. Anyway, after the first loverly crash, I knew it would be necessary to rebuild the history databases from the text file, which has become a routine crash recovery for me. However, in checking a few text groups, the last art (in this group, made 40 mins before panic) was missing, and in another, six previously-present articles were replaced by a gap of two, one readable (not crossposted), and three missing. But earlier articles in these text froups seemed readable. However, alt.binaries.news-swerver-comparison did not fare so well. All articles before the crash were not present in either overview command requests or `head' requests. The active file indicated they should still be present. The tradindex .DAT file had all the info. I couldn't clearly see .IDX b0rkenness. And worse, looking at the other binaries froups, *every* post that had arrived before the crash was unreadable, in groups spanning two cycbuffers, and different from the a.b.n-s-c cycbuff. I didn't have time to check all cycbuffers. Of course, when actually trying to look at the contents to do further research, suddenly the machine stopped answering, and the second crash and panic happened. I could be cursed. After this second panic, apart from a small gap of missing articles, no doubt due to INN buffering of data +/- the OS caching the writes, those articles that had arrived between crashes were visible in the text froups. In the limited looking, it seems the buffer where the bitmaps point to only smaller articles (text, <some kB size) allowed retrieval of old posts, but I haven't checked all the cycbuffs to see if the pattern still holds. Now, things ran relatively smoothly after the first crash. After the second, and after manually fscking things that failed automagically (strangely, the very same disk devices that needed fscking before), when I did start things, I failed to look in the logs before closing my eyes. When they did open far too few hours later, I saw innd still was not taking much CPU. Waking with a start, I saw news.err logged that innd can't renumber. Also, while I was asleep, expireover had logged that SM couldn't find token type or method was not initialized (101), but I think I saw expireover running still. And when I did restart innd, this time it started. I still need sleep. Badly. I'm not going to even try to figure out the problems until I get more sleep (by which time the cycbuffs should have all cycled a few times), but it's scary that the old articles just ... disappeared. For some reason, all posts in a.b.n-s-c before two hours ago are unavailable. Those in a local dk binariez froup where someone seems to be posting a ton of multimedia seem to have the same problem. The text froups again are unaffected. Even before this crash, I was suggesting to my replacement that for a must-be-100%-reliable machine that he needs to build like yesterday, that the present INN was not satisfactory. I suggested 1.7+insync, but I'd like to know if you seriously recommend a later version. Also, company policy requires running unmodified source k0de, so if you have better suggestions, I'd pass them along. He was planning to run 2.3, but I didn't think that to be too good an idea, based on my experiences and these crashes. This crashing machine is the same one where I just added the virtual host timezone hacks, so it's probably my fault. I'll mail them to ya but I added another argument to maketime() where the timezone is given, but since k0de is still being run without this, I didn't make this a clean hack, instead adding a hacked makelocaltime() until I can start out on a clean machine not running other unhacked nnrpd (and inews) k0dez at the same time, so it'll need a lot of massaging as it is. Anyway, I'm disturbed by three apparently unrecoverable binariez spools, perhaps more. Expireover seems to have purged many of the old pointers that I'm guessing were valid from the earlier crash, they certainly have not been self-expired with this downtime, as this machine barely can keep up with 100% uptime, and I have no headroom for hours of backlogs. Or this is a sign for me to leave NOW and head elsewhere and do something else with my life, like drink heavily.
Re: inn 2.3 storing problem
Author: Charlie Crashingoverview
Date: Sat, 10 Feb 2001 16:48
Date: Sat, 10 Feb 2001 16:48
124 lines
8355 bytes
8355 bytes
Whilst mostly asleep, and drifting in and out of a deep alpha-wave state, I inexplicably managed to drool out the following: :: a routine crash recovery for me. However, in checking a few text :: groups, the last art (in this group, made 40 mins before panic) was :: missing, and in another, six previously-present articles were replaced :: by a gap of two, one readable (not crossposted), and three missing. :: But earlier articles in these text froups seemed readable. :: :: However, alt.binaries.news-swerver-comparison did not fare so well. :: All articles before the crash were not present in either overview :: command requests or `head' requests. The active file indicated they :: should still be present. The tradindex .DAT file had all the info. :: I couldn't clearly see .IDX b0rkenness. :: :: And worse, looking at the other binaries froups, *every* post that :: had arrived before the crash was unreadable, in groups spanning two Jeez, if I write like this, it's no wonder that people killfile me early and often. Well, now I don't have lack of sleep as an excuse, but if I remain unintelligible, it's cuz I've gotten an early start on heavy drinking with some chocolate to geek me up suitably. Further investigation revealed that *every* binariez cycbuff had its contents before the first and second crashes rendered disappearable, while only the text cycbuff permitted its articles to be readable days into the past. If it makes any difference, this text cycbuff is the last match in the storage.conf file. I had created a set of partial makehistory routines to enable me to switch from one overview storage method to another without losing the spool contents, and still being able to recover the important pr0n froups quickly. When I used these, the articles that had gone missing in the afflicted groups suddenly reappeared. HOWEVER, using my Newsreader of Choice, I was unable to retrieve these resurrected articles. As it turns out, the overview data is available to the reader, and one can retrieve these restored articles by requesting them by article number. However, history requests by message ID were horribly b0rken. This seems logical when you remember that I have cron running expire when normal people are sleeping. I still don't understand how the overview data from the past managed to disappear, but apparently when the nightly expire happened before I woke up to try and make sense of the crash, it consulted the overview data to decide if the history entry was current or if it had been obsolete. Therefore, I'm guessing that all history entries for articles somehow rendered invisible in overview (while still present in the spools) were rewritten as expired entries by dropping the storage token. Thus these articles, even if they are in spools with weeks of retention, can no longer be retrieved by message ID, and references headers pointing to them cannot be followed now. Presumably it will be a major performance killer for expire to consult not the overview info, but the spool proper based on the token. Or if it is, perhaps either the rewritten overview data missing articles from history with storage tokens should be verified against the spool proper, or else when innd starts, and notices that an unclean shutdown happened, it should send a signal somehow to the expire to follow that would make it a bit more conservative and less trusting of the overview data after a crash, probably doing the above. So it seems that if one runs `makehistory' to recreate overview, if the articles that had been in history went `missing', there's no simple way to give back the token they had. Here is the case I was trying to think of where a history API that would allow old history entries to be updated in place, similar to what Heath Kehoe was hoping to do with a BerzerkDB- based history mechanism. No, I know damn well that I can run `makehistory' for the text file, as well as overview. Yes, it will take about a week now. Yes, all the binaries buffers finished already after I recovered them this morning while out drinking but the comparably-sized text buffer takes far longer and it's still going, and probably will be next panic. No, I don't think that makehistory for other than overview on just one buffer at a time will give usable results. No, I don't care for the downtime I'm sure would be required on this semi-production machine. :: Or this is a sign for me to leave NOW and head elsewhere and do :: something else with my life, like drink heavily. Speaking of drinking heavily, before I went out to do so, I took a look at *this* newsfroup. Here is what I see and it's weird, and that is *before* drinking but still while mostly asleep: After the first crash, one article by Andrew Gierth that I had read is missing from the index presented to me. Apparently no new articles arrived and remained visible, since the .DAT file for tradindex oview has no entries for Andrew's post as well as a few following. What is weird is that there are two articles with the proper overview DAT info, and indeed, when one requests XOVER info, one gets the right info. However, when one requests these two articles in this froup by article number, one gets totally wrong articles, belonging to other groups entirely. And these articles do not even have the same number in their groups. This is somewhat like the corruption I saw with the buffindex overview method after a few days without any crashes. Or was it ovdb? I do no remember. If the latter, then I had to shut down innd repeatedly with `kill' because of hung processes. Now here is where my brane goes on strike. I can accept that the .DAT overview file failed to be flushed to disk in the 40 minutes from the time the article arrived to the crash. However, I still boggle at how the .DAT data present in the binariez froups fails to be visible, if the .IDX file might play a part. But what really disturbs me is how, when presented with the correct overview data, one can request an article by number in that froup and pull up a totally different froup's message with no obvious connection. I guess to try to figure it out, I'd have to ask, is there documented anywhere just what the steps are in the retrieval of an article by number or whatever means? Obviously there are a multitude of different database files that interact in weird and mysterious ways in the name of efficiency, but when they are inconsistent, they cause weird and mysterious failures like this. I mean, I'm boggling at how requesting an article with proper overview data using article number can be so messed up. Any pointers to docs for the multitude of files, what they do, and all that, will be met with gratitude and/or slumber. thanks. please.
Re: inn 2.3 storing problem
Author: Terrance Richard Boyes
Date: Sat, 10 Feb 2001 22:49
Date: Sat, 10 Feb 2001 22:49
18 lines
2293 bytes
2293 bytes
I wrote, and then thought ... > Just for info I've checked the times the active file was updated > over the last day. Aargh, I was only looking at the timestamp on the active file, and though that isn't changing, the contents are - I've just made a test post and the active file was updated practically immediately. The timestamps on the group.index were slightly before the active, dunno how to tell whether or not it's being silently updated :( -- <URL:http://www.pierrot.co.uk/> Team AMIGA Hell hath no fury like a bureaucrat scorned. - Milton Friedman
Re: inn 2.3 storing problem
Author: Jeffrey M. Vinocur
Date: Sun, 11 Feb 2001 01:23
Date: Sun, 11 Feb 2001 01:23
15 lines
1552 bytes
1552 bytes
In article <20010210.224932.9E9801DE.uvaa@pierrot.co.uk>, Terrance Richard Boyes <tez@pierrot.co.uk> wrote: > >Aargh, I was only looking at the timestamp on the active file, >and though that isn't changing, the contents are Yes, this happens with some (all?) mmap(2) implementations. It's somewhat disconcerting at first. (At least I assume that's what it is.) -- Jeffrey M. Vinocur jeff@litech.org
Re: inn 2.3 storing problem
Author: Terrance Richard Boyes
Date: Thu, 15 Feb 2001 18:49
Date: Thu, 15 Feb 2001 18:49
40 lines
3483 bytes
3483 bytes
Russ Allbery <rra@stanford.edu> wrote: > Terrance Richard Boyes <tez@pierrot.co.uk> writes: >> Graeme Mathieson <graeme+usenet@mathie.cx> wrote: >>> A wee bit of shell-script hackery to rebuild the active file based on >>> the article numbers stored on disk sorted it for me but something tells >>> me there's an easier way. >> Uhm, I thought of trying that, but then I though that there could still >> be problems as the group.index file would also be out of sync ? > What really needs to happen is we need real recovery tools for the > tradindexed overview format that can rebuild it from various partial > states. This shouldn't be too hard; I've looked at the code and have a > basic idea of how it works. It just requires finding the time to write a > bunch of it. :/ I got a chance to look a little more carefully at what happens in a power-outage failure last weekend, and I've a feeling that it may not be too difficult to deal with... The articles are on spool and in the overview and history, but not in the disk copy of active or group.index. Simply updating active doesn't work, however I think that a combination of updating active and then regenerating group.index should fix it. I haven't yet checked if there's already code in there to fix the active file - but then that should be easy enough to do from the overvew/*.DAT files anyway. And I think that makehistory.c/OverAddAllNewsgroups should regenerate group.index as required ? -- <URL:http://www.pierrot.co.uk/> Team AMIGA I've given up reading books; I find it takes my mind off myself.
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