When I start my server running Ubuntu 20.04 the systemd-time-wait-sync.service is stuck in "activating" state. I noticed this because none of the systemd timer units triggered, because all the timers depend on systemd-time-wait-sync.service. Running "systemctl restart systemd-time-wait-sync.service" manually works around the problem.
raek@mizar:~$ systemctl | grep systemd-time-wait-sync.service
systemd-time-wait-sync.service loaded activating start start Wait Until Kernel Time Synchronized
raek@mizar:~$ systemctl status systemd-time-wait-sync.service
● systemd-time-wait-sync.service - Wait Until Kernel Time Synchronized
Loaded: loaded (/lib/systemd/system/systemd-time-wait-sync.service; enabled; vendor preset: enabled)
Active: activating (start) since Thu 2021-07-22 11:06:52 CEST; 27min ago
Docs: man:systemd-time-wait-sync.service(8)
Main PID: 514 (systemd-time-wa)
Tasks: 1 (limit: 9415)
Memory: 972.0K
CGroup: /system.slice/systemd-time-wait-sync.service
└─514 /lib/systemd/systemd-time-wait-sync
Jul 22 11:06:52 mizar systemd-time-wait-sync[514]: adjtime state 5 status 40 time Thu 2021-07-22 09:06:52.216338 UTC
Warning: journal has been rotated since unit was started, output may be incomplete.
raek@mizar:~$ journalctl -b -u systemd-time-wait-sync.service
-- Logs begin at Wed 2020-07-08 16:34:13 CEST, end at Thu 2021-07-22 11:36:44 CEST. --
Jul 22 11:06:52 mizar systemd-time-wait-sync[514]: adjtime state 5 status 40 time Thu 2021-07-22 09:06:52.216338 UTC
When I start my server running Ubuntu 20.04 the systemd- time-wait- sync.service is stuck in "activating" state. I noticed this because none of the systemd timer units triggered, because all the timers depend on systemd- time-wait- sync.service. Running "systemctl restart systemd- time-wait- sync.service" manually works around the problem.
Some logs and command outputs:
raek@mizar:~$ lsb_release -rd
Description: Ubuntu 20.04.2 LTS
Release: 20.04
raek@mizar:~$ systemctl | grep systemd- time-wait- sync.service time-wait- sync.service loaded activating start start Wait Until Kernel Time Synchronized
systemd-
raek@mizar:~$ systemctl status systemd- time-wait- sync.service time-wait- sync.service - Wait Until Kernel Time Synchronized system/ systemd- time-wait- sync.service; enabled; vendor preset: enabled) time-wait- sync.service( 8) slice/systemd- time-wait- sync.service systemd- time-wait- sync
● systemd-
Loaded: loaded (/lib/systemd/
Active: activating (start) since Thu 2021-07-22 11:06:52 CEST; 27min ago
Docs: man:systemd-
Main PID: 514 (systemd-time-wa)
Tasks: 1 (limit: 9415)
Memory: 972.0K
CGroup: /system.
└─514 /lib/systemd/
Jul 22 11:06:52 mizar systemd- time-wait- sync[514] : adjtime state 5 status 40 time Thu 2021-07-22 09:06:52.216338 UTC
Warning: journal has been rotated since unit was started, output may be incomplete.
raek@mizar:~$ journalctl -b -u systemd- time-wait- sync.service time-wait- sync[514] : adjtime state 5 status 40 time Thu 2021-07-22 09:06:52.216338 UTC
-- Logs begin at Wed 2020-07-08 16:34:13 CEST, end at Thu 2021-07-22 11:36:44 CEST. --
Jul 22 11:06:52 mizar systemd-
raek@mizar:~$ dpkg -S /lib/systemd/ system/ systemd- time-wait- sync.service system/ systemd- time-wait- sync.service
systemd: /lib/systemd/
raek@mizar:~$ apt-cache policy systemd se.archive. ubuntu. com/ubuntu focal-security/main amd64 Packages dpkg/status 4-4ubuntu3. 10 500 se.archive. ubuntu. com/ubuntu focal-updates/main amd64 Packages 4-4ubuntu3. 8 400 archive. ubuntu. com/ubuntu focal-proposed/main amd64 Packages se.archive. ubuntu. com/ubuntu focal/main amd64 Packages
systemd:
Installed: 245.4-4ubuntu3.11
Candidate: 245.4-4ubuntu3.11
Version table:
*** 245.4-4ubuntu3.11 500
500 http://
100 /var/lib/
245.
500 http://
245.
400 http://
245.4-4ubuntu3 500
500 http://