Re: [chrony-users] ntptime returned error 5

[ Thread Index | Date Index | More Archives ]

Why would you use ntptime with chrony? They are different processes, and there
is no reason that chrony would impliment ntptime. ntptime is now about 40
years old. Why would you want to use it?

William G. Unruh __| Canadian Institute for|____ Tel: +1(604)822-3273
Physics&Astronomy _|___ Advanced Research _|____ Fax: +1(604)822-5324
UBC, Vancouver,BC _|_ Program in Cosmology |____ unruh@xxxxxxxxxxxxxx
Canada V6T 1Z1 ____|____ and Gravity ______|_

On Wed, 3 Jan 2024, chengyechun wrote:

[CAUTION: Non-UBC Email]

Hi all

If chronyd is used as the local clock source, ntptime does not seem to work properly,
because of chrony's design or what configuration can control?

The following is the local configuration.

chronyd -p:


driftfile /var/lib/chrony/drift

makestep 1.0 3


allow all

local stratum 10

ntsdumpdir /var/lib/chrony

logdir /var/log/chrony


ntptime command output:

ntp_gettime() returns code 5 (ERROR)

  time e93f3fcd.1f79d000  Wed, Jan  3 2024 10:07:09.122, (.122952),

  maximum error 16000000 us, estimated error 16000000 us, TAI offset 0

ntp_adjtime() returns code 5 (ERROR)

  modes 0x0 (),

  offset 0.000 us, frequency 0.000 ppm, interval 1 s,

  maximum error 16000000 us, estimated error 16000000 us,

  status 0x40 (UNSYNC),

  time constant 3, precision 1.000 us, tolerance 500 ppm,

Mail converted by MHonArc 2.6.19+