Ntpdate the ntp socket is in use exiting Allerød

Date: 2017-03-01 07:49

.and tried using the ntpd daemon instead of the ntpdate utility. It won't sync my time either the daemon starts fine, but my clock remains off. I even tried using the exact /etc/ from the accepted answer in the latter post, and restarting the daemon. No go. Anyway, I don't want to use the daemon. I am perfectly aware that ntpdate is considered "deprecated", and it is advised to use ntpd -q instead. Also see here:

Automatically Setting the Beaglebone Black Time Using NTP

driftfile /var/lib/ntp/drift
restrict default ignore 设置默认策略为拒绝所有访问方式的请求
# Permit time synchronization with our time source, but do not
# permit the source to query or modify the service on this system.
restrict default kod nomodify notrap nopeer noquery
restrict -6 default kod nomodify notrap nopeer noquery

Facebook - Log In or Sign Up

Even with the -u option, which tells ntpdate to use an unprivileged port for syncing (instead of port 678 ) which is certainly not blocked from my work place:

CentOS 6下NTP服务安装和配置-王显璠的个人博客

 上記で設定したNTPは時間が即座に調整されるというわけではなく、システムに問題が発生しないように徐々に時間を調節していきます。けれども、UTCの時刻と内蔵時計の差があまりに狂っている場合は時間が調整されるまで時間がかかってしまいます。そこで、ntpdateコマンドを使用することで現在の時刻を即座に調整しておきます。書式は、「ntpdate "NTPサーバー名"」です。

.I thought that maybe the strata from the NTP servers are too high. They aren't, though. Let's see a little more debugging info:

Your hosting provider is blocking ntp packets. This heavy handed approach has been implemented by some ISPs in response to the DDoS attacks. You can see that ntpdate is sending the packets fron the ntpdate -vd :

I would contact your ISP and ask if they are blocking external ntp requests and if they have a local server that you can use for time sync.

# Key file containing the keys and key identifiers used when operating
# with symmetric key cryptography.
keys /etc/ntp/keys

#broadcast autokey # broadcast server
#broadcastclient # broadcast client
#broadcast autokey # multicast server
#multicastclient # multicast client
#manycastserver # manycast server
#manycastclient autokey # manycast client

But since ntpd doesn't work for me either, the problem lies elsewhere. And I find that I would prefer not having to install any extra packages just for synchronizing the clock. ntpdate comes pre-installed with Ubuntu, and it should work just fine. So I uninstalled the ntp package again.