cancel
Showing results for 
Search instead for 
Did you mean: 

ntp is not synching...

 
AVV
Super Advisor

ntp is not synching...

Hi,

I get the below error while synching with ntp server. All other servers are OKAY except this and this is going through a firewall. I think this firewall is blocking the port to open. Can you please help me to trouble shoot the same.
6 REPLIES
AVV
Super Advisor

Re: ntp is not synching...

The error is below...........

[root@testserver ~]# service ntpd restart
Shutting down ntpd: [ OK ]
ntpd: Synchronizing with time server: [FAILED]
Starting ntpd: [ OK ]
[root@testserver ~]#
Prakash Nataraj
Occasional Visitor

Re: ntp is not synching...

Hi,

check /etc/ntp.conf file

server 0.centos.pool.ntp.org
server 1.centos.pool.ntp.org
server 2.centos.pool.ntp.org

Like such entry . If your using a centos system . If you using any other OS accordingly you have a different server address .

Just try to connect the server and check weather you are able to connect.

Check the same and update us here .

Regards,
Prakash N
Matti_Kurkela
Honored Contributor

Re: ntp is not synching...

NTP uses UDP protocol, so it cannot be tested with TCP tools like telnet.

Stop ntpd, then run "ntpdate -d your.ntp.server.address". If the last output line says "no server suitable for synchronization found", it means the ntpdate command was not able to communicate with the server.

UDP is a "connectionless" protocol, so unless your firewall specifically understands the NTP protocol, you must explicitly allow traffic in both directions: from your server's port UDP/123 to the time server's port UDP/123 and vice versa.

MK
MK
Rockstar
Advisor

Re: ntp is not synching...

Best to go with the ntpdate -u
Benoy Daniel
Trusted Contributor

Re: ntp is not synching...

First do a ping and see you are getting a response from NTP server.
AVV
Super Advisor

Re: ntp is not synching...

Thanks