Thread View: news.software.nntp
7 messages
7 total messages
Started by bthigonnet
Thu, 20 Aug 2015 09:28
rant on innd error messages
Author: bthigonnet
Date: Thu, 20 Aug 2015 09:28
Date: Thu, 20 Aug 2015 09:28
59 lines
3251 bytes
3251 bytes
I know it's wrong to complain about open source software made available free of charge by hard-working individuals, but... I'm trying to set up inn 2.5.5 under FreeBSD 10.1 innd won't start and says this in errlog: innd: dbz: bad first line in config innd: dbzinit: getconf failure innd: can't dbzinit /usr/local/news/db/history Numerical argument out of domain innd: dbzclose: not opened! innd: can't dbzclose /usr/local/news/db/history Numerical argument out of domain innd: SERVER can't open history /usr/local/news/db/history: Numerical argument out of domain START OF RANT 1==================== There is apparently something wrong with the first line of a config file. Am I told which file it is? NO. There are 9 files that answer to "*.conf" and this isn't counting various other files that look suspiciously like configuration files. None of them are obviously related to dbz. Am I given the contents of that first line so I can try and figure it out? NO The first line of inn.conf comes straight from the distribution (moreover in a golden prior age I did have inn working with this same line). But maybe they mean the first non-whitespace non-# line? Also straight from the distribution - see nothing there either. 2=================== line 2 "getconf failure" seems reasonable given the preceding line The next line however alludes to "Numerical argument out of domain". I imagine this line is useful to a developer whose been working on this for years, but I find it mysterious for a news server that has never run yet and for which there is no history (a status through which every news server must pass). Just not to clutter up the Internet with a lot of junk, the solution to my problem seems to have been running makehistory as explained in "Subject: (4..5) My innd won't start!" in http://www.opennet.ru/docs/FAQ/network/inn-faq/part4.html. And for the record I found the answer not through any information in the rror messages but from the heading "My innd won't start!" and searching..... Bernard Higonnet
Re: rant on innd error messages
Author: Julien ÉLIE
Date: Thu, 20 Aug 2015 14:34
Date: Thu, 20 Aug 2015 14:34
54 lines
2985 bytes
2985 bytes
Hi Bernard, > I'm trying to set up inn 2.5.5 under FreeBSD 10.1 > > innd: dbz: bad first line in config > innd: dbzinit: getconf failure > innd: can't dbzinit /usr/local/news/db/history Numerical argument out of domain > innd: dbzclose: not opened! > innd: can't dbzclose /usr/local/news/db/history Numerical argument out of domain > innd: SERVER can't open history /usr/local/news/db/history: Numerical argument out of domain > > There is apparently something wrong with the first line of a config file. > > Am I told which file it is? You're right that the name of the config file could be added though it is not designed to be manually changed. By default, it is "history.dir" in <pathdb>. Your suggestion will be taken into account for the next release (INN 2.6.0). > The first line of inn.conf comes straight from the distribution > (moreover in a golden prior age I did have inn working with this > same line). That parameter in inn.conf is still optional in current versions of INN. > I find it mysterious for a news server that has never run yet and > for which there is no history (a status through which every news > server must pass). Couldn't it be an issue of the FreeBSD package? When installed from upstream sources, "makedbz -i -o" is run automatically at the end of the install, which properly initializes history. > Just not to clutter up the Internet with a lot of junk, the solution > to my problem seems to have been running makehistory Yep, running makehistory also works in that case. -- Julien ÉLIE « Je vais t'apprendre à chasser… Nous commencerons par les marcassins, et puis ensuite, nous passerons aux patrouilles romaines, et enfin aux sangliers ! » (Astérix)
Re: rant on innd error messages
Author: Russ Allbery
Date: Thu, 20 Aug 2015 17:02
Date: Thu, 20 Aug 2015 17:02
32 lines
2230 bytes
2230 bytes
bthigonnet@gmail.com writes:
> I know it's wrong to complain about open source software made available
> free of charge by hard-working individuals, but...
> I'm trying to set up inn 2.5.5 under FreeBSD 10.1
> innd won't start and says this in errlog:
> innd: dbz: bad first line in config
> innd: dbzinit: getconf failure
> innd: can't dbzinit /usr/local/news/db/history Numerical argument out of domain
Just to follow up on what Julien said, I'm really sorry about that
"Numerical argument out of domain" nonsense. There are long, historical
reasons behind why INN previously hasn't generated good error messages
about the history file that mostly boil down to the fact that dbz
originally had some sort of independent existence outside of INN. But the
fact that it just sets EDOM if anything fails in dbzinit without any
diagnostics has caused people no end of hair-pulling over the years.
I was going to dive in and fix that at some point and never got around to
it. :/ It looks like some actual diagnostics have now been added, which
is great.
--
Russ Allbery (eagle@eyrie.org) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: rant on innd error messages
Author: Julien ÉLIE
Date: Thu, 20 Aug 2015 18:58
Date: Thu, 20 Aug 2015 18:58
59 lines
3043 bytes
3043 bytes
Bernard, >> innd: dbz: bad first line in config >> innd: dbzinit: getconf failure >> innd: can't dbzinit /usr/local/news/db/history Numerical argument out of domain >> innd: dbzclose: not opened! >> innd: can't dbzclose /usr/local/news/db/history Numerical argument out of domain >> innd: SERVER can't open history /usr/local/news/db/history: Numerical argument out of domain >> >> There is apparently something wrong with the first line of a config file. >> >> Am I told which file it is? > > You're right that the name of the config file could be added though it > is not designed to be manually changed. > By default, it is "history.dir" in <pathdb>. > > Your suggestion will be taken into account for the next release (INN > 2.6.0). I wonder whether giving a hint at running makedbz wouldn't be better. The news admin won't know what to do with the history.dir file. Suggestion: change "config" by ".dir history file". That is to say, we would have: dbz: bad first line in .dir history file dbz: bad usage value in .dir history file dbz: bad text usage value in .dir history file instead of: dbz: bad first line in config dbz: bad usage value in config dbz: bad text usage value in config And also add the following log line when such errors occur: dbz: you should consider running makedbz manually Would that new wording and that new log line have been of help if you had seen them in your logs? Do not hesitate to tell us if you have better ideas and, of course, if you run into any other issues later during your use of INN. -- Julien ÉLIE « Je vais t'apprendre à chasser… Nous commencerons par les marcassins, et puis ensuite, nous passerons aux patrouilles romaines, et enfin aux sangliers ! » (Astérix)
Re: rant on innd error messages
Author: Julien ÉLIE
Date: Thu, 20 Aug 2015 19:15
Date: Thu, 20 Aug 2015 19:15
82 lines
4004 bytes
4004 bytes
Also, as for that specific part:
> Just not to clutter up the Internet with a lot of junk, the solution
> to my problem seems to have been running makehistory as explained in
> "Subject: (4..5) My innd won't start!" in
> http://www.opennet.ru/docs/FAQ/network/inn-faq/part4.html.
Please note that the current official FAQ is here:
http://www.eyrie.org/~eagle/faqs/inn.html
Question 3.1 is the one related to your problem.
It refers to the "Creating the Database Files" section of INSTALL:
http://www.eyrie.org/~eagle/software/inn/docs/install.html#S10
Thanks again for your bug report because I also see that our documentation
is not totally accurate. When the "-o" flag is used with makedbz, there is
no history.n file generated contrary to what INSTALL and the FAQ pretend.
It will be fixed with the release of INN 2.6.0.
--- doc/FAQ (révision 9923)
+++ doc/FAQ (copie de travail)
@@ -516,9 +516,9 @@
The other most frequent cause of this problem is not correctly following
the instructions in INSTALL on how to set up the initial history database.
-After running makedbz, the initial history database files will have names
-starting with history.n. These files must be renamed to remove the ".n"
-before innd will start.
+If you run makedbz without the -o flag, the initial history database files
+will have names starting with history.n. These files must be renamed to
+remove the ".n" before innd will start.
--- doc/pod/makedbz.pod (révision 9923)
+++ doc/pod/makedbz.pod (copie de travail)
@@ -29,9 +29,10 @@
=item B<-o>
-If the B<-o> flag is used, then the link is not made and any existing history
-files are overwritten. If the old database exists, B<makedbz> will use it to
-determine the size of the new database.
+If the B<-o> flag is used, then the temporary link to C<history.n>
+(or the name specified by the B<-f> flag) is not made and any existing
+history files are overwritten. If the old database exists, B<makedbz>
+will use it to determine the size of the new database.
--- doc/pod/install.pod (révision 9923)
+++ doc/pod/install.pod (copie de travail)
@@ -1432,9 +1432,8 @@
run these commands: the installation takes care of creating the
F<history> database.)
-When it finishes, rename the files it created to remove the C<.n> in the
-file names and then make sure the file permissions are correct on all the
-files you've just created:
+When it finishes, make sure the file permissions are correct on all
+the files you've just created:
chmod 644 *
--
Julien ÉLIE
« Je vais t'apprendre à chasser… Nous commencerons par les
marcassins, et puis ensuite, nous passerons aux patrouilles romaines,
et enfin aux sangliers ! » (Astérix)
Re: rant on innd error messages
Author: bthigonnet
Date: Sun, 23 Aug 2015 16:57
Date: Sun, 23 Aug 2015 16:57
19 lines
2040 bytes
2040 bytes
First, let me say how comforting it is that my remarks were taken without offense! Good job. As for what I would like the error message to say, in its simplest form, naming the configuration file any old way would do. That way the user/admin would look for that file and see it was missing, or empty, or had bad permissions, etc. A more complicated solution and not that necessary, would be a small list of suggestions as to what the error might be. As for the other message I complained about "Numerical argument out of domain", I do understand fully that sometimes the program is so deep in some complex process that it can't write a better message. Fixing this one is much harder I suppose than the other and I certainly don't know inn enough to make a constructive suggestion. Bernard Higonnet
Re: rant on innd error messages
Author: Julien ÉLIE
Date: Tue, 25 Aug 2015 19:36
Date: Tue, 25 Aug 2015 19:36
41 lines
2889 bytes
2889 bytes
Bonsoir Bernard,
> First, let me say how comforting it is that my remarks were taken
> without offense! Good job.
Merci à toi pour tes bons mots, c'est très gentil !
> As for what I would like the error message to say, in its simplest
> form, naming the configuration file any old way would do. That way
> the user/admin would look for that file and see it was missing, or
> empty, or had bad permissions, etc.
All right, that's pretty easy to do. In the case of the history.dir
file, it will be fixed in the upcoming INN 2.6.0 release.
If I fall into other imprecise log lines in the future, I shall improve
them too.
> As for the other message I complained about "Numerical argument out
> of domain", I do understand fully that sometimes the program is so
> deep in some complex process that it can't write a better message.
Also note that the "Numerical argument out of domain" error is the
string returned by calling the strerror() function on your system. That
string may be different in other systems, and even localized (in French
for instance). INN uses the EDOM error, as explained here:
https://en.wikipedia.org/wiki/Errno.h
INN could, as Russ said, use more customised error strings instead of
the generic ones provided by the system. That's a bit of work, though,
to improve all of that. But you're right that it is the path where we
should tend!
--
Julien ÉLIE
« Sur vingt personnes qui parlent de nous, dix-neuf en disent du mal
et la vingtième, qui en dit du bien, le dit mal. » (Rivarol)
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