🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
5 messages
5 total messages Started by Shaggie76 Fri, 15 Apr 2005 20:11
Clients Missing Posts / local inn 2.4.1
#71065
Author: Shaggie76
Date: Fri, 15 Apr 2005 20:11
55 lines
3713 bytes
I run a small local news server at our company for a handful of
internal groups. We occasionally see a problem where a client will
"miss" a post somehow (a post that other clients can see). This happens
intermittently and when it does after they syncronize their reader
(Outlook Express or Thunderbird) they will be missing a specific
message no matter how many times they synchronize their view. However,
if they unsubscribe and resubscribe to the group (or tell Outlook
Express to reset the folder) the post will appear.

We used to run an IIS server and it used to happen very rarely -- but
it DID happen. We recently switched to a UNIX hosted copy of inn 2.4.1
and it seems that this problem has somehow become more likely because
we're seeing it about once a week now.

The article is on the server -- we use tradspool and it's in the
directory. What's more interesting is that looking at a client log. In
this case, somebody posted a reply to a message and it was given ID 55.
When I checked the client's log I see something like:

NNTP: 15:35:49 [rx] 200 ournews InterNetNews NNRP server
                    INN 2.4.1 ready (posting ok).
NNTP: 15:35:49 [tx] MODE READER
NNTP: 15:35:49 [rx] 200 ournews InterNetNews NNRP server
                    INN 2.4.1 ready (posting ok).
NNTP: 15:35:49 [tx] GROUP de.corp.bs
NNTP: 15:35:49 [rx] 211 55 1 55 de.corp.bs

Now, in this case, the client was told that there were articles 1-55 --
and yet it didn't show article 55 until its cache of articles was
reset. Again, both a Outlook and a Thunderbird client exhibited this
problem (for the same post).

To also try to track it down I quickly logged into another machine and
checked what the client there saw -- it saw the post fine!

The best working theory I have for this behaviour is this:

There is a period between when the news server will "know" that it has
a message and when the server will actually give it to clients. If the
client synchronizes during this interval, their internal high-water
mark will be updated (ie: to #55) but the news server will fail to
provide this message to them -- after this failure they will never ask
for it again.

Sadly, there is nothing in the server logs to shed any light on this
matter. I have enabled debug logging on the server and full client
logging in the hopes of catching it in the act the next time it
happens.

This is really a problem for us because we never know when we're
missing posts! If anyone could shed any light on this matter I'd
appreciated it!

peace
Re: Clients Missing Posts / local inn 2.4.1
#71066
Author: Jeffrey M. Vinocur
Date: Sat, 16 Apr 2005 03:42
27 lines
2107 bytes
In article <1113595883.381024.280040@z14g2000cwz.googlegroups.com>,
Shaggie76 <shaggie76@hotmail.com> wrote:
>
>We occasionally see a problem where a client will "miss" a post
>somehow (a post that other clients can see). [...]
>(Outlook Express or Thunderbird) [...]
>
>We used to run an IIS server and it used to happen very rarely -- but
>it DID happen. We recently switched to a UNIX hosted copy of inn 2.4.1
>and it seems that this problem has somehow become more likely because
>we're seeing it about once a week now.

Ok, you're seeing the same problem with two different clients and
two different servers?  I'm really, really, at a loss here.


>There is a period between when the news server will "know" that it has
>a message and when the server will actually give it to clients.

I don't believe such a period exists in INN.  Even if it did,
this problem would occur at random; there's no reason to expect
both clients would have trouble with the same post.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: Clients Missing Posts / local inn 2.4.1
#71080
Author: Shaggie76
Date: Mon, 18 Apr 2005 12:29
17 lines
2061 bytes
Jeffrey M. Vinocur wrote:
> In article <1113595883.381024.280040@z14g2000cwz.googlegroups.com>,
> Ok, you're seeing the same problem with two different clients and
> two different servers?  I'm really, really, at a loss here.

Sorry if I wasn't clear. We used to run IIS/Win2K and when we did we
saw the problem with Outlook (and I'm not about other client software).
We now run INN/OpenBSD and since the switch we've seen the problem with
both Outlook and Thunderbird (several times, too!). When we were
running INN the problem was rare; now that we are running INN the
problem manifests itself more frequently.

Hopefully the increased logging levels will reveal another clue :| I've
been trying to figure this out for a long time!

peace
Re: Clients Missing Posts / local inn 2.4.1
#71106
Author: shaggie76
Date: Thu, 21 Apr 2005 17:34
258 lines
8012 bytes
This is driving me nuts!!! It's still happening repeatedly. A
Thunderbird user just complained that they posted a message to a group
and it didn't show up for him. I checked with my copy of Outlook and it
didn't show up either. I posted a new message to that group and
similarly it didn't show up. I checked the spool dir and the messages
ARE there (ids 66 and 67) -- and when I check the log my client made
with the with the group it looks like this:

NNTP: 13:07:41 [tx] MODE READER
NNTP: 13:07:41 [rx] 200 porko.digitalextremes.com InterNetNews NNRP
server INN 2.4.1 ready (posting ok).
NNTP: 13:07:41 [tx] POST
NNTP: 13:07:41 [rx] 340 Ok, recommended ID
<d48mhi$n6s$1@porko.digitalextremes.com>
NNTP: 13:07:41 [rx] 240 Article posted
<d48mhi$n6s$1@porko.digitalextremes.com>

...

NNTP: 13:13:54 [tx] GROUP de.corp.bullshit
NNTP: 13:13:54 [rx] 211 67 1 67 de.corp.bullshit

And yet, if I check the group the highest message ID I see is 65!
Resetting the group does nothing.

Out of superstitious violence I rebuild the history and overview
databases using this script:

[SNIP]
#!/bin/sh
echo shutdown
rc.news stop 2>/dev/null

size=`wc -l ~/db/history | awk '{print $1}'`

echo purging
rm -rf ~/spool/overview/*

echo makehistory
makehistory -O -s $size -f history.n

echo makedbz
makedbz -s $size -f history.n

mv ~/db/history.n ~/db/history
mv ~/db/history.n.dir ~/db/history.dir
mv ~/db/history.n.hash ~/db/history.hash
mv ~/db/history.n.index ~/db/history.index

rc.news start
[SNIP]

After this, at first there was no change but now if I go and reset the
client's folder the missing messages appear. The group/211 exchange for
the new check was identicle!!!

I checked the server-side logs and there was nothing useful to be found
in the logs there.

I'm going out of my mind!!! Any suggestions or info would be very
appreciated!

peace

PS: My inn.conf looks like this:

[SNIP]
mta:                    "/usr/sbin/sendmail -oi -oem %s"
organization:           "Digital Extremes London"
ovmethod:               tradindexed
hismethod:              hisv6
pathhost:               porko.digitalextremes.com
pathnews:               /home/news

# General Settings

#domain:
#innflags:
mailcmd:                /home/news/bin/innmail
server:                 news.digitalextremes.com

# Feed Configuration

artcutoff:              7
#bindaddress:
#bindaddress6:
dontrejectfiltered: false
hiscachesize:           256
ignorenewsgroups:       false
immediatecancel:        false
linecountfuzz:          0
maxartsize:             1000000
maxconnections:         50
#pathalias:
pgpverify:              false
port:                   119
refusecybercancels:     false
remembertrash:          true
#sourceaddress:
#sourceaddress6:
verifycancels:          false
wanttrash:              false
wipcheck:               5
wipexpire:              10

# Article Storage

cnfscheckfudgesize:     0
enableoverview:         true
groupbaseexpiry:        true
mergetogroups:          false
overcachesize:          15
#ovgrouppat:
storeonxref:            true
useoverchan:            false
wireformat:             false
xrefslave:              false
nfswriter:              false


# Reading

allownewnews:           true
articlemmap:            false
clienttimeout:          600
initialtimeout:         10
msgidcachesize:         10000
nnrpdcheckart:          true
noreader:               false
readerswhenstopped:     false
readertrack:            false
nfsreader:              false
nfsreaderdelay:         60
tradindexedmmap:        true
nnrpdloadlimit:         16

# Reading -- Keyword Support
#
# 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
keyartlimit:            100000
keylimit:               512
keymaxwords:            250

# Posting

addnntppostingdate:     true
addnntppostinghost:     true
checkincludedtext:      false
#complaints:
#fromhost:
localmaxartsize:        1000000
#moderatormailer:
nnrpdauthsender:        false
#nnrpdposthost:
nnrpdpostport:          119
spoolfirst:             false
strippostcc:            false

# Posting -- Exponential Backoff

backoffauth:            false
#backoffdb:
backoffk:               1
backoffpostfast:        0
backoffpostslow:        1
backofftrigger:         10000

# Monitoring

doinnwatch:             false
innwatchbatchspace:     800
innwatchlibspace:       25000
innwatchloload:         1000
innwatchhiload:         2000
innwatchpauseload:      1500
innwatchsleeptime:      600
innwatchspoolnodes:     200
innwatchspoolspace:     8000

# Logging

docnfsstat:             false
logartsize:             true
logcancelcomm:          false
logcycles:              3
logipaddr:              true
logsitename:            false

nnrpdoverstats:         false
nntpactsync:            200
nntplinklog:            false
status:                 0
timer:                  0

# System Tuning

badiocount:             5
blockbackoff:           120
chaninacttime:          600
chanretrytime:          300
datamovethreshold:      8192
icdsynccount:           10
keepmmappedthreshold:   1024
#maxcmdreadsize:
maxforks:               10
nicekids:               4
nicenewnews:            0
nicennrpd:              0
pauseretrytime:         300
peertimeout:            3600
rlimitnofile:           -1

# Paths

patharchive:            /home/news/spool/archive
patharticles:           /home/news/spool/articles
pathbin:                /home/news/bin
pathcontrol:            /home/news/bin/control
pathdb:                 /home/news/db
pathetc:                /home/news/etc
pathfilter:             /home/news/bin/filter
pathhttp:               /home/news/log
pathincoming:           /home/news/spool/incoming
pathlog:                /home/news/log
pathoutgoing:           /home/news/spool/outgoing
pathoverview:           /home/news/spool/overview
pathrun:                /home/news/run
pathspool:              /home/news/spool
pathtmp:                /home/news/tmp
[SNIP]

My storage.conf looks like this:

[SNIP]
method tradspool {
    class: 1
    newsgroups: *
    size: 0,16777216
}

method tradspool {
    class: 2
    newsgroups: de.corp.bullshit
    size: 0,2097152
}
[SNIP]

My expire.ctl looks like this:
[SNIP]
/remember/:7
*:A:never:never:never
[SNIP]
Re: Clients Missing Posts / local inn 2.4.1
#72814
Author: Russ Allbery
Date: Mon, 12 Dec 2005 00:38
42 lines
2969 bytes
Shaggie76 <shaggie76@hotmail.com> writes:

> The article is on the server -- we use tradspool and it's in the
> directory. What's more interesting is that looking at a client log. In
> this case, somebody posted a reply to a message and it was given ID 55.
> When I checked the client's log I see something like:

> NNTP: 15:35:49 [rx] 200 ournews InterNetNews NNRP server
>                     INN 2.4.1 ready (posting ok).
> NNTP: 15:35:49 [tx] MODE READER
> NNTP: 15:35:49 [rx] 200 ournews InterNetNews NNRP server
>                     INN 2.4.1 ready (posting ok).
> NNTP: 15:35:49 [tx] GROUP de.corp.bs
> NNTP: 15:35:49 [rx] 211 55 1 55 de.corp.bs

> Now, in this case, the client was told that there were articles 1-55 --
> and yet it didn't show article 55 until its cache of articles was
> reset. Again, both a Outlook and a Thunderbird client exhibited this
> problem (for the same post).

If you use ARTICLE to try to read the article in a session like that, does
it see the new article?

The mystery here is what Thunderbird and Outlook are doing differently
than your NNTP session, or if you can reproduce the same problem in your
NNTP session.

> There is a period between when the news server will "know" that it has a
> message and when the server will actually give it to clients. If the
> client synchronizes during this interval, their internal high-water mark
> will be updated (ie: to #55) but the news server will fail to provide
> this message to them -- after this failure they will never ask for it
> again.

This really should all be immediate.  The group article count isn't
updated until after the article is stored.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
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