Question

Droplet in Singapore can't sync NTP server.

Droplet in US can sync time using ntp. But one in Singapore results “Server dropped: no data” and “no server suitable for synchronization found” in the same way. By any chance, Singapore ISP don’t allow NTP connection?


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

I recently launched an Ubuntu 14.04.1 LTS Trusty Tahr 32bit droplet. I was able to change my system date and synced to 0.sg.pool.ntp.org. However, just a few minutes ago as I was looking into my database (MariaDB), I noticed that the date was not SGT. So, I added the “default_time_zone = +08:00” into my /etc/mysql/my.cnf’s [mysqld] section. Then, I restarted the MariaDB service and at the same time monitoring the logs written to /var/log/syslog. Unfortunately, the logs written were not the same as the timestamp of the /var/log/syslog file itself.

date && ls -l /var/log/syslog && tail -n 1 /var/log/syslog

Thu Nov 13 12:37:34 SGT 2014 -rw-r----- 1 syslog adm 152802 Nov 13 12:37 /var/log/syslog Nov 12 23:37:32 droplet /etc/mysql/debian-start[24396]: Triggering myisam-recover for all MyISAM tables

This also applies to all the contents of the /var/log/*

recently i can sync ntp with my sg droplet. anyone of you able to do so to confirm ?

Found a good solution. Get your time from Google’s HTTP headers:

date -s "$(wget -S  "http://www.google.com/" 2>&1 | grep -E '^[[:space:]]*[dD]ate:' | sed 's/^[[:space:]]*[dD]ate:[[:space:]]*//' | head -1l | awk '{print $1, $3, $2,  $5 ,"GMT", $4 }' | sed 's/,//')"

Source: http://superuser.com/questions/307158/