Questions tagged [systemd-timesyncd]

14 questions
44
votes
2 answers

ntpd vs. systemd-timesyncd - How to achieve reliable NTP syncing?

When I query the status of the NTP daemon with ntpdc -c sysinfo I get the following output: system peer: 0.0.0.0 system peer mode: unspec leap indicator: 11 stratum: 16 precision: -20 root distance: …
a_guest
  • 573
  • 1
  • 5
  • 7
9
votes
2 answers

How does Linux use a real time clock?

I'm investigating a very strange effect on some Beagle Bone Black (BBB) boards. We're seeing occasional jumps of a few months in the system clock which always correlate with systemd-timesyncd updating the system clock. We see 2 to 3 of these a…
Philip Couling
  • 17,591
  • 5
  • 42
  • 82
3
votes
4 answers

Using systemd-timesync on a read-only / filesystem

I'm trying to set-up a Raspberry Pi with read-only filesystems. The base image is the debian buster lite raspbian image. Most stuff is working, e.g. had to do simple fixes like: mv /etc/resolv.conf /var/run/resolv.conf && ln -s /var/run/resolv.conf…
Koen
  • 31
  • 1
  • 3
2
votes
1 answer

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.y.z.t1 FallbackNTP=x.y.z.t2 $ sudo timedatectl set-ntp…
SebMa
  • 1,941
  • 4
  • 22
  • 37
2
votes
2 answers

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?
user630702
  • 139
  • 2
  • 6
1
vote
1 answer

Can't override a systemd unit's ConditionVirtualization on Archlinux on Distrod on WSL

I'm trying to start systemd-timesyncd on Archlinux that was installed via Distrod on top of WSL. By default systemd-timesyncd's unit file prevents it from starting up on virtualized environment, the unit file has a ConditionVirtualization=!container…
1
vote
1 answer

NTP service shown "inactive" with 'timedatectl status'

On an Archlinux host, I noticed that command timedatectl status returned correct result for times (local and UTC) but also mentioned that the NTP service was inactive. That struck me as odd because ntpd.service is enabled and active on that machine,…
Cbhihe
  • 2,549
  • 2
  • 21
  • 30
1
vote
0 answers

Ubuntu 22.04 network freezing

I'm in a bit of a pickle here. I have a bunch of Ubuntu 22.04 VMs, hosted on multiple ESXi servers. When I try to apply netplan using netplan apply, system networking freezes and no packets are sent (checked with tcpdump). Also, when I try to…
1
vote
1 answer

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:46 Time zone: Etc/UTC (UTC,…
Alex Henrie
  • 715
  • 1
  • 8
  • 13
0
votes
0 answers

Timesyncd service return (code=exited, status=227/NO_NEW_PRIVILEGES)

I am on Ubuntu server 18.04 and the clock do not sync :~$ timedatectl status Local time: jeu. 2022-12-22 09:36:48 CET Universal time: jeu. 2022-12-22 08:36:48 UTC RTC time: n/a …
Syl
  • 111
  • 2
0
votes
0 answers

Failed to call clock_adjtime(): Operation not permitted running systemd-timesyncd - probably permission related

systemd-timesyncd unit fails on my Pi 4B running Linux 5.10.103-v7l+ UNIT LOAD ACTIVE SUB DESCRIPTION ● systemd-timesyncd.service loaded failed failed Network Time Synchronization LOAD = Reflects…
0
votes
1 answer

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 output of timedatectl : Local…
pritamneog
  • 1
  • 1
  • 1
  • 1
0
votes
2 answers

timedatectl fails to query server

When running timedatectl to check if my system clock has been synchronized via NTP I get the following: ~> timedatectl Failed to query server: The name org.freedesktop.timedate1 was not provided by any .service files systemd-timedated.service has…
dangeroushobo
  • 537
  • 3
  • 11
  • 24
0
votes
1 answer

timedatectl Cannot send after transport endpoint shutdown

My ntp service running well but I can't start timedatectl, any one can help? # systemctl status ntp ● ntp.service - LSB: Start NTP daemon Loaded: loaded (/etc/init.d/ntp; generated; vendor preset: enabled) Active: active (exited) since Sat…
robinshion
  • 1
  • 1
  • 2