Page 1 of 1

Cron Error Cron <root@mydomain> test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )

Posted: Sat Oct 21, 2017 1:14 pm
by pramathesh
I'm getting this as an email daily at 6.25 my time. The message body is run-parts: /etc/cron.daily/ntpdate exited with return code 1

I can only send mails but no mails are being received. Can someone help resolve this, please?

Re: Cron Error Cron <root@mydomain> test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )

Posted: Thu Mar 22, 2018 12:44 pm
by tkramer
To fix the run-parts error: /etc/cron.daily/ntpdate exited with return code 1
In ntpdate, replace -s with -u
PS: most likely this error arises from the fact that for some reason the UDP port 123 is closed
the -u command allows you to use a different port (not 123 in particular).

Works to me!

Reply found in post: viewtopic.php?f=10&t=10007&p=54577&hili ... ate#p54577