This morning I added nocem-fr@alphanet.ch's key to the keyring and bit to the nocem.ctl file. I tried to reprocess some of the recent NoCeMs but found that a good portion of them don't do anything. I'm not sure if this is something I'm misunderstanding, or if the notices aren't being generated properly, or if
there is an issue with perl-nocem?
For example, when I process this one cancels are generated as expected:
grephistory '<nocem.ALPHANET.fr.20230902123509.18620.584@nocem.alphanet.ch>' |
perl-nocem
However, many other NoCeMs from the same issuer do nothing:
grephistory '<nocem.ALPHANET.fr.20230902045542.24754.171@nocem.alphanet.ch>' |
perl-nocem
grephistory '<nocem.ALPHANET.fr.20230902125503.23507.509@nocem.alphanet.ch>' |
perl-nocem
grephistory '<nocem.ALPHANET.fr.20230902125530.23877.24@nocem.alphanet.ch>' | perl-nocem
The only thing I see in the logs related to those is the following:
nocem[25391]: starting up
On Sep 2, 2023 at 7:12:41 AM CDT, "Jesse Rehmer" <jesse.rehmer@blueworldhosting.com> wrote:
This morning I added nocem-fr@alphanet.ch's key to the keyring and bit to the
nocem.ctl file. I tried to reprocess some of the recent NoCeMs but found that
a good portion of them don't do anything. I'm not sure if this is something >> I'm misunderstanding, or if the notices aren't being generated properly, or if
there is an issue with perl-nocem?
For example, when I process this one cancels are generated as expected:
grephistory '<nocem.ALPHANET.fr.20230902123509.18620.584@nocem.alphanet.ch>' |
perl-nocem
However, many other NoCeMs from the same issuer do nothing:
grephistory '<nocem.ALPHANET.fr.20230902045542.24754.171@nocem.alphanet.ch>' |
perl-nocem
grephistory '<nocem.ALPHANET.fr.20230902125503.23507.509@nocem.alphanet.ch>' |
perl-nocem
grephistory '<nocem.ALPHANET.fr.20230902125530.23877.24@nocem.alphanet.ch>' |
perl-nocem
The only thing I see in the logs related to those is the following:
nocem[25391]: starting up
Determined this is because the issuer uses 'Types' that are not "spam", so I had to adjust my nocem.ctl to include those types:
nocem-fr@alphanet.ch:spam,cleanfeed-emp,cleanfeed-too-many-newsgroups
Next question, is there an easier way for me to process the notices I have in news.lists.filters without grabbing Message-IDs one-by-one?
Next question, is there an easier way for me to process the notices I have in
news.lists.filters without grabbing Message-IDs one-by-one?
Also, shouldn't perl-nocem be logging when it receives a notice for which one does not have a key?
I see the logging in the perl-nocem code, but I never get "not in keyring" in my logs even though I was receiving messages for which were not in my keyring.
On Sep 2, 2023 at 8:14:32 AM CDT, "Ivo Gandolfo" <usenet@bofh.team> wrote:
On 02/09/2023 14:47, Jesse Rehmer wrote:
Next question, is there an easier way for me to process the notices I have in
news.lists.filters without grabbing Message-IDs one-by-one?
This is a script I use when I want to re-run the notice again:
http://paganini.bofh.team/ru_nocem_again.pl
Just adapt them to your system
This will work, thank you!
Also, shouldn't perl-nocem be logging when it receives a notice for which one
does not have a key?
I see the logging in the perl-nocem code, but I never get "not in keyring" in
my logs even though I was receiving messages for which were not in my keyring.
Almost prob. you have same my problem, the "debug" doent's work. Just
edit your perl-nocem script, and change all log "debug" with "err" or
"notice", and u find all on news.err or news.notice. Reload the config
on inn with cltinnd reload
I see what you mean about some logging set to 'debug', but this portion of the
code that should log the one I mention doesn't specify a level:
<SNIP>
On 02/09/2023 14:47, Jesse Rehmer wrote:
Next question, is there an easier way for me to process the notices I have in
news.lists.filters without grabbing Message-IDs one-by-one?
This is a script I use when I want to re-run the notice again:
http://paganini.bofh.team/ru_nocem_again.pl
Just adapt them to your system
Also, shouldn't perl-nocem be logging when it receives a notice for which one
does not have a key?
I see the logging in the perl-nocem code, but I never get "not in keyring" in
my logs even though I was receiving messages for which were not in my keyring.
Almost prob. you have same my problem, the "debug" doent's work. Just
edit your perl-nocem script, and change all log "debug" with "err" or "notice", and u find all on news.err or news.notice. Reload the config
on inn with cltinnd reload
On 02/09/2023 15:47, Jesse Rehmer wrote:
[cut]
Just add where you want the log(, "err") for example:
if (/^\[GNUPG:\]\s+GOODSIG\s+\S+\s+(.*)/m) {
return 1 if $1 =~ /\Q$issuer\E/;
logmsg("Article $msgid: signed by $1 instead of $issuer",
"notice");
} elsif (/^\[GNUPG:\]\s+NO_PUBKEY\s+(\S+)/m) {
logmsg("Article $msgid: $issuer (ID $1) not in keyring", "err");
etc :)
When I run your script I notice a lot of occurrences of this error from
perl-nocem, but things seem to be working.
Use of uninitialized value $key in lc at /usr/local/news/bin/perl-nocem line >> 183, <ART> line 44.
Use of uninitialized value $key in lc at /usr/local/news/bin/perl-nocem line >> 183, <ART> line 45.
Use of uninitialized value $key in lc at /usr/local/news/bin/perl-nocem line >> 183, <ART> line 46.
You can safe ignore them.
Sincerely
When I run your script I notice a lot of occurrences of this error from perl-nocem, but things seem to be working.
Use of uninitialized value $key in lc at /usr/local/news/bin/perl-nocem line 183, <ART> line 44.
Use of uninitialized value $key in lc at /usr/local/news/bin/perl-nocem line 183, <ART> line 45.
Use of uninitialized value $key in lc at /usr/local/news/bin/perl-nocem line 183, <ART> line 46.
Next question, is there an easier way for me to process the notices I have in
news.lists.filters without grabbing Message-IDs one-by-one?
Use of uninitialized value $key in lc at /usr/local/news/bin/perl-nocem line 183, <ART> line 44.
Also, shouldn't perl-nocem be logging when it receives a notice for which one
does not have a key?
I see the logging in the perl-nocem code, but I never get "not in keyring" in
my logs even though I was receiving messages for which were not in my keyring.
Hi Jesse,
Next question, is there an easier way for me to process the notices I have in
news.lists.filters without grabbing Message-IDs one-by-one?
Besides Ivo's script working for the tradspool storage method, there is
also a straight-forward way to do that depending on the overview method you're using.
With ovsqlite, you obtain all these storage tokens with:
ovsqlite-util -g -n news.lists.filters | cut -f 5 -d' '
See tdx-util and ovdb_stat for a similar dump with tradindexed and ovdb.
I can add a paragraph about that in the perl-nocem documentation as it
is an interesting use case to document.
Also, shouldn't perl-nocem be logging when it receives a notice for which one
does not have a key?
I see the logging in the perl-nocem code, but I never get "not in keyring" in
my logs even though I was receiving messages for which were not in my keyring.
The "not in keyring" log should really be in your news.notice file as
the default log level for the logmsg() function in perl-nocem is notice:
syslog($lvl || 'notice', '%s', $msg);
Are you sure the nocem-fr@alphanet.ch entry was in nocem.ctl when you
did that test?
I think the log you expected was another one, for a issuer not present
in nocem.ctl:
logmsg(
"Article $msgid: unwanted ($hdrs{issuer}/$hdrs{type})",
'debug'
);
In that case, yes, this log is forced at the debug level. I believe the rationale is for not repeating every couple of minutes that you don't
process the notices or types from one or several issuers. It's not
necessary when you already know that.
Yet, I understand it may be useful to be aware of new issuers or a new
type sent by a known issuer.
Should this very log be changed to be at the notice level? I'm OK with
that move unless you see any drawback. It seems more helpful for admins.
You are correct, what I was looking for then would have been related to missing issuer in nocem.ctl. I don't think changing it would spam logs too much?
Next question, is there an easier way for me to process the notices I have in
news.lists.filters without grabbing Message-IDs one-by-one?
Besides Ivo's script working for the tradspool storage method, there is
also a straight-forward way to do that depending on the overview method
you're using.
With ovsqlite, you obtain all these storage tokens with:
ovsqlite-util -g -n news.lists.filters | cut -f 5 -d' '
See tdx-util and ovdb_stat for a similar dump with tradindexed and ovdb.
I can add a paragraph about that in the perl-nocem documentation as it
is an interesting use case to document.
If it isn't overly complicated to provide an example for tdx-util that would be helpful to me and I'm sure others.
for f in $(cat spool/overview/n/l/f/news.lists.filters.DAT |awk -F'\t' '{print $5}' ); do bin/grephistory $f | bin/perl-nocem; done
Next question, is there an easier way for me to process the notices I have in news.lists.filters without grabbing Message-IDs one-by-one?
Hi Jesse,
Next question, is there an easier way for me to process the notices I have in
news.lists.filters without grabbing Message-IDs one-by-one?
Besides Ivo's script working for the tradspool storage method, there is
also a straight-forward way to do that depending on the overview method you're using.
With ovsqlite, you obtain all these storage tokens with:
ovsqlite-util -g -n news.lists.filters | cut -f 5 -d' '
With ovsqlite, you obtain all these storage tokens with:
ovsqlite-util -g -n news.lists.filters | cut -f 5 -d' '
Finally got my history and overview rebuilt with ovsqlite...
When I use the command above piped to perl-nocem, innd grinds to a halt. It seems to process a few nocem articles and then everything stops. No articles processed from peers and incoming connections hang, nothing reported in the logs except perl-nocem starting. I don't see anything with truss against innd or perl-nocem, and as soon as I cancel the command everything springs back to life.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 300 |
Nodes: | 16 (2 / 14) |
Uptime: | 67:25:02 |
Calls: | 6,712 |
Files: | 12,244 |
Messages: | 5,356,415 |