08-07-2020, 11:13 AM
I experienced this hang and did some digging, found pretty much what you are saying. The time-sync target is not being reached, any timer depending on this cannot be started. My active jobs list shows this (since boot):
Curious enough, timedatectl shows everything is ok:
systemd-time-wait-sync start the command '/lib/systemd/systemd-time-wait-sync' and waits for it to exit. If i start that manually it, correctly, exits immediately. But for some reason the process started earlier isn't getting updated. By restart the systemd-time-wait-sync service everything works without a reboot: 'systemctl restart systemd-time-wait-sync'
I think this bug is the culprit: https://github.com/systemd/systemd/issues/15947
I am running Mobian which has switched to chrony, not sure if that is related.
Code:
root@mobian:/home/mobian# systemctl list-jobs
JOB UNIT TYPE STATE
65 timers.target start waiting
70 apt-daily-upgrade.timer start waiting
68 apt-daily.timer start waiting
72 e2scrub_all.timer start waiting
67 man-db.timer start waiting
69 fwupd-refresh.timer start waiting
71 fstrim.timer start waiting
25 time-sync.target start waiting
24 systemd-time-wait-sync.service start running
Curious enough, timedatectl shows everything is ok:
Code:
root@mobian:/home/mobian# timedatectl status
Local time: Fri 2020-08-07 12:47:27 EDT
Universal time: Fri 2020-08-07 16:47:27 UTC
RTC time: Fri 2020-08-07 16:47:28
Time zone: America/New_York (EDT, -0400)
System clock synchronized: yes
NTP service: active
RTC in local TZ: no
systemd-time-wait-sync start the command '/lib/systemd/systemd-time-wait-sync' and waits for it to exit. If i start that manually it, correctly, exits immediately. But for some reason the process started earlier isn't getting updated. By restart the systemd-time-wait-sync service everything works without a reboot: 'systemctl restart systemd-time-wait-sync'
I think this bug is the culprit: https://github.com/systemd/systemd/issues/15947
I am running Mobian which has switched to chrony, not sure if that is related.