postfix-pipe complains: no such file or directory

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

postfix-pipe complains: no such file or directory

Jordi Moles
Hi everyone,

i was wondering if someone has experienced this problem i've been having
for 2 weeks now.

I'm running Freebsd 7.0 and postfix-2.5.1.

The thing is that i've set up a filter written in C using postfix's
"pipe" feature. The filter works great most of the times.... but every
2-3 days.... mainly depending on the amount of load... FreeBSD hangs
completely(or almost completely) and leaves this message behind:

************
pipe[44634]: fatal: pipe_command: execvp
/usr/local/etc/postfix/quota_postfix: No such file or directory.
*************

This file is never touched, i mean, it's still there even when the
system says it can't find the file.
I've tried to change permissions of the file, just in case. Right now
the owner is root:wheel, but i've tried "postfix", also "filter", and so on.

in the master.cf, i've got this:

************
# quota_postfix
quota_postfix      unix    -       n       n       -       20      pipe
 flags=R user=filter argv=/usr/local/etc/postfix/quota_postfix
"localhost" "10028" "${sender}" "${recipient}" "${domain}"
************

has anyone experienced that? it's a very strange thing that only gets
fixed when you restart postfix. Sometimes i even have to reboot the machine.

i would be very  pleased if someone can throw some light on this issue.

Thanks in advance!!!!
Reply | Threaded
Open this post in threaded view
|

Re: postfix-pipe complains: no such file or directory

Wietse Venema
Jordi Moles Blanco:

> Hi everyone,
>
> i was wondering if someone has experienced this problem i've been having
> for 2 weeks now.
>
> I'm running Freebsd 7.0 and postfix-2.5.1.
>
> The thing is that i've set up a filter written in C using postfix's
> "pipe" feature. The filter works great most of the times.... but every
> 2-3 days.... mainly depending on the amount of load... FreeBSD hangs
> completely(or almost completely) and leaves this message behind:

What problems does the kernel report in /var/log/messages?

        Wietse
Reply | Threaded
Open this post in threaded view
|

Re: postfix-pipe complains: no such file or directory

Jordi Moles
En/na Wietse Venema ha escrit:

> Jordi Moles Blanco:
>  
>> Hi everyone,
>>
>> i was wondering if someone has experienced this problem i've been having
>> for 2 weeks now.
>>
>> I'm running Freebsd 7.0 and postfix-2.5.1.
>>
>> The thing is that i've set up a filter written in C using postfix's
>> "pipe" feature. The filter works great most of the times.... but every
>> 2-3 days.... mainly depending on the amount of load... FreeBSD hangs
>> completely(or almost completely) and leaves this message behind:
>>    
>
> What problems does the kernel report in /var/log/messages?
>
> Wietse
>  

Hi,

well... the main problem is that before that, nothing is written in
/var/log/messages or any file in that path, not even the message i'm
talking about. Instead, i always see it through the KVM device attached
to the server, but it's not logged anywhere.

All software installed in this machine, included postfix, DOES write
everything in that path, but this particular message doesn't appear
anywhere else.

Thanks.


Reply | Threaded
Open this post in threaded view
|

Re: postfix-pipe complains: no such file or directory

Wietse Venema
Jordi Moles Blanco:

> En/na Wietse Venema ha escrit:
> > Jordi Moles Blanco:
> >  
> >> Hi everyone,
> >>
> >> i was wondering if someone has experienced this problem i've been having
> >> for 2 weeks now.
> >>
> >> I'm running Freebsd 7.0 and postfix-2.5.1.
> >>
> >> The thing is that i've set up a filter written in C using postfix's
> >> "pipe" feature. The filter works great most of the times.... but every
> >> 2-3 days.... mainly depending on the amount of load... FreeBSD hangs
> >> completely(or almost completely) and leaves this message behind:
> >>    
> >
> > What problems does the kernel report in /var/log/messages?
> >
> > Wietse
> >  
>
> Hi,
>
> well... the main problem is that before that, nothing is written in
> /var/log/messages or any file in that path, not even the message i'm
> talking about. Instead, i always see it through the KVM device attached
> to the server, but it's not logged anywhere.

If your system hangs without logging a problem to /var/log/messages,
you need to figure out why it does this. Meanwhile, you can reduce
the Postfix load by setting "default_process_limit=20" in main.cf
and restarting Postfix.

        Wietse
Reply | Threaded
Open this post in threaded view
|

Re: postfix-pipe complains: no such file or directory

Jordi Moles
En/na Wietse Venema ha escrit:

> Jordi Moles Blanco:
>  
>> En/na Wietse Venema ha escrit:
>>    
>>> Jordi Moles Blanco:
>>>  
>>>      
>>>> Hi everyone,
>>>>
>>>> i was wondering if someone has experienced this problem i've been having
>>>> for 2 weeks now.
>>>>
>>>> I'm running Freebsd 7.0 and postfix-2.5.1.
>>>>
>>>> The thing is that i've set up a filter written in C using postfix's
>>>> "pipe" feature. The filter works great most of the times.... but every
>>>> 2-3 days.... mainly depending on the amount of load... FreeBSD hangs
>>>> completely(or almost completely) and leaves this message behind:
>>>>    
>>>>        
>>> What problems does the kernel report in /var/log/messages?
>>>
>>> Wietse
>>>  
>>>      
>> Hi,
>>
>> well... the main problem is that before that, nothing is written in
>> /var/log/messages or any file in that path, not even the message i'm
>> talking about. Instead, i always see it through the KVM device attached
>> to the server, but it's not logged anywhere.
>>    
>
> If your system hangs without logging a problem to /var/log/messages,
> you need to figure out why it does this. Meanwhile, you can reduce
> the Postfix load by setting "default_process_limit=20" in main.cf
> and restarting Postfix.
>
> Wietse
>  
hi again,

thanks for the info, i'll keep that in mind while i'm trying to debug
where the problem is.

Thanks.