Article View: news.software.nntp
Article #79372Re: Server throttled File exists writing SMstore file -- throttling
From: 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)
Technical Details
Message-ID:
<c6cc5037-29ad-4bb8-817e-046967cfb2bb@m44g2000hsc.googlegroups.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!m44g2000hsc.googlegroups.com!not-for-mailReferences:
<76039927-198c-443b-abbd-af800075b8b1@m45g2000hsb.googlegroups.com> <6hlnjdFn1tmgU1@mid.individual.net>Show Full Headers
Complete Article Headers
Message-ID: <c6cc5037-29ad-4bb8-817e-046967cfb2bb@m44g2000hsc.googlegroups.com> Subject: Re: Server throttled File exists writing SMstore file -- throttling Date: Wed, 27 Aug 2008 20:41:41 +0000 From: George <ghc4@pitt.edu> References: <76039927-198c-443b-abbd-af800075b8b1@m45g2000hsb.googlegroups.com> <6hlnjdFn1tmgU1@mid.individual.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!m44g2000hsc.googlegroups.com!not-for-mail Newsgroups: news.software.nntp Organization: http://groups.google.com Lines: 82 NNTP-Posting-Host: 136.142.3.142 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1219869701 16324 127.0.0.1 (27 Aug 2008 20:41:41 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 27 Aug 2008 20:41:41 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: m44g2000hsc.googlegroups.com; posting-host=136.142.3.142; posting-account=nFujJwkAAABLX2RTSKFFa1o1yXNTH7wk User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008072310 Red Hat/3.0.1-3.el4 Firefox/3.0.1,gzip(gfe),gzip(gfe)