Thread View: news.software.nntp
7 messages
7 total messages
Started by George
Wed, 27 Aug 2008 18:49
Server throttled File exists writing SMstore file -- throttling
Author: George
Date: Wed, 27 Aug 2008 18:49
Date: Wed, 27 Aug 2008 18:49
16 lines
1676 bytes
1676 bytes
Hello,
THe following error has been showing up on my news server for the
past couple of days.
Server throttled File exists writing SMstore file -- throttling
I'm running INN 2.3.0
I tried doing the following which worked for a bit and then the error
came back.
Shutdown innd
makehistory -O -x -F
restart innd
Anybody have any idea how to cure this?
Thanks,
George
Re: Server throttled File exists writing SMstore file -- throttling
Author: Julien ÉLIE
Date: Wed, 27 Aug 2008 19:17
Date: Wed, 27 Aug 2008 19:17
65 lines
3335 bytes
3335 bytes
Hi George,
> Server throttled File exists writing SMstore file -- throttling
> I'm running INN 2.3.0
You should upgrade to INN 2.4.5.
Renumbering is wrong after a crash with INN 2.3.0:
http://groups.google.fr/group/mailing.unix.inn-workers/browse_frm/thread/7c432ddd0b96cad6
> Anybody have any idea how to cure this?
You will find in /var/log/news/news.err the offending file.
innd: tradspool: could not open /var/spool/news/articles/fr/test/42 File exists
Just remove it (and all the following numbers).
I posted here last year the following script to achieve that.
I use a script to delete the articles whose high watermark is too high
buy you can very easily adapt the last ligne [if ($_ > $hi)]
with [if ($_ < $lo)] for instance.
#!/usr/bin/perl
# Énumère les messages dont le higkmark est trop haut par rapport
# Ă l'active.
# Peut les supprimer automatiquement (en décommentant la ligne adéquate).
#
# Ce script est utile pour purifier le spool après une coupure de courant qui
# aurait corrompu l'active, ou après une erreur de suppression d'un groupe
# (une fois recréé, il repart de 1).
#
# Script trouvé sur Usenet.
# Amélioré par Julien Élie (03/06/06).
$rep = '/var/spool/news/articles';
$active = '/var/lib/news/active';
open (ACTIVE, $active) or die "Can't open $active: $!\n";
while (<ACTIVE>) {
my ($group, $hi, $lo, $flag) = split;
my $directory = $group;
next if ($hi == 0 and $lo <= 1);
$directory =~ tr%.%/%;
$directory = $rep . '/' . $directory;
if(-e $directory) {
opendir (DIR, $directory) or die "Can't open $directory: $!\n";
while (defined ($_ = readdir DIR)) {
#### Uncomment one [or both] of these two lines either to *do* or to *see*.
# unlink "$directory/$_" if ($_ > $hi);
# print STDERR "$directory/$_\n" if ($_ > $hi);
}
closedir DIR;
}
}
--
Julien ÉLIE
« C'est le vin des vins ! il est pétillant, et on s'en sert
pour les grandes occasions ! Baptiser les galères par exemple... » (Astérix)
Re: Server throttled File exists writing SMstore file -- throttling
Author: Jeffrey M. Vinocur
Date: Wed, 27 Aug 2008 19:40
Date: Wed, 27 Aug 2008 19:40
17 lines
1542 bytes
1542 bytes
In article <76039927-198c-443b-abbd-af800075b8b1@m45g2000hsb.googlegroups.com>,
George <ghc4@pitt.edu> wrote:
>
>Server throttled File exists writing SMstore file -- throttling
This is in the FAQ by the way:
http://www.eyrie.org/~eagle/faqs/inn.html#S4.4
Julien's solution is certainly fine, with the caveat that you're
losing some articles that way. In most cases you probably don't
care, but I suppose some people might.
--
Jeffrey M. Vinocur
jeff@litech.org
Re: Server throttled File exists writing SMstore file -- throttling
Author: George
Date: Wed, 27 Aug 2008 20:41
Date: Wed, 27 Aug 2008 20:41
82 lines
4082 bytes
4082 bytes
Julien,
I'm working on upgrading the server, but, until I can get the
2.4.5 server up and running, I have to maintain the 2.3.0 one.... Such
is life.
I ran your script and that seemed to fix the problem. I'll need to let
the server go for a while to see if it still has the problem.
Thank you for your help.
George
On Aug 27, 3:17 pm, Julien ÉLIE <iul...@nom-de-mon-site.com.invalid>
wrote:
> Hi George,
>
> > Server throttled File exists writing SMstore file -- throttling
> > I'm running INN 2.3.0
>
> You should upgrade to INN 2.4.5.
> Renumbering is wrong after a crash with INN 2.3.0:
>
> Â Â http://groups.google.fr/group/mailing.unix.inn-workers/browse_frm/thr...
>
> > Anybody have any idea how to cure this?
>
> You will find in /var/log/news/news.err the offending file.
>
> innd: tradspool: could not open /var/spool/news/articles/fr/test/42 File exists
>
> Just remove it (and all the following numbers).
>
> I posted here last year the following script to achieve that.
> I use a script to delete the articles whose high watermark is too high
> buy you can very easily adapt the last ligne [if ($_ > $hi)]
> with [if ($_ < $lo)] for instance.
>
> #!/usr/bin/perl
>
> # Énumère les messages dont le higkmark est trop haut par rapport
> # Ă l'active.
> # Peut les supprimer automatiquement (en décommentant la ligne adéquate).
> #
> # Ce script est utile pour purifier le spool après une coupure de courant qui
> # aurait corrompu l'active, ou après une erreur de suppression d'un groupe
> # (une fois recréé, il repart de 1).
> #
> # Script trouvé sur Usenet.
> # Amélioré par Julien Élie (03/06/06).
>
> $rep = '/var/spool/news/articles';
> $active = '/var/lib/news/active';
>
> open (ACTIVE, $active) or die "Can't open $active: $!\n";
> while (<ACTIVE>) {
> Â my ($group, $hi, $lo, $flag) = split;
> Â my $directory = $group;
> Â next if ($hi == 0 and $lo <= 1);
> Â $directory =~ tr%.%/%;
> Â $directory = $rep . '/' . $directory;
> Â if(-e $directory) {
> Â opendir (DIR, $directory) or die "Can't open $directory: $!\n";
> Â while (defined ($_ = readdir DIR)) {
> #### Uncomment one [or both] of these two lines either to *do* or to *see*.
> # Â Â unlink "$directory/$_" if ($_ > $hi);
> # Â Â print STDERR "$directory/$_\n" if ($_ > $hi);
> Â }
> Â closedir DIR;
> Â }
>
> }
>
> --
> Julien ÉLIE
>
> « C'est le vin des vins ! il est pétillant, et on s'en sert
>  pour les grandes occasions ! Baptiser les galères par exemple... » (Astérix)
Re: Server throttled File exists writing SMstore file -- throttling
Author: George
Date: Wed, 27 Aug 2008 20:45
Date: Wed, 27 Aug 2008 20:45
22 lines
2054 bytes
2054 bytes
On Aug 27, 3:40Â pm, j...@litech.org (Jeffrey M. Vinocur) wrote:
> In article <76039927-198c-443b-abbd-af800075b...@m45g2000hsb.googlegroups.com>,
>
> George  <g...@pitt.edu> wrote:
>
> >Server throttled File exists writing SMstore file -- throttling
>
> This is in the FAQ by the way:
>
> Â Â http://www.eyrie.org/~eagle/faqs/inn.html#S4.4
>
> Julien's solution is certainly fine, with the caveat that you're
> losing some articles that way. Â In most cases you probably don't
> care, but I suppose some people might.
>
> --
> Jeffrey M. Vinocur
> j...@litech.org
Jeffrey,
Thanks for the pointer.
Re: Server throttled File exists writing SMstore file -- throttling
Author: Julien ÉLIE
Date: Wed, 27 Aug 2008 21:37
Date: Wed, 27 Aug 2008 21:37
32 lines
2193 bytes
2193 bytes
Hi Jeffrey,
> This is in the FAQ by the way:
>
> http://www.eyrie.org/~eagle/faqs/inn.html#S4.4
>
> Julien's solution is certainly fine,
Hmm... Reading this FAQ, I wondered why I posted the script which
is the same as what we can find in it.
I remember! I added that:
+ if(-e $directory) {
opendir (DIR, $directory) or die "Can't open $directory: $!\n";
while (defined ($_ = readdir DIR)) {
unlink "$directory/$_" if ($_ > $hi);
}
closedir DIR;
+ }
I think it should be fixed in the FAQ. (Russ?)
Indeed, the scripts parses the active file. And it fails (*die*)
if a newsgroup has never received any article (the folder does
not exist).
--
Julien ÉLIE
« Le temps, c'est des sesterces. » (Coquelus)
Re: Server throttled File exists writing SMstore file -- throttling
Author: Russ Allbery
Date: Wed, 27 Aug 2008 21:49
Date: Wed, 27 Aug 2008 21:49
23 lines
1855 bytes
1855 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> writes:
> Hmm... Reading this FAQ, I wondered why I posted the script which
> is the same as what we can find in it.
> I remember! I added that:
>
> + if(-e $directory) {
> opendir (DIR, $directory) or die "Can't open $directory: $!\n";
> while (defined ($_ = readdir DIR)) {
> unlink "$directory/$_" if ($_ > $hi);
> }
> closedir DIR;
> + }
>
> I think it should be fixed in the FAQ. (Russ?)
Thanks, fixed.
--
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