🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
14 messages
14 total messages Started by Vincent Lefevre Sun, 07 Apr 2002 13:37
[INN 2.3.2] After a crash, SERVER cant store article: File exists
#57980
Author: Vincent Lefevre
Date: Sun, 07 Apr 2002 13:37
36 lines
2410 bytes
I had a serious crash last night (the whole machine was frozen) and had
to switch off. But now, when using rnews to get news articles from a
batch file, news articles are not stored to the spool any longer.
/var/log/news/news.err shows errors like:

Apr  7 15:04:12 ay innd: tradspool: could not open /var/spool/news/articles/comp/sys/acorn/apps/1131 File exists
Apr  7 15:04:12 ay innd: SERVER cant store article: File exists

because the latest article in /var/spool/news/articles/comp/sys/acorn/apps
has a number >= 1131. I tried to send commands like

ctlinnd reject renumber
ctlinnd renumber ""
ctlinnd allow renumber

and restart the server, but this doesn't change anything. I still get
the same error. What can I do?

Note:
$ uname -a
Linux ay 2.4.16-newpmac #1 Mon Jan 7 20:51:25 EST 2002 ppc unknown
$ telnet localhost nntp
Trying 127.0.0.1...
flushoutput character is 'off'.
Connected to ay.
Escape character is '^]'.
200 ay.vinc17.org InterNetNews server INN 2.3.2 ready

TIA,

-- 
Vincent Lef�vre <vincent@vinc17.org> - Web: <http://www.vinc17.org/> - 100%
validated (X)HTML - Acorn Risc PC, Yellow Pig 17, Championnat International
des Jeux Math�matiques et Logiques, TETRHEX, etc.
Work: CR INRIA - computer arithmetic / SPACES project at LORIA
Re: [INN 2.3.2] After a crash, SERVER cant store article: File exists
#57981
Author: Vincent Lefevre
Date: Sun, 07 Apr 2002 15:23
21 lines
2087 bytes
In article <4b2376ee9cvincent+news@vinc17.org>,
  Vincent Lefevre <vincent+news@vinc17.org> wrote:

> I had a serious crash last night (the whole machine was frozen) and had
> to switch off. But now, when using rnews to get news articles from a
> batch file, news articles are not stored to the spool any longer.
> /var/log/news/news.err shows errors like:

> Apr  7 15:04:12 ay innd: tradspool: could not open /var/spool/news/articles/comp/sys/acorn/apps/1131 File exists
> Apr  7 15:04:12 ay innd: SERVER cant store article: File exists
[snip]

It seems that I solved the problem with "makehistory -O" (not sure
that this is the right solution...).

-- 
Vincent Lef�vre <vincent@vinc17.org> - Web: <http://www.vinc17.org/> - 100%
validated (X)HTML - Acorn Risc PC, Yellow Pig 17, Championnat International
des Jeux Math�matiques et Logiques, TETRHEX, etc.
Work: CR INRIA - computer arithmetic / SPACES project at LORIA
Re: [INN 2.3.2] After a crash, SERVER cant store article: File exists
#57982
Author: Jeffrey M. Vinocur
Date: Sun, 07 Apr 2002 15:34
20 lines
1709 bytes
In article <20020407152202$3d1d@vinc17.org>,
Vincent Lefevre  <vincent+news@vinc17.org> wrote:
>In article <4b2376ee9cvincent+news@vinc17.org>,
>  Vincent Lefevre <vincent+news@vinc17.org> wrote:
>
>> I had a serious crash last night (the whole machine was frozen) 
>
>> Apr  7 15:04:12 ay innd: SERVER cant store article: File exists
>
>It seems that I solved the problem with "makehistory -O" (not sure
>that this is the right solution...).

That's what you have to do, yeah.  Unfortunately makehistory on
2.3.2 is slightly buggy.  (You'll notice if you have big chunks
of your articles that you can't see.)

-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: [INN 2.3.2] After a crash, SERVER cant store article: File exists
#58001
Author: Vincent Lefevre
Date: Mon, 08 Apr 2002 12:30
26 lines
2111 bytes
In article <a8pott$gd5$1@marduk.litech.org>,
  Jeffrey M. Vinocur <jeff@litech.org> wrote:

> In article <20020407152202$3d1d@vinc17.org>,
> Vincent Lefevre  <vincent+news@vinc17.org> wrote:
>>
>>It seems that I solved the problem with "makehistory -O" (not sure
>>that this is the right solution...).

> That's what you have to do, yeah.

In fact I have to do that under the user "news" so that the created
files have the right owner and group.

> Unfortunately makehistory on
> 2.3.2 is slightly buggy.  (You'll notice if you have big chunks
> of your articles that you can't see.)

What's the reason?

-- 
Vincent Lef�vre <vincent@vinc17.org> - Web: <http://www.vinc17.org/> - 100%
validated (X)HTML - Acorn Risc PC, Yellow Pig 17, Championnat International
des Jeux Math�matiques et Logiques, TETRHEX, etc.
Work: CR INRIA - computer arithmetic / SPACES project at LORIA
Re: [INN 2.3.2] After a crash, SERVER cant store article: File exists
#58040
Author: Jeffrey M. Vinocur
Date: Tue, 09 Apr 2002 17:43
35 lines
2033 bytes
In article <20020408122632$2185@vinc17.org>,
Vincent Lefevre  <vincent+news@vinc17.org> wrote:
>In article <a8pott$gd5$1@marduk.litech.org>,
>  Jeffrey M. Vinocur <jeff@litech.org> wrote:
>
>> In article <20020407152202$3d1d@vinc17.org>,
>> Vincent Lefevre  <vincent+news@vinc17.org> wrote:
>>>
>>>It seems that I solved the problem with "makehistory -O" (not sure
>>>that this is the right solution...).
>
>> That's what you have to do, yeah.
>
>In fact I have to do that under the user "news" so that the created
>files have the right owner and group.

Right.

(This is actually mentioned in INSTALL, I think.)


>> Unfortunately makehistory on 2.3.2 is slightly buggy.  (You'll
>> notice if you have big chunks of your articles that you can't
>> see.)
>
>What's the reason?

What do you mean?  It's a bug.  It doesn't really have a "reason"
per se.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: [INN 2.3.2] After a crash, SERVER cant store article: File exists
#58098
Author: Nick Leverton
Date: Wed, 10 Apr 2002 22:17
24 lines
2014 bytes
jeff@litech.org (Jeffrey M. Vinocur) wrote in message <a8v97d$gk5$3@marduk.litech.org>:
> In article <20020408122632$2185@vinc17.org>,
> Vincent Lefevre  <vincent+news@vinc17.org> wrote:
> >In article <a8pott$gd5$1@marduk.litech.org>,
> >  Jeffrey M. Vinocur <jeff@litech.org> wrote:
> >> Unfortunately makehistory on 2.3.2 is slightly buggy.  (You'll
> >> notice if you have big chunks of your articles that you can't
> >> see.)
> >
> >What's the reason?
> 
> What do you mean?  It's a bug.  It doesn't really have a "reason"
> per se.

Do you know if it is being addressed, please ?  I've just spent over a day
trying to find out why rebuilding my own overview doesn't work, and when I
search the net, I see quite a lot of people being bitten by the same bug,
which seems to have come to light around last September as far as 2.3.2
goes.  But I haven't seen any workaround or alternative posted - is there one ?

Thanks in hope

Nick Leverton
Re: [INN 2.3.2] After a crash, SERVER cant store article: File exists
#58101
Author: Jeffrey M. Vinocur
Date: Thu, 11 Apr 2002 00:44
24 lines
1972 bytes
In article <a4e0ebc.0204101417.5a854220@posting.google.com>,
Nick Leverton <nick@leverton.org> wrote:
>
>> >> Unfortunately makehistory on 2.3.2 is slightly buggy.  (You'll
>> >> notice if you have big chunks of your articles that you can't
>> >> see.)
>
>Do you know if it is being addressed, please ?  I've just spent over a day
>trying to find out why rebuilding my own overview doesn't work, and when I
>search the net, I see quite a lot of people being bitten by the same bug,
>which seems to have come to light around last September as far as 2.3.2
>goes.  But I haven't seen any workaround or alternative posted - is there one ?

Try the STABLE (2.3.3 prerelease) snapshot, there's a bugfix in
that which may help.

Longterm, Russ is rewriting a ton of code which should help
things.


-- 
Jeffrey M. Vinocur
jeff@litech.org
INN2.3: LISTGROUP seems to lose overview data (Was Re: [INN 2.3.2] After a crash, ...)
#58114
Author: Nick Leverton
Date: Thu, 11 Apr 2002 10:35
66 lines
3434 bytes
In article <a92m9q$vs8$1@marduk.litech.org>,
Jeffrey M. Vinocur <jeff@litech.org> wrote:
>In article <a4e0ebc.0204101417.5a854220@posting.google.com>,
>Nick Leverton <nick@leverton.org> wrote:
>>
>>> >> Unfortunately makehistory on 2.3.2 is slightly buggy.  (You'll
>>
>>goes.  But I haven't seen any workaround or alternative posted - is there one ?
>
>Try the STABLE (2.3.3 prerelease) snapshot, there's a bugfix in
>that which may help.

Thanks for the suggestion, I got inn-STABLE-20020409.tar.gz down last
night (it was the latest snapshot at the time) and have built it.  It
did let me rebuild the overview, but I still have a problem.  In fact
this error is the one which made me suspect the overview was corrupt in
the first place and caused me to rebuild it.

The error is that an article which is in the database will be unavailable
to my newsreader (trn4).  What happens is the following sequence of NNTP
commands.  The lowest article will be shown before I issue the LISTGROUP,
but is reported as unavailable afterwards.  If it seems a bit redundant
in parts, I am issuing by hand the same sequence that trn uses (barring
a couple of extra HEADs), to eliminate trn itself from the problem

  telnet localhost 119
  MODE READER
  GROUP somegroup
211 count lo hi somegroup
..
  HEAD lo
**header data for the correct article
..
  LIST ACTIVE somegroup
215 newsgroups in form ...
somegroup hi lo flag
..
  XOVER lo-hi
**overview data
..
  HEAD lo
**header data for the correct article
..
  LISTGROUP
**list of article numbers
..
  HEAD lo
423 Bad article number

Hence my suspicion that LISTGROUP is causing the problem.  This was
happening under 2.3.2 tradindexed overview, happened under 2.3.3-STABLE
tradindexed, and is still happening under 2.3.3 buffindexed.  Needless to
say I have rebuilt the history and overview database numerous times now
:) It does not happen on all my groups but does happen on more than one,
so far i have only caught it happening on small groups.  It didn't happen
on 1.7.4 which I was using up until a month ago !

>Longterm, Russ is rewriting a ton of code which should help
>things.

Thanks for the info.  The inn-workers list archives at isc.org don't
seem to have been archived since last November, which makes it harder to
research this sort of thing.

Nick
Re: INN2.3: LISTGROUP seems to lose overview data (Was Re: [INN 2.3.2] After a crash, ...)
#58115
Author: Jeffrey M. Vinocur
Date: Thu, 11 Apr 2002 15:45
29 lines
2180 bytes
In article <a93oue$1rs1$1@ID-52828.news.dfncis.de>,
Nick Leverton <nick@leverton.org> wrote:
>
>The error is that an article which is in the database will be unavailable
>to my newsreader (trn4).  What happens is the following sequence of NNTP
>commands.  The lowest article will be shown before I issue the LISTGROUP,
>but is reported as unavailable afterwards.

That is very odd.  At this point you're using the overview in a
read-only fashion, so I don't think it's actually an overview
problem.  I wonder if there's an off-by-one error that LISTGROUP
somehow triggers.

Can you send the command output you had in the previous message
to the inn-bugs mailing list, please?


>Thanks for the info.  The inn-workers list archives at isc.org don't
>seem to have been archived since last November, which makes it harder to
>research this sort of thing.

Yeah, I ask them about it repeatedly but with no effect.

No one has brought this up that I recall, though.

-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: [INN 2.3.2] After a crash, SERVER cant store article: File exists
#58231
Author: Ben Rosengart
Date: Wed, 17 Apr 2002 21:46
16 lines
1617 bytes
In article <a8pott$gd5$1@marduk.litech.org>, Jeffrey M. Vinocur wrote:
> 
> That's what you have to do, yeah.  Unfortunately makehistory on
> 2.3.2 is slightly buggy.  (You'll notice if you have big chunks
> of your articles that you can't see.)

Tradindexed only or for all ov methods?

Are there any particular circumstances or settings that trigger this bug?

-- 
Ben Rosengart     (212) 741-4400 x215

1. A robot may not injure entertainment industry profits, or, through inaction,
   allow entertainment industry profits to come to harm.     --Matt McLeod
Re: [INN 2.3.2] After a crash, SERVER cant store article: File exists
#58238
Author: Russ Allbery
Date: Thu, 18 Apr 2002 00:43
38 lines
2987 bytes
Ben Rosengart <br+nsn@panix.com> writes:
> In article <a8pott$gd5$1@marduk.litech.org>, Jeffrey M. Vinocur wrote:

>> That's what you have to do, yeah.  Unfortunately makehistory on 2.3.2
>> is slightly buggy.  (You'll notice if you have big chunks of your
>> articles that you can't see.)

> Tradindexed only or for all ov methods?

I'm not entirely sure.  Most of the problem reports that we've gotten are
for tradindexed.

> Are there any particular circumstances or settings that trigger this bug?

In 2.3.2, it will trigger in a lot of circumstances involving crossposted
articles.  That bug has been fixed in STABLE, but I'm still not convinced
everything is working properly in STABLE.

There are a lot of bugs in tradindexed that I discovered when I rewrote
it.  For example, in the 2.3.2 code, deleted group entries in group.index
aren't added to the free list, so the file just keeps growing without
bound.  Writes to overview are never synced, so after a crash it's pretty
common to lose a bunch of data for articles that have already been written
out to disk, meaning that the server will then throttle as it starts
assigning duplicate article numbers to new incoming messages (because
renumber is done based on the overview).  These are all fixed in my
rewrite, which is in CURRENT but not activated yet.  (The new code just
msyncs always, after every write.  If that ends up being too slow, I'll
look at it again, but in general the problem with INN is waiting for the
disk access, not the fact that the disk access occurs, and msync will
normally do the write in the background and return immediately.)

-- 
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.
Re: [INN 2.3.2] After a crash, SERVER cant store article: File exists
#58251
Author: Ed Clarke
Date: Thu, 18 Apr 2002 12:16
21 lines
2303 bytes
On Wed, 17 Apr 2002 17:43:55 -0700, Russ Allbery <rra@stanford.edu> wrote:
>renumber is done based on the overview).  These are all fixed in my
>rewrite, which is in CURRENT but not activated yet.  (The new code just
>msyncs always, after every write.  If that ends up being too slow, I'll
>look at it again, but in general the problem with INN is waiting for the
>disk access, not the fact that the disk access occurs, and msync will
>normally do the write in the background and return immediately.)

How do I get the CURRENT code for testing?  I'm about to put together a
new news server using the 2.2 series of linux kernels, and cycbuf data
storage.

By the way, is there a list of support programs that INN needs anywhere?
I want to strip this machine down to the point that there're no programs
on it that are not vital to the operation of INN.  

I figure that if the machine is damn near unusable except for it's 
intended purpose, then script kiddies will give it up as a bad job 
if they do get in.  No editors, no zip/tar/ar, more/less, telnet/ftp...
I can mount all the goodies from a cdrom if I need them at a later time.
Re: [INN 2.3.2] After a crash, SERVER cant store article: File exists
#58259
Author: Jeffrey M. Vinocur
Date: Thu, 18 Apr 2002 17:14
31 lines
2057 bytes
In article <slrnabte8k.64k.clarke@news.cilia.org>,
Ed Clarke <clarke@news.cilia.org> wrote:
>
>How do I get the CURRENT code for testing?

ftp://ftp.isc.org/isc/inn/


>By the way, is there a list of support programs that INN needs anywhere?
>I want to strip this machine down to the point that there're no programs
>on it that are not vital to the operation of INN.  

Mmm, Perl.  And some facility for outgoing email.  Other than
that nothing major comes to mind.


>I figure that if the machine is damn near unusable except for it's 
>intended purpose, then script kiddies will give it up as a bad job 
>if they do get in.  No editors, no zip/tar/ar, more/less, telnet/ftp...

*blink*  Interesting approach.  I'd advise you just to keep it
locked down and properly patched, but as you wish.

You'll certainly need some text editor to update the
configuration files.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: [INN 2.3.2] After a crash, SERVER cant store article: File exists
#58264
Author: Russ Allbery
Date: Thu, 18 Apr 2002 19:14
33 lines
2333 bytes
Jeffrey M Vinocur <jeff@litech.org> writes:
> Ed Clarke <clarke@news.cilia.org> wrote:

>> How do I get the CURRENT code for testing?

> ftp://ftp.isc.org/isc/inn/

>> By the way, is there a list of support programs that INN needs
>> anywhere?  I want to strip this machine down to the point that there're
>> no programs on it that are not vital to the operation of INN.

> Mmm, Perl.  And some facility for outgoing email.  Other than that
> nothing major comes to mind.

All the stuff that autoconf checks for.  A lot of the shell scripts that
INN uses to do various things require standard shell commands, and actsync
wants an ftp utility (wget, for example).

Here's a partial list:

    awk, egrep, perl, sh, sed, sort, pgp (for pgpverify), wget or
    ncftpget (for actsync), gzip or compress (for log rotation),
    sendmail

You also want to have the standard shell support programs around (test and
expr at least).

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