unable to sync the time with ntp server

Hi folks,

The server time is no tgetiing synched up with the NTP server.
I tried ntpdate -u <ipadress> this is not working. please help out.

regards,
Sag.

Are you getting an error message?
What OS are you using?
Are you able to "reach" the timeserver?

You can contact prakash from BTOI...! :slight_smile: He is very Brilliant

We are using suse-linux and we are not getting any error messages. we tried 1. adding ntp server in ntp.conf file and restarting xntpd
2. using ntpdate -u <ntpserver>
this also doesn't work .

In /var/log/ntp these are the following messages.

1 Apr 12:17:02 ntpd[26972]: sendto(10.188.0.21): Bad file descriptor
1 Apr 12:17:03 ntpd[26972]: sendto(10.188.0.20): Bad file descriptor
1 Apr 12:17:04 ntpd[26972]: sendto(10.188.0.21): Bad file descriptor
1 Apr 12:17:05 ntpd[26972]: sendto(10.188.0.20): Bad file descriptor
1 Apr 12:17:06 ntpd[26972]: sendto(10.188.0.21): Bad file descriptor
1 Apr 12:17:07 ntpd[26972]: sendto(10.188.0.20): Bad file descriptor
1 Apr 12:17:08 ntpd[26972]: sendto(10.188.0.21): Bad file descriptor
1 Apr 12:17:08 ntpd[26972]: ntpd exiting on signal 2
1 Apr 12:22:45 ntpd[24999]: no servers reachable
1 Apr 12:30:05 ntpd[24999]: synchronized to 10.188.0.20, stratum 3
1 Apr 12:33:13 ntpd[24999]: no servers reachable
1 Apr 12:40:47 ntpd[24999]: synchronized to 10.188.0.21, stratum 3
1 Apr 12:48:34 ntpd[24999]: synchronized to 10.188.0.20, stratum 3
1 Apr 12:48:38 ntpd[24999]: time reset +4.722232 s
1 Apr 12:49:27 ntpd[24999]: ntpd exiting on signal 15
1 Apr 12:50:45 ntpd[29152]: synchronized to 10.188.0.21, stratum 3
1 Apr 12:50:45 ntpd[29152]: kernel time sync disabled 0041
1 Apr 12:51:23 ntpd[29152]: ntpd exiting on signal 15
1 Apr 13:54:40 ntpd[29248]: synchronized to LOCAL(0), stratum 10
1 Apr 13:54:40 ntpd[29248]: kernel time sync disabled 0041
1 Apr 14:09:52 ntpd[29248]: kernel time sync enabled 0001

Are you able to run ntpdate in debug mode?
maybe a clue is given....
ntpdate -d -u <ntpserver>
or maybe try different ntp server, and see what happens

maybe (non suse and non redhat) this can help
HOWTO NTP - Gentoo Linux Wiki

I tried in debug mode no error but the server is not getting synced up with the NTP server. Any more suggestions.

Can you post the output of the debug ntp sync run?
Maybe there is some clue what is happening.
(cause no error usually means it works...)

go to /etc/ntp.conf
remove everything from the file except
server 1
server 2
server 3
save it
service ntpd restart
then ntpdc -p
wait for sometime.
it will going to sync .....