Hi all,
Last week I have migrated 5 CentoS 6.2 servers to CentOS 6.3. In all of them, I receive every day problems with logwatch:
/etc/cron.daily/0logwatch:
Can't exec "sendmail": No such file or directory at /usr/sbin/logwatch line 1040, <TESTFILE> line 1. Can't execute sendmail -t: No such file or directory
It is really strange, because I am using default config ... On the other side, I have three CentOS 6.2 servers and these problems doesn't appears ...
How can I debug this??
Thanks.
On 12 September 2012 09:19, C. L. Martinez carlopmart@gmail.com wrote:
Hi all,
Last week I have migrated 5 CentoS 6.2 servers to CentOS 6.3. In all of them, I receive every day problems with logwatch:
/etc/cron.daily/0logwatch:
Can't exec "sendmail": No such file or directory at /usr/sbin/logwatch line 1040, <TESTFILE> line 1. Can't execute sendmail -t: No such file or directory
It is really strange, because I am using default config ... On the other side, I have three CentOS 6.2 servers and these problems doesn't appears ...
How can I debug this??
Hi,
On both versions rum command:
rpm -qf `which sendmail`
For me it's looks like you don't have postfix/sendmail on 6.3.
If you have sendmail command on 6.3, then check is path to sandmail is in logwatch script.
Kind regards Arek
On Wed, Sep 12, 2012 at 7:27 AM, Arek Czereszewski arekczer@gmail.com wrote:
On 12 September 2012 09:19, C. L. Martinez carlopmart@gmail.com wrote:
Hi all,
Last week I have migrated 5 CentoS 6.2 servers to CentOS 6.3. In all of them, I receive every day problems with logwatch:
/etc/cron.daily/0logwatch:
Can't exec "sendmail": No such file or directory at /usr/sbin/logwatch line 1040, <TESTFILE> line 1. Can't execute sendmail -t: No such file or directory
It is really strange, because I am using default config ... On the other side, I have three CentOS 6.2 servers and these problems doesn't appears ...
How can I debug this??
Hi,
On both versions rum command:
rpm -qf `which sendmail`
For me it's looks like you don't have postfix/sendmail on 6.3.
If you have sendmail command on 6.3, then check is path to sandmail is in logwatch script.
Nop, postfix it is installed and logwatch contains the correct sendmail binary ...
Le 2012-09-12 09:19, C. L. Martinez a écrit :
Hi all,
Last week I have migrated 5 CentoS 6.2 servers to CentOS 6.3. In all of them, I receive every day problems with logwatch:
/etc/cron.daily/0logwatch:
Can't exec "sendmail": No such file or directory at /usr/sbin/logwatch line 1040, <TESTFILE> line 1. Can't execute sendmail -t: No such file or directory
It is really strange, because I am using default config ... On the other side, I have three CentOS 6.2 servers and these problems doesn't appears ...
How can I debug this??
It sounds like an SELinux issue:
https://bugzilla.redhat.com/show_bug.cgi?id=617472 https://bugzilla.redhat.com/show_bug.cgi?id=617790
On Wed, Sep 12, 2012 at 7:32 AM, Laurent laurent@tnpl127.net wrote:
Le 2012-09-12 09:19, C. L. Martinez a écrit :
Hi all,
Last week I have migrated 5 CentoS 6.2 servers to CentOS 6.3. In all of them, I receive every day problems with logwatch:
/etc/cron.daily/0logwatch:
Can't exec "sendmail": No such file or directory at /usr/sbin/logwatch line 1040, <TESTFILE> line 1. Can't execute sendmail -t: No such file or directory
It is really strange, because I am using default config ... On the other side, I have three CentOS 6.2 servers and these problems doesn't appears ...
How can I debug this??
It sounds like an SELinux issue:
https://bugzilla.redhat.com/show_bug.cgi?id=617472 https://bugzilla.redhat.com/show_bug.cgi?id=617790
--
Uhmm Maybe, this can be the problem:
[root@plcossrv01 scripts]# whereis logwatch logwatch: /usr/sbin/logwatch /etc/logwatch /usr/share/logwatch /usr/share/man/man8/logwatch.8.gz [root@plcossrv01 scripts]# ls -la /usr/sbin/logwatch lrwxrwxrwx 1 root root 45 Sep 5 13:06 /usr/sbin/logwatch -> ../..//usr/share/logwatch/scripts/logwatch.pl [root@plcossrv01 scripts]# ls -al ../..//usr/share/logwatch/scripts/logwatch.pl ls: cannot access ../..//usr/share/logwatch/scripts/logwatch.pl: No such file or directory [root@plcossrv01 scripts]#
SELinux is disabled by default on all installations that I have do it (including adding disable selinux during installation) ...
On Wed, Sep 12, 2012 at 7:55 AM, C. L. Martinez carlopmart@gmail.com wrote:
On Wed, Sep 12, 2012 at 7:32 AM, Laurent laurent@tnpl127.net wrote:
Le 2012-09-12 09:19, C. L. Martinez a écrit :
Hi all,
Last week I have migrated 5 CentoS 6.2 servers to CentOS 6.3. In all of them, I receive every day problems with logwatch:
/etc/cron.daily/0logwatch:
Can't exec "sendmail": No such file or directory at /usr/sbin/logwatch line 1040, <TESTFILE> line 1. Can't execute sendmail -t: No such file or directory
It is really strange, because I am using default config ... On the other side, I have three CentOS 6.2 servers and these problems doesn't appears ...
How can I debug this??
It sounds like an SELinux issue:
https://bugzilla.redhat.com/show_bug.cgi?id=617472 https://bugzilla.redhat.com/show_bug.cgi?id=617790
--
Uhmm Maybe, this can be the problem:
[root@plcossrv01 scripts]# whereis logwatch logwatch: /usr/sbin/logwatch /etc/logwatch /usr/share/logwatch /usr/share/man/man8/logwatch.8.gz [root@plcossrv01 scripts]# ls -la /usr/sbin/logwatch lrwxrwxrwx 1 root root 45 Sep 5 13:06 /usr/sbin/logwatch -> ../..//usr/share/logwatch/scripts/logwatch.pl [root@plcossrv01 scripts]# ls -al ../..//usr/share/logwatch/scripts/logwatch.pl ls: cannot access ../..//usr/share/logwatch/scripts/logwatch.pl: No such file or directory [root@plcossrv01 scripts]#
SELinux is disabled by default on all installations that I have do it (including adding disable selinux during installation) ...
OOpss, symlink is correct ... Any more ideas??
According to this https://bugzilla.redhat.com/show_bug.cgi?id=617790, problem is created by selinux-policy package .. but I have selinux disabled in all of these servers ...
Am 12.09.2012 um 10:08 schrieb C. L. Martinez:
On Wed, Sep 12, 2012 at 7:55 AM, C. L. Martinez carlopmart@gmail.com wrote:
On Wed, Sep 12, 2012 at 7:32 AM, Laurent laurent@tnpl127.net wrote:
Le 2012-09-12 09:19, C. L. Martinez a écrit :
It sounds like an SELinux issue:
https://bugzilla.redhat.com/show_bug.cgi?id=617472 https://bugzilla.redhat.com/show_bug.cgi?id=617790
--
Uhmm Maybe, this can be the problem:
[root@plcossrv01 scripts]# whereis logwatch logwatch: /usr/sbin/logwatch /etc/logwatch /usr/share/logwatch /usr/share/man/man8/logwatch.8.gz [root@plcossrv01 scripts]# ls -la /usr/sbin/logwatch lrwxrwxrwx 1 root root 45 Sep 5 13:06 /usr/sbin/logwatch -> ../..//usr/share/logwatch/scripts/logwatch.pl [root@plcossrv01 scripts]# ls -al ../..//usr/share/logwatch/scripts/logwatch.pl ls: cannot access ../..//usr/share/logwatch/scripts/logwatch.pl: No such file or directory [root@plcossrv01 scripts]#
SELinux is disabled by default on all installations that I have do it (including adding disable selinux during installation) ...
OOpss, symlink is correct ... Any more ideas??
According to this https://bugzilla.redhat.com/show_bug.cgi?id=617790, problem is created by selinux-policy package .. but I have selinux disabled in all of these servers ...
what says
ls -la /usr/sbin/sendmail
?
-- LF
On 12/09/2012 08:19, C. L. Martinez wrote:
Hi all,
Last week I have migrated 5 CentoS 6.2 servers to CentOS 6.3. In all of them, I receive every day problems with logwatch:
/etc/cron.daily/0logwatch:
Can't exec "sendmail": No such file or directory at /usr/sbin/logwatch line 1040, <TESTFILE> line 1. Can't execute sendmail -t: No such file or directory
It is really strange, because I am using default config ... On the other side, I have three CentOS 6.2 servers and these problems doesn't appears ...
How can I debug this??
Thanks. _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
I had this problem on one of 18 Centos 6.x servers I have installed.
The particular server has had a large number of CPAN perl updates applied to it.
In order to resolve the problem I added the following line to /etc/logwatch/conf/logwatch.conf
mailer = "/usr/sbin/sendmail -t"
My systems are using postfix.
On Wed, Sep 12, 2012 at 9:35 AM, Giles Coochey giles@coochey.net wrote:
On 12/09/2012 08:19, C. L. Martinez wrote:
Hi all,
Last week I have migrated 5 CentoS 6.2 servers to CentOS 6.3. In all of them, I receive every day problems with logwatch:
/etc/cron.daily/0logwatch:
Can't exec "sendmail": No such file or directory at /usr/sbin/logwatch line 1040, <TESTFILE> line 1. Can't execute sendmail -t: No such file or directory
It is really strange, because I am using default config ... On the other side, I have three CentOS 6.2 servers and these problems doesn't appears ...
How can I debug this??
Thanks. _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
I had this problem on one of 18 Centos 6.x servers I have installed.
The particular server has had a large number of CPAN perl updates applied to it.
In order to resolve the problem I added the following line to /etc/logwatch/conf/logwatch.conf
mailer = "/usr/sbin/sendmail -t"
My systems are using postfix.
--
Yep, I think you are right Gilles. I have installed some CPAN modules in these servers and this can be the problem. I will test it.
Thanks.