Clock Issue with NTP server on Odroid C2

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
jcpingu
Posts: 4
Joined: Wed Jun 16, 2021 4:48 am

Clock Issue with NTP server on Odroid C2

Post by jcpingu »

Does anybody knows how to fix this?

Code: Select all

root@NTP-C2:~/ntp-4.2.8p15# systemctl status ntp
● ntp.service - LSB: Start NTP daemon
Loaded: loaded (/etc/init.d/ntp; generated)
Active: active (running) since Sun 2021-06-20 18:13:20 EDT; 26s ago
Docs: man:systemd-sysv-generator(8)
Process: 29519 ExecStart=/etc/init.d/ntp start (code=exited, status=0/SUCCESS)
Memory: 448.0K
CGroup: /system.slice/ntp.service
└─29528 /usr/sbin/ntpd -p /var/run/ntpd.pid -u 1001:1001

Jun 20 18:13:20 NTP-C2 ntpd[29528]: leapsecond file ('/var/lib/ntp/lea
p-seconds.list'): loaded, expire=2021-12-28T00:00:00Z last=2017-01-01T00:00:00Z ofs=37
Jun 20 18:13:20 NTP-C2 ntpd[29528]: Listen and drop on 0 v6wildcard [::]:123
Jun 20 18:13:20 NTP-C2 ntpd[29528]: Listen and drop on 1 v4wildcard 0.0.0.0:123
Jun 20 18:13:20 NTP-C2 ntpd[29528]: Listen normally on 2 lo 127.0.0.1:123
Jun 20 18:13:20 NTP-C2 ntpd[29528]: Listen normally on 3 eth0 192.168.10.11:123
Jun 20 18:13:20 NTP-C2 ntpd[29528]: Listening on routing socket on fd #20 for interface update
s
Jun 20 18:13:20 NTP-C2 ntpd[29528]: kernel reports TIME_ERROR: 0x2041: Clock Unsynchronized
Jun 20 18:13:20 NTP-C2 ntpd[29528]: kernel reports TIME_ERROR: 0x2041: Clock Unsynchronized
Jun 20 18:13:20 NTP-C2 ntp[29519]: Starting NTP server: ntpd.
Jun 20 18:13:20 NTP-C2 systemd[1]: Started LSB: Start NTP daemon.
User avatar
Joulinar
Posts: 5149
Joined: Sat Nov 16, 2019 12:49 am

Re: Clock Issue with NTP server on Odroid C2

Post by Joulinar »

short question, do you like to run an own NTP server or what is the purpose of having ntp installed.

if you like to force a time sync on the system themself, you could run

Code: Select all

/boot/dietpi/func/run_ntpd 1
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
jcpingu
Posts: 4
Joined: Wed Jun 16, 2021 4:48 am

Re: Clock Issue with NTP server on Odroid C2

Post by jcpingu »

Yes, this is a learning experiment...
User avatar
Joulinar
Posts: 5149
Joined: Sat Nov 16, 2019 12:49 am

Re: Clock Issue with NTP server on Odroid C2

Post by Joulinar »

Hi,

this might be an information message. What is the output of command ntptime

https://www.linuxquestions.org/question ... 175636606/
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
jcpingu
Posts: 4
Joined: Wed Jun 16, 2021 4:48 am

Re: Clock Issue with NTP server on Odroid C2

Post by jcpingu »

Code: Select all

root@NTP-C2:~# ntptime
ntp_gettime() returns code 0 (OK)
  time e47df6cf.47d95570  Wed, Jun 23 2021 14:07:11.280, (.280660739),
  maximum error 1000 us, estimated error 1 us, TAI offset 37
ntp_adjtime() returns code 0 (OK)
  modes 0x0 (),
  offset 0.809 us, frequency 54.033 ppm, interval 1 s,
  maximum error 1000 us, estimated error 1 us,
  status 0x2001 (PLL,NANO),
  time constant 4, precision 0.001 us, tolerance 500 ppm,
User avatar
Joulinar
Posts: 5149
Joined: Sat Nov 16, 2019 12:49 am

Re: Clock Issue with NTP server on Odroid C2

Post by Joulinar »

your status is status 0x2001 (PLL,NANO), which seems to be fine. I guess it will take some minutes for ntp to sync time correctly after reboot.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply