Ask Your Question

cron stopped sending e-mail and logging to syslog

asked 2013-08-13 17:52:29 -0500

pdestefa gravatar image

updated 2013-08-13 19:05:03 -0500

FranciscoD_ gravatar image

I upgraded to F19 last week and it was working fine right after than. After a reboot two days ago, however, cron has stopped sending e-mails. I was getting an error from cron.daily and trying to troubleshoot it, but that isn't happening any more. Cron seems to be working; my cron jobs are running and so are the system jobs (as far as I can tell). But, when I try to schedule a new job with at as a test, I never get the e-mail even though the jobs runs. Local e-mail delivery seems to be working fine.

edit retag flag offensive close merge delete


@kdg1955: 1. Yes, sendmail is running and working. As I stated, local e-mail delivery is working. That is to say, I can send e-mail to myself and root. 2. /etc/sysconfig/crond appears to be the default. CRONDARGS variable is empty. I have never modified this file. 3. This is an interesting suggestion. I don't know what you mean by "another (dummy) user". Do you mean I should create a new user and set that user as the recipient of all system cron jobs?

pdestefa gravatar imagepdestefa ( 2013-08-14 11:53:24 -0500 )edit

@pdestefa concerning the new user: it was just an idea, in order to see if something goes wrong in cron with sendmail to the current user configured in MAILTO. But I agree small chances of success. When I think of something different I will definitely report it. Or maybe: is selinux running? But I can not help you much with it.

kdg1955 gravatar imagekdg1955 ( 2013-08-14 13:18:23 -0500 )edit

@pdestefa: mail information is logged in /var/log/maillog. Also true for mails from cron. Do you notice anything about this?

kdg1955 gravatar imagekdg1955 ( 2013-08-14 13:30:12 -0500 )edit

Are you sure your cronjob has ended and is not pending? Have you try it with an other simple cronjob?

kdg1955 gravatar imagekdg1955 ( 2013-08-14 13:39:52 -0500 )edit

@kdg1955: Many thanks for your help!

Sure, I get it; I can try a new user. I'll get back to you.

SELinux is running, but I haven't gotten any violations.

Guess what? Only /var/log/messages is working for me, now; something else is wrong with my rsyslog. I started another question about that problem, which I believe is a separate issue, but may not be. Again, cron and mail are working fine, but the logging isn't. See Question 30038 rsyslog-not-accepting-logger-messages-not-logging-anything-except-to-varlogmessages

pdestefa gravatar imagepdestefa ( 2013-08-14 22:53:25 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2013-08-20 16:44:20 -0500

pdestefa gravatar image

Unfortunately, I'm not really sure what fixed this problem, but it is now fixed. I did some package updates and rebooted for a new kernel. I can only speculate that cron and syslog were deliberately ignoring duties: Previously, /var was full but I fixed that and restarted all these daemons. I was sure I had eliminated this as a cause, but obviously not. Would appreciate anyone's suggestion on what I missed.

edit flag offensive delete link more

answered 2013-08-14 04:25:22 -0500

kdg1955 gravatar image

I can not simulate. Here are some points to verify:

  • Are you using sendmail and is the deamon running => $> sudo systemctl status sendmail?
  • Have you set any parameters for variable CRONDARGS in /etc/sysconfig/crond?
  • change MAILTO in /etc/crontab to an other (dummy) user.

See also what they say concerning mail in $> man 5 crontab and $> man crond.

edit flag offensive delete link more

Question Tools


Asked: 2013-08-13 17:52:29 -0500

Seen: 1,182 times

Last updated: Aug 20 '13