🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
4 messages
4 total messages Started by rich ragan Wed, 29 Aug 1990 17:30
Lost nnn.[dx] + suggestion
#827
Author: rich ragan
Date: Wed, 29 Aug 1990 17:30
20 lines
1446 bytes
I have a question and a suggestion for nn.

Question: Through some bizarre circumstances a number
of files disappeared from our file system. Among these
were a number of nnn.d/nnn.x files. If I do nothing to
try to restore these from dump tapes will nn recreate
them as new news is accumulated (running NNTP)?

Suggestion: How about allowing NNTP sites to use the
nnmaster feature where the GROUPS file can specify
groups where articles are to be appended to a local file?
I tried this and all I got was the headers. This would
be just as useful for NNTP sites as non-NNTP ones. I 
suppose it might require special code to read the body
of the article at the same time as the header is read up.

Thanks
--
Richard R. Ragan (408) 496-4340
Control Data Corp., Silicon Valley Operations
Re: Lost nnn.[dx] + suggestion
#842
Author: Kim F. Storm
Date: Fri, 31 Aug 1990 18:52
26 lines
1646 bytes
rrr@u02.svl.cdc.com (rich ragan) writes:

>Question: Through some bizarre circumstances a number
>of files disappeared from our file system. Among these
>were a number of nnn.d/nnn.x files. If I do nothing to
>try to restore these from dump tapes will nn recreate
>them as new news is accumulated (running NNTP)?

nnmaster is quite unforgiving about .d and .x files missing when
the database MASTER file indicates they do exist - and this may
cause nnmaster to terminate with a fatal error.

The proper thing to do is to restart nnmaster with -C option to
check the database; this will recognize the bad groups and rebuild
the database for those groups.

>Suggestion: How about allowing NNTP sites to use the
>nnmaster feature where the GROUPS file can specify
>groups where articles are to be appended to a local file?

That was supposed to work, but if it doesn't it is a bug, and I'll
have to look into it.

-- 
Kim F. Storm  <storm@texas.dk>		No news is good news,
Texas Instruments A/S, Denmark		  but nn is better!
Re: Lost nnn.[dx] + suggestion
#847
Author: Kareth
Date: Fri, 31 Aug 1990 21:04
25 lines
1899 bytes
In <656@texas.dk> storm@texas.dk (Kim F. Storm) writes:

>rrr@u02.svl.cdc.com (rich ragan) writes:
>>Suggestion: How about allowing NNTP sites to use the
>>nnmaster feature where the GROUPS file can specify
>>groups where articles are to be appended to a local file?

>That was supposed to work, but if it doesn't it is a bug, and I'll
>have to look into it.

I had some trouble with this.  The man page didn't make it real clear,
but it ended up that I couldn't have the articles appended to an already
existing file (bug in my opinion, or real shitty feature).  Maybe that
was due to permissions on the file?  The first time I tried it, I sent
it to a rw------- file, and it didn't accept it, said something about an
illegal archive.  Then I changed the permissions to rw-r--r-- as that
was what nnmaster had done with a file that it had created.  That STILL
didn't work.  Finally, I just gave up, moved the file, and let nnmaster
create the archive file on it's own.  Sorta user hostile.  The man page
just said 'file must be a full path name to a file in an existing,
writeable directory'.

So watch out if you plan to do that!

-k
Re: Lost nnn.[dx] + suggestion
#858
Author: Kim F. Storm
Date: Tue, 04 Sep 1990 11:46
37 lines
2180 bytes

>>rrr@u02.svl.cdc.com (rich ragan) writes:
>>>Suggestion: How about allowing NNTP sites to use the
>>>nnmaster feature where the GROUPS file can specify
>>>groups where articles are to be appended to a local file?

asd@mace.cc.purdue.edu (Kareth) writes:
>I had some trouble with this.  The man page didn't make it real clear,
>but it ended up that I couldn't have the articles appended to an already
>existing file (bug in my opinion, or real shitty feature).
>... said something about an illegal archive.

And that is exactly the reason why nnmaster can't append to an existing
file:  The first line of the file is a dedicated line which nnmaster
uses to keep track of which articles have already been added to the
file.

This information must be kept somewhere, and the simplest place I could
find was in the archive file itself.  It is necessary to keep this
information outside the normal database, since recollecting a group
(e.g. after reinitializing the database) would otherwise cause articles which
are already archived to be appended to the archive again.  So
it might be a "shitty feature", but it would be even more shitty if
nnmaster didn't keep track of this information at all.

Of course you can use an existing file if you manually edit it to have
the proper format which is to have a first line with this format:

	"Archived-Last: %8d %s\n", article_number, group_name




-- 
Kim F. Storm  <storm@texas.dk>		No news is good news,
Texas Instruments A/S, Denmark		  but nn is better!
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