🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
19 messages
19 total messages Started by Peter Peters Fri, 08 Jun 2007 12:24
problem with tradspool in INN 2.3.4
#76164
Author: Peter Peters
Date: Fri, 08 Jun 2007 12:24
29 lines
2071 bytes
Hi,

Today we noticed our tradspool does not seem to work anymore. We are
running INN 2.3.4. The relevant (I think) snippits from storage.conf is
this:

method tradspool {
    class: 1
    newsgroups: utwente.*
}

We have checked and all utwente.* articles end up in CFNS.

method tradspool {
    class: 5
    newsgroups:
alt.nl.*,de.*,be.*,it.*,uk.*,fr.*,alt.fr.*,pl.*,dk.*,no.*,es.*,comp.*,humanities.*,misc.*,news.*,rec.*,sci.*,soc.*,talk.*,bionet.*,bit.*,biz.*,ieee.*,gnu.*,linux.*,microsoft.*,netbsd.*,nlo.*,fido7.*,fido.*,relcom.*,@*
}

And the same goes for these groups. Lately no article is spooled in
tradspool.

Where can I check whether an article is spooled in cfns or tradspool?

-- 
Peter Peters, senior netwerkbeheerder
Dienst Informatietechnologie, Bibliotheek en Educatie (ITBE)
Universiteit Twente,  Postbus 217,  7500 AE  Enschede
telefoon: 053 - 489 2301, fax: 053 - 489 2383, http://www.utwente.nl/itbe
Re: problem with tradspool in INN 2.3.4
#76167
Author: Julien ÉLIE
Date: Fri, 08 Jun 2007 19:13
17 lines
1810 bytes
En réponse à Peter Peters :
> The relevant (I think) snippits from storage.conf is this

Could we have the complete storage.conf file, please?


> And the same goes for these groups. Lately no article is spooled in
> tradspool.

Since when?  Did you change something in your configuration?

-- 
Julien ÉLIE

« -- C'est un drôle de nom, HCL.
  -- C'est son immatriculation d'espion. Son vrai nom,
  c'est Acidcloridrix... » (Astérix)
Re: problem with tradspool in INN 2.3.4
#76173
Author: Jeffrey M. Vinocur
Date: Sat, 09 Jun 2007 16:38
20 lines
1644 bytes
In article <2dii63p1nmrpolhgbhrl5rqpa270vs4oit@4ax.com>,
Peter Peters  <p.g.m.peters@misc.utwente.nl> wrote:
>
>Today we noticed our tradspool does not seem to work anymore. 

Did something change?


>Where can I check whether an article is spooled in cfns or tradspool?

There's a script "showtoken" (it comes in the INN source tree in
the contrib/ directory, but I don't think it's installed by
default) that will do this based on the storage manager token.
So you can combine "grephistory" with "showtoken" and find out
where something is stored.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: problem with tradspool in INN 2.3.4
#76172
Author: Peter Peters
Date: Mon, 11 Jun 2007 10:14
52 lines
2630 bytes
On Fri, 08 Jun 2007 21:13:13 +0200, Julien ÉLIE
<iulius@nom-de-mon-site.com.invalid> wrote:

>En réponse à Peter Peters :
>> The relevant (I think) snippits from storage.conf is this
>
>Could we have the complete storage.conf file, please?

method tradspool {
    class: 1
    newsgroups: utwente.*
}
method tradspool {
    class: 2
    newsgroups: nl.*,@*
}
method cnfs {
    class: 3
    newsgroups: alt.binaries.*
    options: ALTBIN
}
method cnfs {
    class: 4
    newsgroups: *
    size: 1000000
    options: BIGARTICLES
}
method tradspool {
    class: 5
    newsgroups:
alt.nl.*,de.*,be.*,it.*,uk.*,fr.*,alt.fr.*,pl.*,dk.*,no.*,es.*,comp.*,humanities.*,misc.*,news.*,rec.*,sci.*,soc.*,talk.*,bionet.*,bit.*,biz.*,ieee.*,gnu.*,linux.*,microsoft.*,netbsd.*,nlo.*,fido7.*,fido.*,relcom.*,@*
}
method cnfs {
    class: 6
    newsgroups: *
    options: ARTICLES
}

>> And the same goes for these groups. Lately no article is spooled in
>> tradspool.
>
>Since when?  Did you change something in your configuration?

Since a while. I don't know exactly. There where some changes around
that time but the person doing them said she didn't do anything with the
storage. I'll question her again.

-- 
Peter Peters, senior netwerkbeheerder
Dienst Informatietechnologie, Bibliotheek en Educatie (ITBE)
Universiteit Twente,  Postbus 217,  7500 AE  Enschede
telefoon: 053 - 489 2301, fax: 053 - 489 2383, http://www.utwente.nl/itbe
Re: problem with tradspool in INN 2.3.4
#76174
Author: Julien ÉLIE
Date: Mon, 11 Jun 2007 12:16
37 lines
2399 bytes
En réponse à Peter Peters :
>>> The relevant (I think) snippits from storage.conf

Thanks.
However, I do not see anything strange for « utwente.* ».
Are you sure the « storage.conf » file is the one that
is currently being used?

Did you try what Jeffrey told you?


> method tradspool {
>     class: 2
>     newsgroups: nl.*,@*
> }
> method tradspool {
>     class: 5
>     newsgroups: [big-list-of-groups],@*
> }

What is « @* » for?

I have not tested but doesn't it mean that nothing will match these two
storage methods?


> Since a while. I don't know exactly. There where some changes around
> that time but the person doing them said she didn't do anything with the
> storage. I'll question her again.

No change on « storeonxref » value in « inn.conf »?

-- 
Julien ÉLIE

« Rien, ce n'est pas rien ! La preuve, c'est que l'on peut le soustraire.
  Exemple : rien moins rien = moins que rien ! » (Raymond Devos)
Re: problem with tradspool in INN 2.3.4
#76177
Author: Russ Allbery
Date: Mon, 11 Jun 2007 16:26
25 lines
1897 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> writes:
> En réponse à Peter Peters :

>> method tradspool {
>>     class: 2
>>     newsgroups: nl.*,@*
>> }
>> method tradspool {
>>     class: 5
>>     newsgroups: [big-list-of-groups],@*
>> }

> What is « @* » for?

> I have not tested but doesn't it mean that nothing will match these two
> storage methods?

Yes, I believe it does.  You have to put @* first in the list, not last,
or it undoes your list of groups.

-- 
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.
Re: problem with tradspool in INN 2.3.4
#76179
Author: Peter Peters
Date: Tue, 12 Jun 2007 07:31
64 lines
3350 bytes
On Mon, 11 Jun 2007 14:16:16 +0200, Julien ÉLIE
<iulius@nom-de-mon-site.com.invalid> wrote:

>Thanks.
>However, I do not see anything strange for « utwente.* ».

Me neither. That is why I don't understand it. In the past I have found
typing errors in conf files on all kinds of systems but I haven't found
any on this.

>Are you sure the « storage.conf » file is the one that
>is currently being used?

There is only one other tradspool.conf on the system but that dates from
far before the problem occured.

>Did you try what Jeffrey told you?

I have tested a few messages. But all I get from grephistory is "Not
found". I checked a message that arrived at our site at Jun 12
01:18:07.389 (according to /var/log/news/news). That was after the
expire so no expire process could have removed it from history.

>> method tradspool {
>>     class: 2
>>     newsgroups: nl.*,@*
>> }
>> method tradspool {
>>     class: 5
>>     newsgroups: [big-list-of-groups],@*
>> }
>
>What is « @* » for?

It should prevent from storing crossposted articles. And the addition of
@* is the difference between that other storage.conf and this one. Plus
the size and previously the default was tradspool:

# Alle resterende articles gaan ook naar de tradspool 140GB (RAID1)
method tradspool {
    class: 6
    newsgroups: *
}

This is from the other storage.conf.

>I have not tested but doesn't it mean that nothing will match these two
>storage methods?

I have removed them for the moment and restarted inn.

>> Since a while. I don't know exactly. There where some changes around
>> that time but the person doing them said she didn't do anything with the
>> storage. I'll question her again.
>
>No change on « storeonxref » value in « inn.conf »?

The value is false.

-- 
Peter Peters, senior netwerkbeheerder
Dienst Informatietechnologie, Bibliotheek en Educatie (ITBE)
Universiteit Twente,  Postbus 217,  7500 AE  Enschede
telefoon: 053 - 489 2301, fax: 053 - 489 2383, http://www.utwente.nl/itbe
Re: problem with tradspool in INN 2.3.4
#76180
Author: Peter Peters
Date: Tue, 12 Jun 2007 07:40
25 lines
2303 bytes
On Tue, 12 Jun 2007 09:31:30 +0200, Peter Peters
<p.g.m.peters@misc.utwente.nl> wrote:

>>Did you try what Jeffrey told you?
>
>I have tested a few messages. But all I get from grephistory is "Not
>found". I checked a message that arrived at our site at Jun 12
>01:18:07.389 (according to /var/log/news/news). That was after the
>expire so no expire process could have removed it from history.

I didn't have my coffee yet.

All Message-ID's I tested had $'s in them and I didn't escape them. Now
the question is how to get from @030642554630333634000009728800000032@
to know where it was stored.

I am used to the old history format and the person responsible for the
installation of this new one has left the university. Does anybody have
a good source of this information?

-- 
Peter Peters, senior netwerkbeheerder
Dienst Informatietechnologie, Bibliotheek en Educatie (ITBE)
Universiteit Twente,  Postbus 217,  7500 AE  Enschede
telefoon: 053 - 489 2301, fax: 053 - 489 2383, http://www.utwente.nl/itbe
Re: problem with tradspool in INN 2.3.4
#76181
Author: Julien ÉLIE
Date: Tue, 12 Jun 2007 14:00
24 lines
2169 bytes
En réponse à Peter Peters :
> All Message-ID's I tested had $'s in them and I didn't escape them. Now
> the question is how to get from @030642554630333634000009728800000032@
> to know where it was stored.

Why don't you try what Jeffrey told you?

% grephistory '<r9js63hpqsh165artuv2gnemgogfe0o6nr@4ax.com>'
@0500000017B0000029580000000000000000@

% grephistory '<r9js63hpqsh165artuv2gnemgogfe0o6nr@4ax.com>' | showtoken
@0500000017B0000029580000000000000000@ type=tradspool class=0 ng=000017B0 art=10584

% grephistory '<r9js63hpqsh165artuv2gnemgogfe0o6nr@4ax.com>' | sm -i
news.software.nntp: 10584


I believe you should obtain everything you want with that.
(tradspool/cnfs, class in storage.conf, etc.)

-- 
Julien ÉLIE

« Qui va à la chasse, perd sa place. »
Re: problem with tradspool in INN 2.3.4
#76182
Author: Julien ÉLIE
Date: Tue, 12 Jun 2007 14:14
29 lines
2174 bytes
En réponse à Peter Peters :
>>> method tradspool {
>>>     class: 2
>>>     newsgroups: nl.*,@*
>>> }
>>> method tradspool {
>>>     class: 5
>>>     newsgroups: [big-list-of-groups],@*
>>> }
>> What is « @* » for?
> 
> It should prevent from storing crossposted articles.

The line is processed in order.
So basically they do nothing since the syntax of « storage.conf »
is different than the one of « newsfeeds ».
@* in storage.conf == !* in newsfeeds

newsgroups: alt.*,@alt.binaries.*
is the syntax for not matching « alt.binaries.* ».

-- 
Julien ÉLIE

« -- Avez-vous été attaqués par une force supérieure en nombre ?
  -- Supérieure en nombre...
  -- ...On ne peut pas dire !
  -- ...Ils étaient un...
  -- ...Et pas bien gros avec ça ! » (Astérix)
Re: problem with tradspool in INN 2.3.4
#76183
Author: Russ Allbery
Date: Tue, 12 Jun 2007 18:48
45 lines
2703 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> writes:
> En réponse à Peter Peters :

>>>> method tradspool {
>>>>     class: 2
>>>>     newsgroups: nl.*,@*
>>>> }
>>>> method tradspool {
>>>>     class: 5
>>>>     newsgroups: [big-list-of-groups],@*
>>>> }
>>> What is « @* » for?
>> 
>> It should prevent from storing crossposted articles.

> The line is processed in order.
> So basically they do nothing since the syntax of « storage.conf »
> is different than the one of « newsfeeds ».
> @* in storage.conf == !* in newsfeeds

> newsgroups: alt.*,@alt.binaries.*
> is the syntax for not matching « alt.binaries.* ».

Minor correction: @ in storage.conf does the same thing as @ in newsfeeds,
which is different than ! in the case of crossposted articles.  If you
have an article crossposted between misc.foo and misc.bar, the pattern:

    misc.foo,!misc.bar

will match that article and the pattern:

    misc.foo,@misc.bar

will not match that article.  This is the same in both newsfeeds and in
storage.conf.  An article posted only to misc.bar will fail to match
either pattern.

@ is a *stronger* version of !.  Any pattern ending in !* or @* matches
nothing.

-- 
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.
Re: problem with tradspool in INN 2.3.4
#76184
Author: Julien ÉLIE
Date: Tue, 12 Jun 2007 19:15
29 lines
2563 bytes
En réponse à Russ Allbery :
> Minor correction: @ in storage.conf does the same thing as @ in newsfeeds,
> which is different than ! in the case of crossposted articles.  If you
> have an article crossposted between misc.foo and misc.bar, the pattern:
> 
>     misc.foo,!misc.bar
> 
> will match that article and the pattern:
> 
>     misc.foo,@misc.bar
> 
> will not match that article.  This is the same in both newsfeeds and in
> storage.conf.  An article posted only to misc.bar will fail to match
> either pattern.

Huh...
I knew that for « newsfeeds » but I believed it was not the same
for « storage.conf » since its manpage says the following thing:

« Poison wildmat expressions (expressions starting with ``@'') are allowed
  and can be used to exclude certain group patterns. ``!'' cannot be used,
  however. »

It should then be fixed.

-- 
Julien ÉLIE

« Il vaut mieux un tapis persan volé qu'un tapis volant percé ! » (Astérix)
Re: problem with tradspool in INN 2.3.4
#76185
Author: Russ Allbery
Date: Tue, 12 Jun 2007 20:33
20 lines
2065 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> writes:

> Huh...
> I knew that for « newsfeeds » but I believed it was not the same
> for « storage.conf » since its manpage says the following thing:

> « Poison wildmat expressions (expressions starting with ``@'') are allowed
>   and can be used to exclude certain group patterns. ``!'' cannot be used,
>   however. »

> It should then be fixed.

Hm.  I thought they both used the same routines.  I wonder why ! wouldn't
be allowed.

-- 
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.
Re: problem with tradspool in INN 2.3.4
#76186
Author: Julien ÉLIE
Date: Tue, 12 Jun 2007 21:11
25 lines
2278 bytes
En réponse à Russ Allbery :
> Hm.  I thought they both used the same routines.  

It is already a TODO:

Scheduled for INN 2.5

* Convert readers.conf and storage.conf (and related configuration files)
  to use the new parsing system and break out program-specific sections
  of inn.conf into their own groups.


> I wonder why ! wouldn't be allowed.

Parsers here:

frontends/cnfsheadconf.in
frontends/cnfsstat.in
storage/interface.c

-- 
Julien ÉLIE

« Une fois rien, c'est rien ; deux fois rien, c'est pas beaucoup,
  mais pour trois fois rien, on peut déjà acheter quelque chose, et pour pas cher. » (Raymond Devos)
Re: problem with tradspool in INN 2.3.4
#76187
Author: Russ Allbery
Date: Wed, 13 Jun 2007 07:13
21 lines
2147 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> writes:
> En réponse à Russ Allbery :

>> Hm.  I thought they both used the same routines.  

> It is already a TODO:

> Scheduled for INN 2.5

> * Convert readers.conf and storage.conf (and related configuration files)
>   to use the new parsing system and break out program-specific sections
>   of inn.conf into their own groups.

That's for the config parser, but I thought under the hood they both used
the same uwildmat routines.  Hm.

-- 
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.
Re: problem with tradspool in INN 2.3.4
#76189
Author: Peter Peters
Date: Fri, 15 Jun 2007 07:02
30 lines
2393 bytes
On Tue, 12 Jun 2007 16:00:47 +0200, Julien ÉLIE
<iulius@nom-de-mon-site.com.invalid> wrote:

>En réponse à Peter Peters :
>> All Message-ID's I tested had $'s in them and I didn't escape them. Now
>> the question is how to get from @030642554630333634000009728800000032@
>> to know where it was stored.
>
>Why don't you try what Jeffrey told you?

When I finally got to the $ error I made my mind was so borked I didn't
rememeber the showtoken anymore.

>I believe you should obtain everything you want with that.
>(tradspool/cnfs, class in storage.conf, etc.)

I get:
grephistory 'f4pkqm$nlg$1@netlx020.civ.utwente.nl' | showtoken
@050100009FB000002F8B0000000000000000@ type=tradspool class=1
ng=00000000 art=0

It appears the @ did do it like Russ said.

Thank you all for the support.

-- 
Peter Peters, senior netwerkbeheerder
Dienst Informatietechnologie, Bibliotheek en Educatie (ITBE)
Universiteit Twente,  Postbus 217,  7500 AE  Enschede
telefoon: 053 - 489 2301, fax: 053 - 489 2383, http://www.utwente.nl/itbe
Re: problem with tradspool in INN 2.3.4
#76190
Author: Julien ÉLIE
Date: Fri, 15 Jun 2007 08:00
52 lines
2997 bytes
En réponse à Peter Peters :
> I get:
> grephistory 'f4pkqm$nlg$1@netlx020.civ.utwente.nl' | showtoken
> @050100009FB000002F8B0000000000000000@ type=tradspool class=1
> ng=00000000 art=0

ng=0 art=0 ?!?
Is it still good?


> It appears the @ did do it like Russ said.

Hmm... Regarding « @*,nl.* » instead of « nl.*,@* », it changes nothing.
The first one is in fact « nl.* » and the second one is in fact « [nothing] »
in the CURRENT/STABLE INN implementation.

Furthermore, the article <f4pkqm$nlg$1@netlx020.civ.utwente.nl> is for
« utwente.* » and there was no « @ » in your class 1 tradspool.  So
what else did you change?


I have just tried:

method tradspool {
    newsgroups: "local.*,@*"
    class: 0
}

method cnfs {
    newsgroups: *
    class: 10
    options: AUTRE
}

Then sent an article in « local.test » (without a crosspost).

% grephistory '<f4tg8r$dld$1@news.trigofacile.com>' | sm -i
local.test: 19

% grephistory '<f4tg8r$dld$1@news.trigofacile.com>' | showtoken
@030A4155545245310000000AE51700000001@ type=cnfs class=10 buffer=AUTRE offset=15ca2e00 cycnum=1


It is like the man page says : « @* » in storage.conf equals « !* » in newsfeeds.

-- 
Julien ÉLIE

« -- Ne me dis pas que c'est cette poignée de Gaulois
  d'en face qui vous a mis dans cet état !
  -- Il est vrai que j'ai été frappé moi-même par la force
  persuasive de cette poignée, amiral ! » (Astérix)
Re: problem with tradspool in INN 2.3.4
#76237
Author: Julien ÉLIE
Date: Sat, 14 Jul 2007 17:59
42 lines
2969 bytes
En réponse à Julien ÉLIE :
> Hmm... Regarding « @*,nl.* » instead of « nl.*,@* », it changes nothing.
> The first one is in fact « nl.* » and the second one is in fact « [nothing] »
> in the CURRENT/STABLE INN implementation.

True.


> method tradspool {
>    newsgroups: "local.*,@*"
>    class: 0
> }
>
> method cnfs {
>    newsgroups: *
>    class: 10
>    options: AUTRE
> }
>
> Then sent an article in « local.test » (without a crosspost).
>
> % grephistory '<f4tg8r$dld$1@news.trigofacile.com>' | showtoken
> @030A4155545245310000000AE51700000001@ type=cnfs class=10 buffer=AUTRE offset=15ca2e00 cycnum=1
>
> It is like the man page says : « @* » in storage.conf equals « !* » in newsfeeds.

Hmm...  What a bad test I did!  It is normal that "local.*,@*" matches nothing.

I have just tested both:
newsgroups: "local.*,@local.test"
newsgroups: "local.*,!local.test"

And the behaviour is correct.
A crossposted article to local.test is stored in cnfs in the first case
(and in cnfs in the second case).  That is good.
So you are right, Peter and Russ: @ and ! work in the same way as they do in newsfeeds.

-- 
Julien ÉLIE

« Cogitationis poenam nemo patitur. » 
Re: problem with tradspool in INN 2.3.4
#76238
Author: Julien ÉLIE
Date: Sat, 14 Jul 2007 18:04
21 lines
2350 bytes
En réponse à Russ Allbery:
> That's for the config parser, but I thought under the hood they both used
> the same uwildmat routines.  Hm.

Yes, you're right.
I have just tested that more extensively.

So the storage.conf man page should be corrected.
It currently states:

« Poison wildmat expressions (expressions starting with ``@'') are allowed
  and can be used to exclude certain group patterns. ``!'' cannot be used,
  however. »

Which is wrong.  It should state that uwildmat(3) patterns can be used.

-- 
Julien ÉLIE

« À vaincre sans péril, on évite des ennuis ! » (légionnaire romain) 
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