Cron Error Cron <root@mydomain> test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
-
- Posts: 12
- Joined: Mon May 01, 2017 8:38 am
Cron Error Cron <root@mydomain> test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
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?
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 )
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
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