Article View: news.software.nntp
Article #11256Re: Bad articles hanging my incoming feed
From: Duncan Gibson
Date: Mon, 30 Sep 1996 00:00
Date: Mon, 30 Sep 1996 00:00
91 lines
3178 bytes
3178 bytes
Anne Kilarjian <anne@cs.sunysb.edu> wrote: >I'm not receiving my main incoming feed because of bad articles >in the queue - I got on the machine (the machine trying to send >me articles, I have r/w access to the news files) and looked at >the send-nntp log and I keep seeing errors of this sort: > >Can't read "alt/sys/pc-clone/gateway2000/2815", Error 0 >Nothing sent -- leaving batchfile alone. > >I look at the article in question and it is always the HTML version >of the WWW FAQ in whats probably one long run-on line, so I'm not >amazed that INN doesn't like it - I can delete the article from my >out.going file but so far it just runs up against another one when >it tries to launch send-nntp to me again - > >Help! They have 15 Megs. queued up for me and growing by the >minute - I recall there was at one time a patch to make INN not >choke on these bad articles - anyone have any info, or any other >ideas? I had a similar problem two weeks ago except that we are running CNews and NNTP rather than INN and I have no real access to our feeding machine. I was able to extract the offending message-ID out of our nntp logs and generate a dummy article locally which pretended to be this article. Therefore the feed machine doesn't try to send it again. I now have this script running on a 5-minute cycle. I append the script below, in case it's of any use to you. Cheers Duncan This is my article, not my employer's, with my opinions and my disclaimer! -- Duncan Gibson, ESTEC/YCV, Postbus 299, 2200AG Noordwijk, The Netherlands Tel: +31 71 5654013 Fax: +31 71 5656142 Email: duncan@yc.estec.esa.nl #!/bin/ksh # tmp=/tmp/drg.nn.$$ ; export tmp grep "cpstdin: EOF before period on line by itself" ~news/nntplog \ | sed 's/^.*</</' \ | sed 's/>.*$/>/' \ > $tmp if [ ! -s $tmp ] then rm -f $tmp exit 0 fi msgID=`tail -1 $tmp` if [ "x$msgID" = "x" ] then rm -f $tmp exit 0 fi grep -q "$msgID" ~news/history case $? in 0) # $msgID already in history exit 0 ;; *) # $msgID not yet processed ;; esac ( echo Newsgroups: local.test echo Path: news echo From: news@your.domain.name \(news automaton\) echo Subject: testing - please ignore echo Message-ID: $msgID echo Date: `date +"%a, %d %b %Y %X %Z"` echo Distribution: local echo Organization: Your Organization, Inc. echo echo testing - please ignore echo generating dummy article to insert Message-ID in history ) > /news/spool/in.coming/0.8431273570.t /news/lib/input/newsrun 0 rm -f $tmp
Technical Details
Message-ID:
<DyJDwv.23t@yc.estec.esa.nl>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-mailReferences:
<52gm0n$9ka@newsserv.cs.sunysb.edu>Show Full Headers
Complete Article Headers
Message-ID: <DyJDwv.23t@yc.estec.esa.nl> Subject: Re: Bad articles hanging my incoming feed Date: Mon, 30 Sep 1996 00:00:00 +0000 From: duncan@yc.estec.esa.nl (Duncan Gibson) References: <52gm0n$9ka@newsserv.cs.sunysb.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: 186187220 Distribution: inet Organization: ESA/ESTEC/YC, Noordwijk, The Netherlands Newsgroups: news.software.nntp