Article View: news.software.nntp
Article #70937Re: INN error diagnostics
From: Russ Allbery
Date: Sat, 19 Mar 2005 22:13
Date: Sat, 19 Mar 2005 22:13
101 lines
5846 bytes
5846 bytes
Mike Lischke <newsgroups@soft-gems.net> writes:
> Today my INN died at least 5 times. I have scanned through the available
> logs but it is hard to find anything usefull. I ran tdx-util which
> reported in most of my groups that the number of postings (I think that
> was it, am not sure) is wrong. A second run of it did not show up an
> error anymore so I assumed the previously reported errors where fixed
> not only reported (the output did not say what the tool is actually
> doing). This is very frustrating as you never know if the tool is
> helping you or just giving you another clap for something I did wrong.
This should be clear in the tdx-util man page; if you're running it with
-A, it's just reporting problems, and if you're running it with -R, it's
fixing problems. (Audit vs. Repair)
> I did not say that "news" stayed empty (although it does), but
> "news.err". After the last crash I got one message there (aha!). It's:
> Mar 19 18:31:16 h4866 rnews: cant open_remote: No such file or directory
> Great. What does it mean? What is open_remote? Why does it appear now
> and not earlier? What can I do to fix the problem?
That error means that rnews cannot connect to the news server. If you
have a normal INN configuration, that error would mean that innd had died.
> Could it be the reason why the server dies?
No.
> Ah, makehistory just gave me something to think about:
> news@h4866:/news/bin> ./makehistory -O
> dbz.c(set): can't tag value 0x1000040 tagboth = 0xff000000
Tagged hash is probably not the best thing to try to get working when
you're not familiar with INN in the first place. In general, if you're
just getting started, avoiding non-standard options for your first try is
a good idea.
> I removed the content of the overview folder completely before running
> makehistory, so I don't understand what that message means.
> After half an hour I get:
> makehistory: overview line 29630 is too long
So you probably also have a corrupted news spool at this point. Do you
have an unstable file system? If you're getting random disk corruption,
that could easily break anything, certainly including INN.
> Ignoring that and executing
> ./tdx-util -F
> I suddenly get:
> news@h4866:/usr/lib/news/bin> ./tdx-util -F
> tdx-util: tradindexed: malformed overview data for talk.politics.china:639
> tdx-util: tradindexed: unable to repair talk.politics.china:639
> tdx-util: tradindexed: count incorrect for talk.politics.china: 697 != 698
This is tdx-util cleaning up after the corrupted article by deleting it
from the overview database.
> Russ, I'm very sorry if I sound rude or agressive but wasting so many
> hours on this unreliable server is driving me crazy. Thanks for any
> help! Is there an acceptable way to reinstall the news server and
> everything without loosing my current spool or settings? Maybe a fresh
> start could help?
I would certainly recommend it, but I'd figure out why you have a
corrupted spool before I tried to salvage it. makehistory will import an
existing spool into a fresh installation of INN, as long as you set up the
active file in advance with the right newsgroups, by regenerating the
history and overview databases.
It sounds a bit to me at this point like you're flailing at the server,
running random things that you don't really understand in the hope that
they'll fix problems. This is a good way to make problems even more
serious. I would start over fresh, follow the instructions carefully step
by step, and try to understand each problem that you encounter before you
try to do anything to fix it.
INN is an incredibly complicated program, but one thing that it's not is
shy about spewing out status messages. If INN is dying without any error
messages whatsoever, that probably means that it's actually segfaulting,
not encountering some sort of recoverable error, and that usually means
that its databases have gotten seriously corrupted (and even then, they
have to be really messed up to get INN to segfault). INN isn't
particularly happy when the system crashes out from underneath it, but INN
2.4 (which you're running) is pretty aggressive about syncing things to
disk so that it doesn't get corruption on a forced reboot. (You
definitely do want to fix whatever problem is causing your system to crash
repeatedly, though, before you try to get INN working.)
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID:
<87oedfp9lz.fsf@windlord.stanford.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.ams.giganews.com!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!headwall.stanford.edu!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mailReferences:
<xn0dzy1di21gvra000@news.individual.de> <87sm2rqxrq.fsf@windlord.stanford.edu> <xn0dzy7fd29nirb000@news.individual.de>Show Full Headers
Complete Article Headers
Message-ID: <87oedfp9lz.fsf@windlord.stanford.edu> Subject: Re: INN error diagnostics Date: Sat, 19 Mar 2005 14:13:44 -0800 From: Russ Allbery <rra@stanford.edu> References: <xn0dzy1di21gvra000@news.individual.de> <87sm2rqxrq.fsf@windlord.stanford.edu> <xn0dzy7fd29nirb000@news.individual.de> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.ams.giganews.com!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!headwall.stanford.edu!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Lines: 101 NNTP-Posting-Host: windlord.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.Stanford.EDU 1111270424 2452 171.64.19.147 (19 Mar 2005 22:13:44 GMT) X-Complaints-To: news@news.stanford.edu User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4 (Jumbo Shrimp, linux) Cancel-Lock: sha1:HECPAcXnPYL6oHfh9cqByi9pn/M=