Following the reproduction instructions:

1. Booted the Pi 5 desktop image (freshly flashed). Ran through first-
time setup.

2. cat /run/systemd/netif/state
cat: /run/systemd/netif/state: No such file or directory

3. timedatectl timesync-status
Command requires systemd-timesyncd.service, but it is not available: The name 
org.freedesktop.timesync1 was not provided by any .service files

> Workaround (confirmed working): a tmpfiles.d entry removing the stale file at 
> boot:
>  # /etc/tmpfiles.d/remove-stale-netif-state.conf
>  r! /run/systemd/netif/state

How is this "confirmed working" if the file never exists in the first
place?

> ... the wall clock ends up minutes wrong within days of uptime and
drifts freely

Can't say I've ever noticed clock drift on my desktop Pi 5 that runs for
literal weeks on end. But this isn't terribly surprising, given that
timesync on fresh resolute installs is handled by chrony (not sure if
this is *always* pulled in on upgrades; that's an angle to check).
Anyway, it seems to be happily synchronized:

$ chronyc tracking
Reference ID    : 45AE48D5 (ntp-nts-2.ps5.canonical.com)
Stratum         : 3
Ref time (UTC)  : Wed Jul 15 11:31:20 2026
System time     : 0.000041788 seconds fast of NTP time
Last offset     : +0.000107366 seconds
RMS offset      : 0.000209605 seconds
Frequency       : 6.900 ppm slow
Residual freq   : +0.361 ppm
Skew            : 2.283 ppm
Root delay      : 0.012249299 seconds
Root dispersion : 0.001555360 seconds
Update interval : 64.6 seconds
Leap status     : Normal

Could the AI that (quite obviously) wrote all this try a bit harder,
please?

** Changed in: ubuntu-raspi-settings (Ubuntu)
       Status: New => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2160661

Title:
  systemd-timesyncd never syncs on Pi images: stale
  /run/systemd/netif/state (ONLINE_STATE=offline) left by initrd-only
  systemd-networkd

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-raspi-settings/+bug/2160661/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to