🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #8817

Re: expire reports 'Bad entry, "alt.sports.baseball.sf-giants' and such

#8817
From: C.S.Chen
Date: Wed, 26 Jun 1996 00:00
96 lines
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.

Technical Details
Message-ID: <4qqv5n$7gu@netnews.nctu.edu.tw>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <31b74412.32850448@speed.roc.lcp.com> <82ivcfw7sb.fsf@krusty.eecs.umich.edu>

Show Full Headers
Complete Article Headers
Message-ID: <4qqv5n$7gu@netnews.nctu.edu.tw>
Subject: Re: expire reports 'Bad entry, "alt.sports.baseball.sf-giants' and such
Date: Wed, 26 Jun 1996 00:00:00 +0000
From: chen@cc.nctu.edu.tw (C.S.Chen)
References: <31b74412.32850448@speed.roc.lcp.com> <82ivcfw7sb.fsf@krusty.eecs.umich.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.mbox.zip!not-for-mail
X-Deja-AN: 162240048
Organization: National Chiao-Tung University, Taiwan
Nntp-posting-user: chen
Newsgroups: news.software.nntp