Thread View: news.software.nntp
9 messages
9 total messages
Started by John F. Morse
Mon, 30 Mar 2009 05:54
Cannot open Z.EMP
Author: John F. Morse
Date: Mon, 30 Mar 2009 05:54
Date: Mon, 30 Mar 2009 05:54
17 lines
1753 bytes
1753 bytes
What is it, why is it, and where should it be going?: Daily Usenet report from Mar 29 00:00:04 to Mar 30 00:00:03 Unknown entries from news log file: First 6 / 6 lines (100.0%) Mar 29 07:32:02 localhost innd: filter: Cannot open Z.EMP: No such file or directory Mar 29 10:32:02 localhost innd: filter: Cannot open Z.EMP: No such file or directory Mar 29 12:39:27 localhost innd: filter: Cannot open Z.EMP: No such file or directory Mar 29 12:46:17 localhost innd: filter: Cannot open Z.EMP: No such file or directory Mar 29 12:47:08 localhost innd: filter: Cannot open Z.EMP: No such file or directory Mar 29 12:58:05 localhost innd: filter: Cannot open Z.EMP: No such file or directory -- John
Re: Cannot open Z.EMP
Author: Alexander Bartolich
Date: Mon, 30 Mar 2009 06:25
Date: Mon, 30 Mar 2009 06:25
7 lines
1476 bytes
1476 bytes
John F. Morse schrieb: > What is it, why is it, and where should it be going?: Check the value of "emp_dump_file" in your "cleanfeed.local". -- seq 100 | sed 's/.*/Romani Ite Domum./'
Re: Cannot open Z.EMP
Author: John F. Morse
Date: Mon, 30 Mar 2009 10:34
Date: Mon, 30 Mar 2009 10:34
93 lines
4142 bytes
4142 bytes
Alexander Bartolich wrote:
> John F. Morse schrieb:
>
>> What is it, why is it, and where should it be going?:
>>
>
> Check the value of "emp_dump_file" in your "cleanfeed.local".
Thanks Alexander.
Here is what I see:
news@optima7:~$ cat /etc/news//filter/cleanfeed.local | grep emp
do_emp_dump => 1,
emp_dump_file => '/tmp/empdump',
news@optima7:~$ ls -l / | grep tmp
drwxrwxrwt 4 root root 168 Mar 29 06:26 tmp
Would user news be blocked from /tmp by the sticky bit?
No, I used user news to touch a /tmp/test file and then rm it without
errors.
news@optima7:~$ ls -al /tmp
total 7
drwxrwxrwt 4 root root 168 Mar 29 06:26 .
drwxr-xr-x 20 root root 568 Feb 12 2008 ..
drwxrwxrwt 2 root root 48 Mar 11 20:58 .ICE-unix
-r--r--r-- 1 root root 11 Mar 11 20:58 .X0-lock
drwxrwxrwt 2 root root 72 Mar 11 20:58 .X11-unix
srw-rw-rw- 1 root root 0 Mar 11 20:58 .gdm_socket
There is no /tmp/empdump in there either. Nor a file named Z.EMP which
is the error report:
Unknown entries from news log file:
First 6 / 6 lines (100.0%)
Mar 29 07:32:02 localhost innd: filter: Cannot open Z.EMP: No such file
or directory
Mar 29 10:32:02 localhost innd: filter: Cannot open Z.EMP: No such file
or directory
Mar 29 12:39:27 localhost innd: filter: Cannot open Z.EMP: No such file
or directory
Mar 29 12:46:17 localhost innd: filter: Cannot open Z.EMP: No such file
or directory
Mar 29 12:47:08 localhost innd: filter: Cannot open Z.EMP: No such file
or directory
Mar 29 12:58:05 localhost innd: filter: Cannot open Z.EMP: No such file
or directory
Now, looking at INN's Paths:
news@optima7:~$ cat /etc/news/inn.conf | grep path
...
# Paths
patharchive: /var/spool/news/archive
patharticles: /var/spool/news/articles
pathbin: /usr/lib/news/bin
pathcontrol: /usr/lib/news/bin/control
pathdb: /var/lib/news
pathetc: /etc/news
pathfilter: /etc/news/filter
pathhttp: /var/log/news
pathincoming: /var/spool/news/incoming
pathlog: /var/log/news
pathoutgoing: /var/spool/news/outgoing
pathoverview: /var/spool/news/overview
pathrun: /var/run/news
pathspool: /var/spool/news
pathtmp: /var/spool/news/incoming/tmp
Maybe cleanfeed.local should be changed?
-emp_dump_file => '/tmp/empdump',
+emp_dump_file => '/var/spool/news/incoming/tmp/empdump',
--
John
No Microsoft, Apple, AT&T, Novell, Trend Micro, nor Ford products were used in the preparation or transmission of this message.
The EULA sounds like it was written by a team of lawyers who want to tell me what I can't do. The GPL sounds like it was written by a human being, who wants me to know what I can do.
Re: Cannot open Z.EMP
Author: Julien ÉLIE
Date: Mon, 30 Mar 2009 19:11
Date: Mon, 30 Mar 2009 19:11
29 lines
2520 bytes
2520 bytes
Hi John,
> Unknown entries from news log file:
> First 6 / 6 lines (100.0%)
> Mar 29 07:32:02 localhost innd: filter: Cannot open Z.EMP: No such file or directory
> Mar 29 10:32:02 localhost innd: filter: Cannot open Z.EMP: No such file or directory
> Mar 29 12:39:27 localhost innd: filter: Cannot open Z.EMP: No such file or directory
> Mar 29 12:46:17 localhost innd: filter: Cannot open Z.EMP: No such file or directory
> Mar 29 12:47:08 localhost innd: filter: Cannot open Z.EMP: No such file or directory
> Mar 29 12:58:05 localhost innd: filter: Cannot open Z.EMP: No such file or directory
In the Cleanfeed provided by Marco d'Itri, you will find out in the
local_filter_reject() function of cleanfeed.local:
saveart('Z.EMP', $vr) if $vr =~ /^EMP/;
You should either comment out that line or set a value for the
debug_batch_directory variable in cleanfeed.local (%config_local
in local_config()).
By the way, you can upgrade to Steve's Cleanfeed <http://www.mixmin.net/cleanfeed>.
--
Julien ÉLIE
« Avez-vous remarqué qu'à table les mets que l'on vous sert vous mettent
les mots à la bouche ? » (Raymond Devos)
Re: Cannot open Z.EMP
Author: John F. Morse
Date: Tue, 31 Mar 2009 08:51
Date: Tue, 31 Mar 2009 08:51
63 lines
3330 bytes
3330 bytes
Julien ÉLIE wrote:
> Hi John,
>
>> Unknown entries from news log file:
>> First 6 / 6 lines (100.0%)
>> Mar 29 07:32:02 localhost innd: filter: Cannot open Z.EMP: No such
>> file or directory
>> Mar 29 10:32:02 localhost innd: filter: Cannot open Z.EMP: No such
>> file or directory
>> Mar 29 12:39:27 localhost innd: filter: Cannot open Z.EMP: No such
>> file or directory
>> Mar 29 12:46:17 localhost innd: filter: Cannot open Z.EMP: No such
>> file or directory
>> Mar 29 12:47:08 localhost innd: filter: Cannot open Z.EMP: No such
>> file or directory
>> Mar 29 12:58:05 localhost innd: filter: Cannot open Z.EMP: No such
>> file or directory
>
> In the Cleanfeed provided by Marco d'Itri, you will find out in the
> local_filter_reject() function of cleanfeed.local:
>
> saveart('Z.EMP', $vr) if $vr =~ /^EMP/;
>
> You should either comment out that line or set a value for the
> debug_batch_directory variable in cleanfeed.local (%config_local
> in local_config()).
I have:
debug_batch_directory => '/var/spool/news/spam',
in my cleanfeed.local file, but I do not have a file nor directory
"spam" in the /var/spool/news/ directory.
So, since that debug_batch_directory variable is set, it appears there
is some other problem?
If I comment that line out, then whatever it is designed to do won't work.
Just what is the purpose of this line or the whole local_filter_reject
function?
Additionally, there are several other lines in the local_filter_reject
function to saveart meeting other conditions. I haven't seen any of the
others produce errors nor any saved articles.
> By the way, you can upgrade to Steve's Cleanfeed
> <http://www.mixmin.net/cleanfeed>.
I will do this when I get a new server installed.
Thanks, Julien.
--
John
No Microsoft, Apple, AT&T, Novell, Trend Micro, nor Ford products were used in the preparation or transmission of this message.
The EULA sounds like it was written by a team of lawyers who want to tell me what I can't do. The GPL sounds like it was written by a human being, who wants me to know what I can do.
Re: Cannot open Z.EMP
Author: Jeffrey M. Vinocur
Date: Tue, 31 Mar 2009 09:49
Date: Tue, 31 Mar 2009 09:49
24 lines
1760 bytes
1760 bytes
In article <gqslho$9qm$1@optima7.xanadu-bbs.net>, John F. Morse <dont.bother> wrote: > >debug_batch_directory => '/var/spool/news/spam', > >in my cleanfeed.local file, but I do not have a file nor directory >"spam" in the /var/spool/news/ directory. ....so if you want cleanfeed to log articles, you should create that directory. >Just what is the purpose of this line or the whole local_filter_reject >function? The saveart() calls are to help you track which articles cleanfeed is rejecting to make sure you're not getting false positives. If you're not going to review the articles it saves, there's no point in saving them. -- Jeffrey M. Vinocur jeff@litech.org
Re: Cannot open Z.EMP
Author: Steve
Date: Tue, 31 Mar 2009 09:56
Date: Tue, 31 Mar 2009 09:56
40 lines
2523 bytes
2523 bytes
On Tue, 31 Mar 2009 03:51:04 -0500, John F. Morse wrote in
Message-Id: <gqslho$9qm$1@optima7.xanadu-bbs.net>:
Hi John,
> debug_batch_directory => '/var/spool/news/spam',
That's fine.
> in my cleanfeed.local file, but I do not have a file nor directory
> "spam" in the /var/spool/news/ directory.
This is the cause of your problem. You need to create the directory
/var/spool/news/spam and ensure that your news user has write privileges
to it.
> Just what is the purpose of this line or the whole local_filter_reject
> function?
When Cleanfeed rejects an article, the local_filter_reject function is
passed the reason for the reject. The commonest use of the function is
to log messages that are being rejected.
For example, in my cleanfeed.local I have:
saveart('emp.md5', $vr) if $vr =~ /^EMP\s\(md5/;
This states that if the verbose reject reason ($vr) starts with
"EMP (md5" then save the article in a log file called
$debug_batch_directory/emp.md5
In your instance this evaluates to:
/var/spool/news/spam/emp.md5
> Additionally, there are several other lines in the local_filter_reject
> function to saveart meeting other conditions. I haven't seen any of the
> others produce errors nor any saved articles.
They can't until your debug_batch_directory is created.
Steve
--
pub 1024D/228761E7 2003-06-04 Steven Crook
Key fingerprint = 1CD9 95E1 E9CE 80D6 C885 B7EB B471 80D5 2287 61E7
uid Steven Crook <steve@mixmin.net>
Re: Cannot open Z.EMP
Author: John F. Morse
Date: Tue, 31 Mar 2009 10:05
Date: Tue, 31 Mar 2009 10:05
46 lines
2566 bytes
2566 bytes
Jeffrey M. Vinocur wrote: > In article <gqslho$9qm$1@optima7.xanadu-bbs.net>, > John F. Morse <dont.bother> wrote: > >> debug_batch_directory => '/var/spool/news/spam', >> >> in my cleanfeed.local file, but I do not have a file nor directory >> "spam" in the /var/spool/news/ directory. >> > > ....so if you want cleanfeed to log articles, you should create > that directory. > Done! We'll see what happens. >> Just what is the purpose of this line or the whole local_filter_reject >> function? >> > > The saveart() calls are to help you track which articles > cleanfeed is rejecting to make sure you're not getting false > positives. If you're not going to review the articles it saves, > there's no point in saving them. I kinda suspected that was the purpose, but had no verification (human or machine). If I see no use for whatever "monster" I've created, I'll comment the line(s) out. As usual, thanks for your help. -- John No Microsoft, Apple, AT&T, Novell, Trend Micro, nor Ford products were used in the preparation or transmission of this message. The EULA sounds like it was written by a team of lawyers who want to tell me what I can't do. The GPL sounds like it was written by a human being, who wants me to know what I can do.
Re: Cannot open Z.EMP
Author: John F. Morse
Date: Tue, 31 Mar 2009 10:08
Date: Tue, 31 Mar 2009 10:08
60 lines
3177 bytes
3177 bytes
Steve wrote:
> On Tue, 31 Mar 2009 03:51:04 -0500, John F. Morse wrote in
> Message-Id: <gqslho$9qm$1@optima7.xanadu-bbs.net>:
>
> Hi John,
>
>
>> debug_batch_directory => '/var/spool/news/spam',
>>
> That's fine.
>
>
>> in my cleanfeed.local file, but I do not have a file nor directory
>> "spam" in the /var/spool/news/ directory.
>>
> This is the cause of your problem. You need to create the directory
> /var/spool/news/spam and ensure that your news user has write privileges
> to it.
>
>
>> Just what is the purpose of this line or the whole local_filter_reject
>> function?
>>
> When Cleanfeed rejects an article, the local_filter_reject function is
> passed the reason for the reject. The commonest use of the function is
> to log messages that are being rejected.
>
> For example, in my cleanfeed.local I have:
> saveart('emp.md5', $vr) if $vr =~ /^EMP\s\(md5/;
>
> This states that if the verbose reject reason ($vr) starts with
> "EMP (md5" then save the article in a log file called
> $debug_batch_directory/emp.md5
> In your instance this evaluates to:
> /var/spool/news/spam/emp.md5
>
>
>> Additionally, there are several other lines in the local_filter_reject
>> function to saveart meeting other conditions. I haven't seen any of the
>> others produce errors nor any saved articles.
>>
> They can't until your debug_batch_directory is created.
>
> Steve
>
Thanks for the info, Steve.
As I mentioned to Jeff, the /var/spool/news/spam now exists. So now I
guess I'll wait and see what I find in it. ;-)
--
John
No Microsoft, Apple, AT&T, Novell, Trend Micro, nor Ford products were used in the preparation or transmission of this message.
The EULA sounds like it was written by a team of lawyers who want to tell me what I can't do. The GPL sounds like it was written by a human being, who wants me to know what I can do.
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