# systemd-timesyncd hanging for 40 seconds during boot

**URL:** <https://dietpi.com/forum/t/systemd-timesyncd-hanging-for-40-seconds-during-boot/3729>\
**Category:** Troubleshooting\
**Created:** [7 January 2020 22:10 UTC](https://dietpi.com/forum/t/systemd-timesyncd-hanging-for-40-seconds-during-boot/3729 "2020-01-07T22:10:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [7 January 2020 22:10 UTC](https://dietpi.com/forum/t/systemd-timesyncd-hanging-for-40-seconds-during-boot/3729/1 "2020-01-07T22:10:18Z")

</div>

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

```nohighlight
root@DietPiVM1:~# 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

```nohighlight
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).

```

---

<div class="post-metadata">

**Author:** ![Skirge01](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/s/ad7895/32.png) [@Skirge01](https://dietpi.com/forum/u/Skirge01)\
**Post date:** [10 January 2020 21:07 UTC](https://dietpi.com/forum/t/systemd-timesyncd-hanging-for-40-seconds-during-boot/3729/2 "2020-01-10T21:07:10Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [10 January 2020 21:19 UTC](https://dietpi.com/forum/t/systemd-timesyncd-hanging-for-40-seconds-during-boot/3729/3 "2020-01-10T21:19:21Z")

</div>

Hi,  
for me a local NTP did not solved it. It’s hanging for 30 seconds during boot now.

---

<div class="post-metadata">

**Author:** ![Skirge01](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/s/ad7895/32.png) [@Skirge01](https://dietpi.com/forum/u/Skirge01)\
**Post date:** [10 January 2020 22:01 UTC](https://dietpi.com/forum/t/systemd-timesyncd-hanging-for-40-seconds-during-boot/3729/4 "2020-01-10T22:01:39Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [18 January 2020 22:08 UTC](https://dietpi.com/forum/t/systemd-timesyncd-hanging-for-40-seconds-during-boot/3729/5 "2020-01-18T22:08:54Z")

</div>

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.
