Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

It's not really a rule--it's more like a trend. -- Larry Wall in <199710221721.KAA24321@wall.org>


computers / news.software.nntp / expireover issue after move to ovsqlite

SubjectAuthor
* expireover issue after move to ovsqliteJesse Rehmer
`* Re: expireover issue after move to ovsqliteJulien ÉLIE
 `* Re: expireover issue after move to ovsqliteJesse Rehmer
  `* Re: expireover issue after move to ovsqliteJulien ÉLIE
   `* Re: expireover issue after move to ovsqliteJesse Rehmer
    `- Re: expireover issue after move to ovsqliteJulien ÉLIE

1
expireover issue after move to ovsqlite

<ukqs97$5vq$1@nnrp.usenet.blueworldhosting.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2595&group=news.software.nntp#2595

  copy link   Newsgroups: news.software.nntp
Path: i2pn2.org!i2pn.org!news.samoylyk.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!nnrp.usenet.blueworldhosting.com!.POSTED!not-for-mail
From: jesse.rehmer@blueworldhosting.com (Jesse Rehmer)
Newsgroups: news.software.nntp
Subject: expireover issue after move to ovsqlite
Date: Wed, 6 Dec 2023 22:23:35 -0000 (UTC)
Organization: BWH Usenet (https://usenet.blueworldhosting.com)
Message-ID: <ukqs97$5vq$1@nnrp.usenet.blueworldhosting.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=fixed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 6 Dec 2023 22:23:35 -0000 (UTC)
Injection-Info: nnrp.usenet.blueworldhosting.com;
logging-data="6138"; mail-complaints-to="usenet@blueworldhosting.com"
User-Agent: Usenapp for MacOS
Cancel-Lock: sha1:wymTnGOinLjSV/GmvDhhfaS5INk= sha256:Di3b08mi09QOrgtlYTuGSm3Z5cvlX4b0J3UTzEH10Wg=
sha1:u+YoBAl7fDzamH/mojv6Nma5BmQ= sha256:oLF/M3WwLMPr+xvVrEO0CsO3MhxVlh7boHgdyJhNVeI=
X-Usenapp: v1.27.2/d - Full License
 by: Jesse Rehmer - Wed, 6 Dec 2023 22:23 UTC

After switching to ovsqlite, I get the following error for one group anytime I
run expireover, whether targeting directly or from news.daily, the only output
is "can't expire fr.soc.politique":

$ echo fr.soc.politique | expireover -f - -Z tmp/lowmark
expireover: can't expire fr.soc.politique
Article lines processed 4119153
Articles dropped 0
Overview index dropped 0

Is there a way to get more output?

Re: expireover issue after move to ovsqlite

<ul403j$14p6$1@news.trigofacile.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2614&group=news.software.nntp#2614

  copy link   Newsgroups: news.software.nntp
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.trigofacile.com!.POSTED.2a01cb080adc1100d048a2ebf4771aae.ipv6.abo.wanadoo.fr!not-for-mail
From: iulius@nom-de-mon-site.com.invalid (Julien ÉLIE)
Newsgroups: news.software.nntp
Subject: Re: expireover issue after move to ovsqlite
Date: Sun, 10 Dec 2023 10:24:02 +0100
Organization: Groupes francophones par TrigoFACILE
Message-ID: <ul403j$14p6$1@news.trigofacile.com>
References: <ukqs97$5vq$1@nnrp.usenet.blueworldhosting.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 10 Dec 2023 09:24:03 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="2a01cb080adc1100d048a2ebf4771aae.ipv6.abo.wanadoo.fr:2a01:cb08:adc:1100:d048:a2eb:f477:1aae";
logging-data="37670"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:VIfqa3nXlsmbh/lIbJWtaayOv4w= sha256:ZS8YYINrhjTqWenpTmvlM/NmTokIgzRM3SD4vgmBEuE=
sha1:vMYpVmqNicBT/zW+PA9MjCoVNIk= sha256:z2rlIpCq4AArLQIMtX1ondUQH5GighsUQn2fV59QIOk=
In-Reply-To: <ukqs97$5vq$1@nnrp.usenet.blueworldhosting.com>
 by: Julien ÉLIE - Sun, 10 Dec 2023 09:24 UTC

Hi Jesse,

> After switching to ovsqlite, I get the following error for one group anytime I
> run expireover, whether targeting directly or from news.daily, the only output
> is "can't expire fr.soc.politique":
>
> $ echo fr.soc.politique | expireover -f - -Z tmp/lowmark
> expireover: can't expire fr.soc.politique
> Article lines processed 4119153
> Articles dropped 0
> Overview index dropped 0
>
> Is there a way to get more output?

There's unfortunately no more output to get, and I do not know why
you're facing that error only with one newsgroup.

Is there a matching rule in expire.ctl?
Nothing weird when you dump its overview?

ovsqlite-util -g -n fr.soc.politique

--
Julien ÉLIE

« Tout est dans tout, et réciproquement. » (Pierre Dac)

Re: expireover issue after move to ovsqlite

<ul5a0b$25t0$1@nnrp.usenet.blueworldhosting.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2622&group=news.software.nntp#2622

  copy link   Newsgroups: news.software.nntp
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!nnrp.usenet.blueworldhosting.com!.POSTED!not-for-mail
From: jesse.rehmer@blueworldhosting.com (Jesse Rehmer)
Newsgroups: news.software.nntp
Subject: Re: expireover issue after move to ovsqlite
Date: Sun, 10 Dec 2023 21:19:07 -0000 (UTC)
Organization: BWH Usenet (https://usenet.blueworldhosting.com)
Message-ID: <ul5a0b$25t0$1@nnrp.usenet.blueworldhosting.com>
References: <ukqs97$5vq$1@nnrp.usenet.blueworldhosting.com> <ul403j$14p6$1@news.trigofacile.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=fixed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 10 Dec 2023 21:19:07 -0000 (UTC)
Injection-Info: nnrp.usenet.blueworldhosting.com;
logging-data="71584"; mail-complaints-to="usenet@blueworldhosting.com"
User-Agent: Usenapp for MacOS
Cancel-Lock: sha1:JgQ61gSYX/EvtmvXWh7hGc60MfM= sha256:EV2eMSMAbrdkOHhlQ4eYp8+XEAMxKLKV3vl6B9vHSuY=
sha1:uZgsE8EYfZbvOYezKV/3G/YU4rw= sha256:Pxn3rhBWT3c+Xe0+YSOCFmNHpMrM/MX25O0+o134ouM=
X-Usenapp: v1.27.2/d - Full License
 by: Jesse Rehmer - Sun, 10 Dec 2023 21:19 UTC

On Dec 10, 2023 at 3:24:02 AM CST, "Julien ÉLIE"
<iulius@nom-de-mon-site.com.invalid> wrote:

> Hi Jesse,
>
>> After switching to ovsqlite, I get the following error for one group anytime I
>> run expireover, whether targeting directly or from news.daily, the only output
>> is "can't expire fr.soc.politique":
>>
>> $ echo fr.soc.politique | expireover -f - -Z tmp/lowmark
>> expireover: can't expire fr.soc.politique
>> Article lines processed 4119153
>> Articles dropped 0
>> Overview index dropped 0
>>
>> Is there a way to get more output?
>
> There's unfortunately no more output to get, and I do not know why
> you're facing that error only with one newsgroup.
>
> Is there a matching rule in expire.ctl?
> Nothing weird when you dump its overview?
>
> ovsqlite-util -g -n fr.soc.politique

The only matching rule is the default one I have not to expire anything.

*:A:never:never:never

I don't need to expire this group, but found it odd that the error was
produced from the daily expireover, but only for this one group.

I can dump the contents with ovsqlite-util and, while I didn't examine all 4+
million lines, everything looks normal.

Re: expireover issue after move to ovsqlite

<ul7sn9$3k8q$2@news.trigofacile.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2637&group=news.software.nntp#2637

  copy link   Newsgroups: news.software.nntp
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!eternal-september.org!news.trigofacile.com!.POSTED.2a01cb080adc11009867ab1f31395dad.ipv6.abo.wanadoo.fr!not-for-mail
From: iulius@nom-de-mon-site.com.invalid (Julien ÉLIE)
Newsgroups: news.software.nntp
Subject: Re: expireover issue after move to ovsqlite
Date: Mon, 11 Dec 2023 21:50:49 +0100
Organization: Groupes francophones par TrigoFACILE
Message-ID: <ul7sn9$3k8q$2@news.trigofacile.com>
References: <ukqs97$5vq$1@nnrp.usenet.blueworldhosting.com>
<ul403j$14p6$1@news.trigofacile.com>
<ul5a0b$25t0$1@nnrp.usenet.blueworldhosting.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 11 Dec 2023 20:50:49 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="2a01cb080adc11009867ab1f31395dad.ipv6.abo.wanadoo.fr:2a01:cb08:adc:1100:9867:ab1f:3139:5dad";
logging-data="119066"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:BdXPMxQnlqBbovAlQWPqjkgw+Tc= sha256:fXhbVh8mUft+Ze92GDyDIpwqzLYdyCGpL+AjYVWx100=
sha1:kFLLEaOLf1OP2hhYqCLrkd39mz4= sha256:/RhPCuvQgRuTnkAsnWQSSUHpSVKk9CfLrs/WEGjxncM=
In-Reply-To: <ul5a0b$25t0$1@nnrp.usenet.blueworldhosting.com>
 by: Julien ÉLIE - Mon, 11 Dec 2023 20:50 UTC

Hi Jesse,

>>> $ echo fr.soc.politique | expireover -f - -Z tmp/lowmark
>>> expireover: can't expire fr.soc.politique
>
> I don't need to expire this group, but found it odd that the error was
> produced from the daily expireover, but only for this one group.
>
> I can dump the contents with ovsqlite-util and, while I didn't examine all 4+
> million lines, everything looks normal.

That's indeed very odd, either a bug or a corruption of some data.

This error appears when the expire_one() function in
storage/ovsqlite/ovsqlite.c returns false.

If you wish and have a bit of time to investigate, is it possible to
rebuild INN with additional logs at each "return false"?
For instance, changing:

if (!write_request())
return false;

to:

if (!write_request()) {
syswarn("first write_request failed");
return false;
}

and so on...
There are 20 occurrences.

In the for loop, you may want to add the processed article number:

if (!unpack_now(response, &expires, sizeof expires)) {
syswarn("unpack_now expires failed for %lu", artnum);
return false;
}

Once the culprit is found, additional investigations will have to be
done, with again additional more precise logs, so it will take more time.
Tell me if you want to.
Also, for the changes of the 20 occurrences, do you want to do that
yourself or should I send you the modified ovsqlite.c file to your
e-mail address?

--
Julien ÉLIE

« Mon grand-père buvait un litre de whisky par jour et il est mort à 103
ans. À l'incinération, on a cru que le feu ne s'arrêterait jamais. »
(Sloppy White)

Re: expireover issue after move to ovsqlite

<ul8132$123q$1@nnrp.usenet.blueworldhosting.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2639&group=news.software.nntp#2639

  copy link   Newsgroups: news.software.nntp
Path: i2pn2.org!i2pn.org!news.1d4.us!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!nnrp.usenet.blueworldhosting.com!.POSTED!not-for-mail
From: jesse.rehmer@blueworldhosting.com (Jesse Rehmer)
Newsgroups: news.software.nntp
Subject: Re: expireover issue after move to ovsqlite
Date: Mon, 11 Dec 2023 22:05:22 -0000 (UTC)
Organization: BWH Usenet (https://usenet.blueworldhosting.com)
Message-ID: <ul8132$123q$1@nnrp.usenet.blueworldhosting.com>
References: <ukqs97$5vq$1@nnrp.usenet.blueworldhosting.com> <ul403j$14p6$1@news.trigofacile.com> <ul5a0b$25t0$1@nnrp.usenet.blueworldhosting.com> <ul7sn9$3k8q$2@news.trigofacile.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=fixed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 11 Dec 2023 22:05:22 -0000 (UTC)
Injection-Info: nnrp.usenet.blueworldhosting.com;
logging-data="34938"; mail-complaints-to="usenet@blueworldhosting.com"
User-Agent: Usenapp for MacOS
Cancel-Lock: sha1:6rMNESH77BkgYK0VxzC4r1d4/To= sha256:vBAEsWgkB9m4wLo+xcgDcjlB+ZcdIgmALAQNOCkP448=
sha1:kxaWer5zA+EbC4Qv1AMzLp9Eql4= sha256:uKr9yh/0Dww0sVYXIMTmSsZnWegQp65zwQDkDEmp3Mw=
X-Usenapp: v1.27.2/d - Full License
 by: Jesse Rehmer - Mon, 11 Dec 2023 22:05 UTC

On Dec 11, 2023 at 2:50:49 PM CST, "Julien ÉLIE"
<iulius@nom-de-mon-site.com.invalid> wrote:

> Hi Jesse,
>
>>>> $ echo fr.soc.politique | expireover -f - -Z tmp/lowmark
>>>> expireover: can't expire fr.soc.politique
>>
>> I don't need to expire this group, but found it odd that the error was
>> produced from the daily expireover, but only for this one group.
>>
>> I can dump the contents with ovsqlite-util and, while I didn't examine all 4+
>> million lines, everything looks normal.
>
> That's indeed very odd, either a bug or a corruption of some data.
>
> This error appears when the expire_one() function in
> storage/ovsqlite/ovsqlite.c returns false.
>
> If you wish and have a bit of time to investigate, is it possible to
> rebuild INN with additional logs at each "return false"?
> For instance, changing:
>
> if (!write_request())
> return false;
>
> to:
>
> if (!write_request()) {
> syswarn("first write_request failed");
> return false;
> }
>
> and so on...
> There are 20 occurrences.
>
> In the for loop, you may want to add the processed article number:
>
> if (!unpack_now(response, &expires, sizeof expires)) {
> syswarn("unpack_now expires failed for %lu", artnum);
> return false;
> }
>
>
> Once the culprit is found, additional investigations will have to be
> done, with again additional more precise logs, so it will take more time.
> Tell me if you want to.
> Also, for the changes of the 20 occurrences, do you want to do that
> yourself or should I send you the modified ovsqlite.c file to your
> e-mail address?

I'm always open to troubleshooting, if you can send the modified file so I
don't accidentally muck it up, I would appreciate it. I will recompile and
provide new output. If it outputs the offending article number I can provide
the contents/output from sm, etc.

Re: expireover issue after move to ovsqlite

<ulkfd4$1atim$1@news.trigofacile.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2697&group=news.software.nntp#2697

  copy link   Newsgroups: news.software.nntp
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.trigofacile.com!.POSTED.2a01cb080adc1100fd9d680322774439.ipv6.abo.wanadoo.fr!not-for-mail
From: iulius@nom-de-mon-site.com.invalid (Julien ÉLIE)
Newsgroups: news.software.nntp
Subject: Re: expireover issue after move to ovsqlite
Date: Sat, 16 Dec 2023 16:23:16 +0100
Organization: Groupes francophones par TrigoFACILE
Message-ID: <ulkfd4$1atim$1@news.trigofacile.com>
References: <ukqs97$5vq$1@nnrp.usenet.blueworldhosting.com>
<ul403j$14p6$1@news.trigofacile.com>
<ul5a0b$25t0$1@nnrp.usenet.blueworldhosting.com>
<ul7sn9$3k8q$2@news.trigofacile.com>
<ul8132$123q$1@nnrp.usenet.blueworldhosting.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 16 Dec 2023 15:23:16 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="2a01cb080adc1100fd9d680322774439.ipv6.abo.wanadoo.fr:2a01:cb08:adc:1100:fd9d:6803:2277:4439";
logging-data="1406550"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:vwBdWF5+NhobY+8iu5Wc8YrOvWU= sha256:7zpaexEjnI/OPx65bxqQuZ7pLtLgSJgO6eJ/oIH+2p0=
sha1:eqtok4iLeawK+ri6Dguk7TpuZ4E= sha256:peviGWYYZgzcL0jBNR6Rw33FCu+HY+zP5aN91ItqIuk=
In-Reply-To: <ul8132$123q$1@nnrp.usenet.blueworldhosting.com>
 by: Julien ÉLIE - Sat, 16 Dec 2023 15:23 UTC

Hi all,

>> expireover: can't expire fr.soc.politique
>
> I'm always open to troubleshooting, if you can send the modified file so I
> don't accidentally muck it up, I would appreciate it.

After investigation (thanks again Jesse!), the problem comes from an
article (spam) with an insanely long Subject header field:

<rvcdut$26a$10@dont-email.me>


http://al.howardknight.net/?STYPE=msgid&MSGI=%3Crvcdut%2426a%2410%40dont-email.me%3E

The *headers* of that article have a size of 112 kilobytes, and both
ovdb and ovsqlite consider overview data of a single article as
corrupted if it exceeds 100 kb.
As discussed with Bo Lindbergh, a check is currently missing: also only
allowing overview data of that size at addition time. Otherwise,
overview data of any size is added, and then no longer considered valid
when accessing it. Only spam or buggy articles are likely to have such
an insane size for headers, so we won't really miss articles with that
check.

--
Julien ÉLIE

« Affirmanti incumbit probatio. »

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor