Unable to sync server time with NTP server

Refers to:

  • Plesk 11.0 for Linux
  • Plesk 11.5 for Linux
  • Plesk 12.0 for Linux

Created:

2016-11-16 13:07:36 UTC

Modified:

2016-12-21 20:00:31 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to sync server time with NTP server

Symptoms

Customer added the following entry to crontab to syncronize time on the server every 5 minute:

5   *  *  *  *   ntpdate -u pool.ntp.org

Howver it does not work. Server time not getting synchronized with NTP server time due to misplaced cron entries.

Cause

Misplaced cron entries in crontab file caused by incorrect syntax.

Resolution

  1. Create a file /usr/crontime .

  2. Add the following line to that file:

    ntpdate -d -u pool.ntp.org >/dev/null 2>&1
  3. Make it executable

    #chmod +x /usr/crontime
  4. Edit crontab entry as follows:

    5     *       *       *       *       /usr/crontime

This entry means that the cron will be executed every 5 minutes and the server time will be synchronized with NTP server.

Have more questions? Submit a request
Please sign in to leave a comment.