🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #79370

Re: Server throttled File exists writing SMstore file -- throttling

#79370
From: Julien ÉLIE
Date: Wed, 27 Aug 2008 19:17
65 lines
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)
Technical Details
Message-ID: <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!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <76039927-198c-443b-abbd-af800075b8b1@m45g2000hsb.googlegroups.com>

Show Full Headers
Complete Article Headers
Message-ID: <6hlnjdFn1tmgU1@mid.individual.net>
Subject: Re: Server throttled File exists writing SMstore file -- throttling
Date: Wed, 27 Aug 2008 21:17:59 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <76039927-198c-443b-abbd-af800075b8b1@m45g2000hsb.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!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
Newsgroups: news.software.nntp
Organization: Gens Iulia -- http://www.trigofacile.com/
Lines: 65
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset="iso-8859-1";
 reply-type=original
Content-Transfer-Encoding: 8bit
X-Trace: individual.net FguOsasjlhrYgfEpS60Pgga57gmKxah0YsiR3GHWjFVMcMKuA=
Cancel-Lock: sha1:xV5o63wAeBfo3/jjQJGFYiuOCec=
In-Reply-To: <76039927-198c-443b-abbd-af800075b8b1@m45g2000hsb.googlegroups.com>
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6001.18000
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049