Article View: news.software.nntp
Article #76422cxn [from inn-workers]
From: John F. Morse
Date: Wed, 03 Oct 2007 04:25
Date: Wed, 03 Oct 2007 04:25
113 lines
5306 bytes
5306 bytes
Julien,
I sent the reply below to the inn-workers mailing list but it never
appeared. So I will post it here in hope you have some ideas.
------------------------------------------------------------------------
Julien ΓLIE wrote:
> Hi William,
>
>> innfeed: assertion -- cxn != NULL -- failed in file connection.c line
>> 1276
>>
>> I must admit even though people state this isn't really a problem, I
>> am frustrated by the amount it is happening to our server on a daily
>> basis. We went a long time without this problem. It wasn't till I
>> had added a lot of additional feeds that this problem started to occur.
>
> In my INN 2.4.3, I see that assertion when there is backlog for my peers.
> Otherwise, I do not see it. It seems that when a peer is not responding,
> there are some assertions like this one which are raised. It is not
> a problem except for the innfeed.dropped stuff in your innfeed directory
> (and you have to manually process them with "procbatch -vm").
> So it is a bit annoying.
>
>
>> Is there any stable version of INN that has fixed this bug?
>
> No, there is not.
> But lots of these assertions were cleaned up by Russ in INN 2.5 (which is
> not the stable version of INN, but it is very stable all the same).
>
Julien,
I too have the same or similar problem:
Daily Usenet report from Sep 30 00:00:04 to Oct 1 00:00:02
Unknown entries from news log file:
First 3 / 3 lines (100.0%)
Sep 30 01:34:50 localhost innfeed[26348]: assertion --
cxn->articleQTotal == 1 -- failed in file connection.c line 542
Sep 30 01:45:43 localhost innfeed[26350]: assertion --
cxn->articleQTotal == 1 -- failed in file connection.c line 542
Sep 30 01:52:25 localhost innfeed[26530]: assertion --
cxn->articleQTotal == 1 -- failed in file connection.c line 542
Your description of a backlog hits this squarely on the head. I find the
following:
news@optima7:~/innfeed$ ls -l
<snip>
-rw-rw-r-- 1 news news 315701 2007-09-30 01:30 news.somebody.org.input
-rw-rw-r-- 1 news news 133768 2007-09-30 01:30 news.somebody.org.output
<snip>
This "somebody" news server was set up in error (incorrect sub-domain
name "news" was used).
I re-edited incoming.conf innfeed.conf and newsfeeds to correct these
hostname errors. However, INN was running for some 12 hours before I
noticed the error, so there are several thousand messages I need to be
rid of somehow.
Your procbatch idea might work, but I'm not sure if I need it, or could
just delete the two files. These articles were received again under the
correct hostname, so they are not needed.
Ideas? Throttle or stop the server first -- if I can delete them? Are
these two files articles, or an index into the spool? What happens if I
just let them sit until expire.ctl comes around (*:A:16:16:16)?
news@optima7:/etc/news$ procbatch
procbatch [ -q ][ -v ][ -u ][ -e host ][ -d dir ][ -c [ -s dir ]][ -m
[-t dir ]] inn-batchfile
-e host to process on entries for only that host
-d dir to put the output file(s) in that directory
(/var/spool/news/incoming/tmp)
-c to check pathnames of articles before storing them
-s dir to specify where the news articles are
(/var/spool/news/articles)
-m to have procbatch move the new files to the backlog directory.
-t dir to specify the backlog directory (/var/spool/news/innfeed)
-u to unlink the input files when finished
-v for verbosity
-q quiet mode; only display error messages. Good for cron jobs.
procbatch will take an inn funnel file (normally a file in
/var/spool/news/outgoing), or an innfeed ``dropped'' file,
which is presumed to be of the format:
pathname message-id peer1 peer2 peer3 ...
and will break it up into files peer1.tmp peer2.tmp peer3.tmp... Each of
these files wil be of the format:
pathname message-id
that is the same as innfeed's backlog file format. Simply rename these
files
to peer1 peer2 peer3 in a running innfeed's backlog directory and they
will be
picked up automatically and processed by innfeed. Use the '-m' flag and
they'll be moved automatically.
--
John
Technical Details
Message-ID:
<ZQEMi.167427$ax1.126887@bgtnsc05-news.ops.worldnet.att.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wn13feed!worldnet.att.net!bgtnsc05-news.ops.worldnet.att.net.POSTED!17a21c27!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <ZQEMi.167427$ax1.126887@bgtnsc05-news.ops.worldnet.att.net> Subject: cxn [from inn-workers] Date: Wed, 03 Oct 2007 04:25:29 GMT From: "John F. Morse" <xanadu.bbs@example.invalid> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wn13feed!worldnet.att.net!bgtnsc05-news.ops.worldnet.att.net.POSTED!17a21c27!not-for-mail Reply-To: dont.bother User-Agent: Thunderbird 1.5.0.13 (X11/20070824) MIME-Version: 1.0 Newsgroups: news.software.nntp Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Lines: 113 NNTP-Posting-Host: 5016d070943af1d38cecbaa3d92fff5a X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc05-news.ops.worldnet.att.net 1191385529 NNTP-Posting-Date: Wed, 03 Oct 2007 04:25:29 GMT Organization: AT&T Worldnet