Page 1 of 1

systemd-timesyncd hanging for 40 seconds during boot

Posted: Tue Jan 07, 2020 10:10 pm
by Joulinar
Hi guys,

i discovered that timesyncd takes close to 40 seconds to complete during boot. I already switched to local ntp server within my network but still it takes 40 seconds

Code: Select all

[email protected]:~# journalctl -u systemd-timesyncd
-- Logs begin at Tue 2020-01-07 23:07:35 CET, end at Tue 2020-01-07 23:09:04 CET. --
Jan 07 23:07:39 DietPiVM1 systemd[1]: Starting Network Time Synchronization...
Jan 07 23:07:40 DietPiVM1 systemd[1]: Started Network Time Synchronization.
Jan 07 23:08:19 DietPiVM1 systemd-timesyncd[550]: Synchronized to time server for the first time 192.168.0.1:123 (192.168.0.1).
Jan 07 23:08:20 DietPiVM1 systemd[1]: Stopping Network Time Synchronization...
Jan 07 23:08:20 DietPiVM1 systemd[1]: systemd-timesyncd.service: Succeeded.
Jan 07 23:08:20 DietPiVM1 systemd[1]: Stopped Network Time Synchronization.
this happen during boot only. If I restart the service later on, it will finish quite fast

Code: Select all

Jan 07 23:09:03 DietPiVM1 systemd[1]: Starting Network Time Synchronization...
Jan 07 23:09:04 DietPiVM1 systemd[1]: Started Network Time Synchronization.
Jan 07 23:09:04 DietPiVM1 systemd-timesyncd[988]: Synchronized to time server for the first time 192.168.0.1:123 (192.168.0.1).

Re: systemd-timesyncd hanging for 40 seconds during boot

Posted: Fri Jan 10, 2020 9:07 pm
by Skirge01
Mine started doing that a day or so ago, but stopped after I rebooted a few times today. Doesn't mean it won't return, but I also switched to a local NTP server a few minutes ago.

Re: systemd-timesyncd hanging for 40 seconds during boot

Posted: Fri Jan 10, 2020 9:19 pm
by Joulinar
Hi,
for me a local NTP did not solved it. It's hanging for 30 seconds during boot now.

Re: systemd-timesyncd hanging for 40 seconds during boot

Posted: Fri Jan 10, 2020 10:01 pm
by Skirge01
Sorry I wasn't clearer. The hanging stopped before I changed to a local NTP server. I just used your mentioning of your own NTP server to kick my butt into gear and point dietpi to mine. :) Strangely enough, just a few reboots and it stopped hanging. I have no idea why.

Re: systemd-timesyncd hanging for 40 seconds during boot

Posted: Sat Jan 18, 2020 10:08 pm
by Joulinar
strange, indeed. I did quite a lot of reboots the last days for testing purposes and it seems boot times are back to normal. But honestly, I don't know why. Even more strange, its gone on all my devices like VM, RPi3 and RPi4 at the same time.