Thread View: news.software.nntp
4 messages
4 total messages
Started by Lyndon VanWagner
Thu, 06 Jun 1996 00:00
expire reports 'Bad entry, "alt.sports.baseball.sf-giants' and such
Author: Lyndon VanWagner
Date: Thu, 06 Jun 1996 00:00
Date: Thu, 06 Jun 1996 00:00
36 lines
1834 bytes
1834 bytes
I've recently upgraded from inn1.4unoff1 to inn1.4unoff4 and mistakenly performed a 'sh BUILD' - by following the initial installation FAQ and not the upgrade FAQs... Anyways, I believe that I've recovered everything, and we seem to be getting our feeds again, but news.daily is reporting the following messages during expire:: Bad entry, "alt.sports.baseball.sf-giants" ... There are many of these messages, but certainly not all of them in the active or newsgroups files. Nor is this message reported in any of the FAQ's that come with the upgrade. Does anyone have an idea of what might be cause this message, and what to do to repair it? Thanks. --Lyndon ================================================================ Lyndon C. VanWagner Senior Systems Administrator Lawyers Cooperative Publishing phone: 716.546.5530 x3523 50 Broad Street fax: 716.327.2633 Rochester, NY 14694 email: lvanwagn@lcp.com ================================================================ Excuse me, but why does God need a starship? ================================================================
Re: expire reports 'Bad entry, "alt.sports.baseball.sf-giants' and such
Author: Michael Hucka
Date: Tue, 25 Jun 1996 00:00
Date: Tue, 25 Jun 1996 00:00
59 lines
3381 bytes
3381 bytes
>>>>> On 06 Jun 1996, lvanwagn@lcp.com (Lyndon VanWagner) wrote:
lvanwagn> Anyways, I believe that I've recovered everything, and we seem to
lvanwagn> be getting our feeds again, but news.daily is reporting the
lvanwagn> following messages during expire:: Bad entry,
lvanwagn> "alt.sports.baseball.sf-giants" ...
lvanwagn> There are many of these messages, but certainly not all of them
lvanwagn> in the active or newsgroups files. Nor is this message reported
lvanwagn> in any of the FAQ's that come with the upgrade.
lvanwagn> Does anyone have an idea of what might be cause this message, and
lvanwagn> what to do to repair it?
This reply is probably too late to help you, but we recently encountered the
same kinds of errors in our news logs. It turned out the problem was due to
malformed entries in the history file.
I suggested grep'ing through your history file for the group name reported in
the error message, and looking at each entry to see that it is correctly
formatted. Some history file errors can be repaired by Dave Barr's "fixhist"
script (see http://www.math.psu.edu/barr/INN.html). In our case, the lines
had the form
<46uf04$qoq@news.aloha.com> 814925547~-~814920035 ubc.gene
<yoshio-2910951317420001@chisp11.slip.net> 814946758~-~814940262 fj.rec.spo
I.e., part of the group name and everything after it had been cut off.
Fixhist won't actually catch this particular problem, but the following patch
(which I've already sent to Dave) will modify fixhist to handle this case.
*** fixhist Tue Jun 25 18:03:10 1996
--- /n/wolf/z/src/news/tools/fixhist/fixhist Tue Jun 25 18:16:06 1996
***************
*** 39,44 ****
--- 39,48 ----
}
if ($msgid !~ /^<[^<> ]*>$/) {
&tossit(); # malformed msg-ids
+ next;
+ }
+ if ($arts && ($arts !~ m,[^/]*/.*,)) {
+ &tossit(); # malformed articles list
next;
}
if (/[\000-\010\012-\037\177-\237]/) { # non-control chars except tab
(N.b.: I don't believe this addition will cause fixhist to fail for cases
that it handled successfully before, but it hasn't been tested very
thoroughly, so use with caution.)
--
___ ___
Mike Hucka hucka@umich.edu http://ai.eecs.umich.edu/people/hucka | \/ |
Ph.D. wanna-be, computational models of human visual processing | |\/| |
Programmer analyst & newsmaster @ U. of Michigan Dept. of EECS |___||___|
Re: expire reports 'Bad entry, "alt.sports.baseball.sf-giants' and such
Author: C.S.Chen
Date: Wed, 26 Jun 1996 00:00
Date: Wed, 26 Jun 1996 00:00
96 lines
4161 bytes
4161 bytes
We'd encountered this once recently.
Michael Hucka (hucka@eecs.umich.edu),25 Jun 1996 23:42:12 -0400 wrote:
: >>>>> On 06 Jun 1996, lvanwagn@lcp.com (Lyndon VanWagner) wrote:
:
: lvanwagn> Anyways, I believe that I've recovered everything, and we seem to
: lvanwagn> be getting our feeds again, but news.daily is reporting the
: lvanwagn> following messages during expire:: Bad entry,
: lvanwagn> "alt.sports.baseball.sf-giants" ...
Sympton:
The last part of some entries of the in-core <history> had not been
synced and written into the disk <history> database, and suddenly the
system was hung.
- The REAL problem was due to the lack of HD space on the "/usr"
filesystem which was swamped by the logging messages of HTTPds.
I should have noticed this in advance.
After reboot, I found that the <fixhist> script is not able to fix
this kind of error.
Anyway, here is the sympton and the process that we'd used to fix
the problem. In case someone had the same problem, hope this could
help him/her fix the problem.
PS. I'm not sure if Michachel's patch could fix the problem.
Maybe I'll give it a try later.
============================================================
Excerpt from some <news.daily.log>
---------
Expire messages:
expire begin Sun Jun 23 02:40:41 CST 1996: (-v1 -l -z/var/log/news/expire.rm)
Bad entry, "r"
Article lines processed 192498
Articles retained 147154
Entries expired 45344
Files unlinked 63329
Old entries dropped 38952
Old entries retained 603296
expire end Sun Jun 23 02:43:57 CST 1996
---------
Script started on Sun Jun 23 10:02:26 1996
spring# egrep -n -e 'r$' history.bug
640462:<4qdhms$4p@marina.cinenet.net> 835344572~-~835341185 r
spring# ls -l
total 45843
-rw-r--r-- 1 root 0 Jun 23 10:02 hist-debug
-rw-r--r-- 1 root 46884664 Jun 23 09:32 history.bug
spring# exit
spring#
script done on Sun Jun 23 10:04:12 1996
=============================================================
PS.
1. Use 'grep -v' could extract the correct entries.
% egrep -v -e 'r$' history.bug > history.n
Note:
-----
In this case, '$' (regular expression) indicates the END marker
of the line. So, 'r$' will be used to extract the errneous entry.
After that, run the usual "makehistory" process as described in the
manual page.
==============================================================
#! /bin/sh
. /usr/local/news/innshellvars
ctlinnd throttle "Rebuilding history DBZ files"
# The following line can be used to retain expired history
# It is not necessary for the history file to be sorted.
# awk 'NF==2 { print; }' <history >>history.n
# View history file for mistakes.
if makehistory -r -s `wc -l <history.bug` -f history.n; then
mv history.n history
mv history.n.dir history.dir
mv history.n.pag history.pag
fi
ctlinnd go ''
=======================================================
2. If there are more entries, the '-f' option of 'egrep' could
be used to fill in the erroneous entries in the file <bad_entry>.
% egrep -v -f bad_entry history.bug > history
-
C.S.Chen [ ������ ] * E-mail: chen@cc.nctu.edu.tw
Computer Center of National Chiao-Tung University, Hsinchu, Taiwan, R.O.C.
Re: expire reports 'Bad entry, "alt.sports.baseball.sf-giants' and such
Author: Dave Barr
Date: Thu, 27 Jun 1996 00:00
Date: Thu, 27 Jun 1996 00:00
10 lines
1017 bytes
1017 bytes
In article <82ohm6iemi.fsf@krusty.eecs.umich.edu>, Michael Hucka <hucka@eecs.umich.edu> wrote: >Yes, those are the kinds of history file errors that should be caught by the >small patch I sent for fixhist. The official fixed fixhist is now ready to be fetched from the FTP site. --Dave
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