Thread View: news.software.nntp
11 messages
11 total messages
Started by Mike Lischke
Sat, 19 Mar 2005 17:20
INN error diagnostics
Author: Mike Lischke
Date: Sat, 19 Mar 2005 17:20
Date: Sat, 19 Mar 2005 17:20
19 lines
2014 bytes
2014 bytes
Hi all, Since I have trouble with my INN server every now and then I wonder if is possible to have INN reporting what makes it crashing? Currently I'm only guessing what could be wrong, but I'm in the unfortunate position that everytime I change a little thing I can wait for INN to crash within minutes and I have to execute an almost meaningless combination of makehistory, tdx-util and news.daily, killing all INN related process in the meantime and after a while the server runs again, but I still don't know why it crashed nor why it again works. If it at least would log an error message in news.error (which is always 0 bytes in size, why the heck does it exist at all?) then I could take measures to avoid the trouble in the future. Please, can anybody help to make INN create clear and useful error messages if it fails. Mike -- www.soft-gems.net
Re: INN error diagnostics
Author: Innocenti Maresin
Date: Sat, 19 Mar 2005 18:36
Date: Sat, 19 Mar 2005 18:36
19 lines
1765 bytes
1765 bytes
inn.conf(5) /Logging INN event logging is perfomed via "syslog" on most, probably all modern UNIX-like OSes. "syslog" is an unified network-transparent kernel and application message logging interface used in UNIXes. Actual writing to logfiles is done by the logging daemon. If that daemon is misconfigured, you probably will see INN logs in inappropriate place like /var/log/messages or will not see at all. syslog.conf(5) or syslog-ng.conf(5), depending on OS, may help you. -- qq~~~~\ [ ЗА IP БЕЗ ЦЕНЗУРЫ ] / /\ \ [ inCTV News ] \ /_/ / \____/
Re: INN error diagnostics
Author: Russ Allbery
Date: Sat, 19 Mar 2005 18:46
Date: Sat, 19 Mar 2005 18:46
36 lines
2836 bytes
2836 bytes
Mike Lischke <newsgroups@soft-gems.net> writes:
> Since I have trouble with my INN server every now and then I wonder if
> is possible to have INN reporting what makes it crashing? Currently I'm
> only guessing what could be wrong, but I'm in the unfortunate position
> that everytime I change a little thing I can wait for INN to crash
> within minutes and I have to execute an almost meaningless combination
> of makehistory, tdx-util and news.daily, killing all INN related process
> in the meantime and after a while the server runs again, but I still
> don't know why it crashed nor why it again works.
Well, as you've probably already realized, you have a very unusually
broken INN configuration. INN is normally very stable and simply doesn't
crash. My guess is that there's something basic and fundamental wrong
with your installation.
> If it at least would log an error message in news.error (which is always
> 0 bytes in size, why the heck does it exist at all?)
It sounds like you don't have syslog set up properly, since the news log
files will definitely not stay 0 bytes in size if it is. Please re-read
the INSTALL file, particularly the portion on setting up syslog.
> Please, can anybody help to make INN create clear and useful error
> messages if it fails.
Even before I started working on it, INN's error messages were more
comprehensive than most other software packages I've used. If anything,
it's too chatty, but if your syslog configuration is broken, all of those
messages may be getting discarded by your syslog daemon.
--
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.
Re: INN error diagnostics
Author: Mike Lischke
Date: Sat, 19 Mar 2005 21:09
Date: Sat, 19 Mar 2005 21:09
125 lines
6767 bytes
6767 bytes
Hi Russ, I much appreciated your help. >Well, as you've probably already realized, you have a very unusually >broken INN configuration. INN is normally very stable and simply doesn't >crash. My guess is that there's something basic and fundamental wrong >with your installation. Actually, I have it installed as described in the INSTALL files (I compiled it myself rather than installing the outdated version from YAST). Unfortunately, my Suse 8.1 system crashed several times for certain reasons and I have the vague feeling this could have to do with my INN problems. Russ, I'm sure you (and perhaps others) have put a lot of effort into INN but I'm afraid I must say that INN is the most unstable software I have currently on my machine. This might be my fault, because I'm an absolute rookie when it comes to Linux, but I have quite some stuff running that never made any problems even after a hard system reset (e.g. MySQL, a version control system etc.). But on the other hand if anything is wrong the INN server does not well recover on its own. 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. (Btw. while I am writing this my server again died, after running about 30 mins.) >It sounds like you don't have syslog set up properly, since the news log >files will definitely not stay 0 bytes in size if it is. Please re-read >the INSTALL file, particularly the portion on setting up syslog. 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? Could it be the reason why the server dies? However, this message seems to be related to a startup problem, not to a crash reason. Btw: I just executed inncheck and it reported two problems: two malformed lines in "newsfeeds", two *empty* lines between feed entries! This is ridiculous. They had a tab or space in it, but who would care about such a trivia? Anyway, fixing this did not help either. >Even before I started working on it, INN's error messages were more >comprehensive than most other software packages I've used. If anything, >it's too chatty, but if your syslog configuration is broken, all of those >messages may be getting discarded by your syslog daemon. Maybe it is chatty with regular messages, but not with errors. No help whatsoever. Btw: I double checked syslog.conf (although I knew it was ok) and it is still ok. The most important entries wrt to my problems are: # # all news-messages # # these files are rotated and examined by "news.daily" news.crit -/var/log/news/news.crit news.err -/var/log/news/news.err news.notice -/var/log/news/news.notice # enable this, if you want to keep all news messages # in one file #news.* -/var/log/news.all These files exist and have the proper owner (news). "news.notice" is the only file that gets regular entries. I have never seen "news.crit" to have anything in it and "news.err" usually also does not have data, although it should after so many server crashs. 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 Found http://lists.litech.org/pipermail/inn-workers/2002q4/000087.html as explanation, but the entire news spool is only about 3 MB in size so this can't be the reason (I have only about 3000 text only groups, mainly (most of) the Big8 fed to me only for about a week, and a few local groups). Ok, doing: news@h4866:/usr/lib/news/bin> ./makehistory -b -O -l 30000 -I I get again the error dbz.c(set): can't tag value 0x1000040 tagboth = 0xff000000 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 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 It is a mystery ot me where *this* problem suddenly comes from (I ran tdx-util today already 3 times without this result). Anyway, I'm going to start up INN and will see how long it runs this time. 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? Mike -- www.soft-gems.net
Re: INN error diagnostics
Author: 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.
Re: INN error diagnostics
Author: Szymon Sokół
Date: Sat, 19 Mar 2005 22:36
Date: Sat, 19 Mar 2005 22:36
15 lines
2113 bytes
2113 bytes
Russ Allbery <rra@stanford.edu> wrote: > Well, as you've probably already realized, you have a very unusually > broken INN configuration. INN is normally very stable and simply doesn't > crash. My guess is that there's something basic and fundamental wrong > with your installation. Or, possibly, a hardware problem. I used to have all sorts of problems with innd a few years ago, including mysterious crashes without any error messages logged. After a few weeks, it turned out to be a faulty RAM module. -- Szymon Sokół (SS316-RIPE) -- Network Manager B Computer Center, AGH - University of Science and Technology, Cracow, Poland O http://home.agh.edu.pl/szymon/ PGP key id: RSA: 0x2ABE016B, DSS: 0xF9289982 F Free speech includes the right not to listen, if not interested -- Heinlein H
Re: INN error diagnostics
Author: Mike Lischke
Date: Sun, 20 Mar 2005 10:48
Date: Sun, 20 Mar 2005 10:48
51 lines
3370 bytes
3370 bytes
Russ Allbery wrote >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) Unfortunately, man tdx-util says: No manual entry fpr tdx-util. Btw. the switch is -F not -R. >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. The strange thing is only INN breaks, nothing else. But I'll check the file system manually.. >I would certainly recommend it, but I'd figure out why you have a >corrupted spool before I tried to salvage it. I finally decided to do a full install of the whole system. I want to update to SuSE 9.1, Apache 2 etc. anyway, so I can install also a fresh INN. The most burning question for me is now how to save and restore INN's message base, particularly if I want to revert to (want to use the) default settings (currently I have timecaf as storage method, this is not the default, right?). >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 true and my posting here is to make my knowledge more funded, so I learn what to do to when a problem appears. Unfortunately, INN does not help much and I really depend on your and others kindness. Searching with Google does not help much either because the noise level is extremely high and usefull answers rare. Additionally, very often a solution depends heavily on the particular system/configuration so nobody really gets detailed for a solution. Btw: currently the server is running fine again. What did I do to make that happen? Well, I removed the html report option, which was what I changed last in the INN settings. Would you think this has to do with my recent problems? Thanks a lot for your time Russ. Mike -- www.soft-gems.net
Re: INN error diagnostics
Author: Russ Allbery
Date: Sun, 20 Mar 2005 18:34
Date: Sun, 20 Mar 2005 18:34
71 lines
4395 bytes
4395 bytes
Mike Lischke <newsgroups@soft-gems.net> writes:
> Russ Allbery wrote
>> 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)
> Unfortunately,
> man tdx-util
> says: No manual entry fpr tdx-util.
Now that's *definitely* an installation problem.
> Btw. the switch is -F not -R.
Ah, yes. Sorry. Fix, not Repair.
> I finally decided to do a full install of the whole system. I want to
> update to SuSE 9.1, Apache 2 etc. anyway, so I can install also a fresh
> INN. The most burning question for me is now how to save and restore
> INN's message base, particularly if I want to revert to (want to use
> the) default settings (currently I have timecaf as storage method, this
> is not the default, right?).
Right, it's not. It's also one of the least-used and least-tested storage
methods, although I've not heard of it having these sorts of serious
problems and I know that some people do indeed use it. Unfortunately,
once you've put articles into a particular storage format, it isn't very
easy to convert those articles from that to some other storage format.
You can put all new articles into a different storage format, but it's
easiest to just leave those in the same format.
makehistory will, if the storage methods are configured in storage.conf,
track down the articles from an existing spool and rebuild the history and
overview databases. That means that you have to leave timecaf configured
in storage.conf although you don't need to be putting any new articles in
it.
For future reference, if you're brand new to INN, and particularly if
you're having problems, I highly recommend using all of the defaults to
start with (tradindexed, tradspool, no tagged hash, etc.). The recovery
tools are strongest for that configuration, more people use them and can
help more easily, they're better tested, and the configuration is more
straightforward.
> This is true and my posting here is to make my knowledge more funded, so
> I learn what to do to when a problem appears. Unfortunately, INN does
> not help much and I really depend on your and others kindness. Searching
> with Google does not help much either because the noise level is
> extremely high and usefull answers rare. Additionally, very often a
> solution depends heavily on the particular system/configuration so
> nobody really gets detailed for a solution.
Well, once again your experience is distinctly at odds with mine, but I'm
not sure that it's worth arguing about it.
> Btw: currently the server is running fine again. What did I do to make
> that happen? Well, I removed the html report option, which was what I
> changed last in the INN settings. Would you think this has to do with my
> recent problems?
No. I can't imagine how that could have anything to do with your recent
problems.
--
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.
Re: INN error diagnostics
Author: Mike Lischke
Date: Sun, 20 Mar 2005 18:52
Date: Sun, 20 Mar 2005 18:52
13 lines
1714 bytes
1714 bytes
Russ Allbery wrote >Well, once again your experience is distinctly at odds with mine, but I'm >not sure that it's worth arguing about it. I'm very thankful that you took the time to help me out (I'm sure it's not the last time :-)) and much appreciate your work and kindness. Thank you. Mike -- www.soft-gems.net
Re: INN error diagnostics
Author: Jon Bell
Date: Mon, 21 Mar 2005 01:07
Date: Mon, 21 Mar 2005 01:07
27 lines
2136 bytes
2136 bytes
In article <873buqxj1x.fsf@windlord.stanford.edu>, Russ Allbery <rra@stanford.edu> wrote: >Mike Lischke <newsgroups@soft-gems.net> writes: >> >> Unfortunately, >> >> man tdx-util >> >> says: No manual entry fpr tdx-util. > >Now that's *definitely* an installation problem. Or maybe he simply wasn't logged in as 'news' when he tried it, or for some other reason /usr/local/news/man isn't in his manpath. On my system, $HOME/man automatically gets included in each user's manpath, and of course I set /usr/local/news as 'news's home directory. But other users can't see the INN man pages unless they edit the manpath by hand. Mike: if necessary, add /usr/local/news/man to your $MANPATH environment variable; or fiddle with /etc/manpath.config if your system uses the 'manpath' utility instead (try 'man manpath' to see if you have it). -- Jon Bell <jtbell@presby.edu> Presbyterian College Dept. of Physics and Computer Science Clinton, South Carolina USA
Re: INN error diagnostics
Author: Mike Lischke
Date: Mon, 21 Mar 2005 05:53
Date: Mon, 21 Mar 2005 05:53
19 lines
2026 bytes
2026 bytes
Jon Bell wrote >Or maybe he simply wasn't logged in as 'news' when he tried it, or for >some other reason /usr/local/news/man isn't in his manpath. Unfortunately, I happend 2-3 times at the time when I started that I did not login as news user. However since the server was running for a long time I thought this had no side effects. >Mike: if necessary, add /usr/local/news/man to your $MANPATH environment >variable; or fiddle with /etc/manpath.config if your system uses the >'manpath' utility instead (try 'man manpath' to see if you have it). I think the set up is ok except for tdx-util. I can easily view the ctlinnd(8) man page. But I will play a bit more with it. Mike -- www.soft-gems.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