ntp clock unsynchronized
by H07 from LinuxQuestions.org on (#6HCN1)
Hi,
I deployed a ubuntu 22.04 ova in two data centers one in india and the other in US.
In US vm, the clock is synced fine and no issues, but in india vm , the clock remains unsynced.
Can you pls suggest on what could be the issue and fix,here is some info from the problematic vm
root@si-pca1:/home/developer# systemctl status ntp
ntp.service - Network Time Service
Loaded: loaded (/lib/systemd/system/ntp.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2023-12-22 09:06:26 UTC; 2 days ago
Docs: man:ntpd(8)
Process: 64612 ExecStart=/usr/lib/ntp/ntp-systemd-wrapper (code=exited, status=0/SUCCESS)
Main PID: 64618 (ntpd)
Tasks: 2 (limit: 19051)
Memory: 1.9M
CPU: 42.734s
CGroup: /system.slice/ntp.service
64618 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 118:125
Dec 22 09:06:26 si-pca1 ntpd[64618]: gps base set to 2022-02-06 (week 2196)
Dec 22 09:06:26 si-pca1 ntpd[64618]: restrict default: KOD does nothing without LIMITED.
Dec 22 09:06:26 si-pca1 ntpd[64618]: restrict ::: KOD does nothing without LIMITED.
Dec 22 09:06:26 si-pca1 ntpd[64618]: Listen normally on 0 lo 127.0.0.1:123
Dec 22 09:06:26 si-pca1 ntpd[64618]: Listen normally on 1 eth0 10.131.145.116:123
Dec 22 09:06:26 si-pca1 ntpd[64618]: Listen normally on 2 eth0 [fe80::250:56ff:fe84:2cc%2]:123
Dec 22 09:06:26 si-pca1 ntpd[64618]: Listening on routing socket on fd #19 for interface updates
Dec 22 09:06:26 si-pca1 ntpd[64618]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized
Dec 22 09:06:26 si-pca1 ntpd[64618]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized
In /etc/ntp.conf,
server pool.ntp.org prefer
restrict default kod nomodify notrap nopeer noquery
restrict -6 default kod nomodify notrap nopeer noquery
driftfile /var/lib/ntp/ntp.drift
root@si-pca1:/home/developer# cat /var/lib/ntp/ntp.drift
0.000
root@si-pca1:/home/developer# ntpstat
unsynchronised
polling server every 8 s
root@si-pca1:/home/developer#
root@si-pca1:/home/developer# ntpq -c lpeers
remote refid st t when poll reach delay offset jitter
==============================================================================
50.205.57.38 .INIT. 16 u - 1024 0 0.000 +0.000 0.000
root@si-pca1:/home/developer#
root@si-pca1:/home/developer#
root@si-pca1:/home/developer# ntpq -c sysinfo
associd=0 status=c016 leap_alarm, sync_unspec, 1 event, restart,
system peer: 0.0.0.0:0
system peer mode: unspec
leap indicator: 11
stratum: 16
log2 precision: -24
root delay: 0.000
root dispersion: 0.000
reference ID: .
reference time: (no time)
system jitter: 0.000000
clock jitter: 0.000
clock wander: 0.000
broadcast delay: -50.000
symm. auth. delay: 0.000
root@si-pca1:/home/developer#
root@si-pca1:/home/developer#
root@si-pca1:/home/developer# timedatectl
Local time: Mon 2023-12-25 05:30:24 UTC
Universal time: Mon 2023-12-25 05:30:24 UTC
RTC time: Mon 2023-12-25 05:30:22
Time zone: UTC (UTC, +0000)
System clock synchronized: no
NTP service: n/a
RTC in local TZ: no
root@si-pca1:/home/developer#
root@si-pca1:/home/developer#
root@si-pca1:/home/developer# ntpq -nc associations
ind assid status conf reach auth condition last_event cnt
===========================================================
1 36070 8011 yes no none reject mobilize 1
root@si-pca1:/home/developer#
root@si-pca1:/home/developer#
root@si-pca1:/home/developer# ntpq -nc 'readvar 36070'
associd=36070 status=8011 conf, sel_reject, 1 event, mobilize,
srcadr=50.205.57.38, srcport=123, dstadr=10.131.145.166, dstport=123,
leap=11, stratum=16, precision=-24, rootdelay=0.000, rootdisp=0.000,
refid=INIT, reftime=(no time), rec=(no time), reach=000, unreach=245,
hmode=3, pmode=0, hpoll=10, ppoll=10, headway=0,
flash=1600 peer_stratum, peer_dist, peer_unreach, keyid=0, offset=+0.000,
delay=0.000, dispersion=15937.500, jitter=0.000, xleave=0.063,
filtdelay= 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00,
filtoffset= +0.00 +0.00 +0.00 +0.00 +0.00 +0.00 +0.00 +0.00,
filtdisp= 16000.0 16000.0 16000.0 16000.0 16000.0 16000.0 16000.0 16000.0
root@si-pca1:/home/developer#
root@si-pca1:/home/developer#
root@si-pca1:/home/developer#
Any help is appreciated.
I deployed a ubuntu 22.04 ova in two data centers one in india and the other in US.
In US vm, the clock is synced fine and no issues, but in india vm , the clock remains unsynced.
Can you pls suggest on what could be the issue and fix,here is some info from the problematic vm
root@si-pca1:/home/developer# systemctl status ntp
ntp.service - Network Time Service
Loaded: loaded (/lib/systemd/system/ntp.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2023-12-22 09:06:26 UTC; 2 days ago
Docs: man:ntpd(8)
Process: 64612 ExecStart=/usr/lib/ntp/ntp-systemd-wrapper (code=exited, status=0/SUCCESS)
Main PID: 64618 (ntpd)
Tasks: 2 (limit: 19051)
Memory: 1.9M
CPU: 42.734s
CGroup: /system.slice/ntp.service
64618 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 118:125
Dec 22 09:06:26 si-pca1 ntpd[64618]: gps base set to 2022-02-06 (week 2196)
Dec 22 09:06:26 si-pca1 ntpd[64618]: restrict default: KOD does nothing without LIMITED.
Dec 22 09:06:26 si-pca1 ntpd[64618]: restrict ::: KOD does nothing without LIMITED.
Dec 22 09:06:26 si-pca1 ntpd[64618]: Listen normally on 0 lo 127.0.0.1:123
Dec 22 09:06:26 si-pca1 ntpd[64618]: Listen normally on 1 eth0 10.131.145.116:123
Dec 22 09:06:26 si-pca1 ntpd[64618]: Listen normally on 2 eth0 [fe80::250:56ff:fe84:2cc%2]:123
Dec 22 09:06:26 si-pca1 ntpd[64618]: Listening on routing socket on fd #19 for interface updates
Dec 22 09:06:26 si-pca1 ntpd[64618]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized
Dec 22 09:06:26 si-pca1 ntpd[64618]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized
In /etc/ntp.conf,
server pool.ntp.org prefer
restrict default kod nomodify notrap nopeer noquery
restrict -6 default kod nomodify notrap nopeer noquery
driftfile /var/lib/ntp/ntp.drift
root@si-pca1:/home/developer# cat /var/lib/ntp/ntp.drift
0.000
root@si-pca1:/home/developer# ntpstat
unsynchronised
polling server every 8 s
root@si-pca1:/home/developer#
root@si-pca1:/home/developer# ntpq -c lpeers
remote refid st t when poll reach delay offset jitter
==============================================================================
50.205.57.38 .INIT. 16 u - 1024 0 0.000 +0.000 0.000
root@si-pca1:/home/developer#
root@si-pca1:/home/developer#
root@si-pca1:/home/developer# ntpq -c sysinfo
associd=0 status=c016 leap_alarm, sync_unspec, 1 event, restart,
system peer: 0.0.0.0:0
system peer mode: unspec
leap indicator: 11
stratum: 16
log2 precision: -24
root delay: 0.000
root dispersion: 0.000
reference ID: .
reference time: (no time)
system jitter: 0.000000
clock jitter: 0.000
clock wander: 0.000
broadcast delay: -50.000
symm. auth. delay: 0.000
root@si-pca1:/home/developer#
root@si-pca1:/home/developer#
root@si-pca1:/home/developer# timedatectl
Local time: Mon 2023-12-25 05:30:24 UTC
Universal time: Mon 2023-12-25 05:30:24 UTC
RTC time: Mon 2023-12-25 05:30:22
Time zone: UTC (UTC, +0000)
System clock synchronized: no
NTP service: n/a
RTC in local TZ: no
root@si-pca1:/home/developer#
root@si-pca1:/home/developer#
root@si-pca1:/home/developer# ntpq -nc associations
ind assid status conf reach auth condition last_event cnt
===========================================================
1 36070 8011 yes no none reject mobilize 1
root@si-pca1:/home/developer#
root@si-pca1:/home/developer#
root@si-pca1:/home/developer# ntpq -nc 'readvar 36070'
associd=36070 status=8011 conf, sel_reject, 1 event, mobilize,
srcadr=50.205.57.38, srcport=123, dstadr=10.131.145.166, dstport=123,
leap=11, stratum=16, precision=-24, rootdelay=0.000, rootdisp=0.000,
refid=INIT, reftime=(no time), rec=(no time), reach=000, unreach=245,
hmode=3, pmode=0, hpoll=10, ppoll=10, headway=0,
flash=1600 peer_stratum, peer_dist, peer_unreach, keyid=0, offset=+0.000,
delay=0.000, dispersion=15937.500, jitter=0.000, xleave=0.063,
filtdelay= 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00,
filtoffset= +0.00 +0.00 +0.00 +0.00 +0.00 +0.00 +0.00 +0.00,
filtdisp= 16000.0 16000.0 16000.0 16000.0 16000.0 16000.0 16000.0 16000.0
root@si-pca1:/home/developer#
root@si-pca1:/home/developer#
root@si-pca1:/home/developer#
Any help is appreciated.