Questions tagged [ntp]

Questions about the NTP protocol and applications that use it. NTP is an acronym for Network Time Protocol.

Filter by
Sorted by
Tagged with
0 votes
0 answers
37 views

Manually set system time while NTP sync is on

I have a computer without internet connection and I would like to manually set the system time. I've tried running timedatectl set-time, but I get Failed to set time: Automatic time synchronization is ...
jnts's user avatar
  • 1
0 votes
0 answers
43 views

Ubuntu 22.04 time behind 1 minute

I'm running Ubuntu 22.04 on AWS and noticed the time was behind by one minute. The only thing I changed was the timezone using: sudo timedatectl set-timezone "America/Chicago" I also tried ...
cwhitmore's user avatar
0 votes
1 answer
1k views

Why the timesyncd client does not receive any reply from the NTP server (time out in reply)?

In my lubuntu 22.04 is active the service systemd-timesyncd. This is the status of this service: > systemctl status systemd-timesyncd # this is the output of the previous command: ● systemd-...
User051209's user avatar
1 vote
1 answer
58 views

Is there a way to audit who is changing the system time?

I've got an openvpn client running which seems to be causing a problem on my system by changing the system time for my machine. How do you prevent openvpn clients from changing the system clock? Is ...
Rusty Weber's user avatar
0 votes
0 answers
51 views

NTP server for test

I'm trying to configure an ntp server to test my client. The ntp server hasn't to be synced on real ntp, I would like to manage myself the clock. here is the current config: # /etc/ntp.conf, ...
Laurent Barbier's user avatar
3 votes
3 answers
2k views

NTP - Egypt DST time change 2023 in Ubuntu 20.04

I have ntp server with OS Ubuntu 20.04 we will have new day light saving time change in Egypt on 27th of April 2023 I tried to check the dst status using "timedatectl" command but ...
Ahmed Elshamy's user avatar
2 votes
1 answer
109 views

System clock seems off by -2m11.785152258s, which can prevent network connectivity

I have a server that was syncing a bsc full node, and all of a sudden my system clock went off by 2 minutes. Could it be a hardware problem? OS: Ubuntu 22.04.2 LTS x86_64 ❯ timedatectl status ...
kakakakakakakk's user avatar
1 vote
2 answers
2k views

Mexico NTP (no more time changes since 2023) and my NTP server

I have a NTP server (Ubuntu) that actually have a Time Zone of America/Mexico_City, until 2022 we have had 2 time changes a year, most Americans spring forward (turn clocks ahead and lose an hour) on ...
SOV's user avatar
  • 13
1 vote
0 answers
72 views

Google Authenticator not giving correct verification code

I'm setting up a google authenticator for a linux image that i'm creating. Every time it gives me a verification code it's different to what my phone gives me. My question is because this is time ...
Bad programmer 's user avatar
0 votes
0 answers
812 views

System clock not synchronized but NTP service is active

I am unable to get a "yes" for "System clock synchronized" on my VPS (Ubuntu 22.04). The NTP service is active. I already tried sudo timedatectl set-ntp on but this only activates ...
John Smith's user avatar
0 votes
0 answers
105 views

How to setup a NTP server on ubuntu that provides Local time instead of UTC time for clients?

How can I setup a NTP server on ubuntu that provides Local time instead of UTC time for clients? Some of the clients aren't able to set a Time zone and don't automatically account for Daylight Savings ...
Nugg3n's user avatar
  • 1
0 votes
0 answers
41 views

NTP service is looking at the gateway and not at the servers I put in the ntp.conf file

I have two ubuntu virtual machines. One of them shows all the ntp servers and is connected to the best one. The other one only shows the gateway no matter what I change in the ntp.conf file. Working ...
AwesomeJackify's user avatar
0 votes
1 answer
355 views

Time mismatch (local and universal)

I don't know why the displayed time in my Ubuntu 20.04 is different from real clock. As you can see below, I have synchronized the clock and then date command shows it is 02:54:49 PM CEST, but the ...
mahmood's user avatar
  • 1,845
1 vote
3 answers
4k views

Could not install NTP because of conflicts with time-daemon (systemd-timesyncd) on Ubuntu 20.04 LTS

I get a problem when install ntp (offline install) because the conflict with time-daemon of systemd-timesyncd. # dpkg -i ntp_4.2.8p12+dfsg-3ubuntu4.20.04.1_amd64.deb dpkg: regarding ntp_4.2.8p12+dfsg-...
Quang Nguyen's user avatar
2 votes
2 answers
883 views

ntp, ntpsec, openntpd: which differences?

On my Ubuntu 20.04, I would like to use ntpd to perform a time synchronization. This program is not installed, but is present in 3 different packages. Command 'ntpd' not found, but can be installed ...
Covich's user avatar
  • 243
0 votes
0 answers
472 views

Ubuntu 22 Display localtime instead of universal time

I want to display local timezone instead of Universal time in Ubuntu 22.04.1 LTS. It also displays same UTC +00 in all regional timezone. I did set time timezone manually nothing works. sudo ...
Sujan's user avatar
  • 1
1 vote
0 answers
554 views

Getting GPS time from TCP source + PPS device

I'm currently working on a Nvidia Jetson TX2 with Ubuntu 18, using an Emlid Reach GPS Module which is capable of provide NMEA messages through a TCP connection and a 1-PPS signal through a UART pin. I'...
CaTo's user avatar
  • 11
0 votes
0 answers
14 views

How to control timezones in upgraded system

During the upgrade from 16.04 -> 18.04 -> 20.04 I noticed ntp is no longer supported, but not removed. Does this mean there is now a systemd process running alongside ntp and possibly double ...
KdgDev's user avatar
  • 245
0 votes
0 answers
2k views

How can I find the IP of my NTP server on Ubuntu 22.04?

I tried to do both of the methods [here][1] to find the IP of my NTP server, but I was unable to do so successfully. In fact, the second method does not list the NTP server. Ironically, I need to find ...
MRSchwob's user avatar
0 votes
1 answer
77 views

If there's no NTP daemon in system, how should ntpd be called in order to query the system time offset, without setting the time?

How should I call ntpd if I only want to query the NTP, but I do not want to update the system time (as in "ntpdate -q")? We do not have an NTP daemon in our proprietary system. Thanks, ...
Mechi's user avatar
  • 1
0 votes
0 answers
187 views

Automatic system time update based on gps time to keep system clock accuracy

I tried to use gpsd on ubuntu to provide the most accurate time to the system based on current GPS data and PPS signal. However, gpsd updates the time only once. Is there any possibility keep updating ...
no one special's user avatar
0 votes
0 answers
170 views

Unit & magnitude of NTP / ntpdate

I have a cluster of 10 virtualized ubuntu servers. For all of them, I installed the ntp-Daemon. Since I currently running some time sensitive experiments, I am interested in the offsets between my ...
moosehead42's user avatar
0 votes
2 answers
1k views

Unable to set up timedatectl to sync from a specific NTP server

I am using my college's LAN and need my timedate to synchronize to the college's ntp server. I tried editing the /etc/systemd/timesyncd.conf appropriately (by change the value after NTP= but it keeps ...
Shashwat's user avatar
  • 149
0 votes
0 answers
196 views

Would like local time to be automatically updated

I am using Ubuntu 20.04 server edition on a RPi 4. I have seen tutorials and posts on how to set the local time manually. However, I would like to set the device to automatically update the local ...
noobuntu's user avatar
0 votes
0 answers
195 views

How to know that the chrony works well to synchronize timestamps on two computers?

I used the chrony to synchronize timestamps on two computers. The robot's computer is a master and the workstation's computer is a client. All I did, I follow the question's answer here after ...
REDHWAN's user avatar
  • 193
1 vote
1 answer
918 views

NTP Configuration not being used

I am trying to set up a GPS NTP server on my SBC running Ubuntu 20.04 (headless) but I am having a configuration issue. When I reboot I get this: $ ntpq -p remote refid st t when ...
Zach's user avatar
  • 168
0 votes
2 answers
815 views

Ntpd drifting, very fast

I have to run stop ntp/ntpdate/start ntp every day, since my Laptop (ThinkPas AMD64 Rhyzen, Ubuntu 20.04) looses half an hour a day Here is my ntp.conf (almost the default): driftfile /var/lib/ntp/ntp....
Xavier Humbert's user avatar
0 votes
0 answers
181 views

Is ntp.ubuntu.com impacted by GPSD bug?

We are time-syncing several instances with the ntp.ubuntu.com time server and have come to know about the potential GPSD issue which is relevant next sunday October 24, 2021: "On October 24, ...
MCB's user avatar
  • 11
0 votes
1 answer
1k views

iptables with NTP

I am using iptables to filter the traffic and also chronyd to synchronize the system time. However, I am not getting it to work, somehow chronyd cannot access the NTP server. Here are my iptables ...
user278965's user avatar
2 votes
0 answers
2k views

Wrong system time when NTP is enabled?

I am running Ubuntu 20.04 on my laptop. Ever since the installation I have never had any problems with the date/time going out of sync. But today when I started the laptop the system time was ...
david.mihola's user avatar
1 vote
1 answer
2k views

NTP server install fails on Ubuntu 20.04.3 LTS

It's been my first time posting a question. I have install Ubuntu 20.04.3 LTS on a server in order to be my NTP server for my network. I try to install the NTP server but I get the error: $ sudo apt-...
Nikos Vallas's user avatar
3 votes
0 answers
306 views

date command timezone not reflecting correct date/time from timedatectl

I am in the MDT timezone (UTC -600). When I run the date command it shows the UTC time but shows MDT as the timezone, so the timezone looks correct but the time is actually 6 hours ahead of what it ...
syntax's user avatar
  • 31
0 votes
1 answer
413 views

Does Default Ubuntu use ntpd or timesyncd?

In the question linked, I ask how I can get time syncing to work. Why is the time not syncing? The answer given was to check my NTP configuration. Why would I do that? I thought Ubuntu switched from ...
Rucent88's user avatar
  • 1,928
1 vote
3 answers
15k views

Why is the time not syncing?

I want the time to sync, but it's not. I tried running the following commands, but it's still not syncing. # timedatectl set-ntp off # timedatectl set-ntp on # timedatectl status ...
Rucent88's user avatar
  • 1,928
0 votes
1 answer
370 views

gpsd and chrony single gps pps setup

I have a system that will be offline most of the time. I have gpsd and chrony setup, and am able to share gps and pps with chrony via the shared memory. my goal is to make sure the server can share ...
Linux-dev's user avatar
0 votes
0 answers
932 views

ntpd says it can't open /var/log/ntpd.log even though the file is owned by ntp:ntp, what gives?

I have three Ubuntu servers, one of which is able to save its log in the /var/log/ntp.log file, the other two are not. The configuration looks like this in all of them (clearly uncommented): logfile /...
Alexis Wilke's user avatar
  • 2,642
0 votes
2 answers
1k views

Can chrony be configured as ntp server with gpsd without PPS

I'm wanting to setup an ntp server on Ubuntu 18.04 or later. This PC will have little to no access to internet. I currently have a ublox 8 GPS USB mouse that does not support PPS. I have followed the ...
Linux-dev's user avatar
0 votes
0 answers
2k views

Universal Time different from RTC time in timedatectl

As you can see in below, my Universal Time different from RTC time. It has 5 seconds later. My current Date is also 5 seconds later than real time. How can I fix it. I don't want to install ntpd or ...
Majid Hajibaba's user avatar
1 vote
0 answers
1k views

systemd-timesyncd service

I am have mentioned an IP in /etc/systemd/timesyncd.conf as NTP=192.168.1.180 and restarted the service through following command systemctl restart systemd-timesyncd but I time isn't syncing with ...
Balaji Venkatesh Kalakund's user avatar
2 votes
0 answers
592 views

chrony; clock skew too great

I have a fully operational chrony on my Ubuntu: v@v-VirtualBox:~$ timedatectl Local time: Mon 2021-05-17 17:02:03 EEST Universal time: Mon 2021-05-17 14:02:03 UTC ...
Viesturs's user avatar
  • 642
6 votes
2 answers
29k views

Can't start/enable timesyncd on 20.04 LTS

When I try to I get this: # systemctl enable systemd-timesyncd.service Failed to enable unit: Unit file systemd-timesyncd.service does not exist. NTP is installed: # apt-get install ntp Reading ...
aaa90210's user avatar
  • 201
1 vote
1 answer
316 views

Why apt update sources fail sometimes when clock not synced?

This has been puzzling me for months and is an academic question now. I have a working fix, but want to understand the 'why'. Why is it that some sources in sources.list will sometimes fail to update ...
GGibson's user avatar
  • 121
1 vote
1 answer
3k views

Unable to add rules to /etc/ufw/before.rules and before6.rules

I run a high-traffic NTP server and the following rules are absolutely necessary to prevent my conntrack table from being immediately overrun (regardless of how large it is): iptables -t raw -A ...
Displayname71's user avatar
1 vote
0 answers
7k views

Failed to set ntp: NTP not supported

Mu Ubuntu 20.04 suffers from time synchronisation problems. Particularly: v@v-VirtualBox:~$ timedatectl Local time: Sat 2021-05-01 09:30:44 EEST Universal time: Sat 2021-05-...
Viesturs's user avatar
  • 642
0 votes
1 answer
2k views

why does UFW block ICMP destination-unreachable messages despite apparently having rules to allow them?

Ubuntu 20.04.2 LTS, I am running UFW with mostly default configuration, have allowed some ports through with "ufw allow" but haven't done any manual blocking or config files editing. I was ...
Displayname71's user avatar
1 vote
2 answers
6k views

Why does local time reset itself to wrong time after "timedatectl set-time"?

I have a server (Ubuntu 20.04) with an asynchronous time (wrong by around 7.5 minutes; RTC already seems to be equal/close to the "real" time) which I want to correct: timedatectl ...
KatharinaSt's user avatar
0 votes
1 answer
890 views

How to find out which NTP (Network Time Protocol) is configured on Linux-ubuntu

I'm working on ubuntu where i want see which NTP is used as default, ex. chrony! and if its even configured for the purpose of correct time synchronisation in a cluster of another app. So How can i ...
k.jbaili's user avatar
  • 129
0 votes
1 answer
127 views

Isolated NTP Server for use in switchgear testing

I need to set up an NTP server to test the NTP functionality of some power meters (PXM2000), gateways (PXG900), and MOXAS in a switchgear application. For my application I do not care about precise ...
Les's user avatar
  • 1
0 votes
1 answer
1k views

How to remove ntp without internet connection? [duplicate]

i was asked to sync ubuntu 20 via ntp. usually im using systemd-timesync for this mission. on this pc i did timedatectrl and got: $ timedatectl Local time: Mon 2021-03-08 10:24:24 -05 ...
David Shuhami's user avatar
30 votes
2 answers
79k views

NTP not supported

In Ubuntu 20.04, I see that I can not change the set-ntp due to the following error. # timedatectl set-ntp true Failed to set ntp: NTP not supported Any way to fix that? UPDATE: It seems that systemd-...
mahmood's user avatar
  • 1,845

1
2 3 4 5