🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
2 messages
2 total messages Started by Jeffrey J. Kosowsky Mon, 12 Jan 2004 20:19
Problem with some news never expiring
#67665
Author: Jeffrey J. Kosowsky
Date: Mon, 12 Jan 2004 20:19
54 lines
3214 bytes
I am running a small news server on my Linux machine using Inn 2.3.5
under Fedora Core 1/Linux 2.4.22 (Note: I use suck-4.3.2-1 to get
news).

I expire news daily via the following cron script:
        su - news -c "unset LANG; unset LC_COLLATE; /usr/lib/news/bin/news.daily delayrm"

I am using tradspool storage with the following uncommented lines in
my /etc/news/expire.ctl file:
      /remember/:10
      *:A:7:14:21

According to my understanding, this means that there should be *no*
articles whatsoever stored longer than 21 days in my system.

However, about 5-10% of my news articles never get expired and seem to
sit on the system forever. The rest seem to get expired properly by
the cron script. As a result, my news spool continues to grow.

Every couple of months, I manually remove old news and rebuild my
history and overview files using the following set of commands:
        cd /var/lib/news
        /usr/lib/news/bin/makehistory -b -f history.n -I -O
        mv history.n history
        /usr/lib/news/bin/ctlinnd go ''
        /usr/lib/news/bin/ctlinnd renumber ''

However, the news just continues to build up again.

I never get any relevant errors in my daily news report and in fact
the report confirms that most news is being properly expired. Here is
the relevant part of the report:

	Renumbering active file.
	Expire messages:
	expireover start Mon Jan 12 04:02:12 EST 2004: ( -z/var/log/news/expire.rm)
	    Article lines processed     8866
	    Articles dropped             540
	    Overview index dropped       540
	expireover end Mon Jan 12 04:02:12 EST 2004
		expirerm start Mon Jan 12 04:02:12 EST 2004
		expirerm end Mon Jan 12 04:02:13 EST 2004
	expire begin Mon Jan 12 04:02:43 EST 2004: (-v1)
	    Article lines processed    16612
	    Articles retained          16073
	    Entries expired              539
	    Old entries dropped           36
	    Old entries retained           8
	expire end Mon Jan 12 04:02:43 EST 2004
		all done Mon Jan 12 04:02:43 EST 2004

Any thoughts on what might be going wrong here?

Re: Problem with some news never expiring
#67785
Author: Russ Allbery
Date: Mon, 26 Jan 2004 22:30
38 lines
2715 bytes
Jeffrey J Kosowsky <kosowsky@consult.pretender> writes:

> I am using tradspool storage with the following uncommented lines in
> my /etc/news/expire.ctl file:
>       /remember/:10
>       *:A:7:14:21

> According to my understanding, this means that there should be *no*
> articles whatsoever stored longer than 21 days in my system.

Right.

> However, about 5-10% of my news articles never get expired and seem to
> sit on the system forever. The rest seem to get expired properly by the
> cron script. As a result, my news spool continues to grow.

Could you try manually expiring a newsgroup that has extra articles in it
that shouldn't be there?  You can do that with something like:

    echo example.test | expireover -f - -Z /tmp/lowmark
    ctlinnd lowmark /tmp/lowmark

See if those articles still aren't removed.  If not, check to see if those
articles are in the overview at all (by trying to retrieve overview
information for them with XOVER.)

It may be that you have orphaned articles that aren't in overview but are
still in your spool.  When articles end up in that situation, they're not
removed by expire.  I know tradspool can do this with removed groups, but
it shouldn't do this under other circumstances, but I have a sneaking
suspicion there are bugs in this area.  I haven't come up with the right
solution yet, though.

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