🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
2 messages
2 total messages Started by Gregory Popovitch Thu, 28 Jun 2001 02:00
Why am I getting duplicate articles in my spool when switching feed servers?
#53065
Author: Gregory Popovitch
Date: Thu, 28 Jun 2001 02:00
203 lines
6486 bytes
Hi,

I'm not an experienced news admin, so I apologize if my question is somewhat
obvious. I searched
the web and the newsgroups and I couldn't find a problem similar to mine, so
I have a feeling
I'm missing something really obvious.

I'm running INN 2.2 (on linux), and I subscribe to some newsgroups which I
*never* expire,
since I want to archive all postings. For that purpose, I did the following:
   - I run "news.daily" with the 'noexpire' flag
   - in 'inn.conf', I set artcutoff to 0 since I wanted to be able to
retrieve old articles
and the articles have been accumulating nicely in my spool directory (I use
the reiserfs filesystem).

I use the traditional spool, and use "newsx" to get new articles from my
news server. After
nexs gets the articles, I send them to innd using "rnews -U"

I just switched to a new feed  server a few days back and I found out that
INN had accepted
a large number of duplicate articles. I can find the duplicate articles in
my spool directory
(same Message-ID) and the same duplicate ids appear also in my history file.

I can't understand why INN accepted these duplicate articles and put them in
the spool. I
thought that innd would check each Message-ID of incoming articles against
the history file, and
discard the duplicates. This doesn't seem to happen.

Does anyone have a suggestion as to the cause of this?
My full 'inn.conf' file is appended at the end of this posting.

Also, how can I correct this situation? I'm thinking of writing a python
script who would
go througn my spool directory and remove duplicate articles (and maybe
rename files
as to not leave holes in the numbering). And recreate the history file
afterwards. Would this
be sufficient?

At this point, I would really appreciate any insight.

Gregory



----------- my inn.conf file ---------------------------------------------

##  $Revision: 1.24.2.2 $
##  inn.conf -- inn configuration data
##  Format:
## <parameter>:<whitespace><value>
##
##  See the inn.conf(5) man page for a full description of each
##  of these options
##
##  Blank values are allowed for certain parameters
## ---------------------------------
# All parameters must exist
#
organization:  Keyblazer.com, Inc
server:   localhost
pathhost:  localhost
moderatormailer:
#domain:
fromhost:
pathalias:
#complaints:
mta:   /usr/sbin/sendmail -oi %s
mailcmd:  /usr/bin/innmail
checkincludedtext: false
maxforks:  10
maxartsize:  1000000
nicekids:  0
nicenewnews:  0
verifycancels:  true
logcancelcomm:  true
wanttrash:  false
remembertrash:  true
linecountfuzz:  0
peertimeout:  3600
clienttimeout:  1800
allownewnews:  false
localmaxartsize: 1000000
logartsize:  true
logipaddr:  true
logsitename:  true
maxconnections:  50
artcutoff:  0
icdsynccount:  10
hiscachesize:  16384
readertrack:  false
strippostcc:  false
status:   0
timer:   0
readerswhenstopped: false
noreader:  false
extendeddbz:  false
nnrpdoverstats:  false
storeonxref:  true
nnrpdcheckart:  true
storemsgid:  true
usecontrolchan:  true
mergetogroups:  false
backoffauth:  false
backoffdb:  /var/lib/news/backoff
backoffpostfast: 0L
backoffpostslow: 1L
backofftrigger:  10000L
mimeversion:
mimecontenttype:
mimeencoding:
refusecybercancels: false
activedenable:  true
activedupdate:  30
activedport:  1119
nnrpperlauth:  false
#
#
# These options are unlikely to need changing in most situations
#
chaninacttime:  600
chanretrytime:  300
pauseretrytime:  300
nntplinklog:  false
nntpactsync:  200
badiocount:  5
blockbackoff:  120
#
# ---------------------------------
# Changing these options can have an effect on the way articles are
# stored and may require recreating the spool and/or database files
#
wireformat:  false
xrefslave:  false
nnrpdposthost:
nnrpdpostport:  119
spoolfirst:  false
writelinks:  true
storageapi:  false
articlemmap:  false
overviewmmap:  true
bindaddress:  all
sourceaddress:  any
port:   119
#
## Keywords-in-overview options
## Enabling this without stopping innd and deleting the existing overview
## database and adding  will probably confuse a lot of things. You must
## have compiled this support in too.
#
keywords:  false
keylimit:  512
keyartlimit:  100000
keymaxwords:  250
#
# Other options
innflags:
doinnwatch:  false
innwatchsleeptime: 600
pgpverify:  false
controlfailnotice: false
logcycles:  3
innwatchpauseload: 1500
innwatchhiload:  2000
innwatchloload:  1000
innwatchspoolspace: 8000
innwatchbatchspace: 800
innwatchlibspace: 25000
innwatchspoolnodes: 200
docnfsstat:  false
#
# ---------------------------------
# Paths to various aspects of the news system
#
pathnews:  /usr
pathbin:  /usr/bin
pathfilter:  /usr/bin/filter
pathcontrol:  /usr/bin/control
pathdb:   /var/lib/news
pathetc:  /etc/news
pathrun:  /var/run/news
pathlog:  /var/log/news
pathhttp:  /var/log/news
pathtmp:  /usr/tmp
pathspool:  /var/spool/news
patharticles:  /var/spool/news/articles
pathoverview:  /var/spool/news/overview
pathoutgoing:  /var/spool/news/outgoing
pathincoming:  /var/spool/news/incoming
patharchive:  /var/spool/news/archive
pathuniover:  /var/spool/news/uniover
overviewname:  .overview
#
# ---------------------------------
#


Re: Why am I getting duplicate articles in my spool when switching feed servers?
#53070
Author: Andrew Gierth
Date: Thu, 28 Jun 2001 11:28
37 lines
2766 bytes
>>>>> "Gregory" == Gregory Popovitch <greg@gpy.com> writes:

 Gregory> I'm running INN 2.2 (on linux), and I subscribe to some
 Gregory> newsgroups which I *never* expire, since I want to archive
 Gregory> all postings. For that purpose, I did the following:
 Gregory>    - I run "news.daily" with the 'noexpire' flag

unwise.

Part of the expire process involves rebuilding the history file hash
to a suitable size based on the current history size and probable
growth. The history hash is not intended to handle arbitrary growth;
once the predicted table size is exceeded, the performance is crippled
and, in most 2.x versions, various bugs in the history handling start
to cause problems.

If you don't want things to expire, you can set the expire times to
infinite in expire.ctl and run expire anyway; this should handle the
history rebuild without actually deleting any articles.

 Gregory> I just switched to a new feed server a few days back and I
 Gregory> found out that INN had accepted a large number of duplicate
 Gregory> articles. I can find the duplicate articles in my spool
 Gregory> directory (same Message-ID) and the same duplicate ids
 Gregory> appear also in my history file.

 Gregory> I can't understand why INN accepted these duplicate articles
 Gregory> and put them in the spool.

My guess is that you've fallen foul of the dbz overflow bug (which
results in some articles being added to the history in such a way that
they don't show up on lookups, thus allowing the same article to be
accepted again).

-- 
Andrew.
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