Questions tagged [systemd-timesyncd]

22 questions
9
votes
1 answer

Setting multiple NTP servers in /etc/systemd/timesyncd.conf

The man page for timesyncd.conf(5) indicates that the setting for NTP is a space-separated list of NTP server host names or IP addresses. We have two internal NTP servers in our network, both on the same subnet (10.10.10 0/24). On an Ubuntu 18.04…
Deathgrip
  • 193
8
votes
2 answers

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 package lists... Done Building dependency tree …
aaa90210
  • 221
6
votes
1 answer

NTP service is unable to connect to ntp.ubuntu.com on ubuntu 18.04

I've been finding that my device recently has been unable to connect to ntp.ubuntu.com with its systemd-timesyncd service. Mar 15 00:31:52 l157 systemd-timesyncd[673]: Timed out waiting for reply from 91.189.89.199:123 (ntp.ubuntu.com). Mar 15…
Douglas Burrell
  • 61
  • 1
  • 1
  • 2
5
votes
2 answers

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.service which starts the daemon systemd-timesyncd (see here the documentation). This is the status of this service: > systemctl status systemd-timesyncd # this is the output of the…
User051209
  • 539
  • 1
  • 7
  • 24
3
votes
1 answer

Get ntp offset between local machine and ntp-server

Using Ubuntu 18.04.3 I am unable to get information about the NTP offset using timedatectl timesync-status as I get a Unknown operation timesync-status prompt. Checking the service state with timedatectl and systemctl status…
ThomasW
  • 31
2
votes
0 answers

trying to script ntp client settings

Im writing or trying to write a script that will add some NTP servers to 22.04 server. Setntpclient() { sudo cp /etc/systemd/timesyncd.conf /etc/systemd/timesyncd.conf.bk_`date +%Y%m%d%H%M` echo sudo chmod 664 /etc/systemd/timesyncd.conf #setting to…
2
votes
0 answers

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 completely wrong. I can disable NTP and set the correct…
2
votes
0 answers

systemd-timesyncd Inactive at boot ubuntu 20.04

First off I've searched for the answer here and it's not the standard disable/purge ntp/chrony. I can run dpkg -l | grep ntp and dpkg -l | grep chrony and neither returns anything, so I know it's not a conflict with that. It's also a fresh vagrant…
1
vote
1 answer

System time synchronization not working

I am running Ubuntu 20.04 and using timedatectl with timesyncd. If I enable NTP sync then my local and universal dates get set to the year 2058. If I do a manual check (using python) the NTP servers I am using are working correctly. This has…
1
vote
1 answer

Ubuntu 20.04 failed to fetch dependencies

I'm trying to install systemd-timesyncd with apt install systemd-timesyncd and retrive 404 error. ➜ ~ apt install systemd-timesyncd Reading package lists... Done Building dependency tree Reading state information... Done The following packages…
xabikip
  • 11
1
vote
0 answers

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 server. Following are the logs started Network Time…
1
vote
1 answer

Should I disable systemd-timesyncd if ntp is installed?

Is there any issue with running systemd-timesyncd and ntp on the same machine? I'm asking this because I have started using NTP on all servers but the systemd-timesyncd is running there as well. Should I disable it? Any issues with both running?
1
vote
2 answers

How to check programmatically if systemd-timesyncd has synced successfully

Is it possible to programmatically know if systemd-timesyncd; Can access to the NTP servers? Has synced the system time with the server? The reason is I have an application depends on precise time information and must be started after system time…
1
vote
1 answer

systemd-timesyncd.service won't start

● systemd-timesyncd.service - Network Time Synchronization Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Sat 2019-08-17 04:32:34 PDT; 11min ago …
Joe Inwap
  • 461
1
vote
0 answers

systemd-resolved and systemd-timesyncd timeout failure, keep trying to restart

After a recent update my 18.04 server is running in a degraded state (as reported by systemctl status) because of two failed units. In /var/log/syslog I get these lines every 90 s: Jun 10 22:07:49 olympus systemd[1]: systemd-resolved.service: Start…
Jos
  • 30,529
  • 8
  • 89
  • 96
1
2