# 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:** 1
**Showing post:** 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).

```

---

_[View the full topic](https://dietpi.com/forum/t/systemd-timesyncd-hanging-for-40-seconds-during-boot/3729)._
