Sunday, December 29, 2013
Bug in RHEL6 and clones /etc/cron.daily/0logwatch anacron script Date::Manip error
I saw the following error in root's mail on a server:
ERROR: Date::Manip unable to determine TimeZone.
Execute the following command in a shell prompt:
perldoc Date::Manip
The section titled TIMEZONES describes valid TimeZones
and where they can be defined.
The error is due to the logwatch.pl script itself. The solution is to add the following line to /etc/cron.daily/0logwatch:
Why is Red Hat sending out an OS with a broken cron script?
With logwatch working, you then discover a missing gnome keyring library file.
You can find what package has that file using yum provides:
yum provides /lib64/security/pam_gnome_keyring.so
Install the following package to fix those PAM errors.
yum install gnome-keyring-pam-2.28.2-8.el6_3.x86_64
ERROR: Date::Manip unable to determine TimeZone.
Execute the following command in a shell prompt:
perldoc Date::Manip
The section titled TIMEZONES describes valid TimeZones
and where they can be defined.
The error is due to the logwatch.pl script itself. The solution is to add the following line to /etc/cron.daily/0logwatch:
export DATE_MANIP=DM5
I found the solution here.
Why is Red Hat sending out an OS with a broken cron script?
With logwatch working, you then discover a missing gnome keyring library file.
You can find what package has that file using yum provides:
yum provides /lib64/security/pam_gnome_keyring.so
Install the following package to fix those PAM errors.
yum install gnome-keyring-pam-2.28.2-8.el6_3.x86_64