🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #92406

Re: INN Issue - SERVER throttle File exists writing SMstore file -- throttling

#92406
From: Russ Allbery
Date: Thu, 04 Sep 2025 16:07
100 lines
6598 bytes
Jesse Rehmer <jesse.rehmer@blueworldhosting.com> writes:

> While injecting articles INN will suddenly use 100% CPU and stop logging
> for several minutes. This has happened a few times and usually recovers
> on its own after 5-15 minutes.

Do you use Perl filters? An out-of-control regex would be my first
suspect since they're prone to combinatorial explosion if written poorly.
INN under normal operations should not use much CPU. It's usually
constrained by disk I/O.

> Sep  4 06:28:38 spool1 innd[43822]: tradspool: could not symlink /usr/
> local/news/spool/articles/rec/arts/comics/marvel/xbooks/47149 to /usr/
> local/news/spool/articles/rec/arts/comics/info/296: File exists
> Sep  4 06:28:38 spool1 innd[43822]: SERVER cant store article: File exists
> Sep  4 06:33:47 spool1 innd[43822]: tradspool: could not open /usr/local/
> news/spool/articles/rec/arts/comics/info/298: File exists
> Sep  4 06:33:47 spool1 innd[43822]: SERVER cant store article: File exists
> Sep  4 06:33:47 spool1 innd[43822]: tradspool: could not symlink /usr/
> local/news/spool/articles/rec/arts/comics/marvel/xbooks/47152 to /usr/
> local/news/spool/articles/rec/arts/comics/info/300: File exists
> Sep  4 06:33:56 spool1 innd[43822]: SERVER throttle File exists writing 
> SMstore file -- throttling
> Sep  4 06:33:56 spool1 innd[43822]: SERVER cant store article: File exists

> In the past I added newsgroups, which no longer exist in the Big 8, and 
> injected articles to those groups. At the time I did not have control.ctl 
> configured not to process rmgroup commands, and groups got removed through 
> processing checkgroups. It was after re-adding these groups and attempting 
> to inject articles to them I see the issue.

When you delete a group, you need to delete all the files out of the spool
for that group before you re-add the group. That's because deleting the
group removes the entry from the active file, which in turn discards the
article number high water mark. When you re-add the group, article
numbering starts over at 1, so if you leave stray article files behind in
the spool, you will encounter this problem.

Normally nightly expire deletes all the articles for removed groups. I'm
guessing that you have this turned off for some reason? INN with
group-based expire (which drives expire based on the overview) only gets
one chance to do that because on the next run of expire it will clean up
all of the overview and then lose track of the files in the file system
entirely. Normally this will also trigger deletion of all of the articles.

> I'm not sure what the 'right' approach is to correcting.

If you don't care about the old articles, the fix is easy: delete the
stray article files that should have been deleted when the group was
deleted, and figure out why expire isn't deleting articles from removed
groups. But I'm guessing that the whole point is that you don't want to
delete any articles.

Rebuilding history and overview from the spool will recreate the data
structures for the files that weren't deleted, but of course is a very
intensive operation.

The other option would be to manually clean up the leftover files in the
spool and then refeed the entire intended contents of the newsgroup back
into INN in order. If you were going to do that, you probably want an
external complete copy of the intended group contents, and then delete the
group again, purge all of the overview for that group, delete all the
articles out of the spool for that group (in other words, do all the
things that expireover would normally do with group-based expire after the
group was deleted), and then recreate the group (with article numbers
starting from 1 again) and re-feed all of the articles back into the
group. This is going to be quite annoying to do with crossposted articles,
though, since presumably they already exist in the spool in the other
groups to which they were crossposted and you don't want them added back
to the other groups a second time. I'm not sure I see a good way to fix
this and preserve crossposting. I think you'd have to scrub the articles
you're going to re-feed to remove the Xref information for other groups
and then turn on xrefslave to prevent them from being crossposted when you
refeed them. Maybe there's some other approach that I'm missing.

The hard part with a manual fix is that you now have a bit of a mess
because the lower-numbered articles in that group have arrived after
higher-numbered articles and all the articles from before the group was
deleted probably aren't listed in history properly any more because the
group was deleted. You could just fix the high-water mark and that would
prevent the article numbers from conflicting and is easy to do, but the
old articles from before the group was deleted will continue to be
inaccessible and not tracked by INN.

> What I see is articles arrive which are cross-posted to one of the
> groups that had been removed and re-added, and the X-Ref on the new
> article is using an article number that already exists in the
> cross-posted group.

I doubt the problem is specific to crossposts. Posts only to the recreated
group will also have the same problem. The newly assigned article numbers
based on the active file information are conflicting with stray files left
over in the news spool that INN has forgotten about due to the prior
removal of the group.

-- 
Russ Allbery (eagle@eyrie.org)             <https://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <https://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID: <87ikhy6w1d.fsf@hope.eyrie.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.pugleaf.net!ygg-srl.newsdeef.eu!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.szaf.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!news.eyrie.org!.POSTED!not-for-mail
References: <109c9ro$2fkp$1@nnrp.usenet.blueworldhosting.com>

Show Full Headers
Complete Article Headers
Message-ID: <87ikhy6w1d.fsf@hope.eyrie.org>
Subject: Re: INN Issue - SERVER throttle File exists writing SMstore file -- throttling
Date: Thu, 04 Sep 2025 09:07:42 -0700
From: Russ Allbery <eagle@eyrie.org>
References: <109c9ro$2fkp$1@nnrp.usenet.blueworldhosting.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.pugleaf.net!ygg-srl.newsdeef.eu!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.szaf.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!news.eyrie.org!.POSTED!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: hope.eyrie.org;
 logging-data="22335"; mail-complaints-to="news@eyrie.org"
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:RDg7m1IY+vdtV/q8zeYGZSqPduE=