Re: NNTPC: NNTPCACHE on SVR4.0 system anyone?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



According to Julian Assange:
> 
> > I successfully compiled nntpcache 0.92.8UL on an Olivetti UNIX SVR4.0 system
> 
> I take it you were not using gcc? Can you send the patches in?
 
I used the supplied AT&T C compiler.  I'll send you the patches in a day or
two.

> > If I run nntpcache as a foreground process, I again have two nntpcached
> > processes running and after a while one disappears.  But in this case
> > after the 2nd process has disappeared I can telnet to the nntp port and
> > actually get articles from both servers.  However the caching does not
> > seem to work.  I see the following files in my cache directory:
> 
> I'm not sure what you mean by "foreground" here. Do you mean -i? If so,
> all bets are off, because that debugging code belongs in the attic.

I was using -n to stop it detaching from the tty.
 
> > -rw-r--r--   1 news     news           0 Sep 26 18:19 cache.history
> > -rw-r--r--   1 news     news          61 Sep 26 18:19 cache.history.dir
> > -rw-r--r--   1 news     news           0 Sep 26 18:19 cache.history.pag
> > drwxr-xr-x   5 news     news          96 Sep 26 18:42 news.hk.olivetti.com./
> > -rw-r--r--   1 news     news         392 Oct  1 17:37 nntpcache.stats
> > drwxr-xr-x   3 news     news          96 Sep 26 18:57 oligate.hk.olivetti.com./
> 
> This is correct. You probably are seeing no "cache.mmap" because your
> OS doesn't support shared mmaps on files, so nntpcache is using anonymous or
> /dev/zero shared mmaps instead.
> 
> > There is no cache.mmap file, and under the group directories all I see are
> > xover files.  Things worked the same when I had only one server defined.
> > I tried creating an empty cache.mmap file, but that didn't make any
> > difference.
> 
> Check your article timeout setting.

This is what I have now:

#				/*              timeouts                 */
# host:port	Interface		Active	Act.tim	Newsgrp	Group	Xover	Arts
news.hk.olivetti.com.	DEFAULT 	15m	24h	2d	30m	15d	15d
%BeginGroups
*		news.hk.olivetti.com.

The articles should be kept for 15 days, but I don't see any.  For example,
I've just tested using comp.unix.bsd.freebsd.misc, but here's the ls -l:

$ ls -l /usr4/nntpcache/news.hk.olivetti.com./comp/unix/bsd/freebsd/misc/
total 156
-rw-r--r--   1 news     news       51485 Sep 26 11:56 12288_xover
-rw-r--r--   1 news     news       27013 Sep 26 11:56 12800_xover
$

I retrieved about 5 articles using telnet, but they're not in the cache.
Here's what I get in my syslog:

Oct  4 15:08:22 rssd unix:  /usr/local/sbin/nntpcached[28462]: article.c:83:No such file or directory: no Message-ID in article 'comp/unix/bsd/freebsd/misc/12746' - not cached
Oct  4 15:08:36 rssd unix:  /usr/local/sbin/nntpcached[28462]: article.c:83:No such file or directory: no Message-ID in article 'comp/unix/bsd/freebsd/misc/13200' - not cached
Oct  4 15:08:44 rssd unix:  /usr/local/sbin/nntpcached[28462]: article.c:83:No such file or directory: no Message-ID in article 'comp/unix/bsd/freebsd/misc/13300' - not cached

Thanks for your help, I'll get the patches back to you.

Raju


[Index of Archives]     [Yosemite]     [Yosemite Campsites]     [Bugtraq]     [Linux]     [Trn]

Powered by Linux