Thread View: news.software.nntp
7 messages
7 total messages
Started by Edwin Yau
Sun, 04 Apr 1999 00:00
INN 2.2 posting and expiring probs.
Author: Edwin Yau
Date: Sun, 04 Apr 1999 00:00
Date: Sun, 04 Apr 1999 00:00
78 lines
2875 bytes
2875 bytes
Can anyone help?
I recently set up INN 2.2 (using cnfs) on a Solaris 2.6 machine. We can
receive news ok, but seem to have two big problems:
a) we cannot seem to post out (only to local users).
b) expiring does not seem to work.
Something has to be set up wrong somewhere, but I can't find anything
logically wrong. Below is a list of various errors messages. If anyone
has any ideas please let me know by e-mailing me at edwin@rrds.co.uk
Many thanks.
--------------------------
DAILY USENET REPORT E-MAIL
--------------------------
Expire messages:
expire begin Fri Mar 26 03:01:18 GMT 1999: (-v1 -c -e
-z/var/news/log/expire.rm
-u/var/news/log/expire.index.rm -Z/var/news/log/expire.lowmark)
Can't initialize new unified overview
Article lines processed 0
Articles retained 0
Entries expired 0
Articles dropped 0
Overview index dropped 0
Old entries dropped 0
Old entries retained 0
expire end Fri Mar 26 03:01:19 GMT 1999
all done Fri Mar 26 03:01:19 GMT 1999
lowmarkrenumber begin Fri Mar 26 03:01:19 GMT 1999:
(/var/news/log/expire.lowmark)
lowmarkrenumber end Fri Mar 26 03:01:20 GMT 1999
expireindex start Fri Mar 26 03:01:20 GMT 1999
expireindex end Fri Mar 26 03:01:20 GMT 1999
----------------------
/var/adm/messages file
----------------------
Mar 26 02:06:53 mailsvr innd: SERVER cant store article
Mar 26 03:01:19 mailsvr expire[25813]: OVER cant open new overview file:
Too many open files
Mar 26 03:07:46 mailsvr innd: SERVER cant store article
Mar 26 03:31:35 mailsvr innd: SERVER cant store article
-----------------
storage.conf file
-----------------
method cnfs {
newsgroups: *
class: 1
size: 0,0
expires: 0s,5d
options: BIGAREA
}
-----------
nnrp.access
-----------
172.*:RP:::*
130.*:RP:::*
------------
nntpsend.ctl
------------
nntp0.tha.uk.quza.net:nntp0.tha.uk.quza.net::-T1800 -t300
---------------
e-mail: edwin@rrds.co.uk
Re: INN 2.2 posting and expiring probs.
Author: Russ Allbery
Date: Sun, 04 Apr 1999 00:00
Date: Sun, 04 Apr 1999 00:00
27 lines
1419 bytes
1419 bytes
Edwin Yau <edwin@darkjedi.idps.co.uk> writes: > I recently set up INN 2.2 (using cnfs) on a Solaris 2.6 machine. [...] > Mar 26 02:06:53 mailsvr innd: SERVER cant store article > Mar 26 03:01:19 mailsvr expire[25813]: OVER cant open new overview file: > Too many open files > Mar 26 03:07:46 mailsvr innd: SERVER cant store article > Mar 26 03:31:35 mailsvr innd: SERVER cant store article Solaris 2.6 defaults to a ludicrously small value for maximum number of open file descriptors per process. You can either use ulimit in the shell scripts that run expire or you can solve the problem for your entire system by putting: * Increase the soft file descriptor limit per process to something * reasonable. set rlim_fd_cur = 1024 in /etc/system and rebooting. -- Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Re: INN 2.2 posting and expiring probs.
Author: Arthur Hagen
Date: Sun, 04 Apr 1999 00:00
Date: Sun, 04 Apr 1999 00:00
37 lines
1983 bytes
1983 bytes
In article <370789F0.584DB8EE@darkjedi.idps.co.uk>, Edwin Yau <edwin@darkjedi.idps.co.uk> writes:
> -----------------
> storage.conf file
> -----------------
>
> method cnfs {
> newsgroups: *
> class: 1
> size: 0,0
> expires: 0s,5d
> options: BIGAREA
> }
Now this, I believe, is the main type of misconfiguration for storage API.
I see even experienced self-proclaimed INN experts do this mistake.
The problem is that "expires" here does *not* tell that postings should
be kept for a certain time. It tells that *only* postings that have an
expiry date in this interval based on the "Expires: " header should go
into this class.
So what you're saying is that you'll only store postings that *have* an
Expires: header, and haven't expired, but will expire before 5 days
have passed. Anything without an Expires: header (read: almost every
posting on usenet), anything expired before passed on to your news-
server, or any FAQ-type posting which expires more than 5 days from now
will not be stored.
Try to drop both the "size:" and "expires:" lines, unless you *really*
want them there, and know what you're doing.
Regards,
--
*Art
Re: INN 2.2 posting and expiring probs.
Author: Russ Allbery
Date: Sun, 04 Apr 1999 00:00
Date: Sun, 04 Apr 1999 00:00
42 lines
2399 bytes
2399 bytes
Arthur Hagen <art@flying.broomstick.com> writes:
> Edwin Yau <edwin@darkjedi.idps.co.uk> writes:
>> method cnfs {
>> newsgroups: *
>> class: 1
>> size: 0,0
>> expires: 0s,5d
>> options: BIGAREA
>> }
> So what you're saying is that you'll only store postings that *have* an
> Expires: header, and haven't expired, but will expire before 5 days have
> passed. Anything without an Expires: header (read: almost every posting
> on usenet), anything expired before passed on to your newsserver, or any
> FAQ-type posting which expires more than 5 days from now will not be
> stored.
He doesn't have quite that problem. From storage.conf(5):
``Mintime'' and ``maxtime'' are the times into the future the
`Expires:' header for the article indicates that it should be
expired, and are formatted 0d0h0m0s, for days, hours, minutes and
seconds into the future. If ``mintime'' is non-zero, the storage
method will not match an article without an 'Expires:' header. If
``maxtime'' is ``0s'', there is no upper bound on the expire time for
the article to fall in this entry. Note that ``expires'' parameter
never controls expire time. This is used just for determining
storage class based on ``Expires:'' header.
Since mintime is 0, it will match postings without an Expires header. So
what that configuration entry is saying is to not store any posting with
an Expires header more than 5 days in the future in that metacycbuff.
Which may be exactly what he wants.
The size directive there is certainly pointless, however. But it could be
there just for documentation purposes, as it does nothing at all.
--
Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Re: INN 2.2 posting and expiring probs.
Author: Arthur Hagen
Date: Mon, 05 Apr 1999 00:00
Date: Mon, 05 Apr 1999 00:00
34 lines
2424 bytes
2424 bytes
In article <yl677b36n8.fsf@windlord.stanford.edu>, Russ Allbery <rra@stanford.edu> writes: > He doesn't have quite that problem. From storage.conf(5): > > ``Mintime'' and ``maxtime'' are the times into the future the > `Expires:' header for the article indicates that it should be > expired, and are formatted 0d0h0m0s, for days, hours, minutes and > seconds into the future. If ``mintime'' is non-zero, the storage > method will not match an article without an 'Expires:' header. If > ``maxtime'' is ``0s'', there is no upper bound on the expire time for > the article to fall in this entry. Note that ``expires'' parameter > never controls expire time. This is used just for determining > storage class based on ``Expires:'' header. > > Since mintime is 0, it will match postings without an Expires header. You are of course right, and I stand corrected. A 1s (or anything except zero) for the mintime, however, would be fatal, and often is. If nothing else, it can make postings enter the wrong cycbuff, or in the worst case, not be stored at all. And very often having a minimum of 0 and a non-zero maximum won't do what you want either. Looking at a major news server I have an account on, I can see that all method definitions have rather low maximum dates set, and the catchall at the end has "expires: 0s,4d". Which means that most FAQ's and similar postings never will be stored at all, as they won't match any of the classes if they have an Expires: header. Regards, -- *Art
Re: INN 2.2 posting and expiring probs.
Author: Yar Tikhiy
Date: Mon, 05 Apr 1999 00:00
Date: Mon, 05 Apr 1999 00:00
43 lines
2301 bytes
2301 bytes
Russ Allbery wrote on 04 Apr 1999 23:47:55 -0700
> Arthur Hagen <art@flying.broomstick.com> writes:
>> Edwin Yau <edwin@darkjedi.idps.co.uk> writes:
>>> method cnfs {
>>> newsgroups: *
>>> class: 1
>>> size: 0,0
>>> expires: 0s,5d
>>> options: BIGAREA
>>> }
>> So what you're saying is that you'll only store postings that *have* an
>> Expires: header, and haven't expired, but will expire before 5 days have
>> passed. Anything without an Expires: header (read: almost every posting
>> on usenet), anything expired before passed on to your newsserver, or any
>> FAQ-type posting which expires more than 5 days from now will not be
>> stored.
> He doesn't have quite that problem. From storage.conf(5):
[...]
> Since mintime is 0, it will match postings without an Expires header. So
> what that configuration entry is saying is to not store any posting with
> an Expires header more than 5 days in the future in that metacycbuff.
> Which may be exactly what he wants.
Sorry to intervene, but Edwin said he did not like the ``cant store
article'' message from innd. The message means that the storage
system cannot find an appropriate storage class for an article.
If Edwin wants his INN to drop articles that would expire in more
than 5 days, he should specify that in storage.conf explicitly
using the trash method:
method trash {
newsgroups: *
class: 2
expires: 6d # or ``5d1s'' if you are paranoid :-)
}
Yar
Re: INN 2.2 posting and expiring probs.
Author: Russ Allbery
Date: Sat, 08 May 1999 00:00
Date: Sat, 08 May 1999 00:00
26 lines
1911 bytes
1911 bytes
[ Getting back to an old conversation about mintime in storage.conf. ] Arthur Hagen <art@flying.broomstick.com> writes: > You are of course right, and I stand corrected. A 1s (or anything > except zero) for the mintime, however, would be fatal, and often is. If > nothing else, it can make postings enter the wrong cycbuff, or in the > worst case, not be stored at all. > And very often having a minimum of 0 and a non-zero maximum won't do > what you want either. Looking at a major news server I have an account > on, I can see that all method definitions have rather low maximum dates > set, and the catchall at the end has "expires: 0s,4d". Which means that > most FAQ's and similar postings never will be stored at all, as they > won't match any of the classes if they have an Expires: header. I just submitted a patch to storage.conf that goes into more detail about the purpose of this option and when you might use it and makes a point of saying that it's less useful than it may appear on first glance. I think some of the problem is due to a few odd examples in the storage.conf sample; I'll look at fixing that tomorrow. -- Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
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