Broken Pipe?
Wytze van der Raay
wytze at nlnet.nl
Wed Sep 17 08:34:14 CEST 2003
Hi Mike,
> Here is the output of the 'DEBUG=yes sh -x /usr/sbin/lr_vendor_cron daily' command:
>
> [root at mtdchfohfwexta1 root]# DEBUG=yes sh -x /usr/sbin/lr_vendor_cron daily
> .....
> + test '!' -r /var/log/maillog.1
> + debug 'Sending daily postfix report from /var/log/maillog.1 to root'
> + test yes = yes
> + echo lr_vendor_cron: 'Sending daily postfix report from /var/log/maillog.1 to root'
> lr_vendor_cron: Sending daily postfix report from /var/log/maillog.1 to root
> + return 0
> + eval 'grep postfix/'
> ++ grep postfix/
> + su - lire -c 'lr_run lr_log2mail -s '\''daily postfix report from /var/log/maillog.1'\'' postfix root'
> + logger -p user.info -t lire
> /usr/sbin/lr_vendor_cron: line 1: 15707 Broken pipe grep postfix/
>
>
> As you can see, the "broken pipe" error occurs at the end of the debug info,
> and I still have no idea what is causing it. The lr_vendor_cron
program is
> still running after it throws the broken pipe error, as I have to hit
CTRL-C
> to end it. After I hit CTRL-C, the remaining debug output is displayed:
>
> ...
>
> Any ideas?
Hm, it helps a little bit but not enough unfortunately. The command that
is failing is the ´su - lire -c ´lr_run lr_log2mail ...´´, but the
reason it failed is not visible in this log because its error messages
have been redirected to syslog with the ´logger -p user.info -t lire´
command. Please take a look at your /var/log/messages and look for any
´lire´-tagged messages around the time you did this experiment. Those
will hopefully reveal the clue we´re looking for.
It´s also strange that the command kept running after the broken pipe;
that doesn´t quite fit with my theory that the lr_run ... bailed out early.
Anyway, please take a look at the lire errors in /var/log/messages (I am
assuming you are using the standard RedHat syslog setup) and let me know.
Regards,
Wytze van der Raay
--
To UNSUBSCRIBE, email to questions-request at logreport.org with a subject of
"unsubscribe". Trouble? Send an email with subject "help" to
questions-request at logreport.org
More information about the Questions
mailing list