Skip to main content

Questions tagged [ntp]

The Network Time Protocol, is used to synchronize system clocks to precision time servers on the internet or locally connected devices such as a GPS.

Filter by
Sorted by
Tagged with
0 votes
1 answer
17 views

Why the ntpq -c subcmds outputs nothing received, but still can properly sync its time

Environment: RHEL 6.4 with ntp-4.2.6p5-15.el6_10.x86_64 Question: the following ntp client can sync its time to the remote ntp server, but why it cannot run the ntpq -c subcmds with the remote ntp ...
lylklb's user avatar
  • 303
0 votes
0 answers
32 views

Strange behaviour probably related to time syncing

I have a raspberry pi running Raspbian bullseye. On it, I have a software installed that does the following every 30 seconds: logs data to a mariadb database publishes the data via a rest api ...
ununoctium's user avatar
-1 votes
2 answers
29 views

NTP client on Compact-RIO RT linux system

I'm trying to synchronize the time of my National Instruments real time system (model Crio 9053) running a Linux OS. I tried a ntpdate 192.168.10.3 command and this working well, but after that the ...
sborfedor's user avatar
1 vote
1 answer
66 views

Where can I find the configuration/setting for NTP to explain the specific behavior observed in an NTP client?

I have recently been doing a specific timing analysis of the performance of NTP under controlled conditions.  The experiment I performed was conceptually quite simple.  I have an NTP server running ...
Denis Barkats's user avatar
0 votes
0 answers
21 views

ntptrace always outputs the error message "Invalid association ID specified" at the end

It seems that this "error" should not be at least a bug within the ntptrace program since we have run it under the RHEL 5.x/6.x with the same "error" result. So my questions are ...
lylklb's user avatar
  • 303
0 votes
1 answer
30 views

Date is incorrect in wifi : system clock synchronization is not active

I have compiled a read-only rootfs image with yocto for my raspberrypi4. I have noticed that my date is incorrect uniquely in wifi. Indeed when I type the command timedatectl status I have the ...
void_brain's user avatar
1 vote
2 answers
133 views

Why is the * symbol taking a long time to show up in 'ntpq -p' output?

I'm working on a C application that requires NTP time to be synchronized on the host before proceeding. I've essentially written a wrapper C function that executes the command ntpq -p If the output ...
Izzo's user avatar
  • 971
1 vote
0 answers
31 views

chrony takes many minutes to read refclocks after boot

I'm looking to provide precise time to a Raspberry Pi 4 without internet via a UBLOX GNSS module that sends NMEA sentences to /dev/serial0 and a pulse-per-second (PPS) signal to /dev/pps0. All this ...
Joooeey's user avatar
  • 123
0 votes
1 answer
465 views

Chrony is not sync with date command

I paused the virtual machine on the VM and disconnected its internet connection without rebooting the system. When I started the system from sleep mode without rebooting, the system clock continued ...
Ichigo Kurosaki's user avatar
0 votes
1 answer
393 views

How to force update NTP date/time on a router?

The log of an Asus router with Padavan firmware (might be similar to OpenWrt) showed: Dec 4 16:06:20 NTP Client: Synchronizing time to 0.nl.pool.ntp.org. Oct 24 18:18:18 NTP Client: System time ...
Pro Backup's user avatar
  • 5,014
0 votes
0 answers
144 views

Chrony's "sources with unknown address" in `activity` and `sources -a` when using NTP Pool Servers

I found chronyc's activity command outputting something like this: chronyc> activity 200 OK 5 sources online 0 sources offline 0 sources doing burst (return to online) 0 sources doing burst (return ...
U. Windl's user avatar
  • 1,493
0 votes
1 answer
391 views

Purpose of high stratum values for the local clock (fudge option)

In the NTP configuration, what is the purpose of specifying high stratum values for the local clock? fudge 127.127.1.0 stratum 10 Correct me if I'm wrong: the server will rely anyway on the ...
dr_'s user avatar
  • 30.1k
0 votes
1 answer
384 views

Understanding NTP stratum

In Linux (RHEL 7+) how can I get the stratum value of an NTP server I had specified to use in /etc/chrony.conf ? For the List of Top Public Time Servers if that is correct, some are identified as ...
ron's user avatar
  • 7,162
0 votes
2 answers
4k views

What is the command to change the 'System clock synchronized:' setting from 'no' to 'yes' in photon os

I have a VM running Photon OS 3.0. NTP is not configured and it is using the hardware clock. It has fallen out of sync. The hardware clock hwclock is in sync with the hypervisor time, but when I run ...
Anand's user avatar
  • 1
0 votes
1 answer
282 views

timedatectl shows wrong local time

this the output of my timedatectl command on a proxmox VM running on a server in New Zealand with static IP: $ timedatectl Local time: Wed 2023-11-01 16:01:30 UTC Universal ...
Curu's user avatar
  • 13
1 vote
1 answer
65 views

ntpd local clock not immediately usable at boot

When configuring an NTP server with only the local clock, the server isn't usable to clients until over three minutes after ntpd starts by default. This is with "server 127.127.1.0 prefer". ...
Niklas Angare's user avatar
0 votes
2 answers
714 views

Chronyd clients query

it's possibile see log of sync query from client? There are tracking.log statistics.log measurements.log but in this log there are not clients query I try from my client to query with command ntpdate ...
cicoria67's user avatar
0 votes
1 answer
131 views

Force NTP step whenever the Internet comes up

Assume there is a PC with dead CMOS battery and unreliable Internet connection. As far as I understand, both chrony and ntpd try to correct huge time differences (years) once – upon startup, – but ...
ScumCoder's user avatar
  • 153
2 votes
1 answer
422 views

System time synchronization between two hosts using linuxPTP

I would like to setup a high-precision system time synchronization between two machines using linuxptp. On the first host: the system time is periodically synchronized using NTP using an interface ...
Emeric Verschuur's user avatar
0 votes
1 answer
428 views

How to update time zone list in Linux (Debian)?

I'm going to set time zone to my locale on Debian. The DST has been removed in my region since the last year (2022, Sep.), but it's apparently not updated in Debian time zone list. What is the best ...
Phree's user avatar
  • 3
0 votes
1 answer
2k views

How to set NTP synchronized to yes in Linux without NTP sync?

How to set NTPSynchronized to yes in Linux without actual NTP synchronization? I just want to cheat some program. ]$ timedatectl show -p NTPSynchronized NTPSynchronized=yes
Kirby Zhou's user avatar
8 votes
4 answers
1k views

Chicken and egg problem with NTP and Bind

This a report of a problem I solved but I feel the solution could be useful to other. The problem appeared on a Raspbian 9.13. For some - probably hardware - reasons still to be discovered, my ...
David Verdin's user avatar
0 votes
0 answers
75 views

Ntpd client strange behavior

Jetson NX with latest Jetpack, NTP Ver. 4.2.8p10 I have some pools in /etc/ntp.conf (0.europe.pool.ntp.org) When I try ntdate -q 0.europe.pool.ntp.org all is ok But there is nothing except one ...
Mike Mint's user avatar
0 votes
1 answer
856 views

Is there a way for accurate timekeeping on Linux/Debian without NTP/Internet?

The only way I could get a working clock on Debian is by using NTP to sync the clock as described here. Is there a way to have a reliably accurate clock without NTP and without any Internet connection?...
mYnDstrEAm's user avatar
  • 4,388
1 vote
1 answer
119 views

How can I determine the current reliability [correctness] of the system time?

I'm working on a project which will acquire a lot of timestamped data at fairly high resolution (50 samples per second) over a very long period of time (years). The solution includes various failover ...
Philip Couling's user avatar
1 vote
1 answer
2k views

Chrony - Synchronize the date and time of all host computers in a network without internet connection

I have two machines, host A with IP 192.168.0.1 host B with IP 192.168.0.2 They connected to the same network and I would like to set the date and time of machine B to match those of machine A. ...
UserK's user avatar
  • 2,464
3 votes
2 answers
2k views

Why is my ntp not updating?

I have a Debain console-only system. I just realized it's not updating it's clock: $ date Mon 10 Aug 20:33:23 BST 2020 $ ntpdate 10 Aug 20:27:45 ntpdate[8029]: no servers can be used, exiting $ ...
Daniel's user avatar
  • 339
1 vote
2 answers
2k views

NTP (NTPSec-1.2.2) client is able to sync time from NTP server even if the server does not switches from candidate to become system peer

I have a NTP setup (client-server association) where on the client side, I have below lines(among others) in ntp.conf: # This should be maxclock 7, but the pool entries count towards maxclock. tos ...
Piyush Singh's user avatar
1 vote
1 answer
1k views

Where is timedatectl information stored?

I am working on an embedded system without RTC battery. The time is synchronized via NTP when internet connection is available (which does not always happen). When the device is shut down, the time is ...
firion's user avatar
  • 149
0 votes
0 answers
167 views

How do I install NTP server on Windows and NTP client on Debian and configure them both?

I have configured an NTP server on my Windows, including the registry edits, services edits, and firewall. I started the time service too. I connected a Debian system to the same network and ...
RITY Y RA2011053040010's user avatar
0 votes
1 answer
577 views

Using RTC PPS for syncing computer by NTP

I've seen a decent amount of documentation for how one would use a GPS and its PPS signal along with an NTP package (like ntpd or chrony) to synchronize the computer's clock. I have a need similar to ...
Morten Nissov's user avatar
1 vote
1 answer
345 views

Ntpd sets the sys time to the year 2156 after syncing to primary server

I have a couple boards that are setup to get time from another board as the source of truth. The primary has correct time, but when the other supporting boards attempt to sync to it, they select the ...
dckoo's user avatar
  • 13
-1 votes
1 answer
81 views

Relocation error when running NTPv4 (cross-compile) on ARM device

The error message I am getting when running ntp-keygen (or ntpd) on my ARM device is: ./ntp-keygen: relocation error: ./ntp-keygen: symbol DSA_generate_parameters_ex, version OPENSSL_1_1_0 not defined ...
AwesomeJackify's user avatar
1 vote
1 answer
82 views

Error compiling NTPv4 for ARM with OpenSSL

The error is along the lines of "ntp_crypto.c:2248:2: error: unknown type name 'DSA_SIG'; did you mean 'ECDSA_SIG'?" make fails with the following output: tp_crypto.c: In function '...
AwesomeJackify's user avatar
0 votes
1 answer
110 views

Missing features compiling NTP vs installing already built

I have found that if I compile NTP myself, the package ntp-keygen is missing Autokey authentication features. The help screen of my compiled ntp is as follows: Whereas if I just apt-get install ntp, ...
AwesomeJackify's user avatar
1 vote
1 answer
3k views

How to install a NTP Client into a yocto-base Linux distribution?

I'm developing a yocto-base Linux distribution by zeus yocto release. I need to add a NTP client to the distribution but I don't need to install the NTP server inside the image. I have found the ...
User051209's user avatar
1 vote
1 answer
836 views

Understanding configuration of NTP server

I opened /etc/ntp.conf file. I have the following entries: server 0.centos.pool.ntp.org restrict 0.centos.pool.ntp.org mask 255.255.255.255 I am not sure what mask 255.255.255.255 is doing exactly? ...
Avv's user avatar
  • 113
4 votes
2 answers
9k views

System clock not synchronized with NTP server using systemd-timesyncd

I followed this answer here, but it seems that my system clock doesn't synchronize with NTP server: $ cat /etc/debian_version 10.9 $ egrep -v "^$|^#" /etc/systemd/timesyncd.conf [Time] NTP=x....
SebMa's user avatar
  • 2,209
0 votes
1 answer
2k views

Chrony fails to sync with NTS enabled

I have configured Chrony server and client on two Centos 9 Stream machines. Without NTS everything is fine and the time is being synced. However, when I enable NTS, and configure the server to use ...
Reza's user avatar
  • 198
1 vote
1 answer
2k views

How to enforce NTP authentication?

I have configured NTP server on an Ubuntu machine and NTP client on a Centos 9 Stream using Chrony. I have enabled authentication on both server and client, but when I put differnt keys on the sides, ...
Reza's user avatar
  • 198
1 vote
1 answer
2k views

NTP - tos maxdist explained

I had an issue with NTP today that I resolved by adding the line tos maxdistance 30 to my ntp.conf file. I found this solution online and am now trying to understand exactly what this line means. I ...
rush_hour's user avatar
1 vote
1 answer
598 views

What does the '#' prefix mean for "ntpq -p"

I'm adding an NTP server to my npt.conf file and wanted to check if it was successfull using "ntpq -p". In the output I see several prefix, I know that '*' indicates the one being used, '+' ...
RobbeVl's user avatar
  • 13
1 vote
1 answer
815 views

how to test ntp servers as real servers that responding without using ping test

we have bash script that configured the chrony.conf script check if ping is ok on ntp1 and ntp2 ( ntp servers ) and then script insert the ntp servers to /etc/chrony.conf ( only if ping success ) ...
yael's user avatar
  • 13.4k
2 votes
1 answer
11k views

ntpq peers output explanation

I got following output from ntpq command: # ntpq -pn remote refid st t when poll reach delay offset jitter =================...
Zaboj Campula's user avatar
2 votes
1 answer
990 views

What is timedatectl's definition of "synchronized"?

timedatectl produces the following output: Local time: Tue 2022-05-10 01:07:46 UTC Universal time: Tue 2022-05-10 01:07:46 UTC RTC time: Tue 2022-05-10 01:07:...
Alex Henrie's user avatar
2 votes
1 answer
1k views

How can I have ntpd act as a client only, and not a server?

I'm trying to configure a linux machine for NTP, but don't want that machine to reply at all to other machines which may make requests. But it will be acting as an NTP client, which means it will ...
Dave's user avatar
  • 61
0 votes
1 answer
804 views

chrony keeps going in future

I have chrony installed on a centos 8 system and it keeps setting the time in the future by about 2 hours every 2 days. I have to keep restarting the service and do an ntpdata to fix itm and it is ...
Comforse's user avatar
  • 630
0 votes
0 answers
921 views

timedatectl: problem with NTP returning localtime instead of UTC time

On my embedded Linux, I have a problem with time zones: I'm trying to keep the UTC time in the RTC of the device. But somehow, timedatectl keeps adjusting time to the local time and not the UTC time, ...
Jean-Loup Sabatier's user avatar
2 votes
0 answers
714 views

Why is my NTP time sync root dispersion degrading over time?

I have a test network setup with a Mikrotik router with a 4G/LTE internet connection, connected to one Raspberry Pi via Ethernet cable, and to 30 more Raspberry Pis via wifi. I have set up NTP with ...
Hydrargyrum's user avatar
1 vote
1 answer
23k views

System clock synchronization is not working after upgrading to pop_os 21.10

I've recently upgraded to pop_os 21.10 from 21.04 and every time I boot my device I get random time/date set on my machine. Automatic date and time under settings is not working. The following is the ...
pritamneog's user avatar

1
2 3 4 5
7