4

On raspberry pi os, pi zeor 2 w, the systemd-timesyncd always restat once received Router Advertisement from router

The messages are like following:

Nov 28 12:22:46 raspberrypi dhcpcd[837]: wlan0: Router Advertisement from fe80::925c:44ff:XXXX:XXXX
Nov 28 12:22:47 raspberrypi systemd[1]: Stopping Network Time Synchronization...
Nov 28 12:22:47 raspberrypi systemd[1]: systemd-timesyncd.service: Succeeded.
Nov 28 12:22:47 raspberrypi systemd[1]: Stopped Network Time Synchronization.
Nov 28 12:22:47 raspberrypi systemd[1]: Starting Network Time Synchronization...
Nov 28 12:22:47 raspberrypi systemd[1]: Started Network Time Synchronization.
Nov 28 12:22:47 raspberrypi systemd-timesyncd[8816]: Initial synchronization to time server 172.105.75.114:123 (0.pool.ntp.org).
Nov 28 12:24:55 raspberrypi dhcpcd[837]: wlan0: Router Advertisement from fe80::925c:44ff:XXXX:XXXX
Nov 28 12:24:56 raspberrypi systemd[1]: Stopping Network Time Synchronization...
Nov 28 12:24:56 raspberrypi systemd[1]: systemd-timesyncd.service: Succeeded.
Nov 28 12:24:56 raspberrypi systemd[1]: Stopped Network Time Synchronization.
Nov 28 12:24:56 raspberrypi systemd[1]: Starting Network Time Synchronization...
Nov 28 12:24:56 raspberrypi systemd[1]: Started Network Time Synchronization.
Nov 28 12:24:56 raspberrypi systemd-timesyncd[8856]: Initial synchronization to time server 193.175.73.20:123 (0.pool.ntp.org).

Any idea what could be the problems? Thanks very much!

ygofoust
  • 41
  • 1

1 Answers1

3

This looks to me like a bug in the dhcpcd5 "hook" scripts. It's being tracked in the Debian bug tracker at https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1008059.

In the meantime, you can work around it by either (a) taking the patch I've proposed in that bug report, or (b) by disabling the reload of systemd-timesyncd, such as by running the below one-liner:

sudo sed -i 's/systemctl try-restart systemd-timesyncd\.service/:/' /lib/dhcpcd/dhcpcd-hooks/64-timesyncd.conf

(the one-liner above will disable this behaviour unconditionally, where the patch will check if it's actually needed; if you might manually change the configured SNTP server, you probably want the full patch not this quick fix.)

me_and
  • 131
  • 4